]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Update .gitignore for new updatedb files
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="src/version.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='LTLIBOBJS
788 DISTVER
789 DISTNAME
790 MACOSX
791 WIN32
792 PSCMD
793 TAPEDRIVE
794 OBJLIST
795 WRAPLIBS
796 WLDFLAGS
797 WCFLAGS
798 DB_LIBS
799 DLIB
800 DINCLUDE
801 DEBUG
802 FDLIBS
803 CAP_LIBS
804 AFS_LIBS
805 AFS_CFLAGS
806 ZLIBS
807 LIBOBJS
808 X_EXTRA_LIBS
809 X_LIBS
810 X_PRE_LIBS
811 X_CFLAGS
812 XMKMF
813 GETCONF
814 DB_TYPE
815 cats
816 DB_PROG_LIB
817 DB_PROG
818 uncomment_dbi
819 DBI_DBD_DRIVERDIR
820 SQL_BINDIR
821 SQL_INCLUDE
822 SQL_LFLAGS
823 SBINPERM
824 fd_group
825 fd_user
826 sd_group
827 sd_user
828 dir_group
829 dir_user
830 db_port
831 db_password
832 db_user
833 db_name
834 mon_sd_password
835 mon_fd_password
836 mon_dir_password
837 sd_password
838 fd_password
839 dir_password
840 sd_port
841 fd_port
842 dir_port
843 baseport
844 subsysdir
845 piddir
846 smtp_host
847 job_email
848 dump_email
849 plugindir
850 logdir
851 bsrdir
852 scriptdir
853 hostname
854 basename
855 archivedir
856 working_dir
857 OPENSSL_INC
858 OPENSSL_LIBS
859 PYTHON_INCDIR
860 PYTHON_LIBS
861 READLINE_SRC
862 CONS_LDFLAGS
863 CONS_LIBS
864 CONS_SRC
865 CONS_OBJ
866 CONS_INC
867 STORED_DIR
868 DIR_TOOLS
869 DIRD_DIR
870 ALL_DIRS
871 STATIC_WX_CONS
872 STATIC_GNOME_CONS
873 STATIC_CONS
874 STATIC_DIR
875 STATIC_SD
876 STATIC_FD
877 TTOOL_LDFLAGS
878 TRAY_MONITOR_DIR
879 TRAY_MONITOR_LDFLAGS
880 TRAY_MONITOR_CPPFLAGS
881 WX_DIR
882 WXCONS_LDFLAGS
883 WXCONS_CPPFLAGS
884 QWT
885 QWT_LIB
886 QWT_LDFLAGS
887 QWT_INC
888 BAT_DIR
889 INTL_LIBTOOL_SUFFIX_PREFIX
890 INTLOBJS
891 GENCAT
892 INSTOBJEXT
893 DATADIRNAME
894 CATOBJEXT
895 USE_INCLUDED_LIBINTL
896 BUILD_INCLUDED_LIBINTL
897 INTLBISON
898 HAVE_WPRINTF
899 HAVE_SNPRINTF
900 HAVE_ASPRINTF
901 HAVE_POSIX_PRINTF
902 GLIBC21
903 ALLOCA
904 GLIBC2
905 POSUB
906 LTLIBINTL
907 LIBINTL
908 INTLLIBS
909 LTLIBICONV
910 LIBICONV
911 INTL_MACOSX_LIBS
912 MSGMERGE
913 XGETTEXT
914 GMSGFMT
915 MSGFMT
916 USE_NLS
917 MKINSTALLDIRS
918 SET_MAKE
919 HAVE_DARWIN_OS_FALSE
920 HAVE_DARWIN_OS_TRUE
921 HAVE_IRIX_OS_FALSE
922 HAVE_IRIX_OS_TRUE
923 HAVE_SGI_OS_FALSE
924 HAVE_SGI_OS_TRUE
925 HAVE_BSDI_OS_FALSE
926 HAVE_BSDI_OS_TRUE
927 HAVE_OPENBSD_OS_FALSE
928 HAVE_OPENBSD_OS_TRUE
929 HAVE_NETBSD_OS_FALSE
930 HAVE_NETBSD_OS_TRUE
931 HAVE_FREEBSD_OS_FALSE
932 HAVE_FREEBSD_OS_TRUE
933 HAVE_LINUX_OS_FALSE
934 HAVE_LINUX_OS_TRUE
935 HAVE_HPUX_OS_FALSE
936 HAVE_HPUX_OS_TRUE
937 HAVE_AIX_OS_FALSE
938 HAVE_AIX_OS_TRUE
939 HAVE_OSF1_OS_FALSE
940 HAVE_OSF1_OS_TRUE
941 HAVE_SUN_OS_FALSE
942 HAVE_SUN_OS_TRUE
943 INCLUDE_UNINSTALL_TARGET
944 INCLUDE_INSTALL_TARGET
945 FD_PLUGIN_DIR
946 QMAKE_LIBTOOL
947 LIBTOOL_CLEAN_TARGET
948 LIBTOOL_UNINSTALL_TARGET
949 LIBTOOL_INSTALL_TARGET
950 DEFAULT_SHARED_OBJECT_TYPE
951 DEFAULT_ARCHIVE_TYPE
952 DEFAULT_OBJECT_TYPE
953 CXXCPP
954 OTOOL64
955 OTOOL
956 LIPO
957 NMEDIT
958 DSYMUTIL
959 lt_ECHO
960 RANLIB
961 STRIP
962 OBJDUMP
963 LN_S
964 NM
965 ac_ct_DUMPBIN
966 DUMPBIN
967 LD
968 FGREP
969 host_os
970 host_vendor
971 host_cpu
972 host
973 build_os
974 build_vendor
975 build_cpu
976 build
977 LIBTOOL
978 LOCAL_DEFS
979 LOCAL_LDFLAGS
980 LOCAL_CFLAGS
981 LOCAL_LIBS
982 MAKE_SHELL
983 ARFLAGS
984 AWK
985 PIDOF
986 CDRECORD
987 WXFLAGS
988 WXCONFIG
989 GMAKE
990 QMAKE
991 PKGCONFIG
992 DVDRWFORMAT
993 DVDRWMEDIAINFO
994 GROWISOFS
995 PYTHON
996 MKISOFS
997 DD
998 MTX
999 OPENSSL
1000 AR
1001 TBL
1002 CMP
1003 ECHO
1004 SED
1005 CP
1006 REMOVE
1007 MV
1008 INSTALL_DATA
1009 INSTALL_SCRIPT
1010 INSTALL_PROGRAM
1011 EGREP
1012 GREP
1013 CPP
1014 ac_ct_CXX
1015 CXXFLAGS
1016 CXX
1017 OBJEXT
1018 EXEEXT
1019 ac_ct_CC
1020 CPPFLAGS
1021 LDFLAGS
1022 CFLAGS
1023 CC
1024 LIBBACFIND_LT_RELEASE
1025 LIBBACSQL_LT_RELEASE
1026 LIBBACPY_LT_RELEASE
1027 LIBBACCFG_LT_RELEASE
1028 LIBBAC_LT_RELEASE
1029 post_host
1030 BACULA
1031 LSMDATE
1032 DATE
1033 VERSION
1034 FALSEPRG
1035 TRUEPRG
1036 WIN32TOPDIR
1037 WIN32MAINDIR
1038 WIN32BUILDDIR
1039 TOP_DIR
1040 BUILD_DIR
1041 target_alias
1042 host_alias
1043 build_alias
1044 LIBS
1045 ECHO_T
1046 ECHO_N
1047 ECHO_C
1048 DEFS
1049 mandir
1050 localedir
1051 libdir
1052 psdir
1053 pdfdir
1054 dvidir
1055 htmldir
1056 infodir
1057 docdir
1058 oldincludedir
1059 includedir
1060 localstatedir
1061 sharedstatedir
1062 sysconfdir
1063 datadir
1064 datarootdir
1065 libexecdir
1066 sbindir
1067 bindir
1068 program_transform_name
1069 prefix
1070 exec_prefix
1071 PACKAGE_BUGREPORT
1072 PACKAGE_STRING
1073 PACKAGE_VERSION
1074 PACKAGE_TARNAME
1075 PACKAGE_NAME
1076 PATH_SEPARATOR
1077 SHELL'
1078 ac_subst_files='MCOMMON'
1079 ac_user_opts='
1080 enable_option_checking
1081 enable_libtool
1082 enable_shared
1083 enable_static
1084 with_pic
1085 enable_fast_install
1086 with_gnu_ld
1087 enable_libtool_lock
1088 enable_includes
1089 enable_nls
1090 enable_rpath
1091 with_libiconv_prefix
1092 with_libintl_prefix
1093 with_included_gettext
1094 enable_gnome
1095 enable_bat
1096 enable_bwx_console
1097 enable_tray_monitor
1098 enable_smartalloc
1099 enable_lockmgr
1100 enable_static_tools
1101 enable_static_fd
1102 enable_static_sd
1103 enable_static_dir
1104 enable_static_cons
1105 enable_client_only
1106 enable_build_dird
1107 enable_build_stored
1108 enable_conio
1109 enable_ipv6
1110 enable_readline
1111 with_readline
1112 with_python
1113 with_tcp_wrappers
1114 with_openssl
1115 with_working_dir
1116 with_archivedir
1117 with_basename
1118 with_hostname
1119 with_scriptdir
1120 with_bsrdir
1121 with_logdir
1122 with_plugindir
1123 with_dump_email
1124 with_job_email
1125 with_smtp_host
1126 with_pid_dir
1127 with_subsys_dir
1128 with_baseport
1129 with_dir_password
1130 with_fd_password
1131 with_sd_password
1132 with_mon_dir_password
1133 with_mon_fd_password
1134 with_mon_sd_password
1135 with_db_name
1136 with_db_user
1137 with_db_password
1138 with_db_port
1139 with_dir_user
1140 with_dir_group
1141 with_sd_user
1142 with_sd_group
1143 with_fd_user
1144 with_fd_group
1145 with_sbin_perm
1146 with_postgresql
1147 with_mysql
1148 with_embedded_mysql
1149 with_ingres
1150 with_sqlite3
1151 with_dbi
1152 with_dbi_driver
1153 enable_batch_insert
1154 enable_largefile
1155 with_x
1156 enable_afs
1157 with_afsdir
1158 enable_acl
1159 enable_xattr
1160 '
1161       ac_precious_vars='build_alias
1162 host_alias
1163 target_alias
1164 CC
1165 CFLAGS
1166 LDFLAGS
1167 LIBS
1168 CPPFLAGS
1169 CXX
1170 CXXFLAGS
1171 CCC
1172 CPP
1173 WXCONFIG
1174 WXFLAGS
1175 CXXCPP
1176 XMKMF'
1177
1178
1179 # Initialize some variables set by options.
1180 ac_init_help=
1181 ac_init_version=false
1182 ac_unrecognized_opts=
1183 ac_unrecognized_sep=
1184 # The variables have the same names as the options, with
1185 # dashes changed to underlines.
1186 cache_file=/dev/null
1187 exec_prefix=NONE
1188 no_create=
1189 no_recursion=
1190 prefix=NONE
1191 program_prefix=NONE
1192 program_suffix=NONE
1193 program_transform_name=s,x,x,
1194 silent=
1195 site=
1196 srcdir=
1197 verbose=
1198 x_includes=NONE
1199 x_libraries=NONE
1200
1201 # Installation directory options.
1202 # These are left unexpanded so users can "make install exec_prefix=/foo"
1203 # and all the variables that are supposed to be based on exec_prefix
1204 # by default will actually change.
1205 # Use braces instead of parens because sh, perl, etc. also accept them.
1206 # (The list follows the same order as the GNU Coding Standards.)
1207 bindir='${exec_prefix}/bin'
1208 sbindir='${exec_prefix}/sbin'
1209 libexecdir='${exec_prefix}/libexec'
1210 datarootdir='${prefix}/share'
1211 datadir='${datarootdir}'
1212 sysconfdir='${prefix}/etc'
1213 sharedstatedir='${prefix}/com'
1214 localstatedir='${prefix}/var'
1215 includedir='${prefix}/include'
1216 oldincludedir='/usr/include'
1217 docdir='${datarootdir}/doc/${PACKAGE}'
1218 infodir='${datarootdir}/info'
1219 htmldir='${docdir}'
1220 dvidir='${docdir}'
1221 pdfdir='${docdir}'
1222 psdir='${docdir}'
1223 libdir='${exec_prefix}/lib'
1224 localedir='${datarootdir}/locale'
1225 mandir='${datarootdir}/man'
1226
1227 ac_prev=
1228 ac_dashdash=
1229 for ac_option
1230 do
1231   # If the previous option needs an argument, assign it.
1232   if test -n "$ac_prev"; then
1233     eval $ac_prev=\$ac_option
1234     ac_prev=
1235     continue
1236   fi
1237
1238   case $ac_option in
1239   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240   *)    ac_optarg=yes ;;
1241   esac
1242
1243   # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245   case $ac_dashdash$ac_option in
1246   --)
1247     ac_dashdash=yes ;;
1248
1249   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250     ac_prev=bindir ;;
1251   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252     bindir=$ac_optarg ;;
1253
1254   -build | --build | --buil | --bui | --bu)
1255     ac_prev=build_alias ;;
1256   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257     build_alias=$ac_optarg ;;
1258
1259   -cache-file | --cache-file | --cache-fil | --cache-fi \
1260   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261     ac_prev=cache_file ;;
1262   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264     cache_file=$ac_optarg ;;
1265
1266   --config-cache | -C)
1267     cache_file=config.cache ;;
1268
1269   -datadir | --datadir | --datadi | --datad)
1270     ac_prev=datadir ;;
1271   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272     datadir=$ac_optarg ;;
1273
1274   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275   | --dataroo | --dataro | --datar)
1276     ac_prev=datarootdir ;;
1277   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279     datarootdir=$ac_optarg ;;
1280
1281   -disable-* | --disable-*)
1282     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "enable_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval enable_$ac_useropt=no ;;
1297
1298   -docdir | --docdir | --docdi | --doc | --do)
1299     ac_prev=docdir ;;
1300   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301     docdir=$ac_optarg ;;
1302
1303   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304     ac_prev=dvidir ;;
1305   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306     dvidir=$ac_optarg ;;
1307
1308   -enable-* | --enable-*)
1309     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1313    { (exit 1); exit 1; }; }
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "enable_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval enable_$ac_useropt=\$ac_optarg ;;
1324
1325   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1326   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1327   | --exec | --exe | --ex)
1328     ac_prev=exec_prefix ;;
1329   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1330   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1331   | --exec=* | --exe=* | --ex=*)
1332     exec_prefix=$ac_optarg ;;
1333
1334   -gas | --gas | --ga | --g)
1335     # Obsolete; use --with-gas.
1336     with_gas=yes ;;
1337
1338   -help | --help | --hel | --he | -h)
1339     ac_init_help=long ;;
1340   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1341     ac_init_help=recursive ;;
1342   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1343     ac_init_help=short ;;
1344
1345   -host | --host | --hos | --ho)
1346     ac_prev=host_alias ;;
1347   -host=* | --host=* | --hos=* | --ho=*)
1348     host_alias=$ac_optarg ;;
1349
1350   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1351     ac_prev=htmldir ;;
1352   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1353   | --ht=*)
1354     htmldir=$ac_optarg ;;
1355
1356   -includedir | --includedir | --includedi | --included | --include \
1357   | --includ | --inclu | --incl | --inc)
1358     ac_prev=includedir ;;
1359   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1360   | --includ=* | --inclu=* | --incl=* | --inc=*)
1361     includedir=$ac_optarg ;;
1362
1363   -infodir | --infodir | --infodi | --infod | --info | --inf)
1364     ac_prev=infodir ;;
1365   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1366     infodir=$ac_optarg ;;
1367
1368   -libdir | --libdir | --libdi | --libd)
1369     ac_prev=libdir ;;
1370   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1371     libdir=$ac_optarg ;;
1372
1373   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1374   | --libexe | --libex | --libe)
1375     ac_prev=libexecdir ;;
1376   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1377   | --libexe=* | --libex=* | --libe=*)
1378     libexecdir=$ac_optarg ;;
1379
1380   -localedir | --localedir | --localedi | --localed | --locale)
1381     ac_prev=localedir ;;
1382   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1383     localedir=$ac_optarg ;;
1384
1385   -localstatedir | --localstatedir | --localstatedi | --localstated \
1386   | --localstate | --localstat | --localsta | --localst | --locals)
1387     ac_prev=localstatedir ;;
1388   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1389   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1390     localstatedir=$ac_optarg ;;
1391
1392   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1393     ac_prev=mandir ;;
1394   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1395     mandir=$ac_optarg ;;
1396
1397   -nfp | --nfp | --nf)
1398     # Obsolete; use --without-fp.
1399     with_fp=no ;;
1400
1401   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1402   | --no-cr | --no-c | -n)
1403     no_create=yes ;;
1404
1405   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1406   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1407     no_recursion=yes ;;
1408
1409   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1410   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1411   | --oldin | --oldi | --old | --ol | --o)
1412     ac_prev=oldincludedir ;;
1413   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1414   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1415   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1416     oldincludedir=$ac_optarg ;;
1417
1418   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1419     ac_prev=prefix ;;
1420   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1421     prefix=$ac_optarg ;;
1422
1423   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1424   | --program-pre | --program-pr | --program-p)
1425     ac_prev=program_prefix ;;
1426   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1427   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1428     program_prefix=$ac_optarg ;;
1429
1430   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1431   | --program-suf | --program-su | --program-s)
1432     ac_prev=program_suffix ;;
1433   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1434   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1435     program_suffix=$ac_optarg ;;
1436
1437   -program-transform-name | --program-transform-name \
1438   | --program-transform-nam | --program-transform-na \
1439   | --program-transform-n | --program-transform- \
1440   | --program-transform | --program-transfor \
1441   | --program-transfo | --program-transf \
1442   | --program-trans | --program-tran \
1443   | --progr-tra | --program-tr | --program-t)
1444     ac_prev=program_transform_name ;;
1445   -program-transform-name=* | --program-transform-name=* \
1446   | --program-transform-nam=* | --program-transform-na=* \
1447   | --program-transform-n=* | --program-transform-=* \
1448   | --program-transform=* | --program-transfor=* \
1449   | --program-transfo=* | --program-transf=* \
1450   | --program-trans=* | --program-tran=* \
1451   | --progr-tra=* | --program-tr=* | --program-t=*)
1452     program_transform_name=$ac_optarg ;;
1453
1454   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1455     ac_prev=pdfdir ;;
1456   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1457     pdfdir=$ac_optarg ;;
1458
1459   -psdir | --psdir | --psdi | --psd | --ps)
1460     ac_prev=psdir ;;
1461   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1462     psdir=$ac_optarg ;;
1463
1464   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1465   | -silent | --silent | --silen | --sile | --sil)
1466     silent=yes ;;
1467
1468   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1469     ac_prev=sbindir ;;
1470   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1471   | --sbi=* | --sb=*)
1472     sbindir=$ac_optarg ;;
1473
1474   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1475   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1476   | --sharedst | --shareds | --shared | --share | --shar \
1477   | --sha | --sh)
1478     ac_prev=sharedstatedir ;;
1479   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1480   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1481   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1482   | --sha=* | --sh=*)
1483     sharedstatedir=$ac_optarg ;;
1484
1485   -site | --site | --sit)
1486     ac_prev=site ;;
1487   -site=* | --site=* | --sit=*)
1488     site=$ac_optarg ;;
1489
1490   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1491     ac_prev=srcdir ;;
1492   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1493     srcdir=$ac_optarg ;;
1494
1495   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1496   | --syscon | --sysco | --sysc | --sys | --sy)
1497     ac_prev=sysconfdir ;;
1498   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1499   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1500     sysconfdir=$ac_optarg ;;
1501
1502   -target | --target | --targe | --targ | --tar | --ta | --t)
1503     ac_prev=target_alias ;;
1504   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1505     target_alias=$ac_optarg ;;
1506
1507   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1508     verbose=yes ;;
1509
1510   -version | --version | --versio | --versi | --vers | -V)
1511     ac_init_version=: ;;
1512
1513   -with-* | --with-*)
1514     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1515     # Reject names that are not valid shell variable names.
1516     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1517       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1518    { (exit 1); exit 1; }; }
1519     ac_useropt_orig=$ac_useropt
1520     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521     case $ac_user_opts in
1522       *"
1523 "with_$ac_useropt"
1524 "*) ;;
1525       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1526          ac_unrecognized_sep=', ';;
1527     esac
1528     eval with_$ac_useropt=\$ac_optarg ;;
1529
1530   -without-* | --without-*)
1531     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1532     # Reject names that are not valid shell variable names.
1533     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1534       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1535    { (exit 1); exit 1; }; }
1536     ac_useropt_orig=$ac_useropt
1537     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538     case $ac_user_opts in
1539       *"
1540 "with_$ac_useropt"
1541 "*) ;;
1542       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1543          ac_unrecognized_sep=', ';;
1544     esac
1545     eval with_$ac_useropt=no ;;
1546
1547   --x)
1548     # Obsolete; use --with-x.
1549     with_x=yes ;;
1550
1551   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1552   | --x-incl | --x-inc | --x-in | --x-i)
1553     ac_prev=x_includes ;;
1554   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1555   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1556     x_includes=$ac_optarg ;;
1557
1558   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1559   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1560     ac_prev=x_libraries ;;
1561   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1562   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1563     x_libraries=$ac_optarg ;;
1564
1565   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1566 Try \`$0 --help' for more information." >&2
1567    { (exit 1); exit 1; }; }
1568     ;;
1569
1570   *=*)
1571     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1572     # Reject names that are not valid shell variable names.
1573     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1574       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1575    { (exit 1); exit 1; }; }
1576     eval $ac_envvar=\$ac_optarg
1577     export $ac_envvar ;;
1578
1579   *)
1580     # FIXME: should be removed in autoconf 3.0.
1581     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1582     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1583       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1584     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1585     ;;
1586
1587   esac
1588 done
1589
1590 if test -n "$ac_prev"; then
1591   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1592   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 if test -n "$ac_unrecognized_opts"; then
1597   case $enable_option_checking in
1598     no) ;;
1599     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1600    { (exit 1); exit 1; }; } ;;
1601     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602   esac
1603 fi
1604
1605 # Check all directory arguments for consistency.
1606 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1607                 datadir sysconfdir sharedstatedir localstatedir includedir \
1608                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1609                 libdir localedir mandir
1610 do
1611   eval ac_val=\$$ac_var
1612   # Remove trailing slashes.
1613   case $ac_val in
1614     */ )
1615       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1616       eval $ac_var=\$ac_val;;
1617   esac
1618   # Be sure to have absolute directory names.
1619   case $ac_val in
1620     [\\/$]* | ?:[\\/]* )  continue;;
1621     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622   esac
1623   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1624    { (exit 1); exit 1; }; }
1625 done
1626
1627 # There might be people who depend on the old broken behavior: `$host'
1628 # used to hold the argument of --host etc.
1629 # FIXME: To remove some day.
1630 build=$build_alias
1631 host=$host_alias
1632 target=$target_alias
1633
1634 # FIXME: To remove some day.
1635 if test "x$host_alias" != x; then
1636   if test "x$build_alias" = x; then
1637     cross_compiling=maybe
1638     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1639     If a cross compiler is detected then cross compile mode will be used." >&2
1640   elif test "x$build_alias" != "x$host_alias"; then
1641     cross_compiling=yes
1642   fi
1643 fi
1644
1645 ac_tool_prefix=
1646 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1647
1648 test "$silent" = yes && exec 6>/dev/null
1649
1650
1651 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1652 ac_ls_di=`ls -di .` &&
1653 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1654   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1655    { (exit 1); exit 1; }; }
1656 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1657   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1658    { (exit 1); exit 1; }; }
1659
1660
1661 # Find the source files, if location was not specified.
1662 if test -z "$srcdir"; then
1663   ac_srcdir_defaulted=yes
1664   # Try the directory containing this script, then the parent directory.
1665   ac_confdir=`$as_dirname -- "$as_myself" ||
1666 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1667          X"$as_myself" : 'X\(//\)[^/]' \| \
1668          X"$as_myself" : 'X\(//\)$' \| \
1669          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1670 $as_echo X"$as_myself" |
1671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1672             s//\1/
1673             q
1674           }
1675           /^X\(\/\/\)[^/].*/{
1676             s//\1/
1677             q
1678           }
1679           /^X\(\/\/\)$/{
1680             s//\1/
1681             q
1682           }
1683           /^X\(\/\).*/{
1684             s//\1/
1685             q
1686           }
1687           s/.*/./; q'`
1688   srcdir=$ac_confdir
1689   if test ! -r "$srcdir/$ac_unique_file"; then
1690     srcdir=..
1691   fi
1692 else
1693   ac_srcdir_defaulted=no
1694 fi
1695 if test ! -r "$srcdir/$ac_unique_file"; then
1696   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1697   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1698    { (exit 1); exit 1; }; }
1699 fi
1700 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1701 ac_abs_confdir=`(
1702         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1703    { (exit 1); exit 1; }; }
1704         pwd)`
1705 # When building in place, set srcdir=.
1706 if test "$ac_abs_confdir" = "$ac_pwd"; then
1707   srcdir=.
1708 fi
1709 # Remove unnecessary trailing slashes from srcdir.
1710 # Double slashes in file names in object file debugging info
1711 # mess up M-x gdb in Emacs.
1712 case $srcdir in
1713 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1714 esac
1715 for ac_var in $ac_precious_vars; do
1716   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1717   eval ac_env_${ac_var}_value=\$${ac_var}
1718   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1719   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1720 done
1721
1722 #
1723 # Report the --help message.
1724 #
1725 if test "$ac_init_help" = "long"; then
1726   # Omit some internal or obsolete options to make the list less imposing.
1727   # This message is too long to be a string in the A/UX 3.1 sh.
1728   cat <<_ACEOF
1729 \`configure' configures this package to adapt to many kinds of systems.
1730
1731 Usage: $0 [OPTION]... [VAR=VALUE]...
1732
1733 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1734 VAR=VALUE.  See below for descriptions of some of the useful variables.
1735
1736 Defaults for the options are specified in brackets.
1737
1738 Configuration:
1739   -h, --help              display this help and exit
1740       --help=short        display options specific to this package
1741       --help=recursive    display the short help of all the included packages
1742   -V, --version           display version information and exit
1743   -q, --quiet, --silent   do not print \`checking...' messages
1744       --cache-file=FILE   cache test results in FILE [disabled]
1745   -C, --config-cache      alias for \`--cache-file=config.cache'
1746   -n, --no-create         do not create output files
1747       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1748
1749 Installation directories:
1750   --prefix=PREFIX         install architecture-independent files in PREFIX
1751                           [$ac_default_prefix]
1752   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1753                           [PREFIX]
1754
1755 By default, \`make install' will install all the files in
1756 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1757 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1758 for instance \`--prefix=\$HOME'.
1759
1760 For better control, use the options below.
1761
1762 Fine tuning of the installation directories:
1763   --bindir=DIR            user executables [EPREFIX/bin]
1764   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1765   --libexecdir=DIR        program executables [EPREFIX/libexec]
1766   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1767   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1768   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1769   --libdir=DIR            object code libraries [EPREFIX/lib]
1770   --includedir=DIR        C header files [PREFIX/include]
1771   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1772   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1773   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1774   --infodir=DIR           info documentation [DATAROOTDIR/info]
1775   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1776   --mandir=DIR            man documentation [DATAROOTDIR/man]
1777   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1778   --htmldir=DIR           html documentation [DOCDIR]
1779   --dvidir=DIR            dvi documentation [DOCDIR]
1780   --pdfdir=DIR            pdf documentation [DOCDIR]
1781   --psdir=DIR             ps documentation [DOCDIR]
1782 _ACEOF
1783
1784   cat <<\_ACEOF
1785
1786 X features:
1787   --x-includes=DIR    X include files are in DIR
1788   --x-libraries=DIR   X library files are in DIR
1789
1790 System types:
1791   --build=BUILD     configure for building on BUILD [guessed]
1792   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1793 _ACEOF
1794 fi
1795
1796 if test -n "$ac_init_help"; then
1797
1798   cat <<\_ACEOF
1799
1800 Optional Features:
1801   --disable-option-checking  ignore unrecognized --enable/--with options
1802   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1803   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1804   --enable-libtool        enable building using GNU libtool [default=yes]
1805   --enable-shared[=PKGS]  build shared libraries [default=yes]
1806   --enable-static[=PKGS]  build static libraries [default=no]
1807   --enable-fast-install[=PKGS]
1808                           optimize for fast installation [default=yes]
1809   --disable-libtool-lock  avoid locking (might break parallel builds)
1810   --enable-includes       enable installing of include files [default=no]
1811   --disable-nls           do not use Native Language Support
1812   --disable-rpath         do not hardcode runtime library paths
1813   --enable-gnome          enable build of bgnome-console GUI [default=no]
1814   --enable-bat            enable build of bat Qt4 GUI [default=no]
1815   --enable-bwx-console    enable build of wxWidgets console [default=no]
1816   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1817                           KDE [default=no]
1818   --enable-smartalloc     enable smartalloc debugging support [default=no]
1819   --enable-lockmgr        enable lock manager support [default=no]
1820   --enable-static-tools   enable static tape tools [default=no]
1821   --enable-static-fd      enable static File daemon [default=no]
1822   --enable-static-sd      enable static Storage daemon [default=no]
1823   --enable-static-dir     enable static Director [default=no]
1824   --enable-static-cons    enable static Console [default=no]
1825   --enable-client-only    build client (File daemon) only [default=no]
1826   --enable-build-dird     enable building of dird (Director) [default=yes]
1827   --enable-build-stored   enable building of stored (Storage daemon)
1828                           [default=yes]
1829   --disable-conio         disable conio support [default=no]
1830   --enable-ipv6           enable ipv6 support [default=yes]
1831   --disable-readline      disable readline support [default=yes]
1832   --enable-batch-insert   enable the DB batch insert code [default=no]
1833   --disable-largefile     omit support for large files
1834   --disable-afs           disable afs support [default=auto]
1835   --disable-acl           disable acl support [default=auto]
1836   --disable-xattr         disable xattr support [default=auto]
1837
1838 Optional Packages:
1839   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1840   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1841   --with-pic              try to use only PIC/non-PIC objects [default=use
1842                           both]
1843   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1844   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1845   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1846   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1847   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1848   --without-libintl-prefix     don't search for libintl in includedir and libdir
1849   --with-included-gettext use the GNU gettext library included here
1850   --with-readline[=DIR]   specify readline library directory
1851   --with-python[=DIR]     Include Python support. DIR is the Python base
1852                           install directory, default is to search through a
1853                           number of common places for the Python files.
1854   --with-tcp-wrappers[=DIR]
1855                           enable tcpwrappers support
1856   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1857   --with-working-dir=PATH specify path of Bacula working directory
1858   --with-archivedir=PATH  specify path of SD archive directory
1859   --with-basename=RESNAME specify base resource name for daemons
1860   --with-hostname=RESNAME specify host name for daemons
1861   --with-scriptdir=PATH   specify path of Bacula scripts directory
1862   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1863   --with-logdir=PATH      specify path of Bacula logs directory
1864   --with-plugindir=PATH   specify path of Bacula plugins directory
1865   --with-dump-email=EMAIL dump email address
1866   --with-job-email=EMAIL  job output email address
1867   --with-smtp-host=HOST   SMTP mail host address
1868   --with-pid-dir=PATH     specify location of Bacula pid files
1869   --with-subsys-dir=PATH  specify location of Bacula subsys file
1870   --with-baseport=PORT    specify base port address for daemons
1871   --with-dir-password=PASSWORD
1872                           specify Director's password
1873   --with-fd-password=PASSWORD
1874                           specify Client's password
1875   --with-sd-password=PASSWORD
1876                           specify Storage daemon's password
1877   --with-mon-dir-password=PASSWORD
1878                           specify Director's password used by the monitor
1879   --with-mon-fd-password=PASSWORD
1880                           specify Client's password used by the monitor
1881   --with-mon-sd-password=PASSWORD
1882                           specify Storage daemon's password used by the
1883                           monitor
1884   --with-db-name=DBNAME   specify database name [default=bacula]
1885   --with-db-user=UNAME    specify database user [default=bacula]
1886   --with-db-password=PWD  specify database password [default=*none*]
1887   --with-db-port=DBPORT   specify a database port [default=null]
1888   --with-dir-user=USER    specify user for Director daemon
1889   --with-dir-group=GROUP  specify group for Director daemon
1890   --with-sd-user=USER     specify user for Storage daemon
1891   --with-sd-group=GROUP   specify group for Storage daemon
1892   --with-fd-user=USER     specify user for File daemon
1893   --with-fd-group=GROUP   specify group for File daemon
1894   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1895   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1896                           base install directory, [default=/usr/local/pgsql]
1897   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1898                           directory, default is to search through a number of
1899                           common places for the MySQL files.
1900   --with-embedded-mysql[=DIR]
1901                           Include MySQL support. DIR is the MySQL base install
1902                           directory, default is to search through a number of
1903                           common places for the MySQL files.
1904   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1905                           install directory, default is to search through a
1906                           number of common places for the Ingres files.
1907   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1908                           install directory, default is to search through a
1909                           number of common places for the SQLite3 files.
1910   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1911                           directory, default is to search through a number of
1912                           common places for the DBI files.
1913   --with-dbi-driver[=DRIVER]
1914                           Suport for DBI driver. DRIVER is the one DBI driver
1915                           like Mysql, Postgresql, others. Default is to not
1916                           configure any driver.
1917   --with-x                use the X Window System
1918   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1919
1920 Some influential environment variables:
1921   CC          C compiler command
1922   CFLAGS      C compiler flags
1923   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1924               nonstandard directory <lib dir>
1925   LIBS        libraries to pass to the linker, e.g. -l<library>
1926   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1927               you have headers in a nonstandard directory <include dir>
1928   CXX         C++ compiler command
1929   CXXFLAGS    C++ compiler flags
1930   CPP         C preprocessor
1931   WXCONFIG    wx-config command. On some systems, you must set it to
1932               wx-config-2.6 to use wxWidgets 2.6.
1933   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1934   CXXCPP      C++ preprocessor
1935   XMKMF       Path to xmkmf, Makefile generator for X Window System
1936
1937 Use these variables to override the choices made by `configure' or to help
1938 it to find libraries and programs with nonstandard names/locations.
1939
1940 _ACEOF
1941 ac_status=$?
1942 fi
1943
1944 if test "$ac_init_help" = "recursive"; then
1945   # If there are subdirs, report their specific --help.
1946   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1947     test -d "$ac_dir" ||
1948       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1949       continue
1950     ac_builddir=.
1951
1952 case "$ac_dir" in
1953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1954 *)
1955   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1956   # A ".." for each directory in $ac_dir_suffix.
1957   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1958   case $ac_top_builddir_sub in
1959   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1960   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1961   esac ;;
1962 esac
1963 ac_abs_top_builddir=$ac_pwd
1964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1965 # for backward compatibility:
1966 ac_top_builddir=$ac_top_build_prefix
1967
1968 case $srcdir in
1969   .)  # We are building in place.
1970     ac_srcdir=.
1971     ac_top_srcdir=$ac_top_builddir_sub
1972     ac_abs_top_srcdir=$ac_pwd ;;
1973   [\\/]* | ?:[\\/]* )  # Absolute name.
1974     ac_srcdir=$srcdir$ac_dir_suffix;
1975     ac_top_srcdir=$srcdir
1976     ac_abs_top_srcdir=$srcdir ;;
1977   *) # Relative name.
1978     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1979     ac_top_srcdir=$ac_top_build_prefix$srcdir
1980     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1981 esac
1982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1983
1984     cd "$ac_dir" || { ac_status=$?; continue; }
1985     # Check for guested configure.
1986     if test -f "$ac_srcdir/configure.gnu"; then
1987       echo &&
1988       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1989     elif test -f "$ac_srcdir/configure"; then
1990       echo &&
1991       $SHELL "$ac_srcdir/configure" --help=recursive
1992     else
1993       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1994     fi || ac_status=$?
1995     cd "$ac_pwd" || { ac_status=$?; break; }
1996   done
1997 fi
1998
1999 test -n "$ac_init_help" && exit $ac_status
2000 if $ac_init_version; then
2001   cat <<\_ACEOF
2002 configure
2003 generated by GNU Autoconf 2.63
2004
2005 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2006 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2007 This configure script is free software; the Free Software Foundation
2008 gives unlimited permission to copy, distribute and modify it.
2009 _ACEOF
2010   exit
2011 fi
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2015
2016 It was created by $as_me, which was
2017 generated by GNU Autoconf 2.63.  Invocation command line was
2018
2019   $ $0 $@
2020
2021 _ACEOF
2022 exec 5>>config.log
2023 {
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2028
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2037
2038 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2039 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2042 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2043 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2044 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2045
2046 _ASUNAME
2047
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   $as_echo "PATH: $as_dir"
2054 done
2055 IFS=$as_save_IFS
2056
2057 } >&5
2058
2059 cat >&5 <<_ACEOF
2060
2061
2062 ## ----------- ##
2063 ## Core tests. ##
2064 ## ----------- ##
2065
2066 _ACEOF
2067
2068
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2074 ac_configure_args=
2075 ac_configure_args0=
2076 ac_configure_args1=
2077 ac_must_keep_next=false
2078 for ac_pass in 1 2
2079 do
2080   for ac_arg
2081   do
2082     case $ac_arg in
2083     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085     | -silent | --silent | --silen | --sile | --sil)
2086       continue ;;
2087     *\'*)
2088       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089     esac
2090     case $ac_pass in
2091     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2092     2)
2093       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2094       if test $ac_must_keep_next = true; then
2095         ac_must_keep_next=false # Got value, back to normal.
2096       else
2097         case $ac_arg in
2098           *=* | --config-cache | -C | -disable-* | --disable-* \
2099           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101           | -with-* | --with-* | -without-* | --without-* | --x)
2102             case "$ac_configure_args0 " in
2103               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104             esac
2105             ;;
2106           -* ) ac_must_keep_next=true ;;
2107         esac
2108       fi
2109       ac_configure_args="$ac_configure_args '$ac_arg'"
2110       ;;
2111     esac
2112   done
2113 done
2114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2116
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log.  We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123   # Save into config.log some information that might help in debugging.
2124   {
2125     echo
2126
2127     cat <<\_ASBOX
2128 ## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##
2131 _ASBOX
2132     echo
2133     # The following way of writing the cache mishandles newlines in values,
2134 (
2135   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136     eval ac_val=\$$ac_var
2137     case $ac_val in #(
2138     *${as_nl}*)
2139       case $ac_var in #(
2140       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142       esac
2143       case $ac_var in #(
2144       _ | IFS | as_nl) ;; #(
2145       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146       *) $as_unset $ac_var ;;
2147       esac ;;
2148     esac
2149   done
2150   (set) 2>&1 |
2151     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152     *${as_nl}ac_space=\ *)
2153       sed -n \
2154         "s/'\''/'\''\\\\'\'''\''/g;
2155           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156       ;; #(
2157     *)
2158       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159       ;;
2160     esac |
2161     sort
2162 )
2163     echo
2164
2165     cat <<\_ASBOX
2166 ## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##
2169 _ASBOX
2170     echo
2171     for ac_var in $ac_subst_vars
2172     do
2173       eval ac_val=\$$ac_var
2174       case $ac_val in
2175       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176       esac
2177       $as_echo "$ac_var='\''$ac_val'\''"
2178     done | sort
2179     echo
2180
2181     if test -n "$ac_subst_files"; then
2182       cat <<\_ASBOX
2183 ## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##
2186 _ASBOX
2187       echo
2188       for ac_var in $ac_subst_files
2189       do
2190         eval ac_val=\$$ac_var
2191         case $ac_val in
2192         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193         esac
2194         $as_echo "$ac_var='\''$ac_val'\''"
2195       done | sort
2196       echo
2197     fi
2198
2199     if test -s confdefs.h; then
2200       cat <<\_ASBOX
2201 ## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##
2204 _ASBOX
2205       echo
2206       cat confdefs.h
2207       echo
2208     fi
2209     test "$ac_signal" != 0 &&
2210       $as_echo "$as_me: caught signal $ac_signal"
2211     $as_echo "$as_me: exit $exit_status"
2212   } >&5
2213   rm -f core *.core core.conftest.* &&
2214     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215     exit $exit_status
2216 ' 0
2217 for ac_signal in 1 2 13 15; do
2218   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2219 done
2220 ac_signal=0
2221
2222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2223 rm -f -r conftest* confdefs.h
2224
2225 # Predefined preprocessor variables.
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_NAME "$PACKAGE_NAME"
2229 _ACEOF
2230
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 _ACEOF
2235
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 _ACEOF
2240
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_STRING "$PACKAGE_STRING"
2244 _ACEOF
2245
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2250
2251
2252 # Let the site file select an alternate cache file if it wants to.
2253 # Prefer an explicitly selected file to automatically selected ones.
2254 ac_site_file1=NONE
2255 ac_site_file2=NONE
2256 if test -n "$CONFIG_SITE"; then
2257   ac_site_file1=$CONFIG_SITE
2258 elif test "x$prefix" != xNONE; then
2259   ac_site_file1=$prefix/share/config.site
2260   ac_site_file2=$prefix/etc/config.site
2261 else
2262   ac_site_file1=$ac_default_prefix/share/config.site
2263   ac_site_file2=$ac_default_prefix/etc/config.site
2264 fi
2265 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 do
2267   test "x$ac_site_file" = xNONE && continue
2268   if test -r "$ac_site_file"; then
2269     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2270 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271     sed 's/^/| /' "$ac_site_file" >&5
2272     . "$ac_site_file"
2273   fi
2274 done
2275
2276 if test -r "$cache_file"; then
2277   # Some versions of bash will fail to source /dev/null (special
2278   # files actually), so we avoid doing that.
2279   if test -f "$cache_file"; then
2280     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2281 $as_echo "$as_me: loading cache $cache_file" >&6;}
2282     case $cache_file in
2283       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284       *)                      . "./$cache_file";;
2285     esac
2286   fi
2287 else
2288   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2289 $as_echo "$as_me: creating cache $cache_file" >&6;}
2290   >$cache_file
2291 fi
2292
2293 # Check that the precious variables saved in the cache have kept the same
2294 # value.
2295 ac_cache_corrupted=false
2296 for ac_var in $ac_precious_vars; do
2297   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298   eval ac_new_set=\$ac_env_${ac_var}_set
2299   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300   eval ac_new_val=\$ac_env_${ac_var}_value
2301   case $ac_old_set,$ac_new_set in
2302     set,)
2303       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305       ac_cache_corrupted=: ;;
2306     ,set)
2307       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309       ac_cache_corrupted=: ;;
2310     ,);;
2311     *)
2312       if test "x$ac_old_val" != "x$ac_new_val"; then
2313         # differences in whitespace do not lead to failure.
2314         ac_old_val_w=`echo x $ac_old_val`
2315         ac_new_val_w=`echo x $ac_new_val`
2316         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2318 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319           ac_cache_corrupted=:
2320         else
2321           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323           eval $ac_var=\$ac_old_val
2324         fi
2325         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2326 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2327         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2328 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2329       fi;;
2330   esac
2331   # Pass precious variables to config.status.
2332   if test "$ac_new_set" = set; then
2333     case $ac_new_val in
2334     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335     *) ac_arg=$ac_var=$ac_new_val ;;
2336     esac
2337     case " $ac_configure_args " in
2338       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2339       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2340     esac
2341   fi
2342 done
2343 if $ac_cache_corrupted; then
2344   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2347 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2349 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369 ac_ext=c
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374
2375
2376 BUILD_DIR=`pwd`
2377 cd ..
2378 TOP_DIR=`pwd`
2379 cd ${BUILD_DIR}
2380
2381
2382 ac_aux_dir=
2383 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2384   if test -f "$ac_dir/install-sh"; then
2385     ac_aux_dir=$ac_dir
2386     ac_install_sh="$ac_aux_dir/install-sh -c"
2387     break
2388   elif test -f "$ac_dir/install.sh"; then
2389     ac_aux_dir=$ac_dir
2390     ac_install_sh="$ac_aux_dir/install.sh -c"
2391     break
2392   elif test -f "$ac_dir/shtool"; then
2393     ac_aux_dir=$ac_dir
2394     ac_install_sh="$ac_aux_dir/shtool install -c"
2395     break
2396   fi
2397 done
2398 if test -z "$ac_aux_dir"; then
2399   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2400 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2401    { (exit 1); exit 1; }; }
2402 fi
2403
2404 # These three variables are undocumented and unsupported,
2405 # and are intended to be withdrawn in a future Autoconf release.
2406 # They can cause serious problems if a builder's source tree is in a directory
2407 # whose full name contains unusual characters.
2408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2410 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2411
2412
2413 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2414
2415
2416 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2417 WIN32MAINDIR=${BUILD_DIR}
2418 WIN32TOPDIR=${TOP_DIR}
2419
2420
2421
2422
2423 for ac_prog in true
2424 do
2425   # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2430   $as_echo_n "(cached) " >&6
2431 else
2432   case $TRUEPRG in
2433   [\\/]* | ?:[\\/]*)
2434   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2435   ;;
2436   *)
2437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452   ;;
2453 esac
2454 fi
2455 TRUEPRG=$ac_cv_path_TRUEPRG
2456 if test -n "$TRUEPRG"; then
2457   { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2458 $as_echo "$TRUEPRG" >&6; }
2459 else
2460   { $as_echo "$as_me:$LINENO: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465   test -n "$TRUEPRG" && break
2466 done
2467 test -n "$TRUEPRG" || TRUEPRG=":"
2468
2469 for ac_prog in false
2470 do
2471   # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2476   $as_echo_n "(cached) " >&6
2477 else
2478   case $FALSEPRG in
2479   [\\/]* | ?:[\\/]*)
2480   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2481   ;;
2482   *)
2483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498   ;;
2499 esac
2500 fi
2501 FALSEPRG=$ac_cv_path_FALSEPRG
2502 if test -n "$FALSEPRG"; then
2503   { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2504 $as_echo "$FALSEPRG" >&6; }
2505 else
2506   { $as_echo "$as_me:$LINENO: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511   test -n "$FALSEPRG" && break
2512 done
2513 test -n "$FALSEPRG" || FALSEPRG=":"
2514
2515
2516
2517 post_host=
2518 if test "x$BACULA" != x; then
2519    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2520 fi
2521 BACULA=${BACULA:-Bacula}
2522 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2523 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2524 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2525
2526 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2527 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2528 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2529
2530 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2531 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2532 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2533
2534
2535 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2536
2537 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2538
2539
2540 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2541
2542 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2543
2544
2545 echo "configuring for ${BACULA} $VERSION ($DATE)"
2546
2547
2548
2549 ac_ext=c
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554 if test -n "$ac_tool_prefix"; then
2555   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560   $as_echo_n "(cached) " >&6
2561 else
2562   if test -n "$CC"; then
2563   ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2573     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2586 else
2587   { $as_echo "$as_me:$LINENO: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2590
2591
2592 fi
2593 if test -z "$ac_cv_prog_CC"; then
2594   ac_ct_CC=$CC
2595   # Extract the first word of "gcc", so it can be a program name with args.
2596 set dummy gcc; ac_word=$2
2597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2600   $as_echo_n "(cached) " >&6
2601 else
2602   if test -n "$ac_ct_CC"; then
2603   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610   for ac_exec_ext in '' $ac_executable_extensions; do
2611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612     ac_cv_prog_ac_ct_CC="gcc"
2613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614     break 2
2615   fi
2616 done
2617 done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 $as_echo "$ac_ct_CC" >&6; }
2626 else
2627   { $as_echo "$as_me:$LINENO: result: no" >&5
2628 $as_echo "no" >&6; }
2629 fi
2630
2631   if test "x$ac_ct_CC" = x; then
2632     CC=""
2633   else
2634     case $cross_compiling:$ac_tool_warned in
2635 yes:)
2636 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640     CC=$ac_ct_CC
2641   fi
2642 else
2643   CC="$ac_cv_prog_CC"
2644 fi
2645
2646 if test -z "$CC"; then
2647           if test -n "$ac_tool_prefix"; then
2648     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$CC"; then
2656   ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_CC="${ac_tool_prefix}cc"
2666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680   { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685   fi
2686 fi
2687 if test -z "$CC"; then
2688   # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$CC"; then
2696   ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698   ac_prog_rejected=no
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2707        ac_prog_rejected=yes
2708        continue
2709      fi
2710     ac_cv_prog_CC="cc"
2711     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 if test $ac_prog_rejected = yes; then
2719   # We found a bogon in the path, so make sure we never use it.
2720   set dummy $ac_cv_prog_CC
2721   shift
2722   if test $# != 0; then
2723     # We chose a different compiler from the bogus one.
2724     # However, it has the same basename, so the bogon will be chosen
2725     # first if we set CC to just the basename; use the full file name.
2726     shift
2727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2728   fi
2729 fi
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737   { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$CC"; then
2744   if test -n "$ac_tool_prefix"; then
2745   for ac_prog in cl.exe
2746   do
2747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752   $as_echo_n "(cached) " >&6
2753 else
2754   if test -n "$CC"; then
2755   ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766     break 2
2767   fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779   { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784     test -n "$CC" && break
2785   done
2786 fi
2787 if test -z "$CC"; then
2788   ac_ct_CC=$CC
2789   for ac_prog in cl.exe
2790 do
2791   # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2796   $as_echo_n "(cached) " >&6
2797 else
2798   if test -n "$ac_ct_CC"; then
2799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808     ac_cv_prog_ac_ct_CC="$ac_prog"
2809     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2822 else
2823   { $as_echo "$as_me:$LINENO: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828   test -n "$ac_ct_CC" && break
2829 done
2830
2831   if test "x$ac_ct_CC" = x; then
2832     CC=""
2833   else
2834     case $cross_compiling:$ac_tool_warned in
2835 yes:)
2836 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2838 ac_tool_warned=yes ;;
2839 esac
2840     CC=$ac_ct_CC
2841   fi
2842 fi
2843
2844 fi
2845
2846
2847 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2849 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2850 See \`config.log' for more details." >&5
2851 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&2;}
2853    { (exit 1); exit 1; }; }; }
2854
2855 # Provide some information about the compiler.
2856 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2857 set X $ac_compile
2858 ac_compiler=$2
2859 { (ac_try="$ac_compiler --version >&5"
2860 case "(($ac_try" in
2861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862   *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2865 $as_echo "$ac_try_echo") >&5
2866   (eval "$ac_compiler --version >&5") 2>&5
2867   ac_status=$?
2868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }
2870 { (ac_try="$ac_compiler -v >&5"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2876 $as_echo "$ac_try_echo") >&5
2877   (eval "$ac_compiler -v >&5") 2>&5
2878   ac_status=$?
2879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }
2881 { (ac_try="$ac_compiler -V >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888   (eval "$ac_compiler -V >&5") 2>&5
2889   ac_status=$?
2890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2912 # of exeext.
2913 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2914 $as_echo_n "checking for C compiler default output file name... " >&6; }
2915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2916
2917 # The possible output files:
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919
2920 ac_rmfiles=
2921 for ac_file in $ac_files
2922 do
2923   case $ac_file in
2924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926   esac
2927 done
2928 rm -f $ac_rmfiles
2929
2930 if { (ac_try="$ac_link_default"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937   (eval "$ac_link_default") 2>&5
2938   ac_status=$?
2939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; then
2941   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2943 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2944 # so that the user can short-circuit this test for compilers unknown to
2945 # Autoconf.
2946 for ac_file in $ac_files ''
2947 do
2948   test -f "$ac_file" || continue
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2951         ;;
2952     [ab].out )
2953         # We found the default executable, but exeext='' is most
2954         # certainly right.
2955         break;;
2956     *.* )
2957         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2958         then :; else
2959            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2960         fi
2961         # We set ac_cv_exeext here because the later test for it is not
2962         # safe: cross compilers may not add the suffix if given an `-o'
2963         # argument, so we may need to know it at that point already.
2964         # Even if this section looks crufty: it has the advantage of
2965         # actually working.
2966         break;;
2967     * )
2968         break;;
2969   esac
2970 done
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2972
2973 else
2974   ac_file=''
2975 fi
2976
2977 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2978 $as_echo "$ac_file" >&6; }
2979 if test -z "$ac_file"; then
2980   $as_echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2986 See \`config.log' for more details." >&5
2987 $as_echo "$as_me: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&2;}
2989    { (exit 77); exit 77; }; }; }
2990 fi
2991
2992 ac_exeext=$ac_cv_exeext
2993
2994 # Check that the compiler produces executables we can run.  If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2997 $as_echo_n "checking whether the C compiler works... " >&6; }
2998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2999 # If not cross compiling, check that we can run a simple program.
3000 if test "$cross_compiling" != yes; then
3001   if { ac_try='./$ac_file'
3002   { (case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008   (eval "$ac_try") 2>&5
3009   ac_status=$?
3010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012     cross_compiling=no
3013   else
3014     if test "$cross_compiling" = maybe; then
3015         cross_compiling=yes
3016     else
3017         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'.
3021 See \`config.log' for more details." >&5
3022 $as_echo "$as_me: error: cannot run C compiled programs.
3023 If you meant to cross compile, use \`--host'.
3024 See \`config.log' for more details." >&2;}
3025    { (exit 1); exit 1; }; }; }
3026     fi
3027   fi
3028 fi
3029 { $as_echo "$as_me:$LINENO: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031
3032 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3033 ac_clean_files=$ac_clean_files_save
3034 # Check that the compiler produces executables we can run.  If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3039 $as_echo "$cross_compiling" >&6; }
3040
3041 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3042 $as_echo_n "checking for suffix of executables... " >&6; }
3043 if { (ac_try="$ac_link"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050   (eval "$ac_link") 2>&5
3051   ac_status=$?
3052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; then
3054   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3055 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3056 # work properly (i.e., refer to `conftest.exe'), while it won't with
3057 # `rm'.
3058 for ac_file in conftest.exe conftest conftest.*; do
3059   test -f "$ac_file" || continue
3060   case $ac_file in
3061     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3062     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063           break;;
3064     * ) break;;
3065   esac
3066 done
3067 else
3068   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details." >&5
3072 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details." >&2;}
3074    { (exit 1); exit 1; }; }; }
3075 fi
3076
3077 rm -f conftest$ac_cv_exeext
3078 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3080
3081 rm -f conftest.$ac_ext
3082 EXEEXT=$ac_cv_exeext
3083 ac_exeext=$EXEEXT
3084 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if test "${ac_cv_objext+set}" = set; then
3087   $as_echo_n "(cached) " >&6
3088 else
3089   cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.o conftest.obj
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 $as_echo "$ac_try_echo") >&5
3112   (eval "$ac_compile") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; then
3116   for ac_file in conftest.o conftest.obj conftest.*; do
3117   test -f "$ac_file" || continue;
3118   case $ac_file in
3119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121        break;;
3122   esac
3123 done
3124 else
3125   $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&5
3132 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }; }
3135 fi
3136
3137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138 fi
3139 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140 $as_echo "$ac_cv_objext" >&6; }
3141 OBJEXT=$ac_cv_objext
3142 ac_objext=$OBJEXT
3143 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146   $as_echo_n "(cached) " >&6
3147 else
3148   cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158 #ifndef __GNUC__
3159        choke me
3160 #endif
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174   (eval "$ac_compile") 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } && {
3181          test -z "$ac_c_werror_flag" ||
3182          test ! -s conftest.err
3183        } && test -s conftest.$ac_objext; then
3184   ac_compiler_gnu=yes
3185 else
3186   $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189         ac_compiler_gnu=no
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3194
3195 fi
3196 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3197 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3198 if test $ac_compiler_gnu = yes; then
3199   GCC=yes
3200 else
3201   GCC=
3202 fi
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3205 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3207 if test "${ac_cv_prog_cc_g+set}" = set; then
3208   $as_echo_n "(cached) " >&6
3209 else
3210   ac_save_c_werror_flag=$ac_c_werror_flag
3211    ac_c_werror_flag=yes
3212    ac_cv_prog_cc_g=no
3213    CFLAGS="-g"
3214    cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } && {
3244          test -z "$ac_c_werror_flag" ||
3245          test ! -s conftest.err
3246        } && test -s conftest.$ac_objext; then
3247   ac_cv_prog_cc_g=yes
3248 else
3249   $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252         CFLAGS=""
3253       cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_compile") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } && {
3283          test -z "$ac_c_werror_flag" ||
3284          test ! -s conftest.err
3285        } && test -s conftest.$ac_objext; then
3286   :
3287 else
3288   $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291         ac_c_werror_flag=$ac_save_c_werror_flag
3292          CFLAGS="-g"
3293          cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299
3300 int
3301 main ()
3302 {
3303
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3315 $as_echo "$ac_try_echo") >&5
3316   (eval "$ac_compile") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } && {
3323          test -z "$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        } && test -s conftest.$ac_objext; then
3326   ac_cv_prog_cc_g=yes
3327 else
3328   $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341    ac_c_werror_flag=$ac_save_c_werror_flag
3342 fi
3343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 $as_echo "$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346   CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348   if test "$GCC" = yes; then
3349     CFLAGS="-g -O2"
3350   else
3351     CFLAGS="-g"
3352   fi
3353 else
3354   if test "$GCC" = yes; then
3355     CFLAGS="-O2"
3356   else
3357     CFLAGS=
3358   fi
3359 fi
3360 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3362 if test "${ac_cv_prog_cc_c89+set}" = set; then
3363   $as_echo_n "(cached) " >&6
3364 else
3365   ac_cv_prog_cc_c89=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381      char **p;
3382      int i;
3383 {
3384   return p[i];
3385 }
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3387 {
3388   char *s;
3389   va_list v;
3390   va_start (v,p);
3391   s = g (p, va_arg (v,int));
3392   va_end (v);
3393   return s;
3394 }
3395
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3397    function prototypes and stuff, but not '\xHH' hex character constants.
3398    These don't provoke an error unfortunately, instead are silently treated
3399    as 'x'.  The following induces an error, until -std is added to get
3400    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3401    array size at least.  It's necessary to write '\x00'==0 to get something
3402    that's true only with -std.  */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404
3405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3406    inside strings and character constants.  */
3407 #define FOO(x) 'x'
3408 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3409
3410 int test (int i, double x);
3411 struct s1 {int (*f) (int a);};
3412 struct s2 {int (*f) (double a);};
3413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 int argc;
3415 char **argv;
3416 int
3417 main ()
3418 {
3419 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3425         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3426 do
3427   CC="$ac_save_CC $ac_arg"
3428   rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435 $as_echo "$ac_try_echo") >&5
3436   (eval "$ac_compile") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } && {
3443          test -z "$ac_c_werror_flag" ||
3444          test ! -s conftest.err
3445        } && test -s conftest.$ac_objext; then
3446   ac_cv_prog_cc_c89=$ac_arg
3447 else
3448   $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451
3452 fi
3453
3454 rm -f core conftest.err conftest.$ac_objext
3455   test "x$ac_cv_prog_cc_c89" != "xno" && break
3456 done
3457 rm -f conftest.$ac_ext
3458 CC=$ac_save_CC
3459
3460 fi
3461 # AC_CACHE_VAL
3462 case "x$ac_cv_prog_cc_c89" in
3463   x)
3464     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3465 $as_echo "none needed" >&6; } ;;
3466   xno)
3467     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3468 $as_echo "unsupported" >&6; } ;;
3469   *)
3470     CC="$CC $ac_cv_prog_cc_c89"
3471     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 esac
3474
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482 ac_ext=cpp
3483 ac_cpp='$CXXCPP $CPPFLAGS'
3484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3487 if test -z "$CXX"; then
3488   if test -n "$CCC"; then
3489     CXX=$CCC
3490   else
3491     if test -n "$ac_tool_prefix"; then
3492   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3493   do
3494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CXX+set}" = set; then
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$CXX"; then
3502   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509   for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CXX=$ac_cv_prog_CXX
3522 if test -n "$CXX"; then
3523   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3524 $as_echo "$CXX" >&6; }
3525 else
3526   { $as_echo "$as_me:$LINENO: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531     test -n "$CXX" && break
3532   done
3533 fi
3534 if test -z "$CXX"; then
3535   ac_ct_CXX=$CXX
3536   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3537 do
3538   # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3543   $as_echo_n "(cached) " >&6
3544 else
3545   if test -n "$ac_ct_CXX"; then
3546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555     ac_cv_prog_ac_ct_CXX="$ac_prog"
3556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3566 if test -n "$ac_ct_CXX"; then
3567   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3568 $as_echo "$ac_ct_CXX" >&6; }
3569 else
3570   { $as_echo "$as_me:$LINENO: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575   test -n "$ac_ct_CXX" && break
3576 done
3577
3578   if test "x$ac_ct_CXX" = x; then
3579     CXX="g++"
3580   else
3581     case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587     CXX=$ac_ct_CXX
3588   fi
3589 fi
3590
3591   fi
3592 fi
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3595 set X $ac_compile
3596 ac_compiler=$2
3597 { (ac_try="$ac_compiler --version >&5"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3603 $as_echo "$ac_try_echo") >&5
3604   (eval "$ac_compiler --version >&5") 2>&5
3605   ac_status=$?
3606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }
3608 { (ac_try="$ac_compiler -v >&5"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615   (eval "$ac_compiler -v >&5") 2>&5
3616   ac_status=$?
3617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }
3619 { (ac_try="$ac_compiler -V >&5"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625 $as_echo "$ac_try_echo") >&5
3626   (eval "$ac_compiler -V >&5") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }
3630
3631 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3632 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3633 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3634   $as_echo_n "(cached) " >&6
3635 else
3636   cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646 #ifndef __GNUC__
3647        choke me
3648 #endif
3649
3650   ;
3651   return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (ac_try="$ac_compile"
3656 case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3661 $as_echo "$ac_try_echo") >&5
3662   (eval "$ac_compile") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } && {
3669          test -z "$ac_cxx_werror_flag" ||
3670          test ! -s conftest.err
3671        } && test -s conftest.$ac_objext; then
3672   ac_compiler_gnu=yes
3673 else
3674   $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677         ac_compiler_gnu=no
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3682
3683 fi
3684 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3685 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3686 if test $ac_compiler_gnu = yes; then
3687   GXX=yes
3688 else
3689   GXX=
3690 fi
3691 ac_test_CXXFLAGS=${CXXFLAGS+set}
3692 ac_save_CXXFLAGS=$CXXFLAGS
3693 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3694 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3695 if test "${ac_cv_prog_cxx_g+set}" = set; then
3696   $as_echo_n "(cached) " >&6
3697 else
3698   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3699    ac_cxx_werror_flag=yes
3700    ac_cv_prog_cxx_g=no
3701    CXXFLAGS="-g"
3702    cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h.  */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h.  */
3708
3709 int
3710 main ()
3711 {
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721   *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725   (eval "$ac_compile") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } && {
3732          test -z "$ac_cxx_werror_flag" ||
3733          test ! -s conftest.err
3734        } && test -s conftest.$ac_objext; then
3735   ac_cv_prog_cxx_g=yes
3736 else
3737   $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740         CXXFLAGS=""
3741       cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 int
3749 main ()
3750 {
3751
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760   *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764   (eval "$ac_compile") 2>conftest.er1
3765   ac_status=$?
3766   grep -v '^ *+' conftest.er1 >conftest.err
3767   rm -f conftest.er1
3768   cat conftest.err >&5
3769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } && {
3771          test -z "$ac_cxx_werror_flag" ||
3772          test ! -s conftest.err
3773        } && test -s conftest.$ac_objext; then
3774   :
3775 else
3776   $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3780          CXXFLAGS="-g"
3781          cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803 $as_echo "$ac_try_echo") >&5
3804   (eval "$ac_compile") 2>conftest.er1
3805   ac_status=$?
3806   grep -v '^ *+' conftest.er1 >conftest.err
3807   rm -f conftest.er1
3808   cat conftest.err >&5
3809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); } && {
3811          test -z "$ac_cxx_werror_flag" ||
3812          test ! -s conftest.err
3813        } && test -s conftest.$ac_objext; then
3814   ac_cv_prog_cxx_g=yes
3815 else
3816   $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819
3820 fi
3821
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 fi
3824
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3830 fi
3831 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3832 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3833 if test "$ac_test_CXXFLAGS" = set; then
3834   CXXFLAGS=$ac_save_CXXFLAGS
3835 elif test $ac_cv_prog_cxx_g = yes; then
3836   if test "$GXX" = yes; then
3837     CXXFLAGS="-g -O2"
3838   else
3839     CXXFLAGS="-g"
3840   fi
3841 else
3842   if test "$GXX" = yes; then
3843     CXXFLAGS="-O2"
3844   else
3845     CXXFLAGS=
3846   fi
3847 fi
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854 if test "x$CC" != xcc; then
3855   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3856 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3857 else
3858   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3859 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3860 fi
3861 set dummy $CC; ac_cc=`$as_echo "$2" |
3862                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3863 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3864   $as_echo_n "(cached) " >&6
3865 else
3866   cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h.  */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 # Make sure it works both with $CC and with simple cc.
3882 # We do the test twice because some compilers refuse to overwrite an
3883 # existing .o file with -o, though they will create one.
3884 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3885 rm -f conftest2.*
3886 if { (case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3891 $as_echo "$ac_try_echo") >&5
3892   (eval "$ac_try") 2>&5
3893   ac_status=$?
3894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } &&
3896    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902   (eval "$ac_try") 2>&5
3903   ac_status=$?
3904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); };
3906 then
3907   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3908   if test "x$CC" != xcc; then
3909     # Test first that cc exists at all.
3910     if { ac_try='cc -c conftest.$ac_ext >&5'
3911   { (case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo") >&5
3917   (eval "$ac_try") 2>&5
3918   ac_status=$?
3919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3922       rm -f conftest2.*
3923       if { (case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929   (eval "$ac_try") 2>&5
3930   ac_status=$?
3931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } &&
3933          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938 $as_echo "$ac_try_echo") >&5
3939   (eval "$ac_try") 2>&5
3940   ac_status=$?
3941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); };
3943       then
3944         # cc works too.
3945         :
3946       else
3947         # cc exists but doesn't like -o.
3948         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3949       fi
3950     fi
3951   fi
3952 else
3953   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3954 fi
3955 rm -f core conftest*
3956
3957 fi
3958 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3959   { $as_echo "$as_me:$LINENO: result: yes" >&5
3960 $as_echo "yes" >&6; }
3961 else
3962   { $as_echo "$as_me:$LINENO: result: no" >&5
3963 $as_echo "no" >&6; }
3964
3965 cat >>confdefs.h <<\_ACEOF
3966 #define NO_MINUS_C_MINUS_O 1
3967 _ACEOF
3968
3969 fi
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3978 # On Suns, sometimes $CPP names a directory.
3979 if test -n "$CPP" && test -d "$CPP"; then
3980   CPP=
3981 fi
3982 if test -z "$CPP"; then
3983   if test "${ac_cv_prog_CPP+set}" = set; then
3984   $as_echo_n "(cached) " >&6
3985 else
3986       # Double quotes because CPP needs to be expanded
3987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988     do
3989       ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992   # Use a header file that comes with gcc, so configuring glibc
3993   # with a fresh cross-compiler works.
3994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995   # <limits.h> exists even on freestanding compilers.
3996   # On the NeXT, cc -E runs the code through the compiler's parser,
3997   # not just through cpp. "Syntax error" is here to catch this case.
3998   cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009                      Syntax error
4010 _ACEOF
4011 if { (ac_try="$ac_cpp conftest.$ac_ext"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } >/dev/null && {
4025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026          test ! -s conftest.err
4027        }; then
4028   :
4029 else
4030   $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033   # Broken: fails on valid input.
4034 continue
4035 fi
4036
4037 rm -f conftest.err conftest.$ac_ext
4038
4039   # OK, works on sane cases.  Now check whether nonexistent headers
4040   # can be detected and how.
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055 $as_echo "$ac_try_echo") >&5
4056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4057   ac_status=$?
4058   grep -v '^ *+' conftest.er1 >conftest.err
4059   rm -f conftest.er1
4060   cat conftest.err >&5
4061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } >/dev/null && {
4063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064          test ! -s conftest.err
4065        }; then
4066   # Broken: success on invalid input.
4067 continue
4068 else
4069   $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072   # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076
4077 rm -f conftest.err conftest.$ac_ext
4078
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then
4083   break
4084 fi
4085
4086     done
4087     ac_cv_prog_CPP=$CPP
4088
4089 fi
4090   CPP=$ac_cv_prog_CPP
4091 else
4092   ac_cv_prog_CPP=$CPP
4093 fi
4094 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4095 $as_echo "$CPP" >&6; }
4096 ac_preproc_ok=false
4097 for ac_c_preproc_warn_flag in '' yes
4098 do
4099   # Use a header file that comes with gcc, so configuring glibc
4100   # with a fresh cross-compiler works.
4101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102   # <limits.h> exists even on freestanding compilers.
4103   # On the NeXT, cc -E runs the code through the compiler's parser,
4104   # not just through cpp. "Syntax error" is here to catch this case.
4105   cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111 #ifdef __STDC__
4112 # include <limits.h>
4113 #else
4114 # include <assert.h>
4115 #endif
4116                      Syntax error
4117 _ACEOF
4118 if { (ac_try="$ac_cpp conftest.$ac_ext"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4124 $as_echo "$ac_try_echo") >&5
4125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } >/dev/null && {
4132          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4133          test ! -s conftest.err
4134        }; then
4135   :
4136 else
4137   $as_echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140   # Broken: fails on valid input.
4141 continue
4142 fi
4143
4144 rm -f conftest.err conftest.$ac_ext
4145
4146   # OK, works on sane cases.  Now check whether nonexistent headers
4147   # can be detected and how.
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if { (ac_try="$ac_cpp conftest.$ac_ext"
4157 case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162 $as_echo "$ac_try_echo") >&5
4163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } >/dev/null && {
4170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4171          test ! -s conftest.err
4172        }; then
4173   # Broken: success on invalid input.
4174 continue
4175 else
4176   $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179   # Passes both tests.
4180 ac_preproc_ok=:
4181 break
4182 fi
4183
4184 rm -f conftest.err conftest.$ac_ext
4185
4186 done
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.err conftest.$ac_ext
4189 if $ac_preproc_ok; then
4190   :
4191 else
4192   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details." >&5
4196 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4197 See \`config.log' for more details." >&2;}
4198    { (exit 1); exit 1; }; }; }
4199 fi
4200
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207
4208 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4209 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4210 if test "${ac_cv_path_GREP+set}" = set; then
4211   $as_echo_n "(cached) " >&6
4212 else
4213   if test -z "$GREP"; then
4214   ac_path_GREP_found=false
4215   # Loop through the user's path and test for each of PROGNAME-LIST
4216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_prog in grep ggrep; do
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4224       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4225 # Check for GNU ac_path_GREP and select it if it is found.
4226   # Check for GNU $ac_path_GREP
4227 case `"$ac_path_GREP" --version 2>&1` in
4228 *GNU*)
4229   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230 *)
4231   ac_count=0
4232   $as_echo_n 0123456789 >"conftest.in"
4233   while :
4234   do
4235     cat "conftest.in" "conftest.in" >"conftest.tmp"
4236     mv "conftest.tmp" "conftest.in"
4237     cp "conftest.in" "conftest.nl"
4238     $as_echo 'GREP' >> "conftest.nl"
4239     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241     ac_count=`expr $ac_count + 1`
4242     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4243       # Best one so far, save it but keep looking for a better one
4244       ac_cv_path_GREP="$ac_path_GREP"
4245       ac_path_GREP_max=$ac_count
4246     fi
4247     # 10*(2^10) chars as input seems more than enough
4248     test $ac_count -gt 10 && break
4249   done
4250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 esac
4252
4253       $ac_path_GREP_found && break 3
4254     done
4255   done
4256 done
4257 IFS=$as_save_IFS
4258   if test -z "$ac_cv_path_GREP"; then
4259     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4260 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4261    { (exit 1); exit 1; }; }
4262   fi
4263 else
4264   ac_cv_path_GREP=$GREP
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270  GREP="$ac_cv_path_GREP"
4271
4272
4273 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if test "${ac_cv_path_EGREP+set}" = set; then
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279    then ac_cv_path_EGREP="$GREP -E"
4280    else
4281      if test -z "$EGREP"; then
4282   ac_path_EGREP_found=false
4283   # Loop through the user's path and test for each of PROGNAME-LIST
4284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_prog in egrep; do
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294   # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 *)
4299   ac_count=0
4300   $as_echo_n 0123456789 >"conftest.in"
4301   while :
4302   do
4303     cat "conftest.in" "conftest.in" >"conftest.tmp"
4304     mv "conftest.tmp" "conftest.in"
4305     cp "conftest.in" "conftest.nl"
4306     $as_echo 'EGREP' >> "conftest.nl"
4307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309     ac_count=`expr $ac_count + 1`
4310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311       # Best one so far, save it but keep looking for a better one
4312       ac_cv_path_EGREP="$ac_path_EGREP"
4313       ac_path_EGREP_max=$ac_count
4314     fi
4315     # 10*(2^10) chars as input seems more than enough
4316     test $ac_count -gt 10 && break
4317   done
4318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321       $ac_path_EGREP_found && break 3
4322     done
4323   done
4324 done
4325 IFS=$as_save_IFS
4326   if test -z "$ac_cv_path_EGREP"; then
4327     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329    { (exit 1); exit 1; }; }
4330   fi
4331 else
4332   ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335    fi
4336 fi
4337 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339  EGREP="$ac_cv_path_EGREP"
4340
4341
4342 if test $ac_cv_c_compiler_gnu = yes; then
4343     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4344 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4345 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4346   $as_echo_n "(cached) " >&6
4347 else
4348     ac_pattern="Autoconf.*'x'"
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <sgtty.h>
4356 Autoconf TIOCGETP
4357 _ACEOF
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4360   ac_cv_prog_gcc_traditional=yes
4361 else
4362   ac_cv_prog_gcc_traditional=no
4363 fi
4364 rm -f conftest*
4365
4366
4367   if test $ac_cv_prog_gcc_traditional = no; then
4368     cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <termio.h>
4375 Autoconf TCGETA
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4379   ac_cv_prog_gcc_traditional=yes
4380 fi
4381 rm -f conftest*
4382
4383   fi
4384 fi
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4386 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4387   if test $ac_cv_prog_gcc_traditional = yes; then
4388     CC="$CC -traditional"
4389   fi
4390 fi
4391
4392 BASECC=`basename $CC`
4393 have_gcc=no
4394 if test "x$BASECC" = xgcc; then
4395    cat >>confdefs.h <<\_ACEOF
4396 #define HAVE_GCC 1
4397 _ACEOF
4398
4399    have_gcc=yes
4400 fi
4401 # Extract the first word of "$CXX", so it can be a program name with args.
4402 set dummy $CXX; ac_word=$2
4403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_path_CXX+set}" = set; then
4406   $as_echo_n "(cached) " >&6
4407 else
4408   case $CXX in
4409   [\\/]* | ?:[\\/]*)
4410   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4411   ;;
4412   *)
4413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4429   ;;
4430 esac
4431 fi
4432 CXX=$ac_cv_path_CXX
4433 if test -n "$CXX"; then
4434   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4435 $as_echo "$CXX" >&6; }
4436 else
4437   { $as_echo "$as_me:$LINENO: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 if test ! -e $CXX; then
4443    { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4444 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447
4448 # Find a good install program.  We prefer a C program (faster),
4449 # so one script is as good as another.  But avoid the broken or
4450 # incompatible versions:
4451 # SysV /etc/install, /usr/sbin/install
4452 # SunOS /usr/etc/install
4453 # IRIX /sbin/install
4454 # AIX /bin/install
4455 # AmigaOS /C/install, which installs bootblocks on floppy discs
4456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4459 # OS/2's system install, which has a completely different semantic
4460 # ./install, which can be erroneously created by make from ./install.sh.
4461 # Reject install programs that cannot install multiple files.
4462 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4464 if test -z "$INSTALL"; then
4465 if test "${ac_cv_path_install+set}" = set; then
4466   $as_echo_n "(cached) " >&6
4467 else
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   # Account for people who put trailing slashes in PATH elements.
4474 case $as_dir/ in
4475   ./ | .// | /cC/* | \
4476   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4477   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4478   /usr/ucb/* ) ;;
4479   *)
4480     # OSF1 and SCO ODT 3.0 have their own names for install.
4481     # Don't use installbsd from OSF since it installs stuff as root
4482     # by default.
4483     for ac_prog in ginstall scoinst install; do
4484       for ac_exec_ext in '' $ac_executable_extensions; do
4485         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4486           if test $ac_prog = install &&
4487             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4488             # AIX install.  It has an incompatible calling convention.
4489             :
4490           elif test $ac_prog = install &&
4491             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4492             # program-specific install script used by HP pwplus--don't use.
4493             :
4494           else
4495             rm -rf conftest.one conftest.two conftest.dir
4496             echo one > conftest.one
4497             echo two > conftest.two
4498             mkdir conftest.dir
4499             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4500               test -s conftest.one && test -s conftest.two &&
4501               test -s conftest.dir/conftest.one &&
4502               test -s conftest.dir/conftest.two
4503             then
4504               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4505               break 3
4506             fi
4507           fi
4508         fi
4509       done
4510     done
4511     ;;
4512 esac
4513
4514 done
4515 IFS=$as_save_IFS
4516
4517 rm -rf conftest.one conftest.two conftest.dir
4518
4519 fi
4520   if test "${ac_cv_path_install+set}" = set; then
4521     INSTALL=$ac_cv_path_install
4522   else
4523     # As a last resort, use the slow shell script.  Don't cache a
4524     # value for INSTALL within a source directory, because that will
4525     # break other packages using the cache if that directory is
4526     # removed, or if the value is a relative name.
4527     INSTALL=$ac_install_sh
4528   fi
4529 fi
4530 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4531 $as_echo "$INSTALL" >&6; }
4532
4533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4534 # It thinks the first close brace ends the variable substitution.
4535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4536
4537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4538
4539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4540
4541 # Extract the first word of "mv", so it can be a program name with args.
4542 set dummy mv; ac_word=$2
4543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_path_MV+set}" = set; then
4546   $as_echo_n "(cached) " >&6
4547 else
4548   case $MV in
4549   [\\/]* | ?:[\\/]*)
4550   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4551   ;;
4552   *)
4553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558   for ac_exec_ext in '' $ac_executable_extensions; do
4559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4569   ;;
4570 esac
4571 fi
4572 MV=$ac_cv_path_MV
4573 if test -n "$MV"; then
4574   { $as_echo "$as_me:$LINENO: result: $MV" >&5
4575 $as_echo "$MV" >&6; }
4576 else
4577   { $as_echo "$as_me:$LINENO: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 # Extract the first word of "rm", so it can be a program name with args.
4583 set dummy rm; ac_word=$2
4584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_path_REMOVE+set}" = set; then
4587   $as_echo_n "(cached) " >&6
4588 else
4589   case $REMOVE in
4590   [\\/]* | ?:[\\/]*)
4591   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4592   ;;
4593   *)
4594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599   for ac_exec_ext in '' $ac_executable_extensions; do
4600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603     break 2
4604   fi
4605 done
4606 done
4607 IFS=$as_save_IFS
4608
4609   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4610   ;;
4611 esac
4612 fi
4613 REMOVE=$ac_cv_path_REMOVE
4614 if test -n "$REMOVE"; then
4615   { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4616 $as_echo "$REMOVE" >&6; }
4617 else
4618   { $as_echo "$as_me:$LINENO: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621
4622
4623 # Extract the first word of "cp", so it can be a program name with args.
4624 set dummy cp; ac_word=$2
4625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_path_CP+set}" = set; then
4628   $as_echo_n "(cached) " >&6
4629 else
4630   case $CP in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4643     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4651   ;;
4652 esac
4653 fi
4654 CP=$ac_cv_path_CP
4655 if test -n "$CP"; then
4656   { $as_echo "$as_me:$LINENO: result: $CP" >&5
4657 $as_echo "$CP" >&6; }
4658 else
4659   { $as_echo "$as_me:$LINENO: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 # Extract the first word of "sed", so it can be a program name with args.
4665 set dummy sed; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_path_SED+set}" = set; then
4669   $as_echo_n "(cached) " >&6
4670 else
4671   case $SED in
4672   [\\/]* | ?:[\\/]*)
4673   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4674   ;;
4675   *)
4676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4684     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4692   ;;
4693 esac
4694 fi
4695 SED=$ac_cv_path_SED
4696 if test -n "$SED"; then
4697   { $as_echo "$as_me:$LINENO: result: $SED" >&5
4698 $as_echo "$SED" >&6; }
4699 else
4700   { $as_echo "$as_me:$LINENO: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704
4705 # Extract the first word of "echo", so it can be a program name with args.
4706 set dummy echo; ac_word=$2
4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_path_ECHO+set}" = set; then
4710   $as_echo_n "(cached) " >&6
4711 else
4712   case $ECHO in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4733   ;;
4734 esac
4735 fi
4736 ECHO=$ac_cv_path_ECHO
4737 if test -n "$ECHO"; then
4738   { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4739 $as_echo "$ECHO" >&6; }
4740 else
4741   { $as_echo "$as_me:$LINENO: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746 # Extract the first word of "cmp", so it can be a program name with args.
4747 set dummy cmp; ac_word=$2
4748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_path_CMP+set}" = set; then
4751   $as_echo_n "(cached) " >&6
4752 else
4753   case $CMP in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4774   ;;
4775 esac
4776 fi
4777 CMP=$ac_cv_path_CMP
4778 if test -n "$CMP"; then
4779   { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4780 $as_echo "$CMP" >&6; }
4781 else
4782   { $as_echo "$as_me:$LINENO: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 # Extract the first word of "tbl", so it can be a program name with args.
4788 set dummy tbl; ac_word=$2
4789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_path_TBL+set}" = set; then
4792   $as_echo_n "(cached) " >&6
4793 else
4794   case $TBL in
4795   [\\/]* | ?:[\\/]*)
4796   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4797   ;;
4798   *)
4799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804   for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4807     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4815   ;;
4816 esac
4817 fi
4818 TBL=$ac_cv_path_TBL
4819 if test -n "$TBL"; then
4820   { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4821 $as_echo "$TBL" >&6; }
4822 else
4823   { $as_echo "$as_me:$LINENO: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827
4828 # Extract the first word of "ar", so it can be a program name with args.
4829 set dummy ar; ac_word=$2
4830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_path_AR+set}" = set; then
4833   $as_echo_n "(cached) " >&6
4834 else
4835   case $AR in
4836   [\\/]* | ?:[\\/]*)
4837   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4838   ;;
4839   *)
4840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4848     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4856   ;;
4857 esac
4858 fi
4859 AR=$ac_cv_path_AR
4860 if test -n "$AR"; then
4861   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4862 $as_echo "$AR" >&6; }
4863 else
4864   { $as_echo "$as_me:$LINENO: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867
4868
4869 # Extract the first word of "openssl", so it can be a program name with args.
4870 set dummy openssl; ac_word=$2
4871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_path_OPENSSL+set}" = set; then
4874   $as_echo_n "(cached) " >&6
4875 else
4876   case $OPENSSL in
4877   [\\/]* | ?:[\\/]*)
4878   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4879   ;;
4880   *)
4881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886   for ac_exec_ext in '' $ac_executable_extensions; do
4887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4889     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4897   ;;
4898 esac
4899 fi
4900 OPENSSL=$ac_cv_path_OPENSSL
4901 if test -n "$OPENSSL"; then
4902   { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4903 $as_echo "$OPENSSL" >&6; }
4904 else
4905   { $as_echo "$as_me:$LINENO: result: no" >&5
4906 $as_echo "no" >&6; }
4907 fi
4908
4909
4910 # Extract the first word of "mtx", so it can be a program name with args.
4911 set dummy mtx; ac_word=$2
4912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_path_MTX+set}" = set; then
4915   $as_echo_n "(cached) " >&6
4916 else
4917   case $MTX in
4918   [\\/]* | ?:[\\/]*)
4919   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4920   ;;
4921   *)
4922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4938   ;;
4939 esac
4940 fi
4941 MTX=$ac_cv_path_MTX
4942 if test -n "$MTX"; then
4943   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4944 $as_echo "$MTX" >&6; }
4945 else
4946   { $as_echo "$as_me:$LINENO: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 # Extract the first word of "dd", so it can be a program name with args.
4952 set dummy dd; ac_word=$2
4953 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_path_DD+set}" = set; then
4956   $as_echo_n "(cached) " >&6
4957 else
4958   case $DD in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968   for ac_exec_ext in '' $ac_executable_extensions; do
4969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4971     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975 done
4976 IFS=$as_save_IFS
4977
4978   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4979   ;;
4980 esac
4981 fi
4982 DD=$ac_cv_path_DD
4983 if test -n "$DD"; then
4984   { $as_echo "$as_me:$LINENO: result: $DD" >&5
4985 $as_echo "$DD" >&6; }
4986 else
4987   { $as_echo "$as_me:$LINENO: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991
4992 # Extract the first word of "mkisofs", so it can be a program name with args.
4993 set dummy mkisofs; ac_word=$2
4994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if test "${ac_cv_path_MKISOFS+set}" = set; then
4997   $as_echo_n "(cached) " >&6
4998 else
4999   case $MKISOFS in
5000   [\\/]* | ?:[\\/]*)
5001   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5002   ;;
5003   *)
5004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007   IFS=$as_save_IFS
5008   test -z "$as_dir" && as_dir=.
5009   for ac_exec_ext in '' $ac_executable_extensions; do
5010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5012     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014   fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5020   ;;
5021 esac
5022 fi
5023 MKISOFS=$ac_cv_path_MKISOFS
5024 if test -n "$MKISOFS"; then
5025   { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5026 $as_echo "$MKISOFS" >&6; }
5027 else
5028   { $as_echo "$as_me:$LINENO: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032
5033 # Extract the first word of "python", so it can be a program name with args.
5034 set dummy python; ac_word=$2
5035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_path_PYTHON+set}" = set; then
5038   $as_echo_n "(cached) " >&6
5039 else
5040   case $PYTHON in
5041   [\\/]* | ?:[\\/]*)
5042   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5043   ;;
5044   *)
5045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050   for ac_exec_ext in '' $ac_executable_extensions; do
5051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5053     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057 done
5058 IFS=$as_save_IFS
5059
5060   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5061   ;;
5062 esac
5063 fi
5064 PYTHON=$ac_cv_path_PYTHON
5065 if test -n "$PYTHON"; then
5066   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5067 $as_echo "$PYTHON" >&6; }
5068 else
5069   { $as_echo "$as_me:$LINENO: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073
5074 # Extract the first word of "growisofs", so it can be a program name with args.
5075 set dummy growisofs; ac_word=$2
5076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5079   $as_echo_n "(cached) " >&6
5080 else
5081   case $GROWISOFS in
5082   [\\/]* | ?:[\\/]*)
5083   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5084   ;;
5085   *)
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5102   ;;
5103 esac
5104 fi
5105 GROWISOFS=$ac_cv_path_GROWISOFS
5106 if test -n "$GROWISOFS"; then
5107   { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5108 $as_echo "$GROWISOFS" >&6; }
5109 else
5110   { $as_echo "$as_me:$LINENO: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114
5115 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5116 set dummy dvd+rw-mediainfo; ac_word=$2
5117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5120   $as_echo_n "(cached) " >&6
5121 else
5122   case $DVDRWMEDIAINFO in
5123   [\\/]* | ?:[\\/]*)
5124   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5125   ;;
5126   *)
5127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5143   ;;
5144 esac
5145 fi
5146 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5147 if test -n "$DVDRWMEDIAINFO"; then
5148   { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5149 $as_echo "$DVDRWMEDIAINFO" >&6; }
5150 else
5151   { $as_echo "$as_me:$LINENO: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5157 set dummy dvd+rw-format; ac_word=$2
5158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5161   $as_echo_n "(cached) " >&6
5162 else
5163   case $DVDRWFORMAT in
5164   [\\/]* | ?:[\\/]*)
5165   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5166   ;;
5167   *)
5168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5184   ;;
5185 esac
5186 fi
5187 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5188 if test -n "$DVDRWFORMAT"; then
5189   { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5190 $as_echo "$DVDRWFORMAT" >&6; }
5191 else
5192   { $as_echo "$as_me:$LINENO: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196
5197 # Extract the first word of "pkg-config", so it can be a program name with args.
5198 set dummy pkg-config; ac_word=$2
5199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5202   $as_echo_n "(cached) " >&6
5203 else
5204   case $PKGCONFIG in
5205   [\\/]* | ?:[\\/]*)
5206   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5207   ;;
5208   *)
5209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214   for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5217     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5225   ;;
5226 esac
5227 fi
5228 PKGCONFIG=$ac_cv_path_PKGCONFIG
5229 if test -n "$PKGCONFIG"; then
5230   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5231 $as_echo "$PKGCONFIG" >&6; }
5232 else
5233   { $as_echo "$as_me:$LINENO: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237
5238 # Extract the first word of "qmake", so it can be a program name with args.
5239 set dummy qmake; ac_word=$2
5240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_path_QMAKE+set}" = set; then
5243   $as_echo_n "(cached) " >&6
5244 else
5245   case $QMAKE in
5246   [\\/]* | ?:[\\/]*)
5247   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5248   ;;
5249   *)
5250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5258     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5266   ;;
5267 esac
5268 fi
5269 QMAKE=$ac_cv_path_QMAKE
5270 if test -n "$QMAKE"; then
5271   { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5272 $as_echo "$QMAKE" >&6; }
5273 else
5274   { $as_echo "$as_me:$LINENO: result: no" >&5
5275 $as_echo "no" >&6; }
5276 fi
5277
5278
5279 # Extract the first word of "gmake", so it can be a program name with args.
5280 set dummy gmake; ac_word=$2
5281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_path_GMAKE+set}" = set; then
5284   $as_echo_n "(cached) " >&6
5285 else
5286   case $GMAKE in
5287   [\\/]* | ?:[\\/]*)
5288   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5289   ;;
5290   *)
5291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296   for ac_exec_ext in '' $ac_executable_extensions; do
5297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5307   ;;
5308 esac
5309 fi
5310 GMAKE=$ac_cv_path_GMAKE
5311 if test -n "$GMAKE"; then
5312   { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5313 $as_echo "$GMAKE" >&6; }
5314 else
5315   { $as_echo "$as_me:$LINENO: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320
5321 if test "x$WXCONFIG" = x; then
5322    WXCONFIG=wx-config
5323 fi
5324 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5325 set dummy ${WXCONFIG}; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5329   $as_echo_n "(cached) " >&6
5330 else
5331   case $WXCONFIG in
5332   [\\/]* | ?:[\\/]*)
5333   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5334   ;;
5335   *)
5336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341   for ac_exec_ext in '' $ac_executable_extensions; do
5342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5344     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5352   ;;
5353 esac
5354 fi
5355 WXCONFIG=$ac_cv_path_WXCONFIG
5356 if test -n "$WXCONFIG"; then
5357   { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5358 $as_echo "$WXCONFIG" >&6; }
5359 else
5360   { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365
5366 # Extract the first word of "cdrecord", so it can be a program name with args.
5367 set dummy cdrecord; ac_word=$2
5368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_path_CDRECORD+set}" = set; then
5371   $as_echo_n "(cached) " >&6
5372 else
5373   case $CDRECORD in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5394   ;;
5395 esac
5396 fi
5397 CDRECORD=$ac_cv_path_CDRECORD
5398 if test -n "$CDRECORD"; then
5399   { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5400 $as_echo "$CDRECORD" >&6; }
5401 else
5402   { $as_echo "$as_me:$LINENO: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406
5407 # Extract the first word of "pidof", so it can be a program name with args.
5408 set dummy pidof; ac_word=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_path_PIDOF+set}" = set; then
5412   $as_echo_n "(cached) " >&6
5413 else
5414   case $PIDOF in
5415   [\\/]* | ?:[\\/]*)
5416   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5417   ;;
5418   *)
5419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424   for ac_exec_ext in '' $ac_executable_extensions; do
5425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5435   ;;
5436 esac
5437 fi
5438 PIDOF=$ac_cv_path_PIDOF
5439 if test -n "$PIDOF"; then
5440   { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5441 $as_echo "$PIDOF" >&6; }
5442 else
5443   { $as_echo "$as_me:$LINENO: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 for ac_prog in gawk mawk nawk awk
5449 do
5450   # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_AWK+set}" = set; then
5455   $as_echo_n "(cached) " >&6
5456 else
5457   if test -n "$AWK"; then
5458   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465   for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_prog_AWK="$ac_prog"
5468     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 AWK=$ac_cv_prog_AWK
5478 if test -n "$AWK"; then
5479   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5480 $as_echo "$AWK" >&6; }
5481 else
5482   { $as_echo "$as_me:$LINENO: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487   test -n "$AWK" && break
5488 done
5489
5490 # Some AWK programs fail, so test it and warn the user
5491 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5492       { if ((prog == $2) || (("(" prog ")") == $2) ||
5493       (("" prog "") == $2) ||
5494       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5495 else
5496   { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5497    The regex engine of $AWK is too broken to be used you
5498    might want to install GNU AWK.
5499    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5500 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5501    The regex engine of $AWK is too broken to be used you
5502    might want to install GNU AWK.
5503    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5504    { (exit 1); exit 1; }; }
5505 fi
5506 THE_AWK=$AWK
5507 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5508 set dummy $THE_AWK; ac_word=$2
5509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if test "${ac_cv_path_AWK+set}" = set; then
5512   $as_echo_n "(cached) " >&6
5513 else
5514   case $AWK in
5515   [\\/]* | ?:[\\/]*)
5516   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5517   ;;
5518   *)
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_exec_ext in '' $ac_executable_extensions; do
5525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528     break 2
5529   fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5535   ;;
5536 esac
5537 fi
5538 AWK=$ac_cv_path_AWK
5539 if test -n "$AWK"; then
5540   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5541 $as_echo "$AWK" >&6; }
5542 else
5543   { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548
5549
5550 test -n "$ARFLAG" || ARFLAGS="cr"
5551
5552
5553 MAKE_SHELL=/bin/sh
5554
5555
5556
5557
5558
5559
5560
5561 use_libtool=yes
5562 # Check whether --enable-libtool was given.
5563 if test "${enable_libtool+set}" = set; then
5564   enableval=$enable_libtool;
5565        if test x$enableval = xno; then
5566           use_libtool=no
5567        fi
5568
5569
5570 fi
5571
5572 case `pwd` in
5573   *\ * | *\     *)
5574     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5575 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5576 esac
5577
5578
5579
5580 macro_version='2.2.6'
5581 macro_revision='1.3012'
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 ltmain="$ac_aux_dir/ltmain.sh"
5596
5597 # Make sure we can run config.sub.
5598 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5599   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5600 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5601    { (exit 1); exit 1; }; }
5602
5603 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5604 $as_echo_n "checking build system type... " >&6; }
5605 if test "${ac_cv_build+set}" = set; then
5606   $as_echo_n "(cached) " >&6
5607 else
5608   ac_build_alias=$build_alias
5609 test "x$ac_build_alias" = x &&
5610   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5611 test "x$ac_build_alias" = x &&
5612   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5613 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5614    { (exit 1); exit 1; }; }
5615 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5616   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5617 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5618    { (exit 1); exit 1; }; }
5619
5620 fi
5621 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5622 $as_echo "$ac_cv_build" >&6; }
5623 case $ac_cv_build in
5624 *-*-*) ;;
5625 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5626 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5627    { (exit 1); exit 1; }; };;
5628 esac
5629 build=$ac_cv_build
5630 ac_save_IFS=$IFS; IFS='-'
5631 set x $ac_cv_build
5632 shift
5633 build_cpu=$1
5634 build_vendor=$2
5635 shift; shift
5636 # Remember, the first character of IFS is used to create $*,
5637 # except with old shells:
5638 build_os=$*
5639 IFS=$ac_save_IFS
5640 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5641
5642
5643 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5644 $as_echo_n "checking host system type... " >&6; }
5645 if test "${ac_cv_host+set}" = set; then
5646   $as_echo_n "(cached) " >&6
5647 else
5648   if test "x$host_alias" = x; then
5649   ac_cv_host=$ac_cv_build
5650 else
5651   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5652     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5653 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5654    { (exit 1); exit 1; }; }
5655 fi
5656
5657 fi
5658 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5659 $as_echo "$ac_cv_host" >&6; }
5660 case $ac_cv_host in
5661 *-*-*) ;;
5662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5663 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5664    { (exit 1); exit 1; }; };;
5665 esac
5666 host=$ac_cv_host
5667 ac_save_IFS=$IFS; IFS='-'
5668 set x $ac_cv_host
5669 shift
5670 host_cpu=$1
5671 host_vendor=$2
5672 shift; shift
5673 # Remember, the first character of IFS is used to create $*,
5674 # except with old shells:
5675 host_os=$*
5676 IFS=$ac_save_IFS
5677 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5678
5679
5680 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5682 if test "${ac_cv_path_SED+set}" = set; then
5683   $as_echo_n "(cached) " >&6
5684 else
5685             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5686      for ac_i in 1 2 3 4 5 6 7; do
5687        ac_script="$ac_script$as_nl$ac_script"
5688      done
5689      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5690      $as_unset ac_script || ac_script=
5691      if test -z "$SED"; then
5692   ac_path_SED_found=false
5693   # Loop through the user's path and test for each of PROGNAME-LIST
5694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699   for ac_prog in sed gsed; do
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5702       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5703 # Check for GNU ac_path_SED and select it if it is found.
5704   # Check for GNU $ac_path_SED
5705 case `"$ac_path_SED" --version 2>&1` in
5706 *GNU*)
5707   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5708 *)
5709   ac_count=0
5710   $as_echo_n 0123456789 >"conftest.in"
5711   while :
5712   do
5713     cat "conftest.in" "conftest.in" >"conftest.tmp"
5714     mv "conftest.tmp" "conftest.in"
5715     cp "conftest.in" "conftest.nl"
5716     $as_echo '' >> "conftest.nl"
5717     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5719     ac_count=`expr $ac_count + 1`
5720     if test $ac_count -gt ${ac_path_SED_max-0}; then
5721       # Best one so far, save it but keep looking for a better one
5722       ac_cv_path_SED="$ac_path_SED"
5723       ac_path_SED_max=$ac_count
5724     fi
5725     # 10*(2^10) chars as input seems more than enough
5726     test $ac_count -gt 10 && break
5727   done
5728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 esac
5730
5731       $ac_path_SED_found && break 3
5732     done
5733   done
5734 done
5735 IFS=$as_save_IFS
5736   if test -z "$ac_cv_path_SED"; then
5737     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5738 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5739    { (exit 1); exit 1; }; }
5740   fi
5741 else
5742   ac_cv_path_SED=$SED
5743 fi
5744
5745 fi
5746 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5747 $as_echo "$ac_cv_path_SED" >&6; }
5748  SED="$ac_cv_path_SED"
5749   rm -f conftest.sed
5750
5751 test -z "$SED" && SED=sed
5752 Xsed="$SED -e 1s/^X//"
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5765 $as_echo_n "checking for fgrep... " >&6; }
5766 if test "${ac_cv_path_FGREP+set}" = set; then
5767   $as_echo_n "(cached) " >&6
5768 else
5769   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5770    then ac_cv_path_FGREP="$GREP -F"
5771    else
5772      if test -z "$FGREP"; then
5773   ac_path_FGREP_found=false
5774   # Loop through the user's path and test for each of PROGNAME-LIST
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_prog in fgrep; do
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5783       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5784 # Check for GNU ac_path_FGREP and select it if it is found.
5785   # Check for GNU $ac_path_FGREP
5786 case `"$ac_path_FGREP" --version 2>&1` in
5787 *GNU*)
5788   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5789 *)
5790   ac_count=0
5791   $as_echo_n 0123456789 >"conftest.in"
5792   while :
5793   do
5794     cat "conftest.in" "conftest.in" >"conftest.tmp"
5795     mv "conftest.tmp" "conftest.in"
5796     cp "conftest.in" "conftest.nl"
5797     $as_echo 'FGREP' >> "conftest.nl"
5798     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800     ac_count=`expr $ac_count + 1`
5801     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5802       # Best one so far, save it but keep looking for a better one
5803       ac_cv_path_FGREP="$ac_path_FGREP"
5804       ac_path_FGREP_max=$ac_count
5805     fi
5806     # 10*(2^10) chars as input seems more than enough
5807     test $ac_count -gt 10 && break
5808   done
5809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 esac
5811
5812       $ac_path_FGREP_found && break 3
5813     done
5814   done
5815 done
5816 IFS=$as_save_IFS
5817   if test -z "$ac_cv_path_FGREP"; then
5818     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5819 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5820    { (exit 1); exit 1; }; }
5821   fi
5822 else
5823   ac_cv_path_FGREP=$FGREP
5824 fi
5825
5826    fi
5827 fi
5828 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5829 $as_echo "$ac_cv_path_FGREP" >&6; }
5830  FGREP="$ac_cv_path_FGREP"
5831
5832
5833 test -z "$GREP" && GREP=grep
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 # Check whether --with-gnu-ld was given.
5854 if test "${with_gnu_ld+set}" = set; then
5855   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5856 else
5857   with_gnu_ld=no
5858 fi
5859
5860 ac_prog=ld
5861 if test "$GCC" = yes; then
5862   # Check if gcc -print-prog-name=ld gives a path.
5863   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5864 $as_echo_n "checking for ld used by $CC... " >&6; }
5865   case $host in
5866   *-*-mingw*)
5867     # gcc leaves a trailing carriage return which upsets mingw
5868     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5869   *)
5870     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5871   esac
5872   case $ac_prog in
5873     # Accept absolute paths.
5874     [\\/]* | ?:[\\/]*)
5875       re_direlt='/[^/][^/]*/\.\./'
5876       # Canonicalize the pathname of ld
5877       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5878       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5879         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5880       done
5881       test -z "$LD" && LD="$ac_prog"
5882       ;;
5883   "")
5884     # If it fails, then pretend we aren't using GCC.
5885     ac_prog=ld
5886     ;;
5887   *)
5888     # If it is relative, then search for the first ld in PATH.
5889     with_gnu_ld=unknown
5890     ;;
5891   esac
5892 elif test "$with_gnu_ld" = yes; then
5893   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5894 $as_echo_n "checking for GNU ld... " >&6; }
5895 else
5896   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5897 $as_echo_n "checking for non-GNU ld... " >&6; }
5898 fi
5899 if test "${lt_cv_path_LD+set}" = set; then
5900   $as_echo_n "(cached) " >&6
5901 else
5902   if test -z "$LD"; then
5903   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5904   for ac_dir in $PATH; do
5905     IFS="$lt_save_ifs"
5906     test -z "$ac_dir" && ac_dir=.
5907     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5908       lt_cv_path_LD="$ac_dir/$ac_prog"
5909       # Check to see if the program is GNU ld.  I'd rather use --version,
5910       # but apparently some variants of GNU ld only accept -v.
5911       # Break only if it was the GNU/non-GNU ld that we prefer.
5912       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5913       *GNU* | *'with BFD'*)
5914         test "$with_gnu_ld" != no && break
5915         ;;
5916       *)
5917         test "$with_gnu_ld" != yes && break
5918         ;;
5919       esac
5920     fi
5921   done
5922   IFS="$lt_save_ifs"
5923 else
5924   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5925 fi
5926 fi
5927
5928 LD="$lt_cv_path_LD"
5929 if test -n "$LD"; then
5930   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5931 $as_echo "$LD" >&6; }
5932 else
5933   { $as_echo "$as_me:$LINENO: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5937 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5938    { (exit 1); exit 1; }; }
5939 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5940 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5941 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5942   $as_echo_n "(cached) " >&6
5943 else
5944   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5945 case `$LD -v 2>&1 </dev/null` in
5946 *GNU* | *'with BFD'*)
5947   lt_cv_prog_gnu_ld=yes
5948   ;;
5949 *)
5950   lt_cv_prog_gnu_ld=no
5951   ;;
5952 esac
5953 fi
5954 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5955 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5956 with_gnu_ld=$lt_cv_prog_gnu_ld
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5967 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5968 if test "${lt_cv_path_NM+set}" = set; then
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$NM"; then
5972   # Let the user override the test.
5973   lt_cv_path_NM="$NM"
5974 else
5975   lt_nm_to_check="${ac_tool_prefix}nm"
5976   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5977     lt_nm_to_check="$lt_nm_to_check nm"
5978   fi
5979   for lt_tmp_nm in $lt_nm_to_check; do
5980     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5982       IFS="$lt_save_ifs"
5983       test -z "$ac_dir" && ac_dir=.
5984       tmp_nm="$ac_dir/$lt_tmp_nm"
5985       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5986         # Check to see if the nm accepts a BSD-compat flag.
5987         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5988         #   nm: unknown option "B" ignored
5989         # Tru64's nm complains that /dev/null is an invalid object file
5990         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5991         */dev/null* | *'Invalid file or object type'*)
5992           lt_cv_path_NM="$tmp_nm -B"
5993           break
5994           ;;
5995         *)
5996           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5997           */dev/null*)
5998             lt_cv_path_NM="$tmp_nm -p"
5999             break
6000             ;;
6001           *)
6002             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6003             continue # so that we can try to find one that supports BSD flags
6004             ;;
6005           esac
6006           ;;
6007         esac
6008       fi
6009     done
6010     IFS="$lt_save_ifs"
6011   done
6012   : ${lt_cv_path_NM=no}
6013 fi
6014 fi
6015 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6016 $as_echo "$lt_cv_path_NM" >&6; }
6017 if test "$lt_cv_path_NM" != "no"; then
6018   NM="$lt_cv_path_NM"
6019 else
6020   # Didn't find any BSD compatible name lister, look for dumpbin.
6021   if test -n "$ac_tool_prefix"; then
6022   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6023   do
6024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$DUMPBIN"; then
6032   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6042     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 DUMPBIN=$ac_cv_prog_DUMPBIN
6052 if test -n "$DUMPBIN"; then
6053   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6054 $as_echo "$DUMPBIN" >&6; }
6055 else
6056   { $as_echo "$as_me:$LINENO: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060
6061     test -n "$DUMPBIN" && break
6062   done
6063 fi
6064 if test -z "$DUMPBIN"; then
6065   ac_ct_DUMPBIN=$DUMPBIN
6066   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6067 do
6068   # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$ac_ct_DUMPBIN"; then
6076   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083   for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6086     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6096 if test -n "$ac_ct_DUMPBIN"; then
6097   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6098 $as_echo "$ac_ct_DUMPBIN" >&6; }
6099 else
6100   { $as_echo "$as_me:$LINENO: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105   test -n "$ac_ct_DUMPBIN" && break
6106 done
6107
6108   if test "x$ac_ct_DUMPBIN" = x; then
6109     DUMPBIN=":"
6110   else
6111     case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     DUMPBIN=$ac_ct_DUMPBIN
6118   fi
6119 fi
6120
6121
6122   if test "$DUMPBIN" != ":"; then
6123     NM="$DUMPBIN"
6124   fi
6125 fi
6126 test -z "$NM" && NM=nm
6127
6128
6129
6130
6131
6132
6133 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6134 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6135 if test "${lt_cv_nm_interface+set}" = set; then
6136   $as_echo_n "(cached) " >&6
6137 else
6138   lt_cv_nm_interface="BSD nm"
6139   echo "int some_variable = 0;" > conftest.$ac_ext
6140   (eval echo "\"\$as_me:6140: $ac_compile\"" >&5)
6141   (eval "$ac_compile" 2>conftest.err)
6142   cat conftest.err >&5
6143   (eval echo "\"\$as_me:6143: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6144   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6145   cat conftest.err >&5
6146   (eval echo "\"\$as_me:6146: output\"" >&5)
6147   cat conftest.out >&5
6148   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6149     lt_cv_nm_interface="MS dumpbin"
6150   fi
6151   rm -f conftest*
6152 fi
6153 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6154 $as_echo "$lt_cv_nm_interface" >&6; }
6155
6156 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6157 $as_echo_n "checking whether ln -s works... " >&6; }
6158 LN_S=$as_ln_s
6159 if test "$LN_S" = "ln -s"; then
6160   { $as_echo "$as_me:$LINENO: result: yes" >&5
6161 $as_echo "yes" >&6; }
6162 else
6163   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6164 $as_echo "no, using $LN_S" >&6; }
6165 fi
6166
6167 # find the maximum length of command line arguments
6168 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6169 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6170 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6171   $as_echo_n "(cached) " >&6
6172 else
6173     i=0
6174   teststring="ABCD"
6175
6176   case $build_os in
6177   msdosdjgpp*)
6178     # On DJGPP, this test can blow up pretty badly due to problems in libc
6179     # (any single argument exceeding 2000 bytes causes a buffer overrun
6180     # during glob expansion).  Even if it were fixed, the result of this
6181     # check would be larger than it should be.
6182     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6183     ;;
6184
6185   gnu*)
6186     # Under GNU Hurd, this test is not required because there is
6187     # no limit to the length of command line arguments.
6188     # Libtool will interpret -1 as no limit whatsoever
6189     lt_cv_sys_max_cmd_len=-1;
6190     ;;
6191
6192   cygwin* | mingw* | cegcc*)
6193     # On Win9x/ME, this test blows up -- it succeeds, but takes
6194     # about 5 minutes as the teststring grows exponentially.
6195     # Worse, since 9x/ME are not pre-emptively multitasking,
6196     # you end up with a "frozen" computer, even though with patience
6197     # the test eventually succeeds (with a max line length of 256k).
6198     # Instead, let's just punt: use the minimum linelength reported by
6199     # all of the supported platforms: 8192 (on NT/2K/XP).
6200     lt_cv_sys_max_cmd_len=8192;
6201     ;;
6202
6203   amigaos*)
6204     # On AmigaOS with pdksh, this test takes hours, literally.
6205     # So we just punt and use a minimum line length of 8192.
6206     lt_cv_sys_max_cmd_len=8192;
6207     ;;
6208
6209   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6210     # This has been around since 386BSD, at least.  Likely further.
6211     if test -x /sbin/sysctl; then
6212       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6213     elif test -x /usr/sbin/sysctl; then
6214       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6215     else
6216       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6217     fi
6218     # And add a safety zone
6219     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6220     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6221     ;;
6222
6223   interix*)
6224     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6225     lt_cv_sys_max_cmd_len=196608
6226     ;;
6227
6228   osf*)
6229     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6230     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6231     # nice to cause kernel panics so lets avoid the loop below.
6232     # First set a reasonable default.
6233     lt_cv_sys_max_cmd_len=16384
6234     #
6235     if test -x /sbin/sysconfig; then
6236       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6237         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6238       esac
6239     fi
6240     ;;
6241   sco3.2v5*)
6242     lt_cv_sys_max_cmd_len=102400
6243     ;;
6244   sysv5* | sco5v6* | sysv4.2uw2*)
6245     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6246     if test -n "$kargmax"; then
6247       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6248     else
6249       lt_cv_sys_max_cmd_len=32768
6250     fi
6251     ;;
6252   *)
6253     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6254     if test -n "$lt_cv_sys_max_cmd_len"; then
6255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6256       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6257     else
6258       # Make teststring a little bigger before we do anything with it.
6259       # a 1K string should be a reasonable start.
6260       for i in 1 2 3 4 5 6 7 8 ; do
6261         teststring=$teststring$teststring
6262       done
6263       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6264       # If test is not a shell built-in, we'll probably end up computing a
6265       # maximum length that is only half of the actual maximum length, but
6266       # we can't tell.
6267       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6268                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6269               test $i != 17 # 1/2 MB should be enough
6270       do
6271         i=`expr $i + 1`
6272         teststring=$teststring$teststring
6273       done
6274       # Only check the string length outside the loop.
6275       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6276       teststring=
6277       # Add a significant safety factor because C++ compilers can tack on
6278       # massive amounts of additional arguments before passing them to the
6279       # linker.  It appears as though 1/2 is a usable value.
6280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6281     fi
6282     ;;
6283   esac
6284
6285 fi
6286
6287 if test -n $lt_cv_sys_max_cmd_len ; then
6288   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6289 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6290 else
6291   { $as_echo "$as_me:$LINENO: result: none" >&5
6292 $as_echo "none" >&6; }
6293 fi
6294 max_cmd_len=$lt_cv_sys_max_cmd_len
6295
6296
6297
6298
6299
6300
6301 : ${CP="cp -f"}
6302 : ${MV="mv -f"}
6303 : ${RM="rm -f"}
6304
6305 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6306 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6307 # Try some XSI features
6308 xsi_shell=no
6309 ( _lt_dummy="a/b/c"
6310   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6311       = c,a/b,, \
6312     && eval 'test $(( 1 + 1 )) -eq 2 \
6313     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6314   && xsi_shell=yes
6315 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6316 $as_echo "$xsi_shell" >&6; }
6317
6318
6319 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6320 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6321 lt_shell_append=no
6322 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6323     >/dev/null 2>&1 \
6324   && lt_shell_append=yes
6325 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6326 $as_echo "$lt_shell_append" >&6; }
6327
6328
6329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6330   lt_unset=unset
6331 else
6332   lt_unset=false
6333 fi
6334
6335
6336
6337
6338
6339 # test EBCDIC or ASCII
6340 case `echo X|tr X '\101'` in
6341  A) # ASCII based system
6342     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6343   lt_SP2NL='tr \040 \012'
6344   lt_NL2SP='tr \015\012 \040\040'
6345   ;;
6346  *) # EBCDIC based system
6347   lt_SP2NL='tr \100 \n'
6348   lt_NL2SP='tr \r\n \100\100'
6349   ;;
6350 esac
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6361 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6362 if test "${lt_cv_ld_reload_flag+set}" = set; then
6363   $as_echo_n "(cached) " >&6
6364 else
6365   lt_cv_ld_reload_flag='-r'
6366 fi
6367 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6368 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6369 reload_flag=$lt_cv_ld_reload_flag
6370 case $reload_flag in
6371 "" | " "*) ;;
6372 *) reload_flag=" $reload_flag" ;;
6373 esac
6374 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375 case $host_os in
6376   darwin*)
6377     if test "$GCC" = yes; then
6378       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6379     else
6380       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6381     fi
6382     ;;
6383 esac
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393 if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$OBJDUMP"; then
6402   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6412     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 OBJDUMP=$ac_cv_prog_OBJDUMP
6422 if test -n "$OBJDUMP"; then
6423   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6424 $as_echo "$OBJDUMP" >&6; }
6425 else
6426   { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_OBJDUMP"; then
6433   ac_ct_OBJDUMP=$OBJDUMP
6434   # Extract the first word of "objdump", so it can be a program name with args.
6435 set dummy objdump; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_OBJDUMP"; then
6442   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6462 if test -n "$ac_ct_OBJDUMP"; then
6463   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6464 $as_echo "$ac_ct_OBJDUMP" >&6; }
6465 else
6466   { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_OBJDUMP" = x; then
6471     OBJDUMP="false"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     OBJDUMP=$ac_ct_OBJDUMP
6480   fi
6481 else
6482   OBJDUMP="$ac_cv_prog_OBJDUMP"
6483 fi
6484
6485 test -z "$OBJDUMP" && OBJDUMP=objdump
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6496 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6497 if test "${lt_cv_deplibs_check_method+set}" = set; then
6498   $as_echo_n "(cached) " >&6
6499 else
6500   lt_cv_file_magic_cmd='$MAGIC_CMD'
6501 lt_cv_file_magic_test_file=
6502 lt_cv_deplibs_check_method='unknown'
6503 # Need to set the preceding variable on all platforms that support
6504 # interlibrary dependencies.
6505 # 'none' -- dependencies not supported.
6506 # `unknown' -- same as none, but documents that we really don't know.
6507 # 'pass_all' -- all dependencies passed with no checks.
6508 # 'test_compile' -- check by making test program.
6509 # 'file_magic [[regex]]' -- check by looking for files in library path
6510 # which responds to the $file_magic_cmd with a given extended regex.
6511 # If you have `file' or equivalent on your system and you're not sure
6512 # whether `pass_all' will *always* work, you probably want this one.
6513
6514 case $host_os in
6515 aix[4-9]*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 beos*)
6520   lt_cv_deplibs_check_method=pass_all
6521   ;;
6522
6523 bsdi[45]*)
6524   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6525   lt_cv_file_magic_cmd='/usr/bin/file -L'
6526   lt_cv_file_magic_test_file=/shlib/libc.so
6527   ;;
6528
6529 cygwin*)
6530   # func_win32_libid is a shell function defined in ltmain.sh
6531   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532   lt_cv_file_magic_cmd='func_win32_libid'
6533   ;;
6534
6535 mingw* | pw32*)
6536   # Base MSYS/MinGW do not provide the 'file' command needed by
6537   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6538   # unless we find 'file', for example because we are cross-compiling.
6539   if ( file / ) >/dev/null 2>&1; then
6540     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541     lt_cv_file_magic_cmd='func_win32_libid'
6542   else
6543     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6544     lt_cv_file_magic_cmd='$OBJDUMP -f'
6545   fi
6546   ;;
6547
6548 cegcc)
6549   # use the weaker test based on 'objdump'. See mingw*.
6550   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6551   lt_cv_file_magic_cmd='$OBJDUMP -f'
6552   ;;
6553
6554 darwin* | rhapsody*)
6555   lt_cv_deplibs_check_method=pass_all
6556   ;;
6557
6558 freebsd* | dragonfly*)
6559   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6560     case $host_cpu in
6561     i*86 )
6562       # Not sure whether the presence of OpenBSD here was a mistake.
6563       # Let's accept both of them until this is cleared up.
6564       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6565       lt_cv_file_magic_cmd=/usr/bin/file
6566       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6567       ;;
6568     esac
6569   else
6570     lt_cv_deplibs_check_method=pass_all
6571   fi
6572   ;;
6573
6574 gnu*)
6575   lt_cv_deplibs_check_method=pass_all
6576   ;;
6577
6578 hpux10.20* | hpux11*)
6579   lt_cv_file_magic_cmd=/usr/bin/file
6580   case $host_cpu in
6581   ia64*)
6582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6584     ;;
6585   hppa*64*)
6586     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]'
6587     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6588     ;;
6589   *)
6590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6591     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592     ;;
6593   esac
6594   ;;
6595
6596 interix[3-9]*)
6597   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6599   ;;
6600
6601 irix5* | irix6* | nonstopux*)
6602   case $LD in
6603   *-32|*"-32 ") libmagic=32-bit;;
6604   *-n32|*"-n32 ") libmagic=N32;;
6605   *-64|*"-64 ") libmagic=64-bit;;
6606   *) libmagic=never-match;;
6607   esac
6608   lt_cv_deplibs_check_method=pass_all
6609   ;;
6610
6611 # This must be Linux ELF.
6612 linux* | k*bsd*-gnu)
6613   lt_cv_deplibs_check_method=pass_all
6614   ;;
6615
6616 netbsd*)
6617   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619   else
6620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621   fi
6622   ;;
6623
6624 newos6*)
6625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626   lt_cv_file_magic_cmd=/usr/bin/file
6627   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628   ;;
6629
6630 *nto* | *qnx*)
6631   lt_cv_deplibs_check_method=pass_all
6632   ;;
6633
6634 openbsd*)
6635   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637   else
6638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639   fi
6640   ;;
6641
6642 osf3* | osf4* | osf5*)
6643   lt_cv_deplibs_check_method=pass_all
6644   ;;
6645
6646 rdos*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649
6650 solaris*)
6651   lt_cv_deplibs_check_method=pass_all
6652   ;;
6653
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655   lt_cv_deplibs_check_method=pass_all
6656   ;;
6657
6658 sysv4 | sysv4.3*)
6659   case $host_vendor in
6660   motorola)
6661     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]'
6662     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6663     ;;
6664   ncr)
6665     lt_cv_deplibs_check_method=pass_all
6666     ;;
6667   sequent)
6668     lt_cv_file_magic_cmd='/bin/file'
6669     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6670     ;;
6671   sni)
6672     lt_cv_file_magic_cmd='/bin/file'
6673     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674     lt_cv_file_magic_test_file=/lib/libc.so
6675     ;;
6676   siemens)
6677     lt_cv_deplibs_check_method=pass_all
6678     ;;
6679   pc)
6680     lt_cv_deplibs_check_method=pass_all
6681     ;;
6682   esac
6683   ;;
6684
6685 tpf*)
6686   lt_cv_deplibs_check_method=pass_all
6687   ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 if test -n "$ac_tool_prefix"; then
6709   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}ar; ac_word=$2
6711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_AR+set}" = set; then
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$AR"; then
6717   ac_cv_prog_AR="$AR" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_AR="${ac_tool_prefix}ar"
6727     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 AR=$ac_cv_prog_AR
6737 if test -n "$AR"; then
6738   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6739 $as_echo "$AR" >&6; }
6740 else
6741   { $as_echo "$as_me:$LINENO: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745
6746 fi
6747 if test -z "$ac_cv_prog_AR"; then
6748   ac_ct_AR=$AR
6749   # Extract the first word of "ar", so it can be a program name with args.
6750 set dummy ar; ac_word=$2
6751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6754   $as_echo_n "(cached) " >&6
6755 else
6756   if test -n "$ac_ct_AR"; then
6757   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_prog_ac_ct_AR="ar"
6767     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777 if test -n "$ac_ct_AR"; then
6778   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6779 $as_echo "$ac_ct_AR" >&6; }
6780 else
6781   { $as_echo "$as_me:$LINENO: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785   if test "x$ac_ct_AR" = x; then
6786     AR="false"
6787   else
6788     case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6793 esac
6794     AR=$ac_ct_AR
6795   fi
6796 else
6797   AR="$ac_cv_prog_AR"
6798 fi
6799
6800 test -z "$AR" && AR=ar
6801 test -z "$AR_FLAGS" && AR_FLAGS=cru
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_STRIP+set}" = set; then
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$STRIP"; then
6822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6844 $as_echo "$STRIP" >&6; }
6845 else
6846   { $as_echo "$as_me:$LINENO: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_STRIP"; then
6853   ac_ct_STRIP=$STRIP
6854   # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$ac_ct_STRIP"; then
6862   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_ac_ct_STRIP="strip"
6872     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6884 $as_echo "$ac_ct_STRIP" >&6; }
6885 else
6886   { $as_echo "$as_me:$LINENO: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_STRIP" = x; then
6891     STRIP=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899     STRIP=$ac_ct_STRIP
6900   fi
6901 else
6902   STRIP="$ac_cv_prog_STRIP"
6903 fi
6904
6905 test -z "$STRIP" && STRIP=:
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_RANLIB+set}" = set; then
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$RANLIB"; then
6921   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6943 $as_echo "$RANLIB" >&6; }
6944 else
6945   { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952   ac_ct_RANLIB=$RANLIB
6953   # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_RANLIB"; then
6961   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968   for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_ac_ct_RANLIB="ranlib"
6971     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6983 $as_echo "$ac_ct_RANLIB" >&6; }
6984 else
6985   { $as_echo "$as_me:$LINENO: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_RANLIB" = x; then
6990     RANLIB=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     RANLIB=$ac_ct_RANLIB
6999   fi
7000 else
7001   RANLIB="$ac_cv_prog_RANLIB"
7002 fi
7003
7004 test -z "$RANLIB" && RANLIB=:
7005
7006
7007
7008
7009
7010
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7015
7016 if test -n "$RANLIB"; then
7017   case $host_os in
7018   openbsd*)
7019     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7020     ;;
7021   *)
7022     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7023     ;;
7024   esac
7025   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7026 fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 # If no C compiler was specified, use CC.
7062 LTCC=${LTCC-"$CC"}
7063
7064 # If no C compiler flags were specified, use CFLAGS.
7065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7066
7067 # Allow CC to be a program name with arguments.
7068 compiler=$CC
7069
7070
7071 # Check for command to grab the raw symbol name followed by C symbol from nm.
7072 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7073 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7074 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7075   $as_echo_n "(cached) " >&6
7076 else
7077
7078 # These are sane defaults that work on at least a few old systems.
7079 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7080
7081 # Character class describing NM global symbol codes.
7082 symcode='[BCDEGRST]'
7083
7084 # Regexp to match symbols that can be accessed directly from C.
7085 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7086
7087 # Define system-specific variables.
7088 case $host_os in
7089 aix*)
7090   symcode='[BCDT]'
7091   ;;
7092 cygwin* | mingw* | pw32* | cegcc*)
7093   symcode='[ABCDGISTW]'
7094   ;;
7095 hpux*)
7096   if test "$host_cpu" = ia64; then
7097     symcode='[ABCDEGRST]'
7098   fi
7099   ;;
7100 irix* | nonstopux*)
7101   symcode='[BCDEGRST]'
7102   ;;
7103 osf*)
7104   symcode='[BCDEGQRST]'
7105   ;;
7106 solaris*)
7107   symcode='[BDRT]'
7108   ;;
7109 sco3.2v5*)
7110   symcode='[DT]'
7111   ;;
7112 sysv4.2uw2*)
7113   symcode='[DT]'
7114   ;;
7115 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7116   symcode='[ABDT]'
7117   ;;
7118 sysv4)
7119   symcode='[DFNSTU]'
7120   ;;
7121 esac
7122
7123 # If we're using GNU nm, then use its standard symbol codes.
7124 case `$NM -V 2>&1` in
7125 *GNU* | *'with BFD'*)
7126   symcode='[ABCDGIRSTW]' ;;
7127 esac
7128
7129 # Transform an extracted symbol line into a proper C declaration.
7130 # Some systems (esp. on ia64) link data and code symbols differently,
7131 # so use this general approach.
7132 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7133
7134 # Transform an extracted symbol line into symbol name and symbol address
7135 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7136 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'"
7137
7138 # Handle CRLF in mingw tool chain
7139 opt_cr=
7140 case $build_os in
7141 mingw*)
7142   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7143   ;;
7144 esac
7145
7146 # Try without a prefix underscore, then with it.
7147 for ac_symprfx in "" "_"; do
7148
7149   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7150   symxfrm="\\1 $ac_symprfx\\2 \\2"
7151
7152   # Write the raw and C identifiers.
7153   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7154     # Fake it for dumpbin and say T for any non-static function
7155     # and D for any global variable.
7156     # Also find C++ and __fastcall symbols from MSVC++,
7157     # which start with @ or ?.
7158     lt_cv_sys_global_symbol_pipe="$AWK '"\
7159 "     {last_section=section; section=\$ 3};"\
7160 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7161 "     \$ 0!~/External *\|/{next};"\
7162 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7163 "     {if(hide[section]) next};"\
7164 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7165 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7166 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7167 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7168 "     ' prfx=^$ac_symprfx"
7169   else
7170     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7171   fi
7172
7173   # Check to see that the pipe works correctly.
7174   pipe_works=no
7175
7176   rm -f conftest*
7177   cat > conftest.$ac_ext <<_LT_EOF
7178 #ifdef __cplusplus
7179 extern "C" {
7180 #endif
7181 char nm_test_var;
7182 void nm_test_func(void);
7183 void nm_test_func(void){}
7184 #ifdef __cplusplus
7185 }
7186 #endif
7187 int main(){nm_test_var='a';nm_test_func();return(0);}
7188 _LT_EOF
7189
7190   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191   (eval $ac_compile) 2>&5
7192   ac_status=$?
7193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; then
7195     # Now try to grab the symbols.
7196     nlist=conftest.nm
7197     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7198   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7199   ac_status=$?
7200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } && test -s "$nlist"; then
7202       # Try sorting and uniquifying the output.
7203       if sort "$nlist" | uniq > "$nlist"T; then
7204         mv -f "$nlist"T "$nlist"
7205       else
7206         rm -f "$nlist"T
7207       fi
7208
7209       # Make sure that we snagged all the symbols we need.
7210       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7211         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7212           cat <<_LT_EOF > conftest.$ac_ext
7213 #ifdef __cplusplus
7214 extern "C" {
7215 #endif
7216
7217 _LT_EOF
7218           # Now generate the symbol file.
7219           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7220
7221           cat <<_LT_EOF >> conftest.$ac_ext
7222
7223 /* The mapping between symbol names and symbols.  */
7224 const struct {
7225   const char *name;
7226   void       *address;
7227 }
7228 lt__PROGRAM__LTX_preloaded_symbols[] =
7229 {
7230   { "@PROGRAM@", (void *) 0 },
7231 _LT_EOF
7232           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7233           cat <<\_LT_EOF >> conftest.$ac_ext
7234   {0, (void *) 0}
7235 };
7236
7237 /* This works around a problem in FreeBSD linker */
7238 #ifdef FREEBSD_WORKAROUND
7239 static const void *lt_preloaded_setup() {
7240   return lt__PROGRAM__LTX_preloaded_symbols;
7241 }
7242 #endif
7243
7244 #ifdef __cplusplus
7245 }
7246 #endif
7247 _LT_EOF
7248           # Now try linking the two files.
7249           mv conftest.$ac_objext conftstm.$ac_objext
7250           lt_save_LIBS="$LIBS"
7251           lt_save_CFLAGS="$CFLAGS"
7252           LIBS="conftstm.$ac_objext"
7253           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7254           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255   (eval $ac_link) 2>&5
7256   ac_status=$?
7257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7259             pipe_works=yes
7260           fi
7261           LIBS="$lt_save_LIBS"
7262           CFLAGS="$lt_save_CFLAGS"
7263         else
7264           echo "cannot find nm_test_func in $nlist" >&5
7265         fi
7266       else
7267         echo "cannot find nm_test_var in $nlist" >&5
7268       fi
7269     else
7270       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7271     fi
7272   else
7273     echo "$progname: failed program was:" >&5
7274     cat conftest.$ac_ext >&5
7275   fi
7276   rm -rf conftest* conftst*
7277
7278   # Do not use the global_symbol_pipe unless it works.
7279   if test "$pipe_works" = yes; then
7280     break
7281   else
7282     lt_cv_sys_global_symbol_pipe=
7283   fi
7284 done
7285
7286 fi
7287
7288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7289   lt_cv_sys_global_symbol_to_cdecl=
7290 fi
7291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7292   { $as_echo "$as_me:$LINENO: result: failed" >&5
7293 $as_echo "failed" >&6; }
7294 else
7295   { $as_echo "$as_me:$LINENO: result: ok" >&5
7296 $as_echo "ok" >&6; }
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 # Check whether --enable-libtool-lock was given.
7321 if test "${enable_libtool_lock+set}" = set; then
7322   enableval=$enable_libtool_lock;
7323 fi
7324
7325 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7326
7327 # Some flags need to be propagated to the compiler or linker for good
7328 # libtool support.
7329 case $host in
7330 ia64-*-hpux*)
7331   # Find out which ABI we are using.
7332   echo 'int i;' > conftest.$ac_ext
7333   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334   (eval $ac_compile) 2>&5
7335   ac_status=$?
7336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; then
7338     case `/usr/bin/file conftest.$ac_objext` in
7339       *ELF-32*)
7340         HPUX_IA64_MODE="32"
7341         ;;
7342       *ELF-64*)
7343         HPUX_IA64_MODE="64"
7344         ;;
7345     esac
7346   fi
7347   rm -rf conftest*
7348   ;;
7349 *-*-irix6*)
7350   # Find out which ABI we are using.
7351   echo '#line 7351 "configure"' > conftest.$ac_ext
7352   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353   (eval $ac_compile) 2>&5
7354   ac_status=$?
7355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; then
7357     if test "$lt_cv_prog_gnu_ld" = yes; then
7358       case `/usr/bin/file conftest.$ac_objext` in
7359         *32-bit*)
7360           LD="${LD-ld} -melf32bsmip"
7361           ;;
7362         *N32*)
7363           LD="${LD-ld} -melf32bmipn32"
7364           ;;
7365         *64-bit*)
7366           LD="${LD-ld} -melf64bmip"
7367         ;;
7368       esac
7369     else
7370       case `/usr/bin/file conftest.$ac_objext` in
7371         *32-bit*)
7372           LD="${LD-ld} -32"
7373           ;;
7374         *N32*)
7375           LD="${LD-ld} -n32"
7376           ;;
7377         *64-bit*)
7378           LD="${LD-ld} -64"
7379           ;;
7380       esac
7381     fi
7382   fi
7383   rm -rf conftest*
7384   ;;
7385
7386 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7387 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7388   # Find out which ABI we are using.
7389   echo 'int i;' > conftest.$ac_ext
7390   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391   (eval $ac_compile) 2>&5
7392   ac_status=$?
7393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }; then
7395     case `/usr/bin/file conftest.o` in
7396       *32-bit*)
7397         case $host in
7398           x86_64-*kfreebsd*-gnu)
7399             LD="${LD-ld} -m elf_i386_fbsd"
7400             ;;
7401           x86_64-*linux*)
7402             LD="${LD-ld} -m elf_i386"
7403             ;;
7404           ppc64-*linux*|powerpc64-*linux*)
7405             LD="${LD-ld} -m elf32ppclinux"
7406             ;;
7407           s390x-*linux*)
7408             LD="${LD-ld} -m elf_s390"
7409             ;;
7410           sparc64-*linux*)
7411             LD="${LD-ld} -m elf32_sparc"
7412             ;;
7413         esac
7414         ;;
7415       *64-bit*)
7416         case $host in
7417           x86_64-*kfreebsd*-gnu)
7418             LD="${LD-ld} -m elf_x86_64_fbsd"
7419             ;;
7420           x86_64-*linux*)
7421             LD="${LD-ld} -m elf_x86_64"
7422             ;;
7423           ppc*-*linux*|powerpc*-*linux*)
7424             LD="${LD-ld} -m elf64ppc"
7425             ;;
7426           s390*-*linux*|s390*-*tpf*)
7427             LD="${LD-ld} -m elf64_s390"
7428             ;;
7429           sparc*-*linux*)
7430             LD="${LD-ld} -m elf64_sparc"
7431             ;;
7432         esac
7433         ;;
7434     esac
7435   fi
7436   rm -rf conftest*
7437   ;;
7438
7439 *-*-sco3.2v5*)
7440   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7441   SAVE_CFLAGS="$CFLAGS"
7442   CFLAGS="$CFLAGS -belf"
7443   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7444 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7445 if test "${lt_cv_cc_needs_belf+set}" = set; then
7446   $as_echo_n "(cached) " >&6
7447 else
7448   ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454      cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460
7461 int
7462 main ()
7463 {
7464
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (ac_try="$ac_link"
7471 case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477   (eval "$ac_link") 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } && {
7484          test -z "$ac_c_werror_flag" ||
7485          test ! -s conftest.err
7486        } && test -s conftest$ac_exeext && {
7487          test "$cross_compiling" = yes ||
7488          $as_test_x conftest$ac_exeext
7489        }; then
7490   lt_cv_cc_needs_belf=yes
7491 else
7492   $as_echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495         lt_cv_cc_needs_belf=no
7496 fi
7497
7498 rm -rf conftest.dSYM
7499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7500       conftest$ac_exeext conftest.$ac_ext
7501      ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507 fi
7508 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7509 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7512     CFLAGS="$SAVE_CFLAGS"
7513   fi
7514   ;;
7515 sparc*-*solaris*)
7516   # Find out which ABI we are using.
7517   echo 'int i;' > conftest.$ac_ext
7518   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>&5
7520   ac_status=$?
7521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; then
7523     case `/usr/bin/file conftest.o` in
7524     *64-bit*)
7525       case $lt_cv_prog_gnu_ld in
7526       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7527       *)
7528         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7529           LD="${LD-ld} -64"
7530         fi
7531         ;;
7532       esac
7533       ;;
7534     esac
7535   fi
7536   rm -rf conftest*
7537   ;;
7538 esac
7539
7540 need_locks="$enable_libtool_lock"
7541
7542
7543   case $host_os in
7544     rhapsody* | darwin*)
7545     if test -n "$ac_tool_prefix"; then
7546   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7551   $as_echo_n "(cached) " >&6
7552 else
7553   if test -n "$DSYMUTIL"; then
7554   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7574 if test -n "$DSYMUTIL"; then
7575   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7576 $as_echo "$DSYMUTIL" >&6; }
7577 else
7578   { $as_echo "$as_me:$LINENO: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_DSYMUTIL"; then
7585   ac_ct_DSYMUTIL=$DSYMUTIL
7586   # Extract the first word of "dsymutil", so it can be a program name with args.
7587 set dummy dsymutil; ac_word=$2
7588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if test -n "$ac_ct_DSYMUTIL"; then
7594   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7604     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7614 if test -n "$ac_ct_DSYMUTIL"; then
7615   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7616 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7617 else
7618   { $as_echo "$as_me:$LINENO: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622   if test "x$ac_ct_DSYMUTIL" = x; then
7623     DSYMUTIL=":"
7624   else
7625     case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631     DSYMUTIL=$ac_ct_DSYMUTIL
7632   fi
7633 else
7634   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7635 fi
7636
7637     if test -n "$ac_tool_prefix"; then
7638   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7639 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$NMEDIT"; then
7646   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653   for ac_exec_ext in '' $ac_executable_extensions; do
7654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 NMEDIT=$ac_cv_prog_NMEDIT
7666 if test -n "$NMEDIT"; then
7667   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7668 $as_echo "$NMEDIT" >&6; }
7669 else
7670   { $as_echo "$as_me:$LINENO: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 fi
7676 if test -z "$ac_cv_prog_NMEDIT"; then
7677   ac_ct_NMEDIT=$NMEDIT
7678   # Extract the first word of "nmedit", so it can be a program name with args.
7679 set dummy nmedit; ac_word=$2
7680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -n "$ac_ct_NMEDIT"; then
7686   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7696     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7706 if test -n "$ac_ct_NMEDIT"; then
7707   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7708 $as_echo "$ac_ct_NMEDIT" >&6; }
7709 else
7710   { $as_echo "$as_me:$LINENO: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714   if test "x$ac_ct_NMEDIT" = x; then
7715     NMEDIT=":"
7716   else
7717     case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723     NMEDIT=$ac_ct_NMEDIT
7724   fi
7725 else
7726   NMEDIT="$ac_cv_prog_NMEDIT"
7727 fi
7728
7729     if test -n "$ac_tool_prefix"; then
7730   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_LIPO+set}" = set; then
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$LIPO"; then
7738   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 LIPO=$ac_cv_prog_LIPO
7758 if test -n "$LIPO"; then
7759   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7760 $as_echo "$LIPO" >&6; }
7761 else
7762   { $as_echo "$as_me:$LINENO: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_LIPO"; then
7769   ac_ct_LIPO=$LIPO
7770   # Extract the first word of "lipo", so it can be a program name with args.
7771 set dummy lipo; ac_word=$2
7772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7775   $as_echo_n "(cached) " >&6
7776 else
7777   if test -n "$ac_ct_LIPO"; then
7778   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_prog_ac_ct_LIPO="lipo"
7788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7798 if test -n "$ac_ct_LIPO"; then
7799   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7800 $as_echo "$ac_ct_LIPO" >&6; }
7801 else
7802   { $as_echo "$as_me:$LINENO: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806   if test "x$ac_ct_LIPO" = x; then
7807     LIPO=":"
7808   else
7809     case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815     LIPO=$ac_ct_LIPO
7816   fi
7817 else
7818   LIPO="$ac_cv_prog_LIPO"
7819 fi
7820
7821     if test -n "$ac_tool_prefix"; then
7822   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7823 set dummy ${ac_tool_prefix}otool; ac_word=$2
7824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if test "${ac_cv_prog_OTOOL+set}" = set; then
7827   $as_echo_n "(cached) " >&6
7828 else
7829   if test -n "$OTOOL"; then
7830   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   test -z "$as_dir" && as_dir=.
7837   for ac_exec_ext in '' $ac_executable_extensions; do
7838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 OTOOL=$ac_cv_prog_OTOOL
7850 if test -n "$OTOOL"; then
7851   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7852 $as_echo "$OTOOL" >&6; }
7853 else
7854   { $as_echo "$as_me:$LINENO: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858
7859 fi
7860 if test -z "$ac_cv_prog_OTOOL"; then
7861   ac_ct_OTOOL=$OTOOL
7862   # Extract the first word of "otool", so it can be a program name with args.
7863 set dummy otool; ac_word=$2
7864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7867   $as_echo_n "(cached) " >&6
7868 else
7869   if test -n "$ac_ct_OTOOL"; then
7870   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875   IFS=$as_save_IFS
7876   test -z "$as_dir" && as_dir=.
7877   for ac_exec_ext in '' $ac_executable_extensions; do
7878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879     ac_cv_prog_ac_ct_OTOOL="otool"
7880     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881     break 2
7882   fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7890 if test -n "$ac_ct_OTOOL"; then
7891   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7892 $as_echo "$ac_ct_OTOOL" >&6; }
7893 else
7894   { $as_echo "$as_me:$LINENO: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898   if test "x$ac_ct_OTOOL" = x; then
7899     OTOOL=":"
7900   else
7901     case $cross_compiling:$ac_tool_warned in
7902 yes:)
7903 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905 ac_tool_warned=yes ;;
7906 esac
7907     OTOOL=$ac_ct_OTOOL
7908   fi
7909 else
7910   OTOOL="$ac_cv_prog_OTOOL"
7911 fi
7912
7913     if test -n "$ac_tool_prefix"; then
7914   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7919   $as_echo_n "(cached) " >&6
7920 else
7921   if test -n "$OTOOL64"; then
7922   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929   for ac_exec_ext in '' $ac_executable_extensions; do
7930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 OTOOL64=$ac_cv_prog_OTOOL64
7942 if test -n "$OTOOL64"; then
7943   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7944 $as_echo "$OTOOL64" >&6; }
7945 else
7946   { $as_echo "$as_me:$LINENO: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951 fi
7952 if test -z "$ac_cv_prog_OTOOL64"; then
7953   ac_ct_OTOOL64=$OTOOL64
7954   # Extract the first word of "otool64", so it can be a program name with args.
7955 set dummy otool64; ac_word=$2
7956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7959   $as_echo_n "(cached) " >&6
7960 else
7961   if test -n "$ac_ct_OTOOL64"; then
7962   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969   for ac_exec_ext in '' $ac_executable_extensions; do
7970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971     ac_cv_prog_ac_ct_OTOOL64="otool64"
7972     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7982 if test -n "$ac_ct_OTOOL64"; then
7983   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7984 $as_echo "$ac_ct_OTOOL64" >&6; }
7985 else
7986   { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990   if test "x$ac_ct_OTOOL64" = x; then
7991     OTOOL64=":"
7992   else
7993     case $cross_compiling:$ac_tool_warned in
7994 yes:)
7995 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999     OTOOL64=$ac_ct_OTOOL64
8000   fi
8001 else
8002   OTOOL64="$ac_cv_prog_OTOOL64"
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8032 $as_echo_n "checking for -single_module linker flag... " >&6; }
8033 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8034   $as_echo_n "(cached) " >&6
8035 else
8036   lt_cv_apple_cc_single_mod=no
8037       if test -z "${LT_MULTI_MODULE}"; then
8038         # By default we will add the -single_module flag. You can override
8039         # by either setting the environment variable LT_MULTI_MODULE
8040         # non-empty at configure time, or by adding -multi_module to the
8041         # link flags.
8042         rm -rf libconftest.dylib*
8043         echo "int foo(void){return 1;}" > conftest.c
8044         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045 -dynamiclib -Wl,-single_module conftest.c" >&5
8046         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8047           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8048         _lt_result=$?
8049         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8050           lt_cv_apple_cc_single_mod=yes
8051         else
8052           cat conftest.err >&5
8053         fi
8054         rm -rf libconftest.dylib*
8055         rm -f conftest.*
8056       fi
8057 fi
8058 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8059 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8060     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8061 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8062 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8063   $as_echo_n "(cached) " >&6
8064 else
8065   lt_cv_ld_exported_symbols_list=no
8066       save_LDFLAGS=$LDFLAGS
8067       echo "_main" > conftest.sym
8068       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8069       cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075
8076 int
8077 main ()
8078 {
8079
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (ac_try="$ac_link"
8086 case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8091 $as_echo "$ac_try_echo") >&5
8092   (eval "$ac_link") 2>conftest.er1
8093   ac_status=$?
8094   grep -v '^ *+' conftest.er1 >conftest.err
8095   rm -f conftest.er1
8096   cat conftest.err >&5
8097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); } && {
8099          test -z "$ac_c_werror_flag" ||
8100          test ! -s conftest.err
8101        } && test -s conftest$ac_exeext && {
8102          test "$cross_compiling" = yes ||
8103          $as_test_x conftest$ac_exeext
8104        }; then
8105   lt_cv_ld_exported_symbols_list=yes
8106 else
8107   $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110         lt_cv_ld_exported_symbols_list=no
8111 fi
8112
8113 rm -rf conftest.dSYM
8114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8115       conftest$ac_exeext conftest.$ac_ext
8116         LDFLAGS="$save_LDFLAGS"
8117
8118 fi
8119 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8120 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8121     case $host_os in
8122     rhapsody* | darwin1.[012])
8123       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8124     darwin1.*)
8125       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126     darwin*) # darwin 5.x on
8127       # if running on 10.5 or later, the deployment target defaults
8128       # to the OS version, if on x86, and 10.4, the deployment
8129       # target defaults to 10.4. Don't you love it?
8130       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8131         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8132           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133         10.[012]*)
8134           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8135         10.*)
8136           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8137       esac
8138     ;;
8139   esac
8140     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8141       _lt_dar_single_mod='$single_module'
8142     fi
8143     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8144       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8145     else
8146       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8147     fi
8148     if test "$DSYMUTIL" != ":"; then
8149       _lt_dsymutil='~$DSYMUTIL $lib || :'
8150     else
8151       _lt_dsymutil=
8152     fi
8153     ;;
8154   esac
8155
8156 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8157 $as_echo_n "checking for ANSI C header files... " >&6; }
8158 if test "${ac_cv_header_stdc+set}" = set; then
8159   $as_echo_n "(cached) " >&6
8160 else
8161   cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167 #include <stdlib.h>
8168 #include <stdarg.h>
8169 #include <string.h>
8170 #include <float.h>
8171
8172 int
8173 main ()
8174 {
8175
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 rm -f conftest.$ac_objext
8181 if { (ac_try="$ac_compile"
8182 case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188   (eval "$ac_compile") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } && {
8195          test -z "$ac_c_werror_flag" ||
8196          test ! -s conftest.err
8197        } && test -s conftest.$ac_objext; then
8198   ac_cv_header_stdc=yes
8199 else
8200   $as_echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         ac_cv_header_stdc=no
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207
8208 if test $ac_cv_header_stdc = yes; then
8209   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216 #include <string.h>
8217
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220   $EGREP "memchr" >/dev/null 2>&1; then
8221   :
8222 else
8223   ac_cv_header_stdc=no
8224 fi
8225 rm -f conftest*
8226
8227 fi
8228
8229 if test $ac_cv_header_stdc = yes; then
8230   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 #include <stdlib.h>
8238
8239 _ACEOF
8240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8241   $EGREP "free" >/dev/null 2>&1; then
8242   :
8243 else
8244   ac_cv_header_stdc=no
8245 fi
8246 rm -f conftest*
8247
8248 fi
8249
8250 if test $ac_cv_header_stdc = yes; then
8251   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8252   if test "$cross_compiling" = yes; then
8253   :
8254 else
8255   cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261 #include <ctype.h>
8262 #include <stdlib.h>
8263 #if ((' ' & 0x0FF) == 0x020)
8264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8266 #else
8267 # define ISLOWER(c) \
8268                    (('a' <= (c) && (c) <= 'i') \
8269                      || ('j' <= (c) && (c) <= 'r') \
8270                      || ('s' <= (c) && (c) <= 'z'))
8271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8272 #endif
8273
8274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8275 int
8276 main ()
8277 {
8278   int i;
8279   for (i = 0; i < 256; i++)
8280     if (XOR (islower (i), ISLOWER (i))
8281         || toupper (i) != TOUPPER (i))
8282       return 2;
8283   return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest$ac_exeext
8287 if { (ac_try="$ac_link"
8288 case "(($ac_try" in
8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290   *) ac_try_echo=$ac_try;;
8291 esac
8292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8293 $as_echo "$ac_try_echo") >&5
8294   (eval "$ac_link") 2>&5
8295   ac_status=$?
8296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298   { (case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8303 $as_echo "$ac_try_echo") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   :
8309 else
8310   $as_echo "$as_me: program exited with status $ac_status" >&5
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ( exit $ac_status )
8315 ac_cv_header_stdc=no
8316 fi
8317 rm -rf conftest.dSYM
8318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8319 fi
8320
8321
8322 fi
8323 fi
8324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8325 $as_echo "$ac_cv_header_stdc" >&6; }
8326 if test $ac_cv_header_stdc = yes; then
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define STDC_HEADERS 1
8330 _ACEOF
8331
8332 fi
8333
8334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8345                   inttypes.h stdint.h unistd.h
8346 do
8347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8348 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8349 $as_echo_n "checking for $ac_header... " >&6; }
8350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351   $as_echo_n "(cached) " >&6
8352 else
8353   cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359 $ac_includes_default
8360
8361 #include <$ac_header>
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8370 $as_echo "$ac_try_echo") >&5
8371   (eval "$ac_compile") 2>conftest.er1
8372   ac_status=$?
8373   grep -v '^ *+' conftest.er1 >conftest.err
8374   rm -f conftest.er1
8375   cat conftest.err >&5
8376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); } && {
8378          test -z "$ac_c_werror_flag" ||
8379          test ! -s conftest.err
8380        } && test -s conftest.$ac_objext; then
8381   eval "$as_ac_Header=yes"
8382 else
8383   $as_echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386         eval "$as_ac_Header=no"
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 ac_res=`eval 'as_val=${'$as_ac_Header'}
8392                  $as_echo "$as_val"'`
8393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8394 $as_echo "$ac_res" >&6; }
8395 as_val=`eval 'as_val=${'$as_ac_Header'}
8396                  $as_echo "$as_val"'`
8397    if test "x$as_val" = x""yes; then
8398   cat >>confdefs.h <<_ACEOF
8399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8400 _ACEOF
8401
8402 fi
8403
8404 done
8405
8406
8407
8408 for ac_header in dlfcn.h
8409 do
8410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8412 $as_echo_n "checking for $ac_header... " >&6; }
8413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8414   $as_echo_n "(cached) " >&6
8415 else
8416   cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422 $ac_includes_default
8423
8424 #include <$ac_header>
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && {
8441          test -z "$ac_c_werror_flag" ||
8442          test ! -s conftest.err
8443        } && test -s conftest.$ac_objext; then
8444   eval "$as_ac_Header=yes"
8445 else
8446   $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449         eval "$as_ac_Header=no"
8450 fi
8451
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454 ac_res=`eval 'as_val=${'$as_ac_Header'}
8455                  $as_echo "$as_val"'`
8456                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8457 $as_echo "$ac_res" >&6; }
8458 as_val=`eval 'as_val=${'$as_ac_Header'}
8459                  $as_echo "$as_val"'`
8460    if test "x$as_val" = x""yes; then
8461   cat >>confdefs.h <<_ACEOF
8462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8463 _ACEOF
8464
8465 fi
8466
8467 done
8468
8469
8470
8471 ac_ext=cpp
8472 ac_cpp='$CXXCPP $CPPFLAGS'
8473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8476 if test -z "$CXX"; then
8477   if test -n "$CCC"; then
8478     CXX=$CCC
8479   else
8480     if test -n "$ac_tool_prefix"; then
8481   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8482   do
8483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_CXX+set}" = set; then
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$CXX"; then
8491   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498   for ac_exec_ext in '' $ac_executable_extensions; do
8499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 CXX=$ac_cv_prog_CXX
8511 if test -n "$CXX"; then
8512   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8513 $as_echo "$CXX" >&6; }
8514 else
8515   { $as_echo "$as_me:$LINENO: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520     test -n "$CXX" && break
8521   done
8522 fi
8523 if test -z "$CXX"; then
8524   ac_ct_CXX=$CXX
8525   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8526 do
8527   # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8532   $as_echo_n "(cached) " >&6
8533 else
8534   if test -n "$ac_ct_CXX"; then
8535   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542   for ac_exec_ext in '' $ac_executable_extensions; do
8543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8544     ac_cv_prog_ac_ct_CXX="$ac_prog"
8545     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi
8553 fi
8554 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8555 if test -n "$ac_ct_CXX"; then
8556   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8557 $as_echo "$ac_ct_CXX" >&6; }
8558 else
8559   { $as_echo "$as_me:$LINENO: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563
8564   test -n "$ac_ct_CXX" && break
8565 done
8566
8567   if test "x$ac_ct_CXX" = x; then
8568     CXX="g++"
8569   else
8570     case $cross_compiling:$ac_tool_warned in
8571 yes:)
8572 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8575 esac
8576     CXX=$ac_ct_CXX
8577   fi
8578 fi
8579
8580   fi
8581 fi
8582 # Provide some information about the compiler.
8583 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8584 set X $ac_compile
8585 ac_compiler=$2
8586 { (ac_try="$ac_compiler --version >&5"
8587 case "(($ac_try" in
8588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589   *) ac_try_echo=$ac_try;;
8590 esac
8591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593   (eval "$ac_compiler --version >&5") 2>&5
8594   ac_status=$?
8595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }
8597 { (ac_try="$ac_compiler -v >&5"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604   (eval "$ac_compiler -v >&5") 2>&5
8605   ac_status=$?
8606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }
8608 { (ac_try="$ac_compiler -V >&5"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615   (eval "$ac_compiler -V >&5") 2>&5
8616   ac_status=$?
8617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }
8619
8620 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8621 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8623   $as_echo_n "(cached) " >&6
8624 else
8625   cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 int
8633 main ()
8634 {
8635 #ifndef __GNUC__
8636        choke me
8637 #endif
8638
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647   *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651   (eval "$ac_compile") 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } && {
8658          test -z "$ac_cxx_werror_flag" ||
8659          test ! -s conftest.err
8660        } && test -s conftest.$ac_objext; then
8661   ac_compiler_gnu=yes
8662 else
8663   $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666         ac_compiler_gnu=no
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8671
8672 fi
8673 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8674 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8675 if test $ac_compiler_gnu = yes; then
8676   GXX=yes
8677 else
8678   GXX=
8679 fi
8680 ac_test_CXXFLAGS=${CXXFLAGS+set}
8681 ac_save_CXXFLAGS=$CXXFLAGS
8682 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8683 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8684 if test "${ac_cv_prog_cxx_g+set}" = set; then
8685   $as_echo_n "(cached) " >&6
8686 else
8687   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8688    ac_cxx_werror_flag=yes
8689    ac_cv_prog_cxx_g=no
8690    CXXFLAGS="-g"
8691    cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 int
8699 main ()
8700 {
8701
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8713 $as_echo "$ac_try_echo") >&5
8714   (eval "$ac_compile") 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } && {
8721          test -z "$ac_cxx_werror_flag" ||
8722          test ! -s conftest.err
8723        } && test -s conftest.$ac_objext; then
8724   ac_cv_prog_cxx_g=yes
8725 else
8726   $as_echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729         CXXFLAGS=""
8730       cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h.  */
8736
8737 int
8738 main ()
8739 {
8740
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749   *) ac_try_echo=$ac_try;;
8750 esac
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753   (eval "$ac_compile") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } && {
8760          test -z "$ac_cxx_werror_flag" ||
8761          test ! -s conftest.err
8762        } && test -s conftest.$ac_objext; then
8763   :
8764 else
8765   $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8769          CXXFLAGS="-g"
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
8777 int
8778 main ()
8779 {
8780
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8792 $as_echo "$ac_try_echo") >&5
8793   (eval "$ac_compile") 2>conftest.er1
8794   ac_status=$?
8795   grep -v '^ *+' conftest.er1 >conftest.err
8796   rm -f conftest.er1
8797   cat conftest.err >&5
8798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); } && {
8800          test -z "$ac_cxx_werror_flag" ||
8801          test ! -s conftest.err
8802        } && test -s conftest.$ac_objext; then
8803   ac_cv_prog_cxx_g=yes
8804 else
8805   $as_echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8807
8808
8809 fi
8810
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 fi
8813
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8819 fi
8820 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8821 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8822 if test "$ac_test_CXXFLAGS" = set; then
8823   CXXFLAGS=$ac_save_CXXFLAGS
8824 elif test $ac_cv_prog_cxx_g = yes; then
8825   if test "$GXX" = yes; then
8826     CXXFLAGS="-g -O2"
8827   else
8828     CXXFLAGS="-g"
8829   fi
8830 else
8831   if test "$GXX" = yes; then
8832     CXXFLAGS="-O2"
8833   else
8834     CXXFLAGS=
8835   fi
8836 fi
8837 ac_ext=c
8838 ac_cpp='$CPP $CPPFLAGS'
8839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8842
8843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8844     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8845     (test "X$CXX" != "Xg++"))) ; then
8846   ac_ext=cpp
8847 ac_cpp='$CXXCPP $CPPFLAGS'
8848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8851 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8852 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8853 if test -z "$CXXCPP"; then
8854   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8855   $as_echo_n "(cached) " >&6
8856 else
8857       # Double quotes because CXXCPP needs to be expanded
8858     for CXXCPP in "$CXX -E" "/lib/cpp"
8859     do
8860       ac_preproc_ok=false
8861 for ac_cxx_preproc_warn_flag in '' yes
8862 do
8863   # Use a header file that comes with gcc, so configuring glibc
8864   # with a fresh cross-compiler works.
8865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8866   # <limits.h> exists even on freestanding compilers.
8867   # On the NeXT, cc -E runs the code through the compiler's parser,
8868   # not just through cpp. "Syntax error" is here to catch this case.
8869   cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h.  */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h.  */
8875 #ifdef __STDC__
8876 # include <limits.h>
8877 #else
8878 # include <assert.h>
8879 #endif
8880                      Syntax error
8881 _ACEOF
8882 if { (ac_try="$ac_cpp conftest.$ac_ext"
8883 case "(($ac_try" in
8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885   *) ac_try_echo=$ac_try;;
8886 esac
8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888 $as_echo "$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   $as_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   :
8900 else
8901   $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904   # Broken: fails on valid input.
8905 continue
8906 fi
8907
8908 rm -f conftest.err conftest.$ac_ext
8909
8910   # OK, works on sane cases.  Now check whether nonexistent headers
8911   # can be detected and how.
8912   cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918 #include <ac_nonexistent.h>
8919 _ACEOF
8920 if { (ac_try="$ac_cpp conftest.$ac_ext"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8926 $as_echo "$ac_try_echo") >&5
8927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } >/dev/null && {
8934          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8935          test ! -s conftest.err
8936        }; then
8937   # Broken: success on invalid input.
8938 continue
8939 else
8940   $as_echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943   # Passes both tests.
8944 ac_preproc_ok=:
8945 break
8946 fi
8947
8948 rm -f conftest.err conftest.$ac_ext
8949
8950 done
8951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8952 rm -f conftest.err conftest.$ac_ext
8953 if $ac_preproc_ok; then
8954   break
8955 fi
8956
8957     done
8958     ac_cv_prog_CXXCPP=$CXXCPP
8959
8960 fi
8961   CXXCPP=$ac_cv_prog_CXXCPP
8962 else
8963   ac_cv_prog_CXXCPP=$CXXCPP
8964 fi
8965 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8966 $as_echo "$CXXCPP" >&6; }
8967 ac_preproc_ok=false
8968 for ac_cxx_preproc_warn_flag in '' yes
8969 do
8970   # Use a header file that comes with gcc, so configuring glibc
8971   # with a fresh cross-compiler works.
8972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8973   # <limits.h> exists even on freestanding compilers.
8974   # On the NeXT, cc -E runs the code through the compiler's parser,
8975   # not just through cpp. "Syntax error" is here to catch this case.
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #ifdef __STDC__
8983 # include <limits.h>
8984 #else
8985 # include <assert.h>
8986 #endif
8987                      Syntax error
8988 _ACEOF
8989 if { (ac_try="$ac_cpp conftest.$ac_ext"
8990 case "(($ac_try" in
8991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992   *) ac_try_echo=$ac_try;;
8993 esac
8994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8995 $as_echo "$ac_try_echo") >&5
8996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8997   ac_status=$?
8998   grep -v '^ *+' conftest.er1 >conftest.err
8999   rm -f conftest.er1
9000   cat conftest.err >&5
9001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } >/dev/null && {
9003          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9004          test ! -s conftest.err
9005        }; then
9006   :
9007 else
9008   $as_echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011   # Broken: fails on valid input.
9012 continue
9013 fi
9014
9015 rm -f conftest.err conftest.$ac_ext
9016
9017   # OK, works on sane cases.  Now check whether nonexistent headers
9018   # can be detected and how.
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 #include <ac_nonexistent.h>
9026 _ACEOF
9027 if { (ac_try="$ac_cpp conftest.$ac_ext"
9028 case "(($ac_try" in
9029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030   *) ac_try_echo=$ac_try;;
9031 esac
9032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9033 $as_echo "$ac_try_echo") >&5
9034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } >/dev/null && {
9041          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9042          test ! -s conftest.err
9043        }; then
9044   # Broken: success on invalid input.
9045 continue
9046 else
9047   $as_echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050   # Passes both tests.
9051 ac_preproc_ok=:
9052 break
9053 fi
9054
9055 rm -f conftest.err conftest.$ac_ext
9056
9057 done
9058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9059 rm -f conftest.err conftest.$ac_ext
9060 if $ac_preproc_ok; then
9061   :
9062 else
9063   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9065 _lt_caught_CXX_error=yes; }
9066 fi
9067
9068 ac_ext=c
9069 ac_cpp='$CPP $CPPFLAGS'
9070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073
9074 else
9075   _lt_caught_CXX_error=yes
9076 fi
9077
9078
9079
9080
9081
9082 # Set options
9083 # Check whether --enable-shared was given.
9084 if test "${enable_shared+set}" = set; then
9085   enableval=$enable_shared; p=${PACKAGE-default}
9086     case $enableval in
9087     yes) enable_shared=yes ;;
9088     no) enable_shared=no ;;
9089     *)
9090       enable_shared=no
9091       # Look at the argument we got.  We use all the common list separators.
9092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9093       for pkg in $enableval; do
9094         IFS="$lt_save_ifs"
9095         if test "X$pkg" = "X$p"; then
9096           enable_shared=yes
9097         fi
9098       done
9099       IFS="$lt_save_ifs"
9100       ;;
9101     esac
9102 else
9103   enable_shared=yes
9104 fi
9105
9106
9107
9108
9109
9110
9111
9112 # Check whether --enable-static was given.
9113 if test "${enable_static+set}" = set; then
9114   enableval=$enable_static; p=${PACKAGE-default}
9115     case $enableval in
9116     yes) enable_static=yes ;;
9117     no) enable_static=no ;;
9118     *)
9119      enable_static=no
9120       # Look at the argument we got.  We use all the common list separators.
9121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9122       for pkg in $enableval; do
9123         IFS="$lt_save_ifs"
9124         if test "X$pkg" = "X$p"; then
9125           enable_static=yes
9126         fi
9127       done
9128       IFS="$lt_save_ifs"
9129       ;;
9130     esac
9131 else
9132   enable_static=no
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144         enable_dlopen=no
9145
9146
9147   enable_win32_dll=no
9148
9149
9150
9151
9152
9153 # Check whether --with-pic was given.
9154 if test "${with_pic+set}" = set; then
9155   withval=$with_pic; pic_mode="$withval"
9156 else
9157   pic_mode=default
9158 fi
9159
9160
9161 test -z "$pic_mode" && pic_mode=default
9162
9163
9164
9165
9166
9167
9168
9169   # Check whether --enable-fast-install was given.
9170 if test "${enable_fast_install+set}" = set; then
9171   enableval=$enable_fast_install; p=${PACKAGE-default}
9172     case $enableval in
9173     yes) enable_fast_install=yes ;;
9174     no) enable_fast_install=no ;;
9175     *)
9176       enable_fast_install=no
9177       # Look at the argument we got.  We use all the common list separators.
9178       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9179       for pkg in $enableval; do
9180         IFS="$lt_save_ifs"
9181         if test "X$pkg" = "X$p"; then
9182           enable_fast_install=yes
9183         fi
9184       done
9185       IFS="$lt_save_ifs"
9186       ;;
9187     esac
9188 else
9189   enable_fast_install=yes
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202 # This can be used to rebuild libtool when needed
9203 LIBTOOL_DEPS="$ltmain"
9204
9205 # Always use our own libtool.
9206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232 test -z "$LN_S" && LN_S="ln -s"
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247 if test -n "${ZSH_VERSION+set}" ; then
9248    setopt NO_GLOB_SUBST
9249 fi
9250
9251 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9252 $as_echo_n "checking for objdir... " >&6; }
9253 if test "${lt_cv_objdir+set}" = set; then
9254   $as_echo_n "(cached) " >&6
9255 else
9256   rm -f .libs 2>/dev/null
9257 mkdir .libs 2>/dev/null
9258 if test -d .libs; then
9259   lt_cv_objdir=.libs
9260 else
9261   # MS-DOS does not allow filenames that begin with a dot.
9262   lt_cv_objdir=_libs
9263 fi
9264 rmdir .libs 2>/dev/null
9265 fi
9266 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9267 $as_echo "$lt_cv_objdir" >&6; }
9268 objdir=$lt_cv_objdir
9269
9270
9271
9272
9273
9274 cat >>confdefs.h <<_ACEOF
9275 #define LT_OBJDIR "$lt_cv_objdir/"
9276 _ACEOF
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 case $host_os in
9295 aix3*)
9296   # AIX sometimes has problems with the GCC collect2 program.  For some
9297   # reason, if we set the COLLECT_NAMES environment variable, the problems
9298   # vanish in a puff of smoke.
9299   if test "X${COLLECT_NAMES+set}" != Xset; then
9300     COLLECT_NAMES=
9301     export COLLECT_NAMES
9302   fi
9303   ;;
9304 esac
9305
9306 # Sed substitution that helps us do robust quoting.  It backslashifies
9307 # metacharacters that are still active within double-quoted strings.
9308 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9309
9310 # Same as above, but do not quote variable references.
9311 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9312
9313 # Sed substitution to delay expansion of an escaped shell variable in a
9314 # double_quote_subst'ed string.
9315 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9316
9317 # Sed substitution to delay expansion of an escaped single quote.
9318 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9319
9320 # Sed substitution to avoid accidental globbing in evaled expressions
9321 no_glob_subst='s/\*/\\\*/g'
9322
9323 # Global variables:
9324 ofile=libtool
9325 can_build_shared=yes
9326
9327 # All known linkers require a `.a' archive for static linking (except MSVC,
9328 # which needs '.lib').
9329 libext=a
9330
9331 with_gnu_ld="$lt_cv_prog_gnu_ld"
9332
9333 old_CC="$CC"
9334 old_CFLAGS="$CFLAGS"
9335
9336 # Set sane defaults for various variables
9337 test -z "$CC" && CC=cc
9338 test -z "$LTCC" && LTCC=$CC
9339 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9340 test -z "$LD" && LD=ld
9341 test -z "$ac_objext" && ac_objext=o
9342
9343 for cc_temp in $compiler""; do
9344   case $cc_temp in
9345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9347     \-*) ;;
9348     *) break;;
9349   esac
9350 done
9351 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9352
9353
9354 # Only perform the check for file, if the check method requires it
9355 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9356 case $deplibs_check_method in
9357 file_magic*)
9358   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9359     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9360 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9362   $as_echo_n "(cached) " >&6
9363 else
9364   case $MAGIC_CMD in
9365 [\\/*] |  ?:[\\/]*)
9366   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9367   ;;
9368 *)
9369   lt_save_MAGIC_CMD="$MAGIC_CMD"
9370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9371   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9372   for ac_dir in $ac_dummy; do
9373     IFS="$lt_save_ifs"
9374     test -z "$ac_dir" && ac_dir=.
9375     if test -f $ac_dir/${ac_tool_prefix}file; then
9376       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9377       if test -n "$file_magic_test_file"; then
9378         case $deplibs_check_method in
9379         "file_magic "*)
9380           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9381           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9383             $EGREP "$file_magic_regex" > /dev/null; then
9384             :
9385           else
9386             cat <<_LT_EOF 1>&2
9387
9388 *** Warning: the command libtool uses to detect shared libraries,
9389 *** $file_magic_cmd, produces output that libtool cannot recognize.
9390 *** The result is that libtool may fail to recognize shared libraries
9391 *** as such.  This will affect the creation of libtool libraries that
9392 *** depend on shared libraries, but programs linked with such libtool
9393 *** libraries will work regardless of this problem.  Nevertheless, you
9394 *** may want to report the problem to your system manager and/or to
9395 *** bug-libtool@gnu.org
9396
9397 _LT_EOF
9398           fi ;;
9399         esac
9400       fi
9401       break
9402     fi
9403   done
9404   IFS="$lt_save_ifs"
9405   MAGIC_CMD="$lt_save_MAGIC_CMD"
9406   ;;
9407 esac
9408 fi
9409
9410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9411 if test -n "$MAGIC_CMD"; then
9412   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9413 $as_echo "$MAGIC_CMD" >&6; }
9414 else
9415   { $as_echo "$as_me:$LINENO: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420
9421
9422
9423 if test -z "$lt_cv_path_MAGIC_CMD"; then
9424   if test -n "$ac_tool_prefix"; then
9425     { $as_echo "$as_me:$LINENO: checking for file" >&5
9426 $as_echo_n "checking for file... " >&6; }
9427 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9428   $as_echo_n "(cached) " >&6
9429 else
9430   case $MAGIC_CMD in
9431 [\\/*] |  ?:[\\/]*)
9432   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9433   ;;
9434 *)
9435   lt_save_MAGIC_CMD="$MAGIC_CMD"
9436   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9437   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9438   for ac_dir in $ac_dummy; do
9439     IFS="$lt_save_ifs"
9440     test -z "$ac_dir" && ac_dir=.
9441     if test -f $ac_dir/file; then
9442       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9443       if test -n "$file_magic_test_file"; then
9444         case $deplibs_check_method in
9445         "file_magic "*)
9446           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9447           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9448           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9449             $EGREP "$file_magic_regex" > /dev/null; then
9450             :
9451           else
9452             cat <<_LT_EOF 1>&2
9453
9454 *** Warning: the command libtool uses to detect shared libraries,
9455 *** $file_magic_cmd, produces output that libtool cannot recognize.
9456 *** The result is that libtool may fail to recognize shared libraries
9457 *** as such.  This will affect the creation of libtool libraries that
9458 *** depend on shared libraries, but programs linked with such libtool
9459 *** libraries will work regardless of this problem.  Nevertheless, you
9460 *** may want to report the problem to your system manager and/or to
9461 *** bug-libtool@gnu.org
9462
9463 _LT_EOF
9464           fi ;;
9465         esac
9466       fi
9467       break
9468     fi
9469   done
9470   IFS="$lt_save_ifs"
9471   MAGIC_CMD="$lt_save_MAGIC_CMD"
9472   ;;
9473 esac
9474 fi
9475
9476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9477 if test -n "$MAGIC_CMD"; then
9478   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9479 $as_echo "$MAGIC_CMD" >&6; }
9480 else
9481   { $as_echo "$as_me:$LINENO: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486   else
9487     MAGIC_CMD=:
9488   fi
9489 fi
9490
9491   fi
9492   ;;
9493 esac
9494
9495 # Use C for the default configuration in the libtool script
9496
9497 lt_save_CC="$CC"
9498 ac_ext=c
9499 ac_cpp='$CPP $CPPFLAGS'
9500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9503
9504
9505 # Source file extension for C test sources.
9506 ac_ext=c
9507
9508 # Object file extension for compiled C test sources.
9509 objext=o
9510 objext=$objext
9511
9512 # Code to be used in simple compile tests
9513 lt_simple_compile_test_code="int some_variable = 0;"
9514
9515 # Code to be used in simple link tests
9516 lt_simple_link_test_code='int main(){return(0);}'
9517
9518
9519
9520
9521
9522
9523
9524 # If no C compiler was specified, use CC.
9525 LTCC=${LTCC-"$CC"}
9526
9527 # If no C compiler flags were specified, use CFLAGS.
9528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9529
9530 # Allow CC to be a program name with arguments.
9531 compiler=$CC
9532
9533 # Save the default compiler, since it gets overwritten when the other
9534 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9535 compiler_DEFAULT=$CC
9536
9537 # save warnings/boilerplate of simple test code
9538 ac_outfile=conftest.$ac_objext
9539 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9540 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9541 _lt_compiler_boilerplate=`cat conftest.err`
9542 $RM conftest*
9543
9544 ac_outfile=conftest.$ac_objext
9545 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9546 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9547 _lt_linker_boilerplate=`cat conftest.err`
9548 $RM -r conftest*
9549
9550
9551 ## CAVEAT EMPTOR:
9552 ## There is no encapsulation within the following macros, do not change
9553 ## the running order or otherwise move them around unless you know exactly
9554 ## what you are doing...
9555 if test -n "$compiler"; then
9556
9557 lt_prog_compiler_no_builtin_flag=
9558
9559 if test "$GCC" = yes; then
9560   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9561
9562   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9563 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9564 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9565   $as_echo_n "(cached) " >&6
9566 else
9567   lt_cv_prog_compiler_rtti_exceptions=no
9568    ac_outfile=conftest.$ac_objext
9569    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570    lt_compiler_flag="-fno-rtti -fno-exceptions"
9571    # Insert the option either (1) after the last *FLAGS variable, or
9572    # (2) before a word containing "conftest.", or (3) at the end.
9573    # Note that $ac_compile itself does not contain backslashes and begins
9574    # with a dollar sign (not a hyphen), so the echo should work correctly.
9575    # The option is referenced via a variable to avoid confusing sed.
9576    lt_compile=`echo "$ac_compile" | $SED \
9577    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9579    -e 's:$: $lt_compiler_flag:'`
9580    (eval echo "\"\$as_me:9580: $lt_compile\"" >&5)
9581    (eval "$lt_compile" 2>conftest.err)
9582    ac_status=$?
9583    cat conftest.err >&5
9584    echo "$as_me:9584: \$? = $ac_status" >&5
9585    if (exit $ac_status) && test -s "$ac_outfile"; then
9586      # The compiler can only warn and ignore the option if not recognized
9587      # So say no if there are warnings other than the usual output.
9588      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9589      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9590      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9591        lt_cv_prog_compiler_rtti_exceptions=yes
9592      fi
9593    fi
9594    $RM conftest*
9595
9596 fi
9597 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9598 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9599
9600 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9601     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9602 else
9603     :
9604 fi
9605
9606 fi
9607
9608
9609
9610
9611
9612
9613   lt_prog_compiler_wl=
9614 lt_prog_compiler_pic=
9615 lt_prog_compiler_static=
9616
9617 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9618 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9619
9620   if test "$GCC" = yes; then
9621     lt_prog_compiler_wl='-Wl,'
9622     lt_prog_compiler_static='-static'
9623
9624     case $host_os in
9625       aix*)
9626       # All AIX code is PIC.
9627       if test "$host_cpu" = ia64; then
9628         # AIX 5 now supports IA64 processor
9629         lt_prog_compiler_static='-Bstatic'
9630       fi
9631       ;;
9632
9633     amigaos*)
9634       case $host_cpu in
9635       powerpc)
9636             # see comment about AmigaOS4 .so support
9637             lt_prog_compiler_pic='-fPIC'
9638         ;;
9639       m68k)
9640             # FIXME: we need at least 68020 code to build shared libraries, but
9641             # adding the `-m68020' flag to GCC prevents building anything better,
9642             # like `-m68040'.
9643             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9644         ;;
9645       esac
9646       ;;
9647
9648     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9649       # PIC is the default for these OSes.
9650       ;;
9651
9652     mingw* | cygwin* | pw32* | os2* | cegcc*)
9653       # This hack is so that the source file can tell whether it is being
9654       # built for inclusion in a dll (and should export symbols for example).
9655       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9656       # (--disable-auto-import) libraries
9657       lt_prog_compiler_pic='-DDLL_EXPORT'
9658       ;;
9659
9660     darwin* | rhapsody*)
9661       # PIC is the default on this platform
9662       # Common symbols not allowed in MH_DYLIB files
9663       lt_prog_compiler_pic='-fno-common'
9664       ;;
9665
9666     hpux*)
9667       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9668       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9669       # sets the default TLS model and affects inlining.
9670       case $host_cpu in
9671       hppa*64*)
9672         # +Z the default
9673         ;;
9674       *)
9675         lt_prog_compiler_pic='-fPIC'
9676         ;;
9677       esac
9678       ;;
9679
9680     interix[3-9]*)
9681       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9682       # Instead, we relocate shared libraries at runtime.
9683       ;;
9684
9685     msdosdjgpp*)
9686       # Just because we use GCC doesn't mean we suddenly get shared libraries
9687       # on systems that don't support them.
9688       lt_prog_compiler_can_build_shared=no
9689       enable_shared=no
9690       ;;
9691
9692     *nto* | *qnx*)
9693       # QNX uses GNU C++, but need to define -shared option too, otherwise
9694       # it will coredump.
9695       lt_prog_compiler_pic='-fPIC -shared'
9696       ;;
9697
9698     sysv4*MP*)
9699       if test -d /usr/nec; then
9700         lt_prog_compiler_pic=-Kconform_pic
9701       fi
9702       ;;
9703
9704     *)
9705       lt_prog_compiler_pic='-fPIC'
9706       ;;
9707     esac
9708   else
9709     # PORTME Check for flag to pass linker flags through the system compiler.
9710     case $host_os in
9711     aix*)
9712       lt_prog_compiler_wl='-Wl,'
9713       if test "$host_cpu" = ia64; then
9714         # AIX 5 now supports IA64 processor
9715         lt_prog_compiler_static='-Bstatic'
9716       else
9717         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9718       fi
9719       ;;
9720
9721     mingw* | cygwin* | pw32* | os2* | cegcc*)
9722       # This hack is so that the source file can tell whether it is being
9723       # built for inclusion in a dll (and should export symbols for example).
9724       lt_prog_compiler_pic='-DDLL_EXPORT'
9725       ;;
9726
9727     hpux9* | hpux10* | hpux11*)
9728       lt_prog_compiler_wl='-Wl,'
9729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9730       # not for PA HP-UX.
9731       case $host_cpu in
9732       hppa*64*|ia64*)
9733         # +Z the default
9734         ;;
9735       *)
9736         lt_prog_compiler_pic='+Z'
9737         ;;
9738       esac
9739       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9740       lt_prog_compiler_static='${wl}-a ${wl}archive'
9741       ;;
9742
9743     irix5* | irix6* | nonstopux*)
9744       lt_prog_compiler_wl='-Wl,'
9745       # PIC (with -KPIC) is the default.
9746       lt_prog_compiler_static='-non_shared'
9747       ;;
9748
9749     linux* | k*bsd*-gnu)
9750       case $cc_basename in
9751       # old Intel for x86_64 which still supported -KPIC.
9752       ecc*)
9753         lt_prog_compiler_wl='-Wl,'
9754         lt_prog_compiler_pic='-KPIC'
9755         lt_prog_compiler_static='-static'
9756         ;;
9757       # icc used to be incompatible with GCC.
9758       # ICC 10 doesn't accept -KPIC any more.
9759       icc* | ifort*)
9760         lt_prog_compiler_wl='-Wl,'
9761         lt_prog_compiler_pic='-fPIC'
9762         lt_prog_compiler_static='-static'
9763         ;;
9764       # Lahey Fortran 8.1.
9765       lf95*)
9766         lt_prog_compiler_wl='-Wl,'
9767         lt_prog_compiler_pic='--shared'
9768         lt_prog_compiler_static='--static'
9769         ;;
9770       pgcc* | pgf77* | pgf90* | pgf95*)
9771         # Portland Group compilers (*not* the Pentium gcc compiler,
9772         # which looks to be a dead project)
9773         lt_prog_compiler_wl='-Wl,'
9774         lt_prog_compiler_pic='-fpic'
9775         lt_prog_compiler_static='-Bstatic'
9776         ;;
9777       ccc*)
9778         lt_prog_compiler_wl='-Wl,'
9779         # All Alpha code is PIC.
9780         lt_prog_compiler_static='-non_shared'
9781         ;;
9782       xl*)
9783         # IBM XL C 8.0/Fortran 10.1 on PPC
9784         lt_prog_compiler_wl='-Wl,'
9785         lt_prog_compiler_pic='-qpic'
9786         lt_prog_compiler_static='-qstaticlink'
9787         ;;
9788       *)
9789         case `$CC -V 2>&1 | sed 5q` in
9790         *Sun\ C*)
9791           # Sun C 5.9
9792           lt_prog_compiler_pic='-KPIC'
9793           lt_prog_compiler_static='-Bstatic'
9794           lt_prog_compiler_wl='-Wl,'
9795           ;;
9796         *Sun\ F*)
9797           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9798           lt_prog_compiler_pic='-KPIC'
9799           lt_prog_compiler_static='-Bstatic'
9800           lt_prog_compiler_wl=''
9801           ;;
9802         esac
9803         ;;
9804       esac
9805       ;;
9806
9807     newsos6)
9808       lt_prog_compiler_pic='-KPIC'
9809       lt_prog_compiler_static='-Bstatic'
9810       ;;
9811
9812     *nto* | *qnx*)
9813       # QNX uses GNU C++, but need to define -shared option too, otherwise
9814       # it will coredump.
9815       lt_prog_compiler_pic='-fPIC -shared'
9816       ;;
9817
9818     osf3* | osf4* | osf5*)
9819       lt_prog_compiler_wl='-Wl,'
9820       # All OSF/1 code is PIC.
9821       lt_prog_compiler_static='-non_shared'
9822       ;;
9823
9824     rdos*)
9825       lt_prog_compiler_static='-non_shared'
9826       ;;
9827
9828     solaris*)
9829       lt_prog_compiler_pic='-KPIC'
9830       lt_prog_compiler_static='-Bstatic'
9831       case $cc_basename in
9832       f77* | f90* | f95*)
9833         lt_prog_compiler_wl='-Qoption ld ';;
9834       *)
9835         lt_prog_compiler_wl='-Wl,';;
9836       esac
9837       ;;
9838
9839     sunos4*)
9840       lt_prog_compiler_wl='-Qoption ld '
9841       lt_prog_compiler_pic='-PIC'
9842       lt_prog_compiler_static='-Bstatic'
9843       ;;
9844
9845     sysv4 | sysv4.2uw2* | sysv4.3*)
9846       lt_prog_compiler_wl='-Wl,'
9847       lt_prog_compiler_pic='-KPIC'
9848       lt_prog_compiler_static='-Bstatic'
9849       ;;
9850
9851     sysv4*MP*)
9852       if test -d /usr/nec ;then
9853         lt_prog_compiler_pic='-Kconform_pic'
9854         lt_prog_compiler_static='-Bstatic'
9855       fi
9856       ;;
9857
9858     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9859       lt_prog_compiler_wl='-Wl,'
9860       lt_prog_compiler_pic='-KPIC'
9861       lt_prog_compiler_static='-Bstatic'
9862       ;;
9863
9864     unicos*)
9865       lt_prog_compiler_wl='-Wl,'
9866       lt_prog_compiler_can_build_shared=no
9867       ;;
9868
9869     uts4*)
9870       lt_prog_compiler_pic='-pic'
9871       lt_prog_compiler_static='-Bstatic'
9872       ;;
9873
9874     *)
9875       lt_prog_compiler_can_build_shared=no
9876       ;;
9877     esac
9878   fi
9879
9880 case $host_os in
9881   # For platforms which do not support PIC, -DPIC is meaningless:
9882   *djgpp*)
9883     lt_prog_compiler_pic=
9884     ;;
9885   *)
9886     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9887     ;;
9888 esac
9889 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9890 $as_echo "$lt_prog_compiler_pic" >&6; }
9891
9892
9893
9894
9895
9896
9897 #
9898 # Check to make sure the PIC flag actually works.
9899 #
9900 if test -n "$lt_prog_compiler_pic"; then
9901   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9903 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9904   $as_echo_n "(cached) " >&6
9905 else
9906   lt_cv_prog_compiler_pic_works=no
9907    ac_outfile=conftest.$ac_objext
9908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9910    # Insert the option either (1) after the last *FLAGS variable, or
9911    # (2) before a word containing "conftest.", or (3) at the end.
9912    # Note that $ac_compile itself does not contain backslashes and begins
9913    # with a dollar sign (not a hyphen), so the echo should work correctly.
9914    # The option is referenced via a variable to avoid confusing sed.
9915    lt_compile=`echo "$ac_compile" | $SED \
9916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9918    -e 's:$: $lt_compiler_flag:'`
9919    (eval echo "\"\$as_me:9919: $lt_compile\"" >&5)
9920    (eval "$lt_compile" 2>conftest.err)
9921    ac_status=$?
9922    cat conftest.err >&5
9923    echo "$as_me:9923: \$? = $ac_status" >&5
9924    if (exit $ac_status) && test -s "$ac_outfile"; then
9925      # The compiler can only warn and ignore the option if not recognized
9926      # So say no if there are warnings other than the usual output.
9927      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9928      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9929      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9930        lt_cv_prog_compiler_pic_works=yes
9931      fi
9932    fi
9933    $RM conftest*
9934
9935 fi
9936 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9938
9939 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9940     case $lt_prog_compiler_pic in
9941      "" | " "*) ;;
9942      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9943      esac
9944 else
9945     lt_prog_compiler_pic=
9946      lt_prog_compiler_can_build_shared=no
9947 fi
9948
9949 fi
9950
9951
9952
9953
9954
9955
9956 #
9957 # Check to make sure the static flag actually works.
9958 #
9959 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9960 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9962 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9963   $as_echo_n "(cached) " >&6
9964 else
9965   lt_cv_prog_compiler_static_works=no
9966    save_LDFLAGS="$LDFLAGS"
9967    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9968    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9969    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9970      # The linker can only warn and ignore the option if not recognized
9971      # So say no if there are warnings
9972      if test -s conftest.err; then
9973        # Append any errors to the config.log.
9974        cat conftest.err 1>&5
9975        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9976        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9977        if diff conftest.exp conftest.er2 >/dev/null; then
9978          lt_cv_prog_compiler_static_works=yes
9979        fi
9980      else
9981        lt_cv_prog_compiler_static_works=yes
9982      fi
9983    fi
9984    $RM -r conftest*
9985    LDFLAGS="$save_LDFLAGS"
9986
9987 fi
9988 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9989 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9990
9991 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9992     :
9993 else
9994     lt_prog_compiler_static=
9995 fi
9996
9997
9998
9999
10000
10001
10002
10003   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10004 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10005 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10006   $as_echo_n "(cached) " >&6
10007 else
10008   lt_cv_prog_compiler_c_o=no
10009    $RM -r conftest 2>/dev/null
10010    mkdir conftest
10011    cd conftest
10012    mkdir out
10013    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014
10015    lt_compiler_flag="-o out/conftest2.$ac_objext"
10016    # Insert the option either (1) after the last *FLAGS variable, or
10017    # (2) before a word containing "conftest.", or (3) at the end.
10018    # Note that $ac_compile itself does not contain backslashes and begins
10019    # with a dollar sign (not a hyphen), so the echo should work correctly.
10020    lt_compile=`echo "$ac_compile" | $SED \
10021    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10022    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10023    -e 's:$: $lt_compiler_flag:'`
10024    (eval echo "\"\$as_me:10024: $lt_compile\"" >&5)
10025    (eval "$lt_compile" 2>out/conftest.err)
10026    ac_status=$?
10027    cat out/conftest.err >&5
10028    echo "$as_me:10028: \$? = $ac_status" >&5
10029    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10030    then
10031      # The compiler can only warn and ignore the option if not recognized
10032      # So say no if there are warnings
10033      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10034      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10035      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10036        lt_cv_prog_compiler_c_o=yes
10037      fi
10038    fi
10039    chmod u+w . 2>&5
10040    $RM conftest*
10041    # SGI C++ compiler will create directory out/ii_files/ for
10042    # template instantiation
10043    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10044    $RM out/* && rmdir out
10045    cd ..
10046    $RM -r conftest
10047    $RM conftest*
10048
10049 fi
10050 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10051 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10052
10053
10054
10055
10056
10057
10058   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10060 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10061   $as_echo_n "(cached) " >&6
10062 else
10063   lt_cv_prog_compiler_c_o=no
10064    $RM -r conftest 2>/dev/null
10065    mkdir conftest
10066    cd conftest
10067    mkdir out
10068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10069
10070    lt_compiler_flag="-o out/conftest2.$ac_objext"
10071    # Insert the option either (1) after the last *FLAGS variable, or
10072    # (2) before a word containing "conftest.", or (3) at the end.
10073    # Note that $ac_compile itself does not contain backslashes and begins
10074    # with a dollar sign (not a hyphen), so the echo should work correctly.
10075    lt_compile=`echo "$ac_compile" | $SED \
10076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10078    -e 's:$: $lt_compiler_flag:'`
10079    (eval echo "\"\$as_me:10079: $lt_compile\"" >&5)
10080    (eval "$lt_compile" 2>out/conftest.err)
10081    ac_status=$?
10082    cat out/conftest.err >&5
10083    echo "$as_me:10083: \$? = $ac_status" >&5
10084    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10085    then
10086      # The compiler can only warn and ignore the option if not recognized
10087      # So say no if there are warnings
10088      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10089      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10090      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10091        lt_cv_prog_compiler_c_o=yes
10092      fi
10093    fi
10094    chmod u+w . 2>&5
10095    $RM conftest*
10096    # SGI C++ compiler will create directory out/ii_files/ for
10097    # template instantiation
10098    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10099    $RM out/* && rmdir out
10100    cd ..
10101    $RM -r conftest
10102    $RM conftest*
10103
10104 fi
10105 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10106 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10107
10108
10109
10110
10111 hard_links="nottested"
10112 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10113   # do not overwrite the value of need_locks provided by the user
10114   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10115 $as_echo_n "checking if we can lock with hard links... " >&6; }
10116   hard_links=yes
10117   $RM conftest*
10118   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10119   touch conftest.a
10120   ln conftest.a conftest.b 2>&5 || hard_links=no
10121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10122   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10123 $as_echo "$hard_links" >&6; }
10124   if test "$hard_links" = no; then
10125     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10127     need_locks=warn
10128   fi
10129 else
10130   need_locks=no
10131 fi
10132
10133
10134
10135
10136
10137
10138   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10140
10141   runpath_var=
10142   allow_undefined_flag=
10143   always_export_symbols=no
10144   archive_cmds=
10145   archive_expsym_cmds=
10146   compiler_needs_object=no
10147   enable_shared_with_static_runtimes=no
10148   export_dynamic_flag_spec=
10149   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10150   hardcode_automatic=no
10151   hardcode_direct=no
10152   hardcode_direct_absolute=no
10153   hardcode_libdir_flag_spec=
10154   hardcode_libdir_flag_spec_ld=
10155   hardcode_libdir_separator=
10156   hardcode_minus_L=no
10157   hardcode_shlibpath_var=unsupported
10158   inherit_rpath=no
10159   link_all_deplibs=unknown
10160   module_cmds=
10161   module_expsym_cmds=
10162   old_archive_from_new_cmds=
10163   old_archive_from_expsyms_cmds=
10164   thread_safe_flag_spec=
10165   whole_archive_flag_spec=
10166   # include_expsyms should be a list of space-separated symbols to be *always*
10167   # included in the symbol list
10168   include_expsyms=
10169   # exclude_expsyms can be an extended regexp of symbols to exclude
10170   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10171   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10172   # as well as any symbol that contains `d'.
10173   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10174   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10175   # platforms (ab)use it in PIC code, but their linkers get confused if
10176   # the symbol is explicitly referenced.  Since portable code cannot
10177   # rely on this symbol name, it's probably fine to never include it in
10178   # preloaded symbol tables.
10179   # Exclude shared library initialization/finalization symbols.
10180   extract_expsyms_cmds=
10181
10182   case $host_os in
10183   cygwin* | mingw* | pw32* | cegcc*)
10184     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10185     # When not using gcc, we currently assume that we are using
10186     # Microsoft Visual C++.
10187     if test "$GCC" != yes; then
10188       with_gnu_ld=no
10189     fi
10190     ;;
10191   interix*)
10192     # we just hope/assume this is gcc and not c89 (= MSVC++)
10193     with_gnu_ld=yes
10194     ;;
10195   openbsd*)
10196     with_gnu_ld=no
10197     ;;
10198   esac
10199
10200   ld_shlibs=yes
10201   if test "$with_gnu_ld" = yes; then
10202     # If archive_cmds runs LD, not CC, wlarc should be empty
10203     wlarc='${wl}'
10204
10205     # Set some defaults for GNU ld with shared library support. These
10206     # are reset later if shared libraries are not supported. Putting them
10207     # here allows them to be overridden if necessary.
10208     runpath_var=LD_RUN_PATH
10209     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210     export_dynamic_flag_spec='${wl}--export-dynamic'
10211     # ancient GNU ld didn't support --whole-archive et. al.
10212     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10213       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10214     else
10215       whole_archive_flag_spec=
10216     fi
10217     supports_anon_versioning=no
10218     case `$LD -v 2>&1` in
10219       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10220       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10221       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10222       *\ 2.11.*) ;; # other 2.11 versions
10223       *) supports_anon_versioning=yes ;;
10224     esac
10225
10226     # See if GNU ld supports shared libraries.
10227     case $host_os in
10228     aix[3-9]*)
10229       # On AIX/PPC, the GNU linker is very broken
10230       if test "$host_cpu" != ia64; then
10231         ld_shlibs=no
10232         cat <<_LT_EOF 1>&2
10233
10234 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10235 *** to be unable to reliably create shared libraries on AIX.
10236 *** Therefore, libtool is disabling shared libraries support.  If you
10237 *** really care for shared libraries, you may want to modify your PATH
10238 *** so that a non-GNU linker is found, and then restart.
10239
10240 _LT_EOF
10241       fi
10242       ;;
10243
10244     amigaos*)
10245       case $host_cpu in
10246       powerpc)
10247             # see comment about AmigaOS4 .so support
10248             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249             archive_expsym_cmds=''
10250         ;;
10251       m68k)
10252             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)'
10253             hardcode_libdir_flag_spec='-L$libdir'
10254             hardcode_minus_L=yes
10255         ;;
10256       esac
10257       ;;
10258
10259     beos*)
10260       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261         allow_undefined_flag=unsupported
10262         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10263         # support --undefined.  This deserves some investigation.  FIXME
10264         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265       else
10266         ld_shlibs=no
10267       fi
10268       ;;
10269
10270     cygwin* | mingw* | pw32* | cegcc*)
10271       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10272       # as there is no search path for DLLs.
10273       hardcode_libdir_flag_spec='-L$libdir'
10274       allow_undefined_flag=unsupported
10275       always_export_symbols=no
10276       enable_shared_with_static_runtimes=yes
10277       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10278
10279       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10280         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10281         # If the export-symbols file already is a .def file (1st line
10282         # is EXPORTS), use it as is; otherwise, prepend...
10283         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10284           cp $export_symbols $output_objdir/$soname.def;
10285         else
10286           echo EXPORTS > $output_objdir/$soname.def;
10287           cat $export_symbols >> $output_objdir/$soname.def;
10288         fi~
10289         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10290       else
10291         ld_shlibs=no
10292       fi
10293       ;;
10294
10295     interix[3-9]*)
10296       hardcode_direct=no
10297       hardcode_shlibpath_var=no
10298       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10299       export_dynamic_flag_spec='${wl}-E'
10300       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10301       # Instead, shared libraries are loaded at an image base (0x10000000 by
10302       # default) and relocated if they conflict, which is a slow very memory
10303       # consuming and fragmenting process.  To avoid this, we pick a random,
10304       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10305       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10306       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10307       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'
10308       ;;
10309
10310     gnu* | linux* | tpf* | k*bsd*-gnu)
10311       tmp_diet=no
10312       if test "$host_os" = linux-dietlibc; then
10313         case $cc_basename in
10314           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10315         esac
10316       fi
10317       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10318          && test "$tmp_diet" = no
10319       then
10320         tmp_addflag=
10321         tmp_sharedflag='-shared'
10322         case $cc_basename,$host_cpu in
10323         pgcc*)                          # Portland Group C compiler
10324           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'
10325           tmp_addflag=' $pic_flag'
10326           ;;
10327         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10328           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'
10329           tmp_addflag=' $pic_flag -Mnomain' ;;
10330         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10331           tmp_addflag=' -i_dynamic' ;;
10332         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10333           tmp_addflag=' -i_dynamic -nofor_main' ;;
10334         ifc* | ifort*)                  # Intel Fortran compiler
10335           tmp_addflag=' -nofor_main' ;;
10336         lf95*)                          # Lahey Fortran 8.1
10337           whole_archive_flag_spec=
10338           tmp_sharedflag='--shared' ;;
10339         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10340           tmp_sharedflag='-qmkshrobj'
10341           tmp_addflag= ;;
10342         esac
10343         case `$CC -V 2>&1 | sed 5q` in
10344         *Sun\ C*)                       # Sun C 5.9
10345           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'
10346           compiler_needs_object=yes
10347           tmp_sharedflag='-G' ;;
10348         *Sun\ F*)                       # Sun Fortran 8.3
10349           tmp_sharedflag='-G' ;;
10350         esac
10351         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352
10353         if test "x$supports_anon_versioning" = xyes; then
10354           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10355             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10356             echo "local: *; };" >> $output_objdir/$libname.ver~
10357             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10358         fi
10359
10360         case $cc_basename in
10361         xlf*)
10362           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10363           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10364           hardcode_libdir_flag_spec=
10365           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10366           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10367           if test "x$supports_anon_versioning" = xyes; then
10368             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10369               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10370               echo "local: *; };" >> $output_objdir/$libname.ver~
10371               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10372           fi
10373           ;;
10374         esac
10375       else
10376         ld_shlibs=no
10377       fi
10378       ;;
10379
10380     netbsd*)
10381       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10382         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10383         wlarc=
10384       else
10385         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10387       fi
10388       ;;
10389
10390     solaris*)
10391       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10392         ld_shlibs=no
10393         cat <<_LT_EOF 1>&2
10394
10395 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10396 *** create shared libraries on Solaris systems.  Therefore, libtool
10397 *** is disabling shared libraries support.  We urge you to upgrade GNU
10398 *** binutils to release 2.9.1 or newer.  Another option is to modify
10399 *** your PATH or compiler configuration so that the native linker is
10400 *** used, and then restart.
10401
10402 _LT_EOF
10403       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10406       else
10407         ld_shlibs=no
10408       fi
10409       ;;
10410
10411     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10412       case `$LD -v 2>&1` in
10413         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10414         ld_shlibs=no
10415         cat <<_LT_EOF 1>&2
10416
10417 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10418 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10419 *** is disabling shared libraries support.  We urge you to upgrade GNU
10420 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10421 *** your PATH or compiler configuration so that the native linker is
10422 *** used, and then restart.
10423
10424 _LT_EOF
10425         ;;
10426         *)
10427           # For security reasons, it is highly recommended that you always
10428           # use absolute paths for naming shared libraries, and exclude the
10429           # DT_RUNPATH tag from executables and libraries.  But doing so
10430           # requires that you compile everything twice, which is a pain.
10431           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10432             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10434             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10435           else
10436             ld_shlibs=no
10437           fi
10438         ;;
10439       esac
10440       ;;
10441
10442     sunos4*)
10443       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10444       wlarc=
10445       hardcode_direct=yes
10446       hardcode_shlibpath_var=no
10447       ;;
10448
10449     *)
10450       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10453       else
10454         ld_shlibs=no
10455       fi
10456       ;;
10457     esac
10458
10459     if test "$ld_shlibs" = no; then
10460       runpath_var=
10461       hardcode_libdir_flag_spec=
10462       export_dynamic_flag_spec=
10463       whole_archive_flag_spec=
10464     fi
10465   else
10466     # PORTME fill in a description of your system's linker (not GNU ld)
10467     case $host_os in
10468     aix3*)
10469       allow_undefined_flag=unsupported
10470       always_export_symbols=yes
10471       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'
10472       # Note: this linker hardcodes the directories in LIBPATH if there
10473       # are no directories specified by -L.
10474       hardcode_minus_L=yes
10475       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10476         # Neither direct hardcoding nor static linking is supported with a
10477         # broken collect2.
10478         hardcode_direct=unsupported
10479       fi
10480       ;;
10481
10482     aix[4-9]*)
10483       if test "$host_cpu" = ia64; then
10484         # On IA64, the linker does run time linking by default, so we don't
10485         # have to do anything special.
10486         aix_use_runtimelinking=no
10487         exp_sym_flag='-Bexport'
10488         no_entry_flag=""
10489       else
10490         # If we're using GNU nm, then we don't want the "-C" option.
10491         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10492         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10493           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'
10494         else
10495           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'
10496         fi
10497         aix_use_runtimelinking=no
10498
10499         # Test if we are trying to use run time linking or normal
10500         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10501         # need to do runtime linking.
10502         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10503           for ld_flag in $LDFLAGS; do
10504           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10505             aix_use_runtimelinking=yes
10506             break
10507           fi
10508           done
10509           ;;
10510         esac
10511
10512         exp_sym_flag='-bexport'
10513         no_entry_flag='-bnoentry'
10514       fi
10515
10516       # When large executables or shared objects are built, AIX ld can
10517       # have problems creating the table of contents.  If linking a library
10518       # or program results in "error TOC overflow" add -mminimal-toc to
10519       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10520       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10521
10522       archive_cmds=''
10523       hardcode_direct=yes
10524       hardcode_direct_absolute=yes
10525       hardcode_libdir_separator=':'
10526       link_all_deplibs=yes
10527       file_list_spec='${wl}-f,'
10528
10529       if test "$GCC" = yes; then
10530         case $host_os in aix4.[012]|aix4.[012].*)
10531         # We only want to do this on AIX 4.2 and lower, the check
10532         # below for broken collect2 doesn't work under 4.3+
10533           collect2name=`${CC} -print-prog-name=collect2`
10534           if test -f "$collect2name" &&
10535            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10536           then
10537           # We have reworked collect2
10538           :
10539           else
10540           # We have old collect2
10541           hardcode_direct=unsupported
10542           # It fails to find uninstalled libraries when the uninstalled
10543           # path is not listed in the libpath.  Setting hardcode_minus_L
10544           # to unsupported forces relinking
10545           hardcode_minus_L=yes
10546           hardcode_libdir_flag_spec='-L$libdir'
10547           hardcode_libdir_separator=
10548           fi
10549           ;;
10550         esac
10551         shared_flag='-shared'
10552         if test "$aix_use_runtimelinking" = yes; then
10553           shared_flag="$shared_flag "'${wl}-G'
10554         fi
10555       else
10556         # not using gcc
10557         if test "$host_cpu" = ia64; then
10558         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10559         # chokes on -Wl,-G. The following line is correct:
10560           shared_flag='-G'
10561         else
10562           if test "$aix_use_runtimelinking" = yes; then
10563             shared_flag='${wl}-G'
10564           else
10565             shared_flag='${wl}-bM:SRE'
10566           fi
10567         fi
10568       fi
10569
10570       export_dynamic_flag_spec='${wl}-bexpall'
10571       # It seems that -bexpall does not export symbols beginning with
10572       # underscore (_), so it is better to generate a list of symbols to export.
10573       always_export_symbols=yes
10574       if test "$aix_use_runtimelinking" = yes; then
10575         # Warning - without using the other runtime loading flags (-brtl),
10576         # -berok will link without error, but may produce a broken library.
10577         allow_undefined_flag='-berok'
10578         # Determine the default libpath from the value encoded in an
10579         # empty executable.
10580         cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586
10587 int
10588 main ()
10589 {
10590
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599   *) ac_try_echo=$ac_try;;
10600 esac
10601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603   (eval "$ac_link") 2>conftest.er1
10604   ac_status=$?
10605   grep -v '^ *+' conftest.er1 >conftest.err
10606   rm -f conftest.er1
10607   cat conftest.err >&5
10608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } && {
10610          test -z "$ac_c_werror_flag" ||
10611          test ! -s conftest.err
10612        } && test -s conftest$ac_exeext && {
10613          test "$cross_compiling" = yes ||
10614          $as_test_x conftest$ac_exeext
10615        }; then
10616
10617 lt_aix_libpath_sed='
10618     /Import File Strings/,/^$/ {
10619         /^0/ {
10620             s/^0  *\(.*\)$/\1/
10621             p
10622         }
10623     }'
10624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10625 # Check for a 64-bit object if we didn't find anything.
10626 if test -z "$aix_libpath"; then
10627   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10628 fi
10629 else
10630   $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633
10634 fi
10635
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638       conftest$ac_exeext conftest.$ac_ext
10639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10640
10641         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10642         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"
10643       else
10644         if test "$host_cpu" = ia64; then
10645           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10646           allow_undefined_flag="-z nodefs"
10647           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"
10648         else
10649          # Determine the default libpath from the value encoded in an
10650          # empty executable.
10651          cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657
10658 int
10659 main ()
10660 {
10661
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670   *) ac_try_echo=$ac_try;;
10671 esac
10672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10673 $as_echo "$ac_try_echo") >&5
10674   (eval "$ac_link") 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } && {
10681          test -z "$ac_c_werror_flag" ||
10682          test ! -s conftest.err
10683        } && test -s conftest$ac_exeext && {
10684          test "$cross_compiling" = yes ||
10685          $as_test_x conftest$ac_exeext
10686        }; then
10687
10688 lt_aix_libpath_sed='
10689     /Import File Strings/,/^$/ {
10690         /^0/ {
10691             s/^0  *\(.*\)$/\1/
10692             p
10693         }
10694     }'
10695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10696 # Check for a 64-bit object if we didn't find anything.
10697 if test -z "$aix_libpath"; then
10698   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10699 fi
10700 else
10701   $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704
10705 fi
10706
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709       conftest$ac_exeext conftest.$ac_ext
10710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10711
10712          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10713           # Warning - without using the other run time loading flags,
10714           # -berok will link without error, but may produce a broken library.
10715           no_undefined_flag=' ${wl}-bernotok'
10716           allow_undefined_flag=' ${wl}-berok'
10717           # Exported symbols can be pulled into shared objects from archives
10718           whole_archive_flag_spec='$convenience'
10719           archive_cmds_need_lc=yes
10720           # This is similar to how AIX traditionally builds its shared libraries.
10721           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'
10722         fi
10723       fi
10724       ;;
10725
10726     amigaos*)
10727       case $host_cpu in
10728       powerpc)
10729             # see comment about AmigaOS4 .so support
10730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10731             archive_expsym_cmds=''
10732         ;;
10733       m68k)
10734             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)'
10735             hardcode_libdir_flag_spec='-L$libdir'
10736             hardcode_minus_L=yes
10737         ;;
10738       esac
10739       ;;
10740
10741     bsdi[45]*)
10742       export_dynamic_flag_spec=-rdynamic
10743       ;;
10744
10745     cygwin* | mingw* | pw32* | cegcc*)
10746       # When not using gcc, we currently assume that we are using
10747       # Microsoft Visual C++.
10748       # hardcode_libdir_flag_spec is actually meaningless, as there is
10749       # no search path for DLLs.
10750       hardcode_libdir_flag_spec=' '
10751       allow_undefined_flag=unsupported
10752       # Tell ltmain to make .lib files, not .a files.
10753       libext=lib
10754       # Tell ltmain to make .dll files, not .so files.
10755       shrext_cmds=".dll"
10756       # FIXME: Setting linknames here is a bad hack.
10757       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10758       # The linker will automatically build a .lib file if we build a DLL.
10759       old_archive_from_new_cmds='true'
10760       # FIXME: Should let the user specify the lib program.
10761       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10762       fix_srcfile_path='`cygpath -w "$srcfile"`'
10763       enable_shared_with_static_runtimes=yes
10764       ;;
10765
10766     darwin* | rhapsody*)
10767
10768
10769   archive_cmds_need_lc=no
10770   hardcode_direct=no
10771   hardcode_automatic=yes
10772   hardcode_shlibpath_var=unsupported
10773   whole_archive_flag_spec=''
10774   link_all_deplibs=yes
10775   allow_undefined_flag="$_lt_dar_allow_undefined"
10776   case $cc_basename in
10777      ifort*) _lt_dar_can_shared=yes ;;
10778      *) _lt_dar_can_shared=$GCC ;;
10779   esac
10780   if test "$_lt_dar_can_shared" = "yes"; then
10781     output_verbose_link_cmd=echo
10782     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10783     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10784     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}"
10785     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}"
10786
10787   else
10788   ld_shlibs=no
10789   fi
10790
10791       ;;
10792
10793     dgux*)
10794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795       hardcode_libdir_flag_spec='-L$libdir'
10796       hardcode_shlibpath_var=no
10797       ;;
10798
10799     freebsd1*)
10800       ld_shlibs=no
10801       ;;
10802
10803     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10804     # support.  Future versions do this automatically, but an explicit c++rt0.o
10805     # does not break anything, and helps significantly (at the cost of a little
10806     # extra space).
10807     freebsd2.2*)
10808       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10809       hardcode_libdir_flag_spec='-R$libdir'
10810       hardcode_direct=yes
10811       hardcode_shlibpath_var=no
10812       ;;
10813
10814     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10815     freebsd2*)
10816       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10817       hardcode_direct=yes
10818       hardcode_minus_L=yes
10819       hardcode_shlibpath_var=no
10820       ;;
10821
10822     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10823     freebsd* | dragonfly*)
10824       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10825       hardcode_libdir_flag_spec='-R$libdir'
10826       hardcode_direct=yes
10827       hardcode_shlibpath_var=no
10828       ;;
10829
10830     hpux9*)
10831       if test "$GCC" = yes; then
10832         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'
10833       else
10834         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'
10835       fi
10836       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10837       hardcode_libdir_separator=:
10838       hardcode_direct=yes
10839
10840       # hardcode_minus_L: Not really in the search PATH,
10841       # but as the default location of the library.
10842       hardcode_minus_L=yes
10843       export_dynamic_flag_spec='${wl}-E'
10844       ;;
10845
10846     hpux10*)
10847       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10848         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10849       else
10850         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10851       fi
10852       if test "$with_gnu_ld" = no; then
10853         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10854         hardcode_libdir_flag_spec_ld='+b $libdir'
10855         hardcode_libdir_separator=:
10856         hardcode_direct=yes
10857         hardcode_direct_absolute=yes
10858         export_dynamic_flag_spec='${wl}-E'
10859         # hardcode_minus_L: Not really in the search PATH,
10860         # but as the default location of the library.
10861         hardcode_minus_L=yes
10862       fi
10863       ;;
10864
10865     hpux11*)
10866       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10867         case $host_cpu in
10868         hppa*64*)
10869           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10870           ;;
10871         ia64*)
10872           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10873           ;;
10874         *)
10875           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10876           ;;
10877         esac
10878       else
10879         case $host_cpu in
10880         hppa*64*)
10881           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10882           ;;
10883         ia64*)
10884           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10885           ;;
10886         *)
10887           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10888           ;;
10889         esac
10890       fi
10891       if test "$with_gnu_ld" = no; then
10892         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10893         hardcode_libdir_separator=:
10894
10895         case $host_cpu in
10896         hppa*64*|ia64*)
10897           hardcode_direct=no
10898           hardcode_shlibpath_var=no
10899           ;;
10900         *)
10901           hardcode_direct=yes
10902           hardcode_direct_absolute=yes
10903           export_dynamic_flag_spec='${wl}-E'
10904
10905           # hardcode_minus_L: Not really in the search PATH,
10906           # but as the default location of the library.
10907           hardcode_minus_L=yes
10908           ;;
10909         esac
10910       fi
10911       ;;
10912
10913     irix5* | irix6* | nonstopux*)
10914       if test "$GCC" = yes; then
10915         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'
10916         # Try to use the -exported_symbol ld option, if it does not
10917         # work, assume that -exports_file does not work either and
10918         # implicitly export all symbols.
10919         save_LDFLAGS="$LDFLAGS"
10920         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10921         cat >conftest.$ac_ext <<_ACEOF
10922 int foo(void) {}
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest$ac_exeext && {
10942          test "$cross_compiling" = yes ||
10943          $as_test_x conftest$ac_exeext
10944        }; then
10945   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'
10946
10947 else
10948   $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951
10952 fi
10953
10954 rm -rf conftest.dSYM
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956       conftest$ac_exeext conftest.$ac_ext
10957         LDFLAGS="$save_LDFLAGS"
10958       else
10959         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'
10960         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'
10961       fi
10962       archive_cmds_need_lc='no'
10963       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10964       hardcode_libdir_separator=:
10965       inherit_rpath=yes
10966       link_all_deplibs=yes
10967       ;;
10968
10969     netbsd*)
10970       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10971         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10972       else
10973         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10974       fi
10975       hardcode_libdir_flag_spec='-R$libdir'
10976       hardcode_direct=yes
10977       hardcode_shlibpath_var=no
10978       ;;
10979
10980     newsos6)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_direct=yes
10983       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10984       hardcode_libdir_separator=:
10985       hardcode_shlibpath_var=no
10986       ;;
10987
10988     *nto* | *qnx*)
10989       ;;
10990
10991     openbsd*)
10992       if test -f /usr/libexec/ld.so; then
10993         hardcode_direct=yes
10994         hardcode_shlibpath_var=no
10995         hardcode_direct_absolute=yes
10996         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10997           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10998           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10999           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11000           export_dynamic_flag_spec='${wl}-E'
11001         else
11002           case $host_os in
11003            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11004              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11005              hardcode_libdir_flag_spec='-R$libdir'
11006              ;;
11007            *)
11008              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11009              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11010              ;;
11011           esac
11012         fi
11013       else
11014         ld_shlibs=no
11015       fi
11016       ;;
11017
11018     os2*)
11019       hardcode_libdir_flag_spec='-L$libdir'
11020       hardcode_minus_L=yes
11021       allow_undefined_flag=unsupported
11022       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'
11023       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11024       ;;
11025
11026     osf3*)
11027       if test "$GCC" = yes; then
11028         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11029         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'
11030       else
11031         allow_undefined_flag=' -expect_unresolved \*'
11032         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'
11033       fi
11034       archive_cmds_need_lc='no'
11035       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11036       hardcode_libdir_separator=:
11037       ;;
11038
11039     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11040       if test "$GCC" = yes; then
11041         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11042         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'
11043         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11044       else
11045         allow_undefined_flag=' -expect_unresolved \*'
11046         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'
11047         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~
11048         $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'
11049
11050         # Both c and cxx compiler support -rpath directly
11051         hardcode_libdir_flag_spec='-rpath $libdir'
11052       fi
11053       archive_cmds_need_lc='no'
11054       hardcode_libdir_separator=:
11055       ;;
11056
11057     solaris*)
11058       no_undefined_flag=' -z defs'
11059       if test "$GCC" = yes; then
11060         wlarc='${wl}'
11061         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11063           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11064       else
11065         case `$CC -V 2>&1` in
11066         *"Compilers 5.0"*)
11067           wlarc=''
11068           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11070           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11071           ;;
11072         *)
11073           wlarc='${wl}'
11074           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11075           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11076           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11077           ;;
11078         esac
11079       fi
11080       hardcode_libdir_flag_spec='-R$libdir'
11081       hardcode_shlibpath_var=no
11082       case $host_os in
11083       solaris2.[0-5] | solaris2.[0-5].*) ;;
11084       *)
11085         # The compiler driver will combine and reorder linker options,
11086         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11087         # but is careful enough not to reorder.
11088         # Supported since Solaris 2.6 (maybe 2.5.1?)
11089         if test "$GCC" = yes; then
11090           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11091         else
11092           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11093         fi
11094         ;;
11095       esac
11096       link_all_deplibs=yes
11097       ;;
11098
11099     sunos4*)
11100       if test "x$host_vendor" = xsequent; then
11101         # Use $CC to link under sequent, because it throws in some extra .o
11102         # files that make .init and .fini sections work.
11103         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11104       else
11105         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11106       fi
11107       hardcode_libdir_flag_spec='-L$libdir'
11108       hardcode_direct=yes
11109       hardcode_minus_L=yes
11110       hardcode_shlibpath_var=no
11111       ;;
11112
11113     sysv4)
11114       case $host_vendor in
11115         sni)
11116           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117           hardcode_direct=yes # is this really true???
11118         ;;
11119         siemens)
11120           ## LD is ld it makes a PLAMLIB
11121           ## CC just makes a GrossModule.
11122           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11123           reload_cmds='$CC -r -o $output$reload_objs'
11124           hardcode_direct=no
11125         ;;
11126         motorola)
11127           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11129         ;;
11130       esac
11131       runpath_var='LD_RUN_PATH'
11132       hardcode_shlibpath_var=no
11133       ;;
11134
11135     sysv4.3*)
11136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11137       hardcode_shlibpath_var=no
11138       export_dynamic_flag_spec='-Bexport'
11139       ;;
11140
11141     sysv4*MP*)
11142       if test -d /usr/nec; then
11143         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11144         hardcode_shlibpath_var=no
11145         runpath_var=LD_RUN_PATH
11146         hardcode_runpath_var=yes
11147         ld_shlibs=yes
11148       fi
11149       ;;
11150
11151     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11152       no_undefined_flag='${wl}-z,text'
11153       archive_cmds_need_lc=no
11154       hardcode_shlibpath_var=no
11155       runpath_var='LD_RUN_PATH'
11156
11157       if test "$GCC" = yes; then
11158         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160       else
11161         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163       fi
11164       ;;
11165
11166     sysv5* | sco3.2v5* | sco5v6*)
11167       # Note: We can NOT use -z defs as we might desire, because we do not
11168       # link with -lc, and that would cause any symbols used from libc to
11169       # always be unresolved, which means just about no library would
11170       # ever link correctly.  If we're not using GNU ld we use -z text
11171       # though, which does catch some bad symbols but isn't as heavy-handed
11172       # as -z defs.
11173       no_undefined_flag='${wl}-z,text'
11174       allow_undefined_flag='${wl}-z,nodefs'
11175       archive_cmds_need_lc=no
11176       hardcode_shlibpath_var=no
11177       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11178       hardcode_libdir_separator=':'
11179       link_all_deplibs=yes
11180       export_dynamic_flag_spec='${wl}-Bexport'
11181       runpath_var='LD_RUN_PATH'
11182
11183       if test "$GCC" = yes; then
11184         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186       else
11187         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11188         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189       fi
11190       ;;
11191
11192     uts4*)
11193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194       hardcode_libdir_flag_spec='-L$libdir'
11195       hardcode_shlibpath_var=no
11196       ;;
11197
11198     *)
11199       ld_shlibs=no
11200       ;;
11201     esac
11202
11203     if test x$host_vendor = xsni; then
11204       case $host in
11205       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11206         export_dynamic_flag_spec='${wl}-Blargedynsym'
11207         ;;
11208       esac
11209     fi
11210   fi
11211
11212 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11213 $as_echo "$ld_shlibs" >&6; }
11214 test "$ld_shlibs" = no && can_build_shared=no
11215
11216 with_gnu_ld=$with_gnu_ld
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232 #
11233 # Do we need to explicitly link libc?
11234 #
11235 case "x$archive_cmds_need_lc" in
11236 x|xyes)
11237   # Assume -lc should be added
11238   archive_cmds_need_lc=yes
11239
11240   if test "$enable_shared" = yes && test "$GCC" = yes; then
11241     case $archive_cmds in
11242     *'~'*)
11243       # FIXME: we may have to deal with multi-command sequences.
11244       ;;
11245     '$CC '*)
11246       # Test whether the compiler implicitly links with -lc since on some
11247       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11248       # to ld, don't add -lc before -lgcc.
11249       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11250 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11251       $RM conftest*
11252       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11253
11254       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255   (eval $ac_compile) 2>&5
11256   ac_status=$?
11257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } 2>conftest.err; then
11259         soname=conftest
11260         lib=conftest
11261         libobjs=conftest.$ac_objext
11262         deplibs=
11263         wl=$lt_prog_compiler_wl
11264         pic_flag=$lt_prog_compiler_pic
11265         compiler_flags=-v
11266         linker_flags=-v
11267         verstring=
11268         output_objdir=.
11269         libname=conftest
11270         lt_save_allow_undefined_flag=$allow_undefined_flag
11271         allow_undefined_flag=
11272         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11273   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11274   ac_status=$?
11275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }
11277         then
11278           archive_cmds_need_lc=no
11279         else
11280           archive_cmds_need_lc=yes
11281         fi
11282         allow_undefined_flag=$lt_save_allow_undefined_flag
11283       else
11284         cat conftest.err 1>&5
11285       fi
11286       $RM conftest*
11287       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11288 $as_echo "$archive_cmds_need_lc" >&6; }
11289       ;;
11290     esac
11291   fi
11292   ;;
11293 esac
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11453
11454 if test "$GCC" = yes; then
11455   case $host_os in
11456     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11457     *) lt_awk_arg="/^libraries:/" ;;
11458   esac
11459   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11460   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11461     # if the path contains ";" then we assume it to be the separator
11462     # otherwise default to the standard path separator (i.e. ":") - it is
11463     # assumed that no part of a normal pathname contains ";" but that should
11464     # okay in the real world where ";" in dirpaths is itself problematic.
11465     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11466   else
11467     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11468   fi
11469   # Ok, now we have the path, separated by spaces, we can step through it
11470   # and add multilib dir if necessary.
11471   lt_tmp_lt_search_path_spec=
11472   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11473   for lt_sys_path in $lt_search_path_spec; do
11474     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11475       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11476     else
11477       test -d "$lt_sys_path" && \
11478         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11479     fi
11480   done
11481   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11482 BEGIN {RS=" "; FS="/|\n";} {
11483   lt_foo="";
11484   lt_count=0;
11485   for (lt_i = NF; lt_i > 0; lt_i--) {
11486     if ($lt_i != "" && $lt_i != ".") {
11487       if ($lt_i == "..") {
11488         lt_count++;
11489       } else {
11490         if (lt_count == 0) {
11491           lt_foo="/" $lt_i lt_foo;
11492         } else {
11493           lt_count--;
11494         }
11495       }
11496     }
11497   }
11498   if (lt_foo != "") { lt_freq[lt_foo]++; }
11499   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11500 }'`
11501   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11502 else
11503   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11504 fi
11505 library_names_spec=
11506 libname_spec='lib$name'
11507 soname_spec=
11508 shrext_cmds=".so"
11509 postinstall_cmds=
11510 postuninstall_cmds=
11511 finish_cmds=
11512 finish_eval=
11513 shlibpath_var=
11514 shlibpath_overrides_runpath=unknown
11515 version_type=none
11516 dynamic_linker="$host_os ld.so"
11517 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11518 need_lib_prefix=unknown
11519 hardcode_into_libs=no
11520
11521 # when you set need_version to no, make sure it does not cause -set_version
11522 # flags to be left without arguments
11523 need_version=unknown
11524
11525 case $host_os in
11526 aix3*)
11527   version_type=linux
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11529   shlibpath_var=LIBPATH
11530
11531   # AIX 3 has no versioning support, so we append a major version to the name.
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   ;;
11534
11535 aix[4-9]*)
11536   version_type=linux
11537   need_lib_prefix=no
11538   need_version=no
11539   hardcode_into_libs=yes
11540   if test "$host_cpu" = ia64; then
11541     # AIX 5 supports IA64
11542     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11543     shlibpath_var=LD_LIBRARY_PATH
11544   else
11545     # With GCC up to 2.95.x, collect2 would create an import file
11546     # for dependence libraries.  The import file would start with
11547     # the line `#! .'.  This would cause the generated library to
11548     # depend on `.', always an invalid library.  This was fixed in
11549     # development snapshots of GCC prior to 3.0.
11550     case $host_os in
11551       aix4 | aix4.[01] | aix4.[01].*)
11552       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11553            echo ' yes '
11554            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11555         :
11556       else
11557         can_build_shared=no
11558       fi
11559       ;;
11560     esac
11561     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11562     # soname into executable. Probably we can add versioning support to
11563     # collect2, so additional links can be useful in future.
11564     if test "$aix_use_runtimelinking" = yes; then
11565       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11566       # instead of lib<name>.a to let people know that these are not
11567       # typical AIX shared libraries.
11568       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569     else
11570       # We preserve .a as extension for shared libraries through AIX4.2
11571       # and later when we are not doing run time linking.
11572       library_names_spec='${libname}${release}.a $libname.a'
11573       soname_spec='${libname}${release}${shared_ext}$major'
11574     fi
11575     shlibpath_var=LIBPATH
11576   fi
11577   ;;
11578
11579 amigaos*)
11580   case $host_cpu in
11581   powerpc)
11582     # Since July 2007 AmigaOS4 officially supports .so libraries.
11583     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585     ;;
11586   m68k)
11587     library_names_spec='$libname.ixlibrary $libname.a'
11588     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11589     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'
11590     ;;
11591   esac
11592   ;;
11593
11594 beos*)
11595   library_names_spec='${libname}${shared_ext}'
11596   dynamic_linker="$host_os ld.so"
11597   shlibpath_var=LIBRARY_PATH
11598   ;;
11599
11600 bsdi[45]*)
11601   version_type=linux
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11606   shlibpath_var=LD_LIBRARY_PATH
11607   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11608   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11609   # the default ld.so.conf also contains /usr/contrib/lib and
11610   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11611   # libtool to hard-code these into programs
11612   ;;
11613
11614 cygwin* | mingw* | pw32* | cegcc*)
11615   version_type=windows
11616   shrext_cmds=".dll"
11617   need_version=no
11618   need_lib_prefix=no
11619
11620   case $GCC,$host_os in
11621   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11622     library_names_spec='$libname.dll.a'
11623     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11624     postinstall_cmds='base_file=`basename \${file}`~
11625       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11626       dldir=$destdir/`dirname \$dlpath`~
11627       test -d \$dldir || mkdir -p \$dldir~
11628       $install_prog $dir/$dlname \$dldir/$dlname~
11629       chmod a+x \$dldir/$dlname~
11630       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11631         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11632       fi'
11633     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11634       dlpath=$dir/\$dldll~
11635        $RM \$dlpath'
11636     shlibpath_overrides_runpath=yes
11637
11638     case $host_os in
11639     cygwin*)
11640       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11641       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11642       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11643       ;;
11644     mingw* | cegcc*)
11645       # MinGW DLLs use traditional 'lib' prefix
11646       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11648       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11649         # It is most probably a Windows format PATH printed by
11650         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11651         # path with ; separators, and with drive letters. We can handle the
11652         # drive letters (cygwin fileutils understands them), so leave them,
11653         # especially as we might pass files found there to a mingw objdump,
11654         # which wouldn't understand a cygwinified path. Ahh.
11655         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11656       else
11657         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11658       fi
11659       ;;
11660     pw32*)
11661       # pw32 DLLs use 'pw' prefix rather than 'lib'
11662       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11663       ;;
11664     esac
11665     ;;
11666
11667   *)
11668     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11669     ;;
11670   esac
11671   dynamic_linker='Win32 ld.exe'
11672   # FIXME: first we should search . and the directory the executable is in
11673   shlibpath_var=PATH
11674   ;;
11675
11676 darwin* | rhapsody*)
11677   dynamic_linker="$host_os dyld"
11678   version_type=darwin
11679   need_lib_prefix=no
11680   need_version=no
11681   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11682   soname_spec='${libname}${release}${major}$shared_ext'
11683   shlibpath_overrides_runpath=yes
11684   shlibpath_var=DYLD_LIBRARY_PATH
11685   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11686
11687   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11688   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11689   ;;
11690
11691 dgux*)
11692   version_type=linux
11693   need_lib_prefix=no
11694   need_version=no
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11696   soname_spec='${libname}${release}${shared_ext}$major'
11697   shlibpath_var=LD_LIBRARY_PATH
11698   ;;
11699
11700 freebsd1*)
11701   dynamic_linker=no
11702   ;;
11703
11704 freebsd* | dragonfly*)
11705   # DragonFly does not have aout.  When/if they implement a new
11706   # versioning mechanism, adjust this.
11707   if test -x /usr/bin/objformat; then
11708     objformat=`/usr/bin/objformat`
11709   else
11710     case $host_os in
11711     freebsd[123]*) objformat=aout ;;
11712     *) objformat=elf ;;
11713     esac
11714   fi
11715   version_type=freebsd-$objformat
11716   case $version_type in
11717     freebsd-elf*)
11718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11719       need_version=no
11720       need_lib_prefix=no
11721       ;;
11722     freebsd-*)
11723       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11724       need_version=yes
11725       ;;
11726   esac
11727   shlibpath_var=LD_LIBRARY_PATH
11728   case $host_os in
11729   freebsd2*)
11730     shlibpath_overrides_runpath=yes
11731     ;;
11732   freebsd3.[01]* | freebsdelf3.[01]*)
11733     shlibpath_overrides_runpath=yes
11734     hardcode_into_libs=yes
11735     ;;
11736   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11737   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11738     shlibpath_overrides_runpath=no
11739     hardcode_into_libs=yes
11740     ;;
11741   *) # from 4.6 on, and DragonFly
11742     shlibpath_overrides_runpath=yes
11743     hardcode_into_libs=yes
11744     ;;
11745   esac
11746   ;;
11747
11748 gnu*)
11749   version_type=linux
11750   need_lib_prefix=no
11751   need_version=no
11752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11753   soname_spec='${libname}${release}${shared_ext}$major'
11754   shlibpath_var=LD_LIBRARY_PATH
11755   hardcode_into_libs=yes
11756   ;;
11757
11758 hpux9* | hpux10* | hpux11*)
11759   # Give a soname corresponding to the major version so that dld.sl refuses to
11760   # link against other versions.
11761   version_type=sunos
11762   need_lib_prefix=no
11763   need_version=no
11764   case $host_cpu in
11765   ia64*)
11766     shrext_cmds='.so'
11767     hardcode_into_libs=yes
11768     dynamic_linker="$host_os dld.so"
11769     shlibpath_var=LD_LIBRARY_PATH
11770     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772     soname_spec='${libname}${release}${shared_ext}$major'
11773     if test "X$HPUX_IA64_MODE" = X32; then
11774       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11775     else
11776       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11777     fi
11778     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11779     ;;
11780   hppa*64*)
11781     shrext_cmds='.sl'
11782     hardcode_into_libs=yes
11783     dynamic_linker="$host_os dld.sl"
11784     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787     soname_spec='${libname}${release}${shared_ext}$major'
11788     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11790     ;;
11791   *)
11792     shrext_cmds='.sl'
11793     dynamic_linker="$host_os dld.sl"
11794     shlibpath_var=SHLIB_PATH
11795     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797     soname_spec='${libname}${release}${shared_ext}$major'
11798     ;;
11799   esac
11800   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11801   postinstall_cmds='chmod 555 $lib'
11802   ;;
11803
11804 interix[3-9]*)
11805   version_type=linux
11806   need_lib_prefix=no
11807   need_version=no
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11809   soname_spec='${libname}${release}${shared_ext}$major'
11810   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   shlibpath_overrides_runpath=no
11813   hardcode_into_libs=yes
11814   ;;
11815
11816 irix5* | irix6* | nonstopux*)
11817   case $host_os in
11818     nonstopux*) version_type=nonstopux ;;
11819     *)
11820         if test "$lt_cv_prog_gnu_ld" = yes; then
11821                 version_type=linux
11822         else
11823                 version_type=irix
11824         fi ;;
11825   esac
11826   need_lib_prefix=no
11827   need_version=no
11828   soname_spec='${libname}${release}${shared_ext}$major'
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11830   case $host_os in
11831   irix5* | nonstopux*)
11832     libsuff= shlibsuff=
11833     ;;
11834   *)
11835     case $LD in # libtool.m4 will add one of these switches to LD
11836     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11837       libsuff= shlibsuff= libmagic=32-bit;;
11838     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11839       libsuff=32 shlibsuff=N32 libmagic=N32;;
11840     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11841       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11842     *) libsuff= shlibsuff= libmagic=never-match;;
11843     esac
11844     ;;
11845   esac
11846   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11847   shlibpath_overrides_runpath=no
11848   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11849   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11850   hardcode_into_libs=yes
11851   ;;
11852
11853 # No shared lib support for Linux oldld, aout, or coff.
11854 linux*oldld* | linux*aout* | linux*coff*)
11855   dynamic_linker=no
11856   ;;
11857
11858 # This must be Linux ELF.
11859 linux* | k*bsd*-gnu)
11860   version_type=linux
11861   need_lib_prefix=no
11862   need_version=no
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864   soname_spec='${libname}${release}${shared_ext}$major'
11865   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11866   shlibpath_var=LD_LIBRARY_PATH
11867   shlibpath_overrides_runpath=no
11868   # Some binutils ld are patched to set DT_RUNPATH
11869   save_LDFLAGS=$LDFLAGS
11870   save_libdir=$libdir
11871   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11872        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879
11880 int
11881 main ()
11882 {
11883
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11895 $as_echo "$ac_try_echo") >&5
11896   (eval "$ac_link") 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } && {
11903          test -z "$ac_c_werror_flag" ||
11904          test ! -s conftest.err
11905        } && test -s conftest$ac_exeext && {
11906          test "$cross_compiling" = yes ||
11907          $as_test_x conftest$ac_exeext
11908        }; then
11909   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11910   shlibpath_overrides_runpath=yes
11911 fi
11912
11913 else
11914   $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917
11918 fi
11919
11920 rm -rf conftest.dSYM
11921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11922       conftest$ac_exeext conftest.$ac_ext
11923   LDFLAGS=$save_LDFLAGS
11924   libdir=$save_libdir
11925
11926   # This implies no fast_install, which is unacceptable.
11927   # Some rework will be needed to allow for fast_install
11928   # before this can be enabled.
11929   hardcode_into_libs=yes
11930
11931   # Append ld.so.conf contents to the search path
11932   if test -f /etc/ld.so.conf; then
11933     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' ' '`
11934     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935   fi
11936
11937   # We used to test for /lib/ld.so.1 and disable shared libraries on
11938   # powerpc, because MkLinux only supported shared libraries with the
11939   # GNU dynamic linker.  Since this was broken with cross compilers,
11940   # most powerpc-linux boxes support dynamic linking these days and
11941   # people can always --disable-shared, the test was removed, and we
11942   # assume the GNU/Linux dynamic linker is in use.
11943   dynamic_linker='GNU/Linux ld.so'
11944   ;;
11945
11946 netbsd*)
11947   version_type=sunos
11948   need_lib_prefix=no
11949   need_version=no
11950   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11953     dynamic_linker='NetBSD (a.out) ld.so'
11954   else
11955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11956     soname_spec='${libname}${release}${shared_ext}$major'
11957     dynamic_linker='NetBSD ld.elf_so'
11958   fi
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=yes
11961   hardcode_into_libs=yes
11962   ;;
11963
11964 newsos6)
11965   version_type=linux
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   shlibpath_var=LD_LIBRARY_PATH
11968   shlibpath_overrides_runpath=yes
11969   ;;
11970
11971 *nto* | *qnx*)
11972   version_type=qnx
11973   need_lib_prefix=no
11974   need_version=no
11975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976   soname_spec='${libname}${release}${shared_ext}$major'
11977   shlibpath_var=LD_LIBRARY_PATH
11978   shlibpath_overrides_runpath=no
11979   hardcode_into_libs=yes
11980   dynamic_linker='ldqnx.so'
11981   ;;
11982
11983 openbsd*)
11984   version_type=sunos
11985   sys_lib_dlsearch_path_spec="/usr/lib"
11986   need_lib_prefix=no
11987   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11988   case $host_os in
11989     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11990     *)                          need_version=no  ;;
11991   esac
11992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11994   shlibpath_var=LD_LIBRARY_PATH
11995   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11996     case $host_os in
11997       openbsd2.[89] | openbsd2.[89].*)
11998         shlibpath_overrides_runpath=no
11999         ;;
12000       *)
12001         shlibpath_overrides_runpath=yes
12002         ;;
12003       esac
12004   else
12005     shlibpath_overrides_runpath=yes
12006   fi
12007   ;;
12008
12009 os2*)
12010   libname_spec='$name'
12011   shrext_cmds=".dll"
12012   need_lib_prefix=no
12013   library_names_spec='$libname${shared_ext} $libname.a'
12014   dynamic_linker='OS/2 ld.exe'
12015   shlibpath_var=LIBPATH
12016   ;;
12017
12018 osf3* | osf4* | osf5*)
12019   version_type=osf
12020   need_lib_prefix=no
12021   need_version=no
12022   soname_spec='${libname}${release}${shared_ext}$major'
12023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12026   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12027   ;;
12028
12029 rdos*)
12030   dynamic_linker=no
12031   ;;
12032
12033 solaris*)
12034   version_type=linux
12035   need_lib_prefix=no
12036   need_version=no
12037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038   soname_spec='${libname}${release}${shared_ext}$major'
12039   shlibpath_var=LD_LIBRARY_PATH
12040   shlibpath_overrides_runpath=yes
12041   hardcode_into_libs=yes
12042   # ldd complains unless libraries are executable
12043   postinstall_cmds='chmod +x $lib'
12044   ;;
12045
12046 sunos4*)
12047   version_type=sunos
12048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12049   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12050   shlibpath_var=LD_LIBRARY_PATH
12051   shlibpath_overrides_runpath=yes
12052   if test "$with_gnu_ld" = yes; then
12053     need_lib_prefix=no
12054   fi
12055   need_version=yes
12056   ;;
12057
12058 sysv4 | sysv4.3*)
12059   version_type=linux
12060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061   soname_spec='${libname}${release}${shared_ext}$major'
12062   shlibpath_var=LD_LIBRARY_PATH
12063   case $host_vendor in
12064     sni)
12065       shlibpath_overrides_runpath=no
12066       need_lib_prefix=no
12067       runpath_var=LD_RUN_PATH
12068       ;;
12069     siemens)
12070       need_lib_prefix=no
12071       ;;
12072     motorola)
12073       need_lib_prefix=no
12074       need_version=no
12075       shlibpath_overrides_runpath=no
12076       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12077       ;;
12078   esac
12079   ;;
12080
12081 sysv4*MP*)
12082   if test -d /usr/nec ;then
12083     version_type=linux
12084     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12085     soname_spec='$libname${shared_ext}.$major'
12086     shlibpath_var=LD_LIBRARY_PATH
12087   fi
12088   ;;
12089
12090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12091   version_type=freebsd-elf
12092   need_lib_prefix=no
12093   need_version=no
12094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12095   soname_spec='${libname}${release}${shared_ext}$major'
12096   shlibpath_var=LD_LIBRARY_PATH
12097   shlibpath_overrides_runpath=yes
12098   hardcode_into_libs=yes
12099   if test "$with_gnu_ld" = yes; then
12100     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12101   else
12102     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12103     case $host_os in
12104       sco3.2v5*)
12105         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12106         ;;
12107     esac
12108   fi
12109   sys_lib_dlsearch_path_spec='/usr/lib'
12110   ;;
12111
12112 tpf*)
12113   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12114   version_type=linux
12115   need_lib_prefix=no
12116   need_version=no
12117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   shlibpath_overrides_runpath=no
12120   hardcode_into_libs=yes
12121   ;;
12122
12123 uts4*)
12124   version_type=linux
12125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126   soname_spec='${libname}${release}${shared_ext}$major'
12127   shlibpath_var=LD_LIBRARY_PATH
12128   ;;
12129
12130 *)
12131   dynamic_linker=no
12132   ;;
12133 esac
12134 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12135 $as_echo "$dynamic_linker" >&6; }
12136 test "$dynamic_linker" = no && can_build_shared=no
12137
12138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12139 if test "$GCC" = yes; then
12140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12141 fi
12142
12143 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12144   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12145 fi
12146 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12147   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12148 fi
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12237 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12238 hardcode_action=
12239 if test -n "$hardcode_libdir_flag_spec" ||
12240    test -n "$runpath_var" ||
12241    test "X$hardcode_automatic" = "Xyes" ; then
12242
12243   # We can hardcode non-existent directories.
12244   if test "$hardcode_direct" != no &&
12245      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12246      # have to relink, otherwise we might link with an installed library
12247      # when we should be linking with a yet-to-be-installed one
12248      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12249      test "$hardcode_minus_L" != no; then
12250     # Linking always hardcodes the temporary library directory.
12251     hardcode_action=relink
12252   else
12253     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12254     hardcode_action=immediate
12255   fi
12256 else
12257   # We cannot hardcode anything, or else we can only hardcode existing
12258   # directories.
12259   hardcode_action=unsupported
12260 fi
12261 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12262 $as_echo "$hardcode_action" >&6; }
12263
12264 if test "$hardcode_action" = relink ||
12265    test "$inherit_rpath" = yes; then
12266   # Fast installation is not supported
12267   enable_fast_install=no
12268 elif test "$shlibpath_overrides_runpath" = yes ||
12269      test "$enable_shared" = no; then
12270   # Fast installation is not necessary
12271   enable_fast_install=needless
12272 fi
12273
12274
12275
12276
12277
12278
12279   if test "x$enable_dlopen" != xyes; then
12280   enable_dlopen=unknown
12281   enable_dlopen_self=unknown
12282   enable_dlopen_self_static=unknown
12283 else
12284   lt_cv_dlopen=no
12285   lt_cv_dlopen_libs=
12286
12287   case $host_os in
12288   beos*)
12289     lt_cv_dlopen="load_add_on"
12290     lt_cv_dlopen_libs=
12291     lt_cv_dlopen_self=yes
12292     ;;
12293
12294   mingw* | pw32* | cegcc*)
12295     lt_cv_dlopen="LoadLibrary"
12296     lt_cv_dlopen_libs=
12297     ;;
12298
12299   cygwin*)
12300     lt_cv_dlopen="dlopen"
12301     lt_cv_dlopen_libs=
12302     ;;
12303
12304   darwin*)
12305   # if libdl is installed we need to link against it
12306     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12307 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12309   $as_echo_n "(cached) " >&6
12310 else
12311   ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-ldl  $LIBS"
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319
12320 /* Override any GCC internal prototype to avoid an error.
12321    Use char because int might match the return type of a GCC
12322    builtin and then its argument prototype would still apply.  */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char dlopen ();
12327 int
12328 main ()
12329 {
12330 return dlopen ();
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (ac_try="$ac_link"
12337 case "(($ac_try" in
12338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339   *) ac_try_echo=$ac_try;;
12340 esac
12341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12342 $as_echo "$ac_try_echo") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } && {
12350          test -z "$ac_c_werror_flag" ||
12351          test ! -s conftest.err
12352        } && test -s conftest$ac_exeext && {
12353          test "$cross_compiling" = yes ||
12354          $as_test_x conftest$ac_exeext
12355        }; then
12356   ac_cv_lib_dl_dlopen=yes
12357 else
12358   $as_echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361         ac_cv_lib_dl_dlopen=no
12362 fi
12363
12364 rm -rf conftest.dSYM
12365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12366       conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12368 fi
12369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12370 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12371 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12372   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12373 else
12374
12375     lt_cv_dlopen="dyld"
12376     lt_cv_dlopen_libs=
12377     lt_cv_dlopen_self=yes
12378
12379 fi
12380
12381     ;;
12382
12383   *)
12384     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12385 $as_echo_n "checking for shl_load... " >&6; }
12386 if test "${ac_cv_func_shl_load+set}" = set; then
12387   $as_echo_n "(cached) " >&6
12388 else
12389   cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12397 #define shl_load innocuous_shl_load
12398
12399 /* System header to define __stub macros and hopefully few prototypes,
12400     which can conflict with char shl_load (); below.
12401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402     <limits.h> exists even on freestanding compilers.  */
12403
12404 #ifdef __STDC__
12405 # include <limits.h>
12406 #else
12407 # include <assert.h>
12408 #endif
12409
12410 #undef shl_load
12411
12412 /* Override any GCC internal prototype to avoid an error.
12413    Use char because int might match the return type of a GCC
12414    builtin and then its argument prototype would still apply.  */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char shl_load ();
12419 /* The GNU C library defines this for functions which it implements
12420     to always fail with ENOSYS.  Some functions are actually named
12421     something starting with __ and the normal name is an alias.  */
12422 #if defined __stub_shl_load || defined __stub___shl_load
12423 choke me
12424 #endif
12425
12426 int
12427 main ()
12428 {
12429 return shl_load ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12441 $as_echo "$ac_try_echo") >&5
12442   (eval "$ac_link") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } && {
12449          test -z "$ac_c_werror_flag" ||
12450          test ! -s conftest.err
12451        } && test -s conftest$ac_exeext && {
12452          test "$cross_compiling" = yes ||
12453          $as_test_x conftest$ac_exeext
12454        }; then
12455   ac_cv_func_shl_load=yes
12456 else
12457   $as_echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_cv_func_shl_load=no
12461 fi
12462
12463 rm -rf conftest.dSYM
12464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465       conftest$ac_exeext conftest.$ac_ext
12466 fi
12467 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12468 $as_echo "$ac_cv_func_shl_load" >&6; }
12469 if test "x$ac_cv_func_shl_load" = x""yes; then
12470   lt_cv_dlopen="shl_load"
12471 else
12472   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12473 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12474 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12475   $as_echo_n "(cached) " >&6
12476 else
12477   ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-ldld  $LIBS"
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485
12486 /* Override any GCC internal prototype to avoid an error.
12487    Use char because int might match the return type of a GCC
12488    builtin and then its argument prototype would still apply.  */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char shl_load ();
12493 int
12494 main ()
12495 {
12496 return shl_load ();
12497   ;
12498   return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509   (eval "$ac_link") 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } && {
12516          test -z "$ac_c_werror_flag" ||
12517          test ! -s conftest.err
12518        } && test -s conftest$ac_exeext && {
12519          test "$cross_compiling" = yes ||
12520          $as_test_x conftest$ac_exeext
12521        }; then
12522   ac_cv_lib_dld_shl_load=yes
12523 else
12524   $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527         ac_cv_lib_dld_shl_load=no
12528 fi
12529
12530 rm -rf conftest.dSYM
12531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532       conftest$ac_exeext conftest.$ac_ext
12533 LIBS=$ac_check_lib_save_LIBS
12534 fi
12535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12536 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12537 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12538   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12539 else
12540   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12541 $as_echo_n "checking for dlopen... " >&6; }
12542 if test "${ac_cv_func_dlopen+set}" = set; then
12543   $as_echo_n "(cached) " >&6
12544 else
12545   cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12553 #define dlopen innocuous_dlopen
12554
12555 /* System header to define __stub macros and hopefully few prototypes,
12556     which can conflict with char dlopen (); below.
12557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12558     <limits.h> exists even on freestanding compilers.  */
12559
12560 #ifdef __STDC__
12561 # include <limits.h>
12562 #else
12563 # include <assert.h>
12564 #endif
12565
12566 #undef dlopen
12567
12568 /* Override any GCC internal prototype to avoid an error.
12569    Use char because int might match the return type of a GCC
12570    builtin and then its argument prototype would still apply.  */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 char dlopen ();
12575 /* The GNU C library defines this for functions which it implements
12576     to always fail with ENOSYS.  Some functions are actually named
12577     something starting with __ and the normal name is an alias.  */
12578 #if defined __stub_dlopen || defined __stub___dlopen
12579 choke me
12580 #endif
12581
12582 int
12583 main ()
12584 {
12585 return dlopen ();
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (ac_try="$ac_link"
12592 case "(($ac_try" in
12593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594   *) ac_try_echo=$ac_try;;
12595 esac
12596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12597 $as_echo "$ac_try_echo") >&5
12598   (eval "$ac_link") 2>conftest.er1
12599   ac_status=$?
12600   grep -v '^ *+' conftest.er1 >conftest.err
12601   rm -f conftest.er1
12602   cat conftest.err >&5
12603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } && {
12605          test -z "$ac_c_werror_flag" ||
12606          test ! -s conftest.err
12607        } && test -s conftest$ac_exeext && {
12608          test "$cross_compiling" = yes ||
12609          $as_test_x conftest$ac_exeext
12610        }; then
12611   ac_cv_func_dlopen=yes
12612 else
12613   $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616         ac_cv_func_dlopen=no
12617 fi
12618
12619 rm -rf conftest.dSYM
12620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12621       conftest$ac_exeext conftest.$ac_ext
12622 fi
12623 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12624 $as_echo "$ac_cv_func_dlopen" >&6; }
12625 if test "x$ac_cv_func_dlopen" = x""yes; then
12626   lt_cv_dlopen="dlopen"
12627 else
12628   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12629 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12631   $as_echo_n "(cached) " >&6
12632 else
12633   ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-ldl  $LIBS"
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h.  */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h.  */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643    Use char because int might match the return type of a GCC
12644    builtin and then its argument prototype would still apply.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char dlopen ();
12649 int
12650 main ()
12651 {
12652 return dlopen ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664 $as_echo "$ac_try_echo") >&5
12665   (eval "$ac_link") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } && {
12672          test -z "$ac_c_werror_flag" ||
12673          test ! -s conftest.err
12674        } && test -s conftest$ac_exeext && {
12675          test "$cross_compiling" = yes ||
12676          $as_test_x conftest$ac_exeext
12677        }; then
12678   ac_cv_lib_dl_dlopen=yes
12679 else
12680   $as_echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683         ac_cv_lib_dl_dlopen=no
12684 fi
12685
12686 rm -rf conftest.dSYM
12687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12688       conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12690 fi
12691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12693 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12694   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12695 else
12696   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12697 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12698 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12699   $as_echo_n "(cached) " >&6
12700 else
12701   ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lsvld  $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709
12710 /* Override any GCC internal prototype to avoid an error.
12711    Use char because int might match the return type of a GCC
12712    builtin and then its argument prototype would still apply.  */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 char dlopen ();
12717 int
12718 main ()
12719 {
12720 return dlopen ();
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12732 $as_echo "$ac_try_echo") >&5
12733   (eval "$ac_link") 2>conftest.er1
12734   ac_status=$?
12735   grep -v '^ *+' conftest.er1 >conftest.err
12736   rm -f conftest.er1
12737   cat conftest.err >&5
12738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } && {
12740          test -z "$ac_c_werror_flag" ||
12741          test ! -s conftest.err
12742        } && test -s conftest$ac_exeext && {
12743          test "$cross_compiling" = yes ||
12744          $as_test_x conftest$ac_exeext
12745        }; then
12746   ac_cv_lib_svld_dlopen=yes
12747 else
12748   $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751         ac_cv_lib_svld_dlopen=no
12752 fi
12753
12754 rm -rf conftest.dSYM
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756       conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12758 fi
12759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12761 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12763 else
12764   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12766 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12767   $as_echo_n "(cached) " >&6
12768 else
12769   ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-ldld  $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h.  */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h.  */
12777
12778 /* Override any GCC internal prototype to avoid an error.
12779    Use char because int might match the return type of a GCC
12780    builtin and then its argument prototype would still apply.  */
12781 #ifdef __cplusplus
12782 extern "C"
12783 #endif
12784 char dld_link ();
12785 int
12786 main ()
12787 {
12788 return dld_link ();
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12800 $as_echo "$ac_try_echo") >&5
12801   (eval "$ac_link") 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } && {
12808          test -z "$ac_c_werror_flag" ||
12809          test ! -s conftest.err
12810        } && test -s conftest$ac_exeext && {
12811          test "$cross_compiling" = yes ||
12812          $as_test_x conftest$ac_exeext
12813        }; then
12814   ac_cv_lib_dld_dld_link=yes
12815 else
12816   $as_echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819         ac_cv_lib_dld_dld_link=no
12820 fi
12821
12822 rm -rf conftest.dSYM
12823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12824       conftest$ac_exeext conftest.$ac_ext
12825 LIBS=$ac_check_lib_save_LIBS
12826 fi
12827 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12828 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12829 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12830   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12831 fi
12832
12833
12834 fi
12835
12836
12837 fi
12838
12839
12840 fi
12841
12842
12843 fi
12844
12845
12846 fi
12847
12848     ;;
12849   esac
12850
12851   if test "x$lt_cv_dlopen" != xno; then
12852     enable_dlopen=yes
12853   else
12854     enable_dlopen=no
12855   fi
12856
12857   case $lt_cv_dlopen in
12858   dlopen)
12859     save_CPPFLAGS="$CPPFLAGS"
12860     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12861
12862     save_LDFLAGS="$LDFLAGS"
12863     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12864
12865     save_LIBS="$LIBS"
12866     LIBS="$lt_cv_dlopen_libs $LIBS"
12867
12868     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12869 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12870 if test "${lt_cv_dlopen_self+set}" = set; then
12871   $as_echo_n "(cached) " >&6
12872 else
12873           if test "$cross_compiling" = yes; then :
12874   lt_cv_dlopen_self=cross
12875 else
12876   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12877   lt_status=$lt_dlunknown
12878   cat > conftest.$ac_ext <<_LT_EOF
12879 #line 12879 "configure"
12880 #include "confdefs.h"
12881
12882 #if HAVE_DLFCN_H
12883 #include <dlfcn.h>
12884 #endif
12885
12886 #include <stdio.h>
12887
12888 #ifdef RTLD_GLOBAL
12889 #  define LT_DLGLOBAL           RTLD_GLOBAL
12890 #else
12891 #  ifdef DL_GLOBAL
12892 #    define LT_DLGLOBAL         DL_GLOBAL
12893 #  else
12894 #    define LT_DLGLOBAL         0
12895 #  endif
12896 #endif
12897
12898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12899    find out it does not work in some platform. */
12900 #ifndef LT_DLLAZY_OR_NOW
12901 #  ifdef RTLD_LAZY
12902 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12903 #  else
12904 #    ifdef DL_LAZY
12905 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12906 #    else
12907 #      ifdef RTLD_NOW
12908 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12909 #      else
12910 #        ifdef DL_NOW
12911 #          define LT_DLLAZY_OR_NOW      DL_NOW
12912 #        else
12913 #          define LT_DLLAZY_OR_NOW      0
12914 #        endif
12915 #      endif
12916 #    endif
12917 #  endif
12918 #endif
12919
12920 void fnord() { int i=42;}
12921 int main ()
12922 {
12923   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12924   int status = $lt_dlunknown;
12925
12926   if (self)
12927     {
12928       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12929       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12930       /* dlclose (self); */
12931     }
12932   else
12933     puts (dlerror ());
12934
12935   return status;
12936 }
12937 _LT_EOF
12938   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939   (eval $ac_link) 2>&5
12940   ac_status=$?
12941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12943     (./conftest; exit; ) >&5 2>/dev/null
12944     lt_status=$?
12945     case x$lt_status in
12946       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12947       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12948       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12949     esac
12950   else :
12951     # compilation failed
12952     lt_cv_dlopen_self=no
12953   fi
12954 fi
12955 rm -fr conftest*
12956
12957
12958 fi
12959 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12960 $as_echo "$lt_cv_dlopen_self" >&6; }
12961
12962     if test "x$lt_cv_dlopen_self" = xyes; then
12963       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12964       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12965 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12966 if test "${lt_cv_dlopen_self_static+set}" = set; then
12967   $as_echo_n "(cached) " >&6
12968 else
12969           if test "$cross_compiling" = yes; then :
12970   lt_cv_dlopen_self_static=cross
12971 else
12972   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12973   lt_status=$lt_dlunknown
12974   cat > conftest.$ac_ext <<_LT_EOF
12975 #line 12975 "configure"
12976 #include "confdefs.h"
12977
12978 #if HAVE_DLFCN_H
12979 #include <dlfcn.h>
12980 #endif
12981
12982 #include <stdio.h>
12983
12984 #ifdef RTLD_GLOBAL
12985 #  define LT_DLGLOBAL           RTLD_GLOBAL
12986 #else
12987 #  ifdef DL_GLOBAL
12988 #    define LT_DLGLOBAL         DL_GLOBAL
12989 #  else
12990 #    define LT_DLGLOBAL         0
12991 #  endif
12992 #endif
12993
12994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12995    find out it does not work in some platform. */
12996 #ifndef LT_DLLAZY_OR_NOW
12997 #  ifdef RTLD_LAZY
12998 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12999 #  else
13000 #    ifdef DL_LAZY
13001 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13002 #    else
13003 #      ifdef RTLD_NOW
13004 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13005 #      else
13006 #        ifdef DL_NOW
13007 #          define LT_DLLAZY_OR_NOW      DL_NOW
13008 #        else
13009 #          define LT_DLLAZY_OR_NOW      0
13010 #        endif
13011 #      endif
13012 #    endif
13013 #  endif
13014 #endif
13015
13016 void fnord() { int i=42;}
13017 int main ()
13018 {
13019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13020   int status = $lt_dlunknown;
13021
13022   if (self)
13023     {
13024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13025       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13026       /* dlclose (self); */
13027     }
13028   else
13029     puts (dlerror ());
13030
13031   return status;
13032 }
13033 _LT_EOF
13034   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035   (eval $ac_link) 2>&5
13036   ac_status=$?
13037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13039     (./conftest; exit; ) >&5 2>/dev/null
13040     lt_status=$?
13041     case x$lt_status in
13042       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13043       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13044       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13045     esac
13046   else :
13047     # compilation failed
13048     lt_cv_dlopen_self_static=no
13049   fi
13050 fi
13051 rm -fr conftest*
13052
13053
13054 fi
13055 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13056 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13057     fi
13058
13059     CPPFLAGS="$save_CPPFLAGS"
13060     LDFLAGS="$save_LDFLAGS"
13061     LIBS="$save_LIBS"
13062     ;;
13063   esac
13064
13065   case $lt_cv_dlopen_self in
13066   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13067   *) enable_dlopen_self=unknown ;;
13068   esac
13069
13070   case $lt_cv_dlopen_self_static in
13071   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13072   *) enable_dlopen_self_static=unknown ;;
13073   esac
13074 fi
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092 striplib=
13093 old_striplib=
13094 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13095 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13096 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13097   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13098   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13099   { $as_echo "$as_me:$LINENO: result: yes" >&5
13100 $as_echo "yes" >&6; }
13101 else
13102 # FIXME - insert some real tests, host_os isn't really good enough
13103   case $host_os in
13104   darwin*)
13105     if test -n "$STRIP" ; then
13106       striplib="$STRIP -x"
13107       old_striplib="$STRIP -S"
13108       { $as_echo "$as_me:$LINENO: result: yes" >&5
13109 $as_echo "yes" >&6; }
13110     else
13111       { $as_echo "$as_me:$LINENO: result: no" >&5
13112 $as_echo "no" >&6; }
13113     fi
13114     ;;
13115   *)
13116     { $as_echo "$as_me:$LINENO: result: no" >&5
13117 $as_echo "no" >&6; }
13118     ;;
13119   esac
13120 fi
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133   # Report which library types will actually be built
13134   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13135 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13136   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13137 $as_echo "$can_build_shared" >&6; }
13138
13139   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13140 $as_echo_n "checking whether to build shared libraries... " >&6; }
13141   test "$can_build_shared" = "no" && enable_shared=no
13142
13143   # On AIX, shared libraries and static libraries use the same namespace, and
13144   # are all built from PIC.
13145   case $host_os in
13146   aix3*)
13147     test "$enable_shared" = yes && enable_static=no
13148     if test -n "$RANLIB"; then
13149       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13150       postinstall_cmds='$RANLIB $lib'
13151     fi
13152     ;;
13153
13154   aix[4-9]*)
13155     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13156       test "$enable_shared" = yes && enable_static=no
13157     fi
13158     ;;
13159   esac
13160   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13161 $as_echo "$enable_shared" >&6; }
13162
13163   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13164 $as_echo_n "checking whether to build static libraries... " >&6; }
13165   # Make sure either enable_shared or enable_static is yes.
13166   test "$enable_shared" = yes || enable_static=yes
13167   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13168 $as_echo "$enable_static" >&6; }
13169
13170
13171
13172
13173 fi
13174 ac_ext=c
13175 ac_cpp='$CPP $CPPFLAGS'
13176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13179
13180 CC="$lt_save_CC"
13181
13182
13183 ac_ext=cpp
13184 ac_cpp='$CXXCPP $CPPFLAGS'
13185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13188
13189 archive_cmds_need_lc_CXX=no
13190 allow_undefined_flag_CXX=
13191 always_export_symbols_CXX=no
13192 archive_expsym_cmds_CXX=
13193 compiler_needs_object_CXX=no
13194 export_dynamic_flag_spec_CXX=
13195 hardcode_direct_CXX=no
13196 hardcode_direct_absolute_CXX=no
13197 hardcode_libdir_flag_spec_CXX=
13198 hardcode_libdir_flag_spec_ld_CXX=
13199 hardcode_libdir_separator_CXX=
13200 hardcode_minus_L_CXX=no
13201 hardcode_shlibpath_var_CXX=unsupported
13202 hardcode_automatic_CXX=no
13203 inherit_rpath_CXX=no
13204 module_cmds_CXX=
13205 module_expsym_cmds_CXX=
13206 link_all_deplibs_CXX=unknown
13207 old_archive_cmds_CXX=$old_archive_cmds
13208 no_undefined_flag_CXX=
13209 whole_archive_flag_spec_CXX=
13210 enable_shared_with_static_runtimes_CXX=no
13211
13212 # Source file extension for C++ test sources.
13213 ac_ext=cpp
13214
13215 # Object file extension for compiled C++ test sources.
13216 objext=o
13217 objext_CXX=$objext
13218
13219 # No sense in running all these tests if we already determined that
13220 # the CXX compiler isn't working.  Some variables (like enable_shared)
13221 # are currently assumed to apply to all compilers on this platform,
13222 # and will be corrupted by setting them based on a non-working compiler.
13223 if test "$_lt_caught_CXX_error" != yes; then
13224   # Code to be used in simple compile tests
13225   lt_simple_compile_test_code="int some_variable = 0;"
13226
13227   # Code to be used in simple link tests
13228   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13229
13230   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13231
13232
13233
13234
13235
13236
13237 # If no C compiler was specified, use CC.
13238 LTCC=${LTCC-"$CC"}
13239
13240 # If no C compiler flags were specified, use CFLAGS.
13241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13242
13243 # Allow CC to be a program name with arguments.
13244 compiler=$CC
13245
13246
13247   # save warnings/boilerplate of simple test code
13248   ac_outfile=conftest.$ac_objext
13249 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13251 _lt_compiler_boilerplate=`cat conftest.err`
13252 $RM conftest*
13253
13254   ac_outfile=conftest.$ac_objext
13255 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13257 _lt_linker_boilerplate=`cat conftest.err`
13258 $RM -r conftest*
13259
13260
13261   # Allow CC to be a program name with arguments.
13262   lt_save_CC=$CC
13263   lt_save_LD=$LD
13264   lt_save_GCC=$GCC
13265   GCC=$GXX
13266   lt_save_with_gnu_ld=$with_gnu_ld
13267   lt_save_path_LD=$lt_cv_path_LD
13268   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13269     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13270   else
13271     $as_unset lt_cv_prog_gnu_ld
13272   fi
13273   if test -n "${lt_cv_path_LDCXX+set}"; then
13274     lt_cv_path_LD=$lt_cv_path_LDCXX
13275   else
13276     $as_unset lt_cv_path_LD
13277   fi
13278   test -z "${LDCXX+set}" || LD=$LDCXX
13279   CC=${CXX-"c++"}
13280   compiler=$CC
13281   compiler_CXX=$CC
13282   for cc_temp in $compiler""; do
13283   case $cc_temp in
13284     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13285     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13286     \-*) ;;
13287     *) break;;
13288   esac
13289 done
13290 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13291
13292
13293   if test -n "$compiler"; then
13294     # We don't want -fno-exception when compiling C++ code, so set the
13295     # no_builtin_flag separately
13296     if test "$GXX" = yes; then
13297       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13298     else
13299       lt_prog_compiler_no_builtin_flag_CXX=
13300     fi
13301
13302     if test "$GXX" = yes; then
13303       # Set up default GNU C++ configuration
13304
13305
13306
13307 # Check whether --with-gnu-ld was given.
13308 if test "${with_gnu_ld+set}" = set; then
13309   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13310 else
13311   with_gnu_ld=no
13312 fi
13313
13314 ac_prog=ld
13315 if test "$GCC" = yes; then
13316   # Check if gcc -print-prog-name=ld gives a path.
13317   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13318 $as_echo_n "checking for ld used by $CC... " >&6; }
13319   case $host in
13320   *-*-mingw*)
13321     # gcc leaves a trailing carriage return which upsets mingw
13322     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13323   *)
13324     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13325   esac
13326   case $ac_prog in
13327     # Accept absolute paths.
13328     [\\/]* | ?:[\\/]*)
13329       re_direlt='/[^/][^/]*/\.\./'
13330       # Canonicalize the pathname of ld
13331       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13332       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13333         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13334       done
13335       test -z "$LD" && LD="$ac_prog"
13336       ;;
13337   "")
13338     # If it fails, then pretend we aren't using GCC.
13339     ac_prog=ld
13340     ;;
13341   *)
13342     # If it is relative, then search for the first ld in PATH.
13343     with_gnu_ld=unknown
13344     ;;
13345   esac
13346 elif test "$with_gnu_ld" = yes; then
13347   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13348 $as_echo_n "checking for GNU ld... " >&6; }
13349 else
13350   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13351 $as_echo_n "checking for non-GNU ld... " >&6; }
13352 fi
13353 if test "${lt_cv_path_LD+set}" = set; then
13354   $as_echo_n "(cached) " >&6
13355 else
13356   if test -z "$LD"; then
13357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13358   for ac_dir in $PATH; do
13359     IFS="$lt_save_ifs"
13360     test -z "$ac_dir" && ac_dir=.
13361     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13362       lt_cv_path_LD="$ac_dir/$ac_prog"
13363       # Check to see if the program is GNU ld.  I'd rather use --version,
13364       # but apparently some variants of GNU ld only accept -v.
13365       # Break only if it was the GNU/non-GNU ld that we prefer.
13366       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13367       *GNU* | *'with BFD'*)
13368         test "$with_gnu_ld" != no && break
13369         ;;
13370       *)
13371         test "$with_gnu_ld" != yes && break
13372         ;;
13373       esac
13374     fi
13375   done
13376   IFS="$lt_save_ifs"
13377 else
13378   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13379 fi
13380 fi
13381
13382 LD="$lt_cv_path_LD"
13383 if test -n "$LD"; then
13384   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13385 $as_echo "$LD" >&6; }
13386 else
13387   { $as_echo "$as_me:$LINENO: result: no" >&5
13388 $as_echo "no" >&6; }
13389 fi
13390 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13391 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13392    { (exit 1); exit 1; }; }
13393 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13394 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13395 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13396   $as_echo_n "(cached) " >&6
13397 else
13398   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13399 case `$LD -v 2>&1 </dev/null` in
13400 *GNU* | *'with BFD'*)
13401   lt_cv_prog_gnu_ld=yes
13402   ;;
13403 *)
13404   lt_cv_prog_gnu_ld=no
13405   ;;
13406 esac
13407 fi
13408 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13409 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13410 with_gnu_ld=$lt_cv_prog_gnu_ld
13411
13412
13413
13414
13415
13416
13417
13418       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13419       # archiving commands below assume that GNU ld is being used.
13420       if test "$with_gnu_ld" = yes; then
13421         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13422         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'
13423
13424         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426
13427         # If archive_cmds runs LD, not CC, wlarc should be empty
13428         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13429         #     investigate it a little bit more. (MM)
13430         wlarc='${wl}'
13431
13432         # ancient GNU ld didn't support --whole-archive et. al.
13433         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13434           $GREP 'no-whole-archive' > /dev/null; then
13435           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13436         else
13437           whole_archive_flag_spec_CXX=
13438         fi
13439       else
13440         with_gnu_ld=no
13441         wlarc=
13442
13443         # A generic and very simple default shared library creation
13444         # command for GNU C++ for the case where it uses the native
13445         # linker, instead of GNU ld.  If possible, this setting should
13446         # overridden to take advantage of the native linker features on
13447         # the platform it is being used on.
13448         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13449       fi
13450
13451       # Commands to make compiler produce verbose output that lists
13452       # what "hidden" libraries, object files and flags are used when
13453       # linking a shared library.
13454       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13455
13456     else
13457       GXX=no
13458       with_gnu_ld=no
13459       wlarc=
13460     fi
13461
13462     # PORTME: fill in a description of your system's C++ link characteristics
13463     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13464 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13465     ld_shlibs_CXX=yes
13466     case $host_os in
13467       aix3*)
13468         # FIXME: insert proper C++ library support
13469         ld_shlibs_CXX=no
13470         ;;
13471       aix[4-9]*)
13472         if test "$host_cpu" = ia64; then
13473           # On IA64, the linker does run time linking by default, so we don't
13474           # have to do anything special.
13475           aix_use_runtimelinking=no
13476           exp_sym_flag='-Bexport'
13477           no_entry_flag=""
13478         else
13479           aix_use_runtimelinking=no
13480
13481           # Test if we are trying to use run time linking or normal
13482           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13483           # need to do runtime linking.
13484           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13485             for ld_flag in $LDFLAGS; do
13486               case $ld_flag in
13487               *-brtl*)
13488                 aix_use_runtimelinking=yes
13489                 break
13490                 ;;
13491               esac
13492             done
13493             ;;
13494           esac
13495
13496           exp_sym_flag='-bexport'
13497           no_entry_flag='-bnoentry'
13498         fi
13499
13500         # When large executables or shared objects are built, AIX ld can
13501         # have problems creating the table of contents.  If linking a library
13502         # or program results in "error TOC overflow" add -mminimal-toc to
13503         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13504         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13505
13506         archive_cmds_CXX=''
13507         hardcode_direct_CXX=yes
13508         hardcode_direct_absolute_CXX=yes
13509         hardcode_libdir_separator_CXX=':'
13510         link_all_deplibs_CXX=yes
13511         file_list_spec_CXX='${wl}-f,'
13512
13513         if test "$GXX" = yes; then
13514           case $host_os in aix4.[012]|aix4.[012].*)
13515           # We only want to do this on AIX 4.2 and lower, the check
13516           # below for broken collect2 doesn't work under 4.3+
13517           collect2name=`${CC} -print-prog-name=collect2`
13518           if test -f "$collect2name" &&
13519              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13520           then
13521             # We have reworked collect2
13522             :
13523           else
13524             # We have old collect2
13525             hardcode_direct_CXX=unsupported
13526             # It fails to find uninstalled libraries when the uninstalled
13527             # path is not listed in the libpath.  Setting hardcode_minus_L
13528             # to unsupported forces relinking
13529             hardcode_minus_L_CXX=yes
13530             hardcode_libdir_flag_spec_CXX='-L$libdir'
13531             hardcode_libdir_separator_CXX=
13532           fi
13533           esac
13534           shared_flag='-shared'
13535           if test "$aix_use_runtimelinking" = yes; then
13536             shared_flag="$shared_flag "'${wl}-G'
13537           fi
13538         else
13539           # not using gcc
13540           if test "$host_cpu" = ia64; then
13541           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13542           # chokes on -Wl,-G. The following line is correct:
13543           shared_flag='-G'
13544           else
13545             if test "$aix_use_runtimelinking" = yes; then
13546               shared_flag='${wl}-G'
13547             else
13548               shared_flag='${wl}-bM:SRE'
13549             fi
13550           fi
13551         fi
13552
13553         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13554         # It seems that -bexpall does not export symbols beginning with
13555         # underscore (_), so it is better to generate a list of symbols to
13556         # export.
13557         always_export_symbols_CXX=yes
13558         if test "$aix_use_runtimelinking" = yes; then
13559           # Warning - without using the other runtime loading flags (-brtl),
13560           # -berok will link without error, but may produce a broken library.
13561           allow_undefined_flag_CXX='-berok'
13562           # Determine the default libpath from the value encoded in an empty
13563           # executable.
13564           cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570
13571 int
13572 main ()
13573 {
13574
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583   *) ac_try_echo=$ac_try;;
13584 esac
13585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13586 $as_echo "$ac_try_echo") >&5
13587   (eval "$ac_link") 2>conftest.er1
13588   ac_status=$?
13589   grep -v '^ *+' conftest.er1 >conftest.err
13590   rm -f conftest.er1
13591   cat conftest.err >&5
13592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); } && {
13594          test -z "$ac_cxx_werror_flag" ||
13595          test ! -s conftest.err
13596        } && test -s conftest$ac_exeext && {
13597          test "$cross_compiling" = yes ||
13598          $as_test_x conftest$ac_exeext
13599        }; then
13600
13601 lt_aix_libpath_sed='
13602     /Import File Strings/,/^$/ {
13603         /^0/ {
13604             s/^0  *\(.*\)$/\1/
13605             p
13606         }
13607     }'
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13609 # Check for a 64-bit object if we didn't find anything.
13610 if test -z "$aix_libpath"; then
13611   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13612 fi
13613 else
13614   $as_echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617
13618 fi
13619
13620 rm -rf conftest.dSYM
13621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13622       conftest$ac_exeext conftest.$ac_ext
13623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13624
13625           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13626
13627           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"
13628         else
13629           if test "$host_cpu" = ia64; then
13630             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13631             allow_undefined_flag_CXX="-z nodefs"
13632             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"
13633           else
13634             # Determine the default libpath from the value encoded in an
13635             # empty executable.
13636             cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642
13643 int
13644 main ()
13645 {
13646
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (ac_try="$ac_link"
13653 case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13658 $as_echo "$ac_try_echo") >&5
13659   (eval "$ac_link") 2>conftest.er1
13660   ac_status=$?
13661   grep -v '^ *+' conftest.er1 >conftest.err
13662   rm -f conftest.er1
13663   cat conftest.err >&5
13664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } && {
13666          test -z "$ac_cxx_werror_flag" ||
13667          test ! -s conftest.err
13668        } && test -s conftest$ac_exeext && {
13669          test "$cross_compiling" = yes ||
13670          $as_test_x conftest$ac_exeext
13671        }; then
13672
13673 lt_aix_libpath_sed='
13674     /Import File Strings/,/^$/ {
13675         /^0/ {
13676             s/^0  *\(.*\)$/\1/
13677             p
13678         }
13679     }'
13680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13681 # Check for a 64-bit object if we didn't find anything.
13682 if test -z "$aix_libpath"; then
13683   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13684 fi
13685 else
13686   $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689
13690 fi
13691
13692 rm -rf conftest.dSYM
13693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13694       conftest$ac_exeext conftest.$ac_ext
13695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13696
13697             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13698             # Warning - without using the other run time loading flags,
13699             # -berok will link without error, but may produce a broken library.
13700             no_undefined_flag_CXX=' ${wl}-bernotok'
13701             allow_undefined_flag_CXX=' ${wl}-berok'
13702             # Exported symbols can be pulled into shared objects from archives
13703             whole_archive_flag_spec_CXX='$convenience'
13704             archive_cmds_need_lc_CXX=yes
13705             # This is similar to how AIX traditionally builds its shared
13706             # libraries.
13707             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'
13708           fi
13709         fi
13710         ;;
13711
13712       beos*)
13713         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13714           allow_undefined_flag_CXX=unsupported
13715           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13716           # support --undefined.  This deserves some investigation.  FIXME
13717           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13718         else
13719           ld_shlibs_CXX=no
13720         fi
13721         ;;
13722
13723       chorus*)
13724         case $cc_basename in
13725           *)
13726           # FIXME: insert proper C++ library support
13727           ld_shlibs_CXX=no
13728           ;;
13729         esac
13730         ;;
13731
13732       cygwin* | mingw* | pw32* | cegcc*)
13733         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13734         # as there is no search path for DLLs.
13735         hardcode_libdir_flag_spec_CXX='-L$libdir'
13736         allow_undefined_flag_CXX=unsupported
13737         always_export_symbols_CXX=no
13738         enable_shared_with_static_runtimes_CXX=yes
13739
13740         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13741           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'
13742           # If the export-symbols file already is a .def file (1st line
13743           # is EXPORTS), use it as is; otherwise, prepend...
13744           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13745             cp $export_symbols $output_objdir/$soname.def;
13746           else
13747             echo EXPORTS > $output_objdir/$soname.def;
13748             cat $export_symbols >> $output_objdir/$soname.def;
13749           fi~
13750           $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'
13751         else
13752           ld_shlibs_CXX=no
13753         fi
13754         ;;
13755       darwin* | rhapsody*)
13756
13757
13758   archive_cmds_need_lc_CXX=no
13759   hardcode_direct_CXX=no
13760   hardcode_automatic_CXX=yes
13761   hardcode_shlibpath_var_CXX=unsupported
13762   whole_archive_flag_spec_CXX=''
13763   link_all_deplibs_CXX=yes
13764   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13765   case $cc_basename in
13766      ifort*) _lt_dar_can_shared=yes ;;
13767      *) _lt_dar_can_shared=$GCC ;;
13768   esac
13769   if test "$_lt_dar_can_shared" = "yes"; then
13770     output_verbose_link_cmd=echo
13771     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}"
13772     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13773     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}"
13774     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}"
13775        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13776       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}"
13777       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}"
13778     fi
13779
13780   else
13781   ld_shlibs_CXX=no
13782   fi
13783
13784         ;;
13785
13786       dgux*)
13787         case $cc_basename in
13788           ec++*)
13789             # FIXME: insert proper C++ library support
13790             ld_shlibs_CXX=no
13791             ;;
13792           ghcx*)
13793             # Green Hills C++ Compiler
13794             # FIXME: insert proper C++ library support
13795             ld_shlibs_CXX=no
13796             ;;
13797           *)
13798             # FIXME: insert proper C++ library support
13799             ld_shlibs_CXX=no
13800             ;;
13801         esac
13802         ;;
13803
13804       freebsd[12]*)
13805         # C++ shared libraries reported to be fairly broken before
13806         # switch to ELF
13807         ld_shlibs_CXX=no
13808         ;;
13809
13810       freebsd-elf*)
13811         archive_cmds_need_lc_CXX=no
13812         ;;
13813
13814       freebsd* | dragonfly*)
13815         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13816         # conventions
13817         ld_shlibs_CXX=yes
13818         ;;
13819
13820       gnu*)
13821         ;;
13822
13823       hpux9*)
13824         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13825         hardcode_libdir_separator_CXX=:
13826         export_dynamic_flag_spec_CXX='${wl}-E'
13827         hardcode_direct_CXX=yes
13828         hardcode_minus_L_CXX=yes # Not in the search PATH,
13829                                              # but as the default
13830                                              # location of the library.
13831
13832         case $cc_basename in
13833           CC*)
13834             # FIXME: insert proper C++ library support
13835             ld_shlibs_CXX=no
13836             ;;
13837           aCC*)
13838             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'
13839             # Commands to make compiler produce verbose output that lists
13840             # what "hidden" libraries, object files and flags are used when
13841             # linking a shared library.
13842             #
13843             # There doesn't appear to be a way to prevent this compiler from
13844             # explicitly linking system object files so we need to strip them
13845             # from the output so that they don't get included in the library
13846             # dependencies.
13847             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'
13848             ;;
13849           *)
13850             if test "$GXX" = yes; then
13851               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'
13852             else
13853               # FIXME: insert proper C++ library support
13854               ld_shlibs_CXX=no
13855             fi
13856             ;;
13857         esac
13858         ;;
13859
13860       hpux10*|hpux11*)
13861         if test $with_gnu_ld = no; then
13862           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13863           hardcode_libdir_separator_CXX=:
13864
13865           case $host_cpu in
13866             hppa*64*|ia64*)
13867               ;;
13868             *)
13869               export_dynamic_flag_spec_CXX='${wl}-E'
13870               ;;
13871           esac
13872         fi
13873         case $host_cpu in
13874           hppa*64*|ia64*)
13875             hardcode_direct_CXX=no
13876             hardcode_shlibpath_var_CXX=no
13877             ;;
13878           *)
13879             hardcode_direct_CXX=yes
13880             hardcode_direct_absolute_CXX=yes
13881             hardcode_minus_L_CXX=yes # Not in the search PATH,
13882                                                  # but as the default
13883                                                  # location of the library.
13884             ;;
13885         esac
13886
13887         case $cc_basename in
13888           CC*)
13889             # FIXME: insert proper C++ library support
13890             ld_shlibs_CXX=no
13891             ;;
13892           aCC*)
13893             case $host_cpu in
13894               hppa*64*)
13895                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13896                 ;;
13897               ia64*)
13898                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13899                 ;;
13900               *)
13901                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13902                 ;;
13903             esac
13904             # Commands to make compiler produce verbose output that lists
13905             # what "hidden" libraries, object files and flags are used when
13906             # linking a shared library.
13907             #
13908             # There doesn't appear to be a way to prevent this compiler from
13909             # explicitly linking system object files so we need to strip them
13910             # from the output so that they don't get included in the library
13911             # dependencies.
13912             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'
13913             ;;
13914           *)
13915             if test "$GXX" = yes; then
13916               if test $with_gnu_ld = no; then
13917                 case $host_cpu in
13918                   hppa*64*)
13919                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13920                     ;;
13921                   ia64*)
13922                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13923                     ;;
13924                   *)
13925                     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'
13926                     ;;
13927                 esac
13928               fi
13929             else
13930               # FIXME: insert proper C++ library support
13931               ld_shlibs_CXX=no
13932             fi
13933             ;;
13934         esac
13935         ;;
13936
13937       interix[3-9]*)
13938         hardcode_direct_CXX=no
13939         hardcode_shlibpath_var_CXX=no
13940         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13941         export_dynamic_flag_spec_CXX='${wl}-E'
13942         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13943         # Instead, shared libraries are loaded at an image base (0x10000000 by
13944         # default) and relocated if they conflict, which is a slow very memory
13945         # consuming and fragmenting process.  To avoid this, we pick a random,
13946         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13947         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13948         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'
13949         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'
13950         ;;
13951       irix5* | irix6*)
13952         case $cc_basename in
13953           CC*)
13954             # SGI C++
13955             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'
13956
13957             # Archives containing C++ object files must be created using
13958             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13959             # necessary to make sure instantiated templates are included
13960             # in the archive.
13961             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13962             ;;
13963           *)
13964             if test "$GXX" = yes; then
13965               if test "$with_gnu_ld" = no; then
13966                 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'
13967               else
13968                 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'
13969               fi
13970             fi
13971             link_all_deplibs_CXX=yes
13972             ;;
13973         esac
13974         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13975         hardcode_libdir_separator_CXX=:
13976         inherit_rpath_CXX=yes
13977         ;;
13978
13979       linux* | k*bsd*-gnu)
13980         case $cc_basename in
13981           KCC*)
13982             # Kuck and Associates, Inc. (KAI) C++ Compiler
13983
13984             # KCC will only create a shared library if the output file
13985             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13986             # to its proper name (with version) after linking.
13987             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'
13988             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'
13989             # Commands to make compiler produce verbose output that lists
13990             # what "hidden" libraries, object files and flags are used when
13991             # linking a shared library.
13992             #
13993             # There doesn't appear to be a way to prevent this compiler from
13994             # explicitly linking system object files so we need to strip them
13995             # from the output so that they don't get included in the library
13996             # dependencies.
13997             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'
13998
13999             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14000             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14001
14002             # Archives containing C++ object files must be created using
14003             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14004             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14005             ;;
14006           icpc* | ecpc* )
14007             # Intel C++
14008             with_gnu_ld=yes
14009             # version 8.0 and above of icpc choke on multiply defined symbols
14010             # if we add $predep_objects and $postdep_objects, however 7.1 and
14011             # earlier do not add the objects themselves.
14012             case `$CC -V 2>&1` in
14013               *"Version 7."*)
14014                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015                 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'
14016                 ;;
14017               *)  # Version 8.0 or newer
14018                 tmp_idyn=
14019                 case $host_cpu in
14020                   ia64*) tmp_idyn=' -i_dynamic';;
14021                 esac
14022                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14023                 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'
14024                 ;;
14025             esac
14026             archive_cmds_need_lc_CXX=no
14027             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14028             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14029             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14030             ;;
14031           pgCC* | pgcpp*)
14032             # Portland Group C++ compiler
14033             case `$CC -V` in
14034             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14035               prelink_cmds_CXX='tpldir=Template.dir~
14036                 rm -rf $tpldir~
14037                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14038                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14039               old_archive_cmds_CXX='tpldir=Template.dir~
14040                 rm -rf $tpldir~
14041                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14042                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14043                 $RANLIB $oldlib'
14044               archive_cmds_CXX='tpldir=Template.dir~
14045                 rm -rf $tpldir~
14046                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14047                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14048               archive_expsym_cmds_CXX='tpldir=Template.dir~
14049                 rm -rf $tpldir~
14050                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14051                 $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'
14052               ;;
14053             *) # Version 6 will use weak symbols
14054               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14055               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'
14056               ;;
14057             esac
14058
14059             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14060             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14061             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'
14062             ;;
14063           cxx*)
14064             # Compaq C++
14065             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066             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'
14067
14068             runpath_var=LD_RUN_PATH
14069             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14070             hardcode_libdir_separator_CXX=:
14071
14072             # Commands to make compiler produce verbose output that lists
14073             # what "hidden" libraries, object files and flags are used when
14074             # linking a shared library.
14075             #
14076             # There doesn't appear to be a way to prevent this compiler from
14077             # explicitly linking system object files so we need to strip them
14078             # from the output so that they don't get included in the library
14079             # dependencies.
14080             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'
14081             ;;
14082           xl*)
14083             # IBM XL 8.0 on PPC, with GNU ld
14084             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14085             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14086             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087             if test "x$supports_anon_versioning" = xyes; then
14088               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14089                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14090                 echo "local: *; };" >> $output_objdir/$libname.ver~
14091                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14092             fi
14093             ;;
14094           *)
14095             case `$CC -V 2>&1 | sed 5q` in
14096             *Sun\ C*)
14097               # Sun C++ 5.9
14098               no_undefined_flag_CXX=' -zdefs'
14099               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14100               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'
14101               hardcode_libdir_flag_spec_CXX='-R$libdir'
14102               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'
14103               compiler_needs_object_CXX=yes
14104
14105               # Not sure whether something based on
14106               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14107               # would be better.
14108               output_verbose_link_cmd='echo'
14109
14110               # Archives containing C++ object files must be created using
14111               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14112               # necessary to make sure instantiated templates are included
14113               # in the archive.
14114               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14115               ;;
14116             esac
14117             ;;
14118         esac
14119         ;;
14120
14121       lynxos*)
14122         # FIXME: insert proper C++ library support
14123         ld_shlibs_CXX=no
14124         ;;
14125
14126       m88k*)
14127         # FIXME: insert proper C++ library support
14128         ld_shlibs_CXX=no
14129         ;;
14130
14131       mvs*)
14132         case $cc_basename in
14133           cxx*)
14134             # FIXME: insert proper C++ library support
14135             ld_shlibs_CXX=no
14136             ;;
14137           *)
14138             # FIXME: insert proper C++ library support
14139             ld_shlibs_CXX=no
14140             ;;
14141         esac
14142         ;;
14143
14144       netbsd*)
14145         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14146           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14147           wlarc=
14148           hardcode_libdir_flag_spec_CXX='-R$libdir'
14149           hardcode_direct_CXX=yes
14150           hardcode_shlibpath_var_CXX=no
14151         fi
14152         # Workaround some broken pre-1.5 toolchains
14153         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14154         ;;
14155
14156       *nto* | *qnx*)
14157         ld_shlibs_CXX=yes
14158         ;;
14159
14160       openbsd2*)
14161         # C++ shared libraries are fairly broken
14162         ld_shlibs_CXX=no
14163         ;;
14164
14165       openbsd*)
14166         if test -f /usr/libexec/ld.so; then
14167           hardcode_direct_CXX=yes
14168           hardcode_shlibpath_var_CXX=no
14169           hardcode_direct_absolute_CXX=yes
14170           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14171           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14172           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14173             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14174             export_dynamic_flag_spec_CXX='${wl}-E'
14175             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14176           fi
14177           output_verbose_link_cmd=echo
14178         else
14179           ld_shlibs_CXX=no
14180         fi
14181         ;;
14182
14183       osf3* | osf4* | osf5*)
14184         case $cc_basename in
14185           KCC*)
14186             # Kuck and Associates, Inc. (KAI) C++ Compiler
14187
14188             # KCC will only create a shared library if the output file
14189             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14190             # to its proper name (with version) after linking.
14191             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'
14192
14193             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14194             hardcode_libdir_separator_CXX=:
14195
14196             # Archives containing C++ object files must be created using
14197             # the KAI C++ compiler.
14198             case $host in
14199               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14200               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14201             esac
14202             ;;
14203           RCC*)
14204             # Rational C++ 2.4.1
14205             # FIXME: insert proper C++ library support
14206             ld_shlibs_CXX=no
14207             ;;
14208           cxx*)
14209             case $host in
14210               osf3*)
14211                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14212                 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'
14213                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14214                 ;;
14215               *)
14216                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14217                 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'
14218                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14219                   echo "-hidden">> $lib.exp~
14220                   $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~
14221                   $RM $lib.exp'
14222                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14223                 ;;
14224             esac
14225
14226             hardcode_libdir_separator_CXX=:
14227
14228             # Commands to make compiler produce verbose output that lists
14229             # what "hidden" libraries, object files and flags are used when
14230             # linking a shared library.
14231             #
14232             # There doesn't appear to be a way to prevent this compiler from
14233             # explicitly linking system object files so we need to strip them
14234             # from the output so that they don't get included in the library
14235             # dependencies.
14236             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'
14237             ;;
14238           *)
14239             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14240               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14241               case $host in
14242                 osf3*)
14243                   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'
14244                   ;;
14245                 *)
14246                   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'
14247                   ;;
14248               esac
14249
14250               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14251               hardcode_libdir_separator_CXX=:
14252
14253               # Commands to make compiler produce verbose output that lists
14254               # what "hidden" libraries, object files and flags are used when
14255               # linking a shared library.
14256               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14257
14258             else
14259               # FIXME: insert proper C++ library support
14260               ld_shlibs_CXX=no
14261             fi
14262             ;;
14263         esac
14264         ;;
14265
14266       psos*)
14267         # FIXME: insert proper C++ library support
14268         ld_shlibs_CXX=no
14269         ;;
14270
14271       sunos4*)
14272         case $cc_basename in
14273           CC*)
14274             # Sun C++ 4.x
14275             # FIXME: insert proper C++ library support
14276             ld_shlibs_CXX=no
14277             ;;
14278           lcc*)
14279             # Lucid
14280             # FIXME: insert proper C++ library support
14281             ld_shlibs_CXX=no
14282             ;;
14283           *)
14284             # FIXME: insert proper C++ library support
14285             ld_shlibs_CXX=no
14286             ;;
14287         esac
14288         ;;
14289
14290       solaris*)
14291         case $cc_basename in
14292           CC*)
14293             # Sun C++ 4.2, 5.x and Centerline C++
14294             archive_cmds_need_lc_CXX=yes
14295             no_undefined_flag_CXX=' -zdefs'
14296             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14297             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14298               $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'
14299
14300             hardcode_libdir_flag_spec_CXX='-R$libdir'
14301             hardcode_shlibpath_var_CXX=no
14302             case $host_os in
14303               solaris2.[0-5] | solaris2.[0-5].*) ;;
14304               *)
14305                 # The compiler driver will combine and reorder linker options,
14306                 # but understands `-z linker_flag'.
14307                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14308                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14309                 ;;
14310             esac
14311             link_all_deplibs_CXX=yes
14312
14313             output_verbose_link_cmd='echo'
14314
14315             # Archives containing C++ object files must be created using
14316             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14317             # necessary to make sure instantiated templates are included
14318             # in the archive.
14319             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14320             ;;
14321           gcx*)
14322             # Green Hills C++ Compiler
14323             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14324
14325             # The C++ compiler must be used to create the archive.
14326             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14327             ;;
14328           *)
14329             # GNU C++ compiler with Solaris linker
14330             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14331               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14332               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14333                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14334                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14335                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14336
14337                 # Commands to make compiler produce verbose output that lists
14338                 # what "hidden" libraries, object files and flags are used when
14339                 # linking a shared library.
14340                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14341               else
14342                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14343                 # platform.
14344                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14345                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14346                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14347
14348                 # Commands to make compiler produce verbose output that lists
14349                 # what "hidden" libraries, object files and flags are used when
14350                 # linking a shared library.
14351                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14352               fi
14353
14354               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14355               case $host_os in
14356                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14357                 *)
14358                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14359                   ;;
14360               esac
14361             fi
14362             ;;
14363         esac
14364         ;;
14365
14366     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14367       no_undefined_flag_CXX='${wl}-z,text'
14368       archive_cmds_need_lc_CXX=no
14369       hardcode_shlibpath_var_CXX=no
14370       runpath_var='LD_RUN_PATH'
14371
14372       case $cc_basename in
14373         CC*)
14374           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14375           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14376           ;;
14377         *)
14378           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14379           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14380           ;;
14381       esac
14382       ;;
14383
14384       sysv5* | sco3.2v5* | sco5v6*)
14385         # Note: We can NOT use -z defs as we might desire, because we do not
14386         # link with -lc, and that would cause any symbols used from libc to
14387         # always be unresolved, which means just about no library would
14388         # ever link correctly.  If we're not using GNU ld we use -z text
14389         # though, which does catch some bad symbols but isn't as heavy-handed
14390         # as -z defs.
14391         no_undefined_flag_CXX='${wl}-z,text'
14392         allow_undefined_flag_CXX='${wl}-z,nodefs'
14393         archive_cmds_need_lc_CXX=no
14394         hardcode_shlibpath_var_CXX=no
14395         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14396         hardcode_libdir_separator_CXX=':'
14397         link_all_deplibs_CXX=yes
14398         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14399         runpath_var='LD_RUN_PATH'
14400
14401         case $cc_basename in
14402           CC*)
14403             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14405             ;;
14406           *)
14407             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14408             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14409             ;;
14410         esac
14411       ;;
14412
14413       tandem*)
14414         case $cc_basename in
14415           NCC*)
14416             # NonStop-UX NCC 3.20
14417             # FIXME: insert proper C++ library support
14418             ld_shlibs_CXX=no
14419             ;;
14420           *)
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424         esac
14425         ;;
14426
14427       vxworks*)
14428         # FIXME: insert proper C++ library support
14429         ld_shlibs_CXX=no
14430         ;;
14431
14432       *)
14433         # FIXME: insert proper C++ library support
14434         ld_shlibs_CXX=no
14435         ;;
14436     esac
14437
14438     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14439 $as_echo "$ld_shlibs_CXX" >&6; }
14440     test "$ld_shlibs_CXX" = no && can_build_shared=no
14441
14442     GCC_CXX="$GXX"
14443     LD_CXX="$LD"
14444
14445     ## CAVEAT EMPTOR:
14446     ## There is no encapsulation within the following macros, do not change
14447     ## the running order or otherwise move them around unless you know exactly
14448     ## what you are doing...
14449     # Dependencies to place before and after the object being linked:
14450 predep_objects_CXX=
14451 postdep_objects_CXX=
14452 predeps_CXX=
14453 postdeps_CXX=
14454 compiler_lib_search_path_CXX=
14455
14456 cat > conftest.$ac_ext <<_LT_EOF
14457 class Foo
14458 {
14459 public:
14460   Foo (void) { a = 0; }
14461 private:
14462   int a;
14463 };
14464 _LT_EOF
14465
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467   (eval $ac_compile) 2>&5
14468   ac_status=$?
14469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; then
14471   # Parse the compiler output and extract the necessary
14472   # objects, libraries and library flags.
14473
14474   # Sentinel used to keep track of whether or not we are before
14475   # the conftest object file.
14476   pre_test_object_deps_done=no
14477
14478   for p in `eval "$output_verbose_link_cmd"`; do
14479     case $p in
14480
14481     -L* | -R* | -l*)
14482        # Some compilers place space between "-{L,R}" and the path.
14483        # Remove the space.
14484        if test $p = "-L" ||
14485           test $p = "-R"; then
14486          prev=$p
14487          continue
14488        else
14489          prev=
14490        fi
14491
14492        if test "$pre_test_object_deps_done" = no; then
14493          case $p in
14494          -L* | -R*)
14495            # Internal compiler library paths should come after those
14496            # provided the user.  The postdeps already come after the
14497            # user supplied libs so there is no need to process them.
14498            if test -z "$compiler_lib_search_path_CXX"; then
14499              compiler_lib_search_path_CXX="${prev}${p}"
14500            else
14501              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14502            fi
14503            ;;
14504          # The "-l" case would never come before the object being
14505          # linked, so don't bother handling this case.
14506          esac
14507        else
14508          if test -z "$postdeps_CXX"; then
14509            postdeps_CXX="${prev}${p}"
14510          else
14511            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14512          fi
14513        fi
14514        ;;
14515
14516     *.$objext)
14517        # This assumes that the test object file only shows up
14518        # once in the compiler output.
14519        if test "$p" = "conftest.$objext"; then
14520          pre_test_object_deps_done=yes
14521          continue
14522        fi
14523
14524        if test "$pre_test_object_deps_done" = no; then
14525          if test -z "$predep_objects_CXX"; then
14526            predep_objects_CXX="$p"
14527          else
14528            predep_objects_CXX="$predep_objects_CXX $p"
14529          fi
14530        else
14531          if test -z "$postdep_objects_CXX"; then
14532            postdep_objects_CXX="$p"
14533          else
14534            postdep_objects_CXX="$postdep_objects_CXX $p"
14535          fi
14536        fi
14537        ;;
14538
14539     *) ;; # Ignore the rest.
14540
14541     esac
14542   done
14543
14544   # Clean up.
14545   rm -f a.out a.exe
14546 else
14547   echo "libtool.m4: error: problem compiling CXX test program"
14548 fi
14549
14550 $RM -f confest.$objext
14551
14552 # PORTME: override above test on systems where it is broken
14553 case $host_os in
14554 interix[3-9]*)
14555   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14556   # hack all around it, let's just trust "g++" to DTRT.
14557   predep_objects_CXX=
14558   postdep_objects_CXX=
14559   postdeps_CXX=
14560   ;;
14561
14562 linux*)
14563   case `$CC -V 2>&1 | sed 5q` in
14564   *Sun\ C*)
14565     # Sun C++ 5.9
14566
14567     # The more standards-conforming stlport4 library is
14568     # incompatible with the Cstd library. Avoid specifying
14569     # it if it's in CXXFLAGS. Ignore libCrun as
14570     # -library=stlport4 depends on it.
14571     case " $CXX $CXXFLAGS " in
14572     *" -library=stlport4 "*)
14573       solaris_use_stlport4=yes
14574       ;;
14575     esac
14576
14577     if test "$solaris_use_stlport4" != yes; then
14578       postdeps_CXX='-library=Cstd -library=Crun'
14579     fi
14580     ;;
14581   esac
14582   ;;
14583
14584 solaris*)
14585   case $cc_basename in
14586   CC*)
14587     # The more standards-conforming stlport4 library is
14588     # incompatible with the Cstd library. Avoid specifying
14589     # it if it's in CXXFLAGS. Ignore libCrun as
14590     # -library=stlport4 depends on it.
14591     case " $CXX $CXXFLAGS " in
14592     *" -library=stlport4 "*)
14593       solaris_use_stlport4=yes
14594       ;;
14595     esac
14596
14597     # Adding this requires a known-good setup of shared libraries for
14598     # Sun compiler versions before 5.6, else PIC objects from an old
14599     # archive will be linked into the output, leading to subtle bugs.
14600     if test "$solaris_use_stlport4" != yes; then
14601       postdeps_CXX='-library=Cstd -library=Crun'
14602     fi
14603     ;;
14604   esac
14605   ;;
14606 esac
14607
14608
14609 case " $postdeps_CXX " in
14610 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14611 esac
14612  compiler_lib_search_dirs_CXX=
14613 if test -n "${compiler_lib_search_path_CXX}"; then
14614  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14615 fi
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647     lt_prog_compiler_wl_CXX=
14648 lt_prog_compiler_pic_CXX=
14649 lt_prog_compiler_static_CXX=
14650
14651 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14652 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14653
14654   # C++ specific cases for pic, static, wl, etc.
14655   if test "$GXX" = yes; then
14656     lt_prog_compiler_wl_CXX='-Wl,'
14657     lt_prog_compiler_static_CXX='-static'
14658
14659     case $host_os in
14660     aix*)
14661       # All AIX code is PIC.
14662       if test "$host_cpu" = ia64; then
14663         # AIX 5 now supports IA64 processor
14664         lt_prog_compiler_static_CXX='-Bstatic'
14665       fi
14666       ;;
14667
14668     amigaos*)
14669       case $host_cpu in
14670       powerpc)
14671             # see comment about AmigaOS4 .so support
14672             lt_prog_compiler_pic_CXX='-fPIC'
14673         ;;
14674       m68k)
14675             # FIXME: we need at least 68020 code to build shared libraries, but
14676             # adding the `-m68020' flag to GCC prevents building anything better,
14677             # like `-m68040'.
14678             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14679         ;;
14680       esac
14681       ;;
14682
14683     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14684       # PIC is the default for these OSes.
14685       ;;
14686     mingw* | cygwin* | os2* | pw32* | cegcc*)
14687       # This hack is so that the source file can tell whether it is being
14688       # built for inclusion in a dll (and should export symbols for example).
14689       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14690       # (--disable-auto-import) libraries
14691       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14692       ;;
14693     darwin* | rhapsody*)
14694       # PIC is the default on this platform
14695       # Common symbols not allowed in MH_DYLIB files
14696       lt_prog_compiler_pic_CXX='-fno-common'
14697       ;;
14698     *djgpp*)
14699       # DJGPP does not support shared libraries at all
14700       lt_prog_compiler_pic_CXX=
14701       ;;
14702     interix[3-9]*)
14703       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14704       # Instead, we relocate shared libraries at runtime.
14705       ;;
14706     sysv4*MP*)
14707       if test -d /usr/nec; then
14708         lt_prog_compiler_pic_CXX=-Kconform_pic
14709       fi
14710       ;;
14711     hpux*)
14712       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14713       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14714       # sets the default TLS model and affects inlining.
14715       case $host_cpu in
14716       hppa*64*)
14717         ;;
14718       *)
14719         lt_prog_compiler_pic_CXX='-fPIC'
14720         ;;
14721       esac
14722       ;;
14723     *qnx* | *nto*)
14724       # QNX uses GNU C++, but need to define -shared option too, otherwise
14725       # it will coredump.
14726       lt_prog_compiler_pic_CXX='-fPIC -shared'
14727       ;;
14728     *)
14729       lt_prog_compiler_pic_CXX='-fPIC'
14730       ;;
14731     esac
14732   else
14733     case $host_os in
14734       aix[4-9]*)
14735         # All AIX code is PIC.
14736         if test "$host_cpu" = ia64; then
14737           # AIX 5 now supports IA64 processor
14738           lt_prog_compiler_static_CXX='-Bstatic'
14739         else
14740           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14741         fi
14742         ;;
14743       chorus*)
14744         case $cc_basename in
14745         cxch68*)
14746           # Green Hills C++ Compiler
14747           # _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"
14748           ;;
14749         esac
14750         ;;
14751       dgux*)
14752         case $cc_basename in
14753           ec++*)
14754             lt_prog_compiler_pic_CXX='-KPIC'
14755             ;;
14756           ghcx*)
14757             # Green Hills C++ Compiler
14758             lt_prog_compiler_pic_CXX='-pic'
14759             ;;
14760           *)
14761             ;;
14762         esac
14763         ;;
14764       freebsd* | dragonfly*)
14765         # FreeBSD uses GNU C++
14766         ;;
14767       hpux9* | hpux10* | hpux11*)
14768         case $cc_basename in
14769           CC*)
14770             lt_prog_compiler_wl_CXX='-Wl,'
14771             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14772             if test "$host_cpu" != ia64; then
14773               lt_prog_compiler_pic_CXX='+Z'
14774             fi
14775             ;;
14776           aCC*)
14777             lt_prog_compiler_wl_CXX='-Wl,'
14778             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14779             case $host_cpu in
14780             hppa*64*|ia64*)
14781               # +Z the default
14782               ;;
14783             *)
14784               lt_prog_compiler_pic_CXX='+Z'
14785               ;;
14786             esac
14787             ;;
14788           *)
14789             ;;
14790         esac
14791         ;;
14792       interix*)
14793         # This is c89, which is MS Visual C++ (no shared libs)
14794         # Anyone wants to do a port?
14795         ;;
14796       irix5* | irix6* | nonstopux*)
14797         case $cc_basename in
14798           CC*)
14799             lt_prog_compiler_wl_CXX='-Wl,'
14800             lt_prog_compiler_static_CXX='-non_shared'
14801             # CC pic flag -KPIC is the default.
14802             ;;
14803           *)
14804             ;;
14805         esac
14806         ;;
14807       linux* | k*bsd*-gnu)
14808         case $cc_basename in
14809           KCC*)
14810             # KAI C++ Compiler
14811             lt_prog_compiler_wl_CXX='--backend -Wl,'
14812             lt_prog_compiler_pic_CXX='-fPIC'
14813             ;;
14814           ecpc* )
14815             # old Intel C++ for x86_64 which still supported -KPIC.
14816             lt_prog_compiler_wl_CXX='-Wl,'
14817             lt_prog_compiler_pic_CXX='-KPIC'
14818             lt_prog_compiler_static_CXX='-static'
14819             ;;
14820           icpc* )
14821             # Intel C++, used to be incompatible with GCC.
14822             # ICC 10 doesn't accept -KPIC any more.
14823             lt_prog_compiler_wl_CXX='-Wl,'
14824             lt_prog_compiler_pic_CXX='-fPIC'
14825             lt_prog_compiler_static_CXX='-static'
14826             ;;
14827           pgCC* | pgcpp*)
14828             # Portland Group C++ compiler
14829             lt_prog_compiler_wl_CXX='-Wl,'
14830             lt_prog_compiler_pic_CXX='-fpic'
14831             lt_prog_compiler_static_CXX='-Bstatic'
14832             ;;
14833           cxx*)
14834             # Compaq C++
14835             # Make sure the PIC flag is empty.  It appears that all Alpha
14836             # Linux and Compaq Tru64 Unix objects are PIC.
14837             lt_prog_compiler_pic_CXX=
14838             lt_prog_compiler_static_CXX='-non_shared'
14839             ;;
14840           xlc* | xlC*)
14841             # IBM XL 8.0 on PPC
14842             lt_prog_compiler_wl_CXX='-Wl,'
14843             lt_prog_compiler_pic_CXX='-qpic'
14844             lt_prog_compiler_static_CXX='-qstaticlink'
14845             ;;
14846           *)
14847             case `$CC -V 2>&1 | sed 5q` in
14848             *Sun\ C*)
14849               # Sun C++ 5.9
14850               lt_prog_compiler_pic_CXX='-KPIC'
14851               lt_prog_compiler_static_CXX='-Bstatic'
14852               lt_prog_compiler_wl_CXX='-Qoption ld '
14853               ;;
14854             esac
14855             ;;
14856         esac
14857         ;;
14858       lynxos*)
14859         ;;
14860       m88k*)
14861         ;;
14862       mvs*)
14863         case $cc_basename in
14864           cxx*)
14865             lt_prog_compiler_pic_CXX='-W c,exportall'
14866             ;;
14867           *)
14868             ;;
14869         esac
14870         ;;
14871       netbsd*)
14872         ;;
14873       *qnx* | *nto*)
14874         # QNX uses GNU C++, but need to define -shared option too, otherwise
14875         # it will coredump.
14876         lt_prog_compiler_pic_CXX='-fPIC -shared'
14877         ;;
14878       osf3* | osf4* | osf5*)
14879         case $cc_basename in
14880           KCC*)
14881             lt_prog_compiler_wl_CXX='--backend -Wl,'
14882             ;;
14883           RCC*)
14884             # Rational C++ 2.4.1
14885             lt_prog_compiler_pic_CXX='-pic'
14886             ;;
14887           cxx*)
14888             # Digital/Compaq C++
14889             lt_prog_compiler_wl_CXX='-Wl,'
14890             # Make sure the PIC flag is empty.  It appears that all Alpha
14891             # Linux and Compaq Tru64 Unix objects are PIC.
14892             lt_prog_compiler_pic_CXX=
14893             lt_prog_compiler_static_CXX='-non_shared'
14894             ;;
14895           *)
14896             ;;
14897         esac
14898         ;;
14899       psos*)
14900         ;;
14901       solaris*)
14902         case $cc_basename in
14903           CC*)
14904             # Sun C++ 4.2, 5.x and Centerline C++
14905             lt_prog_compiler_pic_CXX='-KPIC'
14906             lt_prog_compiler_static_CXX='-Bstatic'
14907             lt_prog_compiler_wl_CXX='-Qoption ld '
14908             ;;
14909           gcx*)
14910             # Green Hills C++ Compiler
14911             lt_prog_compiler_pic_CXX='-PIC'
14912             ;;
14913           *)
14914             ;;
14915         esac
14916         ;;
14917       sunos4*)
14918         case $cc_basename in
14919           CC*)
14920             # Sun C++ 4.x
14921             lt_prog_compiler_pic_CXX='-pic'
14922             lt_prog_compiler_static_CXX='-Bstatic'
14923             ;;
14924           lcc*)
14925             # Lucid
14926             lt_prog_compiler_pic_CXX='-pic'
14927             ;;
14928           *)
14929             ;;
14930         esac
14931         ;;
14932       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14933         case $cc_basename in
14934           CC*)
14935             lt_prog_compiler_wl_CXX='-Wl,'
14936             lt_prog_compiler_pic_CXX='-KPIC'
14937             lt_prog_compiler_static_CXX='-Bstatic'
14938             ;;
14939         esac
14940         ;;
14941       tandem*)
14942         case $cc_basename in
14943           NCC*)
14944             # NonStop-UX NCC 3.20
14945             lt_prog_compiler_pic_CXX='-KPIC'
14946             ;;
14947           *)
14948             ;;
14949         esac
14950         ;;
14951       vxworks*)
14952         ;;
14953       *)
14954         lt_prog_compiler_can_build_shared_CXX=no
14955         ;;
14956     esac
14957   fi
14958
14959 case $host_os in
14960   # For platforms which do not support PIC, -DPIC is meaningless:
14961   *djgpp*)
14962     lt_prog_compiler_pic_CXX=
14963     ;;
14964   *)
14965     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14966     ;;
14967 esac
14968 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14969 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14970
14971
14972
14973 #
14974 # Check to make sure the PIC flag actually works.
14975 #
14976 if test -n "$lt_prog_compiler_pic_CXX"; then
14977   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14979 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14980   $as_echo_n "(cached) " >&6
14981 else
14982   lt_cv_prog_compiler_pic_works_CXX=no
14983    ac_outfile=conftest.$ac_objext
14984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14985    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14986    # Insert the option either (1) after the last *FLAGS variable, or
14987    # (2) before a word containing "conftest.", or (3) at the end.
14988    # Note that $ac_compile itself does not contain backslashes and begins
14989    # with a dollar sign (not a hyphen), so the echo should work correctly.
14990    # The option is referenced via a variable to avoid confusing sed.
14991    lt_compile=`echo "$ac_compile" | $SED \
14992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994    -e 's:$: $lt_compiler_flag:'`
14995    (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996    (eval "$lt_compile" 2>conftest.err)
14997    ac_status=$?
14998    cat conftest.err >&5
14999    echo "$as_me:14999: \$? = $ac_status" >&5
15000    if (exit $ac_status) && test -s "$ac_outfile"; then
15001      # The compiler can only warn and ignore the option if not recognized
15002      # So say no if there are warnings other than the usual output.
15003      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006        lt_cv_prog_compiler_pic_works_CXX=yes
15007      fi
15008    fi
15009    $RM conftest*
15010
15011 fi
15012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15013 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15014
15015 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15016     case $lt_prog_compiler_pic_CXX in
15017      "" | " "*) ;;
15018      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15019      esac
15020 else
15021     lt_prog_compiler_pic_CXX=
15022      lt_prog_compiler_can_build_shared_CXX=no
15023 fi
15024
15025 fi
15026
15027
15028
15029 #
15030 # Check to make sure the static flag actually works.
15031 #
15032 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15033 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15035 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15036   $as_echo_n "(cached) " >&6
15037 else
15038   lt_cv_prog_compiler_static_works_CXX=no
15039    save_LDFLAGS="$LDFLAGS"
15040    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15041    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15042    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15043      # The linker can only warn and ignore the option if not recognized
15044      # So say no if there are warnings
15045      if test -s conftest.err; then
15046        # Append any errors to the config.log.
15047        cat conftest.err 1>&5
15048        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15049        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15050        if diff conftest.exp conftest.er2 >/dev/null; then
15051          lt_cv_prog_compiler_static_works_CXX=yes
15052        fi
15053      else
15054        lt_cv_prog_compiler_static_works_CXX=yes
15055      fi
15056    fi
15057    $RM -r conftest*
15058    LDFLAGS="$save_LDFLAGS"
15059
15060 fi
15061 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15062 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15063
15064 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15065     :
15066 else
15067     lt_prog_compiler_static_CXX=
15068 fi
15069
15070
15071
15072
15073     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15075 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15076   $as_echo_n "(cached) " >&6
15077 else
15078   lt_cv_prog_compiler_c_o_CXX=no
15079    $RM -r conftest 2>/dev/null
15080    mkdir conftest
15081    cd conftest
15082    mkdir out
15083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15084
15085    lt_compiler_flag="-o out/conftest2.$ac_objext"
15086    # Insert the option either (1) after the last *FLAGS variable, or
15087    # (2) before a word containing "conftest.", or (3) at the end.
15088    # Note that $ac_compile itself does not contain backslashes and begins
15089    # with a dollar sign (not a hyphen), so the echo should work correctly.
15090    lt_compile=`echo "$ac_compile" | $SED \
15091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15093    -e 's:$: $lt_compiler_flag:'`
15094    (eval echo "\"\$as_me:15094: $lt_compile\"" >&5)
15095    (eval "$lt_compile" 2>out/conftest.err)
15096    ac_status=$?
15097    cat out/conftest.err >&5
15098    echo "$as_me:15098: \$? = $ac_status" >&5
15099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15100    then
15101      # The compiler can only warn and ignore the option if not recognized
15102      # So say no if there are warnings
15103      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15104      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15105      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15106        lt_cv_prog_compiler_c_o_CXX=yes
15107      fi
15108    fi
15109    chmod u+w . 2>&5
15110    $RM conftest*
15111    # SGI C++ compiler will create directory out/ii_files/ for
15112    # template instantiation
15113    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15114    $RM out/* && rmdir out
15115    cd ..
15116    $RM -r conftest
15117    $RM conftest*
15118
15119 fi
15120 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15121 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15122
15123
15124
15125     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15127 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15128   $as_echo_n "(cached) " >&6
15129 else
15130   lt_cv_prog_compiler_c_o_CXX=no
15131    $RM -r conftest 2>/dev/null
15132    mkdir conftest
15133    cd conftest
15134    mkdir out
15135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15136
15137    lt_compiler_flag="-o out/conftest2.$ac_objext"
15138    # Insert the option either (1) after the last *FLAGS variable, or
15139    # (2) before a word containing "conftest.", or (3) at the end.
15140    # Note that $ac_compile itself does not contain backslashes and begins
15141    # with a dollar sign (not a hyphen), so the echo should work correctly.
15142    lt_compile=`echo "$ac_compile" | $SED \
15143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145    -e 's:$: $lt_compiler_flag:'`
15146    (eval echo "\"\$as_me:15146: $lt_compile\"" >&5)
15147    (eval "$lt_compile" 2>out/conftest.err)
15148    ac_status=$?
15149    cat out/conftest.err >&5
15150    echo "$as_me:15150: \$? = $ac_status" >&5
15151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15152    then
15153      # The compiler can only warn and ignore the option if not recognized
15154      # So say no if there are warnings
15155      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15156      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15157      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15158        lt_cv_prog_compiler_c_o_CXX=yes
15159      fi
15160    fi
15161    chmod u+w . 2>&5
15162    $RM conftest*
15163    # SGI C++ compiler will create directory out/ii_files/ for
15164    # template instantiation
15165    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15166    $RM out/* && rmdir out
15167    cd ..
15168    $RM -r conftest
15169    $RM conftest*
15170
15171 fi
15172 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15173 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15174
15175
15176
15177
15178 hard_links="nottested"
15179 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15180   # do not overwrite the value of need_locks provided by the user
15181   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15182 $as_echo_n "checking if we can lock with hard links... " >&6; }
15183   hard_links=yes
15184   $RM conftest*
15185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15186   touch conftest.a
15187   ln conftest.a conftest.b 2>&5 || hard_links=no
15188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15189   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15190 $as_echo "$hard_links" >&6; }
15191   if test "$hard_links" = no; then
15192     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15193 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15194     need_locks=warn
15195   fi
15196 else
15197   need_locks=no
15198 fi
15199
15200
15201
15202     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15204
15205   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15206   case $host_os in
15207   aix[4-9]*)
15208     # If we're using GNU nm, then we don't want the "-C" option.
15209     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15210     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15211       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'
15212     else
15213       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'
15214     fi
15215     ;;
15216   pw32*)
15217     export_symbols_cmds_CXX="$ltdll_cmds"
15218   ;;
15219   cygwin* | mingw* | cegcc*)
15220     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'
15221   ;;
15222   *)
15223     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15224   ;;
15225   esac
15226   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15227
15228 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15229 $as_echo "$ld_shlibs_CXX" >&6; }
15230 test "$ld_shlibs_CXX" = no && can_build_shared=no
15231
15232 with_gnu_ld_CXX=$with_gnu_ld
15233
15234
15235
15236
15237
15238
15239 #
15240 # Do we need to explicitly link libc?
15241 #
15242 case "x$archive_cmds_need_lc_CXX" in
15243 x|xyes)
15244   # Assume -lc should be added
15245   archive_cmds_need_lc_CXX=yes
15246
15247   if test "$enable_shared" = yes && test "$GCC" = yes; then
15248     case $archive_cmds_CXX in
15249     *'~'*)
15250       # FIXME: we may have to deal with multi-command sequences.
15251       ;;
15252     '$CC '*)
15253       # Test whether the compiler implicitly links with -lc since on some
15254       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15255       # to ld, don't add -lc before -lgcc.
15256       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15257 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15258       $RM conftest*
15259       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260
15261       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262   (eval $ac_compile) 2>&5
15263   ac_status=$?
15264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } 2>conftest.err; then
15266         soname=conftest
15267         lib=conftest
15268         libobjs=conftest.$ac_objext
15269         deplibs=
15270         wl=$lt_prog_compiler_wl_CXX
15271         pic_flag=$lt_prog_compiler_pic_CXX
15272         compiler_flags=-v
15273         linker_flags=-v
15274         verstring=
15275         output_objdir=.
15276         libname=conftest
15277         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15278         allow_undefined_flag_CXX=
15279         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15280   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15281   ac_status=$?
15282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }
15284         then
15285           archive_cmds_need_lc_CXX=no
15286         else
15287           archive_cmds_need_lc_CXX=yes
15288         fi
15289         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15290       else
15291         cat conftest.err 1>&5
15292       fi
15293       $RM conftest*
15294       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15295 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15296       ;;
15297     esac
15298   fi
15299   ;;
15300 esac
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15366 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15367
15368 library_names_spec=
15369 libname_spec='lib$name'
15370 soname_spec=
15371 shrext_cmds=".so"
15372 postinstall_cmds=
15373 postuninstall_cmds=
15374 finish_cmds=
15375 finish_eval=
15376 shlibpath_var=
15377 shlibpath_overrides_runpath=unknown
15378 version_type=none
15379 dynamic_linker="$host_os ld.so"
15380 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15381 need_lib_prefix=unknown
15382 hardcode_into_libs=no
15383
15384 # when you set need_version to no, make sure it does not cause -set_version
15385 # flags to be left without arguments
15386 need_version=unknown
15387
15388 case $host_os in
15389 aix3*)
15390   version_type=linux
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15392   shlibpath_var=LIBPATH
15393
15394   # AIX 3 has no versioning support, so we append a major version to the name.
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   ;;
15397
15398 aix[4-9]*)
15399   version_type=linux
15400   need_lib_prefix=no
15401   need_version=no
15402   hardcode_into_libs=yes
15403   if test "$host_cpu" = ia64; then
15404     # AIX 5 supports IA64
15405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15406     shlibpath_var=LD_LIBRARY_PATH
15407   else
15408     # With GCC up to 2.95.x, collect2 would create an import file
15409     # for dependence libraries.  The import file would start with
15410     # the line `#! .'.  This would cause the generated library to
15411     # depend on `.', always an invalid library.  This was fixed in
15412     # development snapshots of GCC prior to 3.0.
15413     case $host_os in
15414       aix4 | aix4.[01] | aix4.[01].*)
15415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15416            echo ' yes '
15417            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15418         :
15419       else
15420         can_build_shared=no
15421       fi
15422       ;;
15423     esac
15424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15425     # soname into executable. Probably we can add versioning support to
15426     # collect2, so additional links can be useful in future.
15427     if test "$aix_use_runtimelinking" = yes; then
15428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15429       # instead of lib<name>.a to let people know that these are not
15430       # typical AIX shared libraries.
15431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432     else
15433       # We preserve .a as extension for shared libraries through AIX4.2
15434       # and later when we are not doing run time linking.
15435       library_names_spec='${libname}${release}.a $libname.a'
15436       soname_spec='${libname}${release}${shared_ext}$major'
15437     fi
15438     shlibpath_var=LIBPATH
15439   fi
15440   ;;
15441
15442 amigaos*)
15443   case $host_cpu in
15444   powerpc)
15445     # Since July 2007 AmigaOS4 officially supports .so libraries.
15446     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448     ;;
15449   m68k)
15450     library_names_spec='$libname.ixlibrary $libname.a'
15451     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15452     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'
15453     ;;
15454   esac
15455   ;;
15456
15457 beos*)
15458   library_names_spec='${libname}${shared_ext}'
15459   dynamic_linker="$host_os ld.so"
15460   shlibpath_var=LIBRARY_PATH
15461   ;;
15462
15463 bsdi[45]*)
15464   version_type=linux
15465   need_version=no
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467   soname_spec='${libname}${release}${shared_ext}$major'
15468   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15471   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15472   # the default ld.so.conf also contains /usr/contrib/lib and
15473   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15474   # libtool to hard-code these into programs
15475   ;;
15476
15477 cygwin* | mingw* | pw32* | cegcc*)
15478   version_type=windows
15479   shrext_cmds=".dll"
15480   need_version=no
15481   need_lib_prefix=no
15482
15483   case $GCC,$host_os in
15484   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15485     library_names_spec='$libname.dll.a'
15486     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15487     postinstall_cmds='base_file=`basename \${file}`~
15488       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15489       dldir=$destdir/`dirname \$dlpath`~
15490       test -d \$dldir || mkdir -p \$dldir~
15491       $install_prog $dir/$dlname \$dldir/$dlname~
15492       chmod a+x \$dldir/$dlname~
15493       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15494         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15495       fi'
15496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15497       dlpath=$dir/\$dldll~
15498        $RM \$dlpath'
15499     shlibpath_overrides_runpath=yes
15500
15501     case $host_os in
15502     cygwin*)
15503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15505       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15506       ;;
15507     mingw* | cegcc*)
15508       # MinGW DLLs use traditional 'lib' prefix
15509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15510       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15511       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15512         # It is most probably a Windows format PATH printed by
15513         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15514         # path with ; separators, and with drive letters. We can handle the
15515         # drive letters (cygwin fileutils understands them), so leave them,
15516         # especially as we might pass files found there to a mingw objdump,
15517         # which wouldn't understand a cygwinified path. Ahh.
15518         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15519       else
15520         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15521       fi
15522       ;;
15523     pw32*)
15524       # pw32 DLLs use 'pw' prefix rather than 'lib'
15525       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15526       ;;
15527     esac
15528     ;;
15529
15530   *)
15531     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15532     ;;
15533   esac
15534   dynamic_linker='Win32 ld.exe'
15535   # FIXME: first we should search . and the directory the executable is in
15536   shlibpath_var=PATH
15537   ;;
15538
15539 darwin* | rhapsody*)
15540   dynamic_linker="$host_os dyld"
15541   version_type=darwin
15542   need_lib_prefix=no
15543   need_version=no
15544   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15545   soname_spec='${libname}${release}${major}$shared_ext'
15546   shlibpath_overrides_runpath=yes
15547   shlibpath_var=DYLD_LIBRARY_PATH
15548   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15549
15550   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15551   ;;
15552
15553 dgux*)
15554   version_type=linux
15555   need_lib_prefix=no
15556   need_version=no
15557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15558   soname_spec='${libname}${release}${shared_ext}$major'
15559   shlibpath_var=LD_LIBRARY_PATH
15560   ;;
15561
15562 freebsd1*)
15563   dynamic_linker=no
15564   ;;
15565
15566 freebsd* | dragonfly*)
15567   # DragonFly does not have aout.  When/if they implement a new
15568   # versioning mechanism, adjust this.
15569   if test -x /usr/bin/objformat; then
15570     objformat=`/usr/bin/objformat`
15571   else
15572     case $host_os in
15573     freebsd[123]*) objformat=aout ;;
15574     *) objformat=elf ;;
15575     esac
15576   fi
15577   version_type=freebsd-$objformat
15578   case $version_type in
15579     freebsd-elf*)
15580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15581       need_version=no
15582       need_lib_prefix=no
15583       ;;
15584     freebsd-*)
15585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15586       need_version=yes
15587       ;;
15588   esac
15589   shlibpath_var=LD_LIBRARY_PATH
15590   case $host_os in
15591   freebsd2*)
15592     shlibpath_overrides_runpath=yes
15593     ;;
15594   freebsd3.[01]* | freebsdelf3.[01]*)
15595     shlibpath_overrides_runpath=yes
15596     hardcode_into_libs=yes
15597     ;;
15598   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15599   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15600     shlibpath_overrides_runpath=no
15601     hardcode_into_libs=yes
15602     ;;
15603   *) # from 4.6 on, and DragonFly
15604     shlibpath_overrides_runpath=yes
15605     hardcode_into_libs=yes
15606     ;;
15607   esac
15608   ;;
15609
15610 gnu*)
15611   version_type=linux
15612   need_lib_prefix=no
15613   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
15617   hardcode_into_libs=yes
15618   ;;
15619
15620 hpux9* | hpux10* | hpux11*)
15621   # Give a soname corresponding to the major version so that dld.sl refuses to
15622   # link against other versions.
15623   version_type=sunos
15624   need_lib_prefix=no
15625   need_version=no
15626   case $host_cpu in
15627   ia64*)
15628     shrext_cmds='.so'
15629     hardcode_into_libs=yes
15630     dynamic_linker="$host_os dld.so"
15631     shlibpath_var=LD_LIBRARY_PATH
15632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634     soname_spec='${libname}${release}${shared_ext}$major'
15635     if test "X$HPUX_IA64_MODE" = X32; then
15636       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15637     else
15638       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15639     fi
15640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15641     ;;
15642   hppa*64*)
15643     shrext_cmds='.sl'
15644     hardcode_into_libs=yes
15645     dynamic_linker="$host_os dld.sl"
15646     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15647     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649     soname_spec='${libname}${release}${shared_ext}$major'
15650     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15651     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15652     ;;
15653   *)
15654     shrext_cmds='.sl'
15655     dynamic_linker="$host_os dld.sl"
15656     shlibpath_var=SHLIB_PATH
15657     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659     soname_spec='${libname}${release}${shared_ext}$major'
15660     ;;
15661   esac
15662   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15663   postinstall_cmds='chmod 555 $lib'
15664   ;;
15665
15666 interix[3-9]*)
15667   version_type=linux
15668   need_lib_prefix=no
15669   need_version=no
15670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   shlibpath_overrides_runpath=no
15675   hardcode_into_libs=yes
15676   ;;
15677
15678 irix5* | irix6* | nonstopux*)
15679   case $host_os in
15680     nonstopux*) version_type=nonstopux ;;
15681     *)
15682         if test "$lt_cv_prog_gnu_ld" = yes; then
15683                 version_type=linux
15684         else
15685                 version_type=irix
15686         fi ;;
15687   esac
15688   need_lib_prefix=no
15689   need_version=no
15690   soname_spec='${libname}${release}${shared_ext}$major'
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15692   case $host_os in
15693   irix5* | nonstopux*)
15694     libsuff= shlibsuff=
15695     ;;
15696   *)
15697     case $LD in # libtool.m4 will add one of these switches to LD
15698     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15699       libsuff= shlibsuff= libmagic=32-bit;;
15700     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15701       libsuff=32 shlibsuff=N32 libmagic=N32;;
15702     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15703       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15704     *) libsuff= shlibsuff= libmagic=never-match;;
15705     esac
15706     ;;
15707   esac
15708   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15709   shlibpath_overrides_runpath=no
15710   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15711   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15712   hardcode_into_libs=yes
15713   ;;
15714
15715 # No shared lib support for Linux oldld, aout, or coff.
15716 linux*oldld* | linux*aout* | linux*coff*)
15717   dynamic_linker=no
15718   ;;
15719
15720 # This must be Linux ELF.
15721 linux* | k*bsd*-gnu)
15722   version_type=linux
15723   need_lib_prefix=no
15724   need_version=no
15725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726   soname_spec='${libname}${release}${shared_ext}$major'
15727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15728   shlibpath_var=LD_LIBRARY_PATH
15729   shlibpath_overrides_runpath=no
15730   # Some binutils ld are patched to set DT_RUNPATH
15731   save_LDFLAGS=$LDFLAGS
15732   save_libdir=$libdir
15733   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15734        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15735   cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741
15742 int
15743 main ()
15744 {
15745
15746   ;
15747   return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15757 $as_echo "$ac_try_echo") >&5
15758   (eval "$ac_link") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } && {
15765          test -z "$ac_cxx_werror_flag" ||
15766          test ! -s conftest.err
15767        } && test -s conftest$ac_exeext && {
15768          test "$cross_compiling" = yes ||
15769          $as_test_x conftest$ac_exeext
15770        }; then
15771   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15772   shlibpath_overrides_runpath=yes
15773 fi
15774
15775 else
15776   $as_echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779
15780 fi
15781
15782 rm -rf conftest.dSYM
15783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15784       conftest$ac_exeext conftest.$ac_ext
15785   LDFLAGS=$save_LDFLAGS
15786   libdir=$save_libdir
15787
15788   # This implies no fast_install, which is unacceptable.
15789   # Some rework will be needed to allow for fast_install
15790   # before this can be enabled.
15791   hardcode_into_libs=yes
15792
15793   # Append ld.so.conf contents to the search path
15794   if test -f /etc/ld.so.conf; then
15795     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' ' '`
15796     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15797   fi
15798
15799   # We used to test for /lib/ld.so.1 and disable shared libraries on
15800   # powerpc, because MkLinux only supported shared libraries with the
15801   # GNU dynamic linker.  Since this was broken with cross compilers,
15802   # most powerpc-linux boxes support dynamic linking these days and
15803   # people can always --disable-shared, the test was removed, and we
15804   # assume the GNU/Linux dynamic linker is in use.
15805   dynamic_linker='GNU/Linux ld.so'
15806   ;;
15807
15808 netbsd*)
15809   version_type=sunos
15810   need_lib_prefix=no
15811   need_version=no
15812   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15815     dynamic_linker='NetBSD (a.out) ld.so'
15816   else
15817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15818     soname_spec='${libname}${release}${shared_ext}$major'
15819     dynamic_linker='NetBSD ld.elf_so'
15820   fi
15821   shlibpath_var=LD_LIBRARY_PATH
15822   shlibpath_overrides_runpath=yes
15823   hardcode_into_libs=yes
15824   ;;
15825
15826 newsos6)
15827   version_type=linux
15828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829   shlibpath_var=LD_LIBRARY_PATH
15830   shlibpath_overrides_runpath=yes
15831   ;;
15832
15833 *nto* | *qnx*)
15834   version_type=qnx
15835   need_lib_prefix=no
15836   need_version=no
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   shlibpath_overrides_runpath=no
15841   hardcode_into_libs=yes
15842   dynamic_linker='ldqnx.so'
15843   ;;
15844
15845 openbsd*)
15846   version_type=sunos
15847   sys_lib_dlsearch_path_spec="/usr/lib"
15848   need_lib_prefix=no
15849   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15850   case $host_os in
15851     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15852     *)                          need_version=no  ;;
15853   esac
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15858     case $host_os in
15859       openbsd2.[89] | openbsd2.[89].*)
15860         shlibpath_overrides_runpath=no
15861         ;;
15862       *)
15863         shlibpath_overrides_runpath=yes
15864         ;;
15865       esac
15866   else
15867     shlibpath_overrides_runpath=yes
15868   fi
15869   ;;
15870
15871 os2*)
15872   libname_spec='$name'
15873   shrext_cmds=".dll"
15874   need_lib_prefix=no
15875   library_names_spec='$libname${shared_ext} $libname.a'
15876   dynamic_linker='OS/2 ld.exe'
15877   shlibpath_var=LIBPATH
15878   ;;
15879
15880 osf3* | osf4* | osf5*)
15881   version_type=osf
15882   need_lib_prefix=no
15883   need_version=no
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886   shlibpath_var=LD_LIBRARY_PATH
15887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15889   ;;
15890
15891 rdos*)
15892   dynamic_linker=no
15893   ;;
15894
15895 solaris*)
15896   version_type=linux
15897   need_lib_prefix=no
15898   need_version=no
15899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900   soname_spec='${libname}${release}${shared_ext}$major'
15901   shlibpath_var=LD_LIBRARY_PATH
15902   shlibpath_overrides_runpath=yes
15903   hardcode_into_libs=yes
15904   # ldd complains unless libraries are executable
15905   postinstall_cmds='chmod +x $lib'
15906   ;;
15907
15908 sunos4*)
15909   version_type=sunos
15910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15912   shlibpath_var=LD_LIBRARY_PATH
15913   shlibpath_overrides_runpath=yes
15914   if test "$with_gnu_ld" = yes; then
15915     need_lib_prefix=no
15916   fi
15917   need_version=yes
15918   ;;
15919
15920 sysv4 | sysv4.3*)
15921   version_type=linux
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   shlibpath_var=LD_LIBRARY_PATH
15925   case $host_vendor in
15926     sni)
15927       shlibpath_overrides_runpath=no
15928       need_lib_prefix=no
15929       runpath_var=LD_RUN_PATH
15930       ;;
15931     siemens)
15932       need_lib_prefix=no
15933       ;;
15934     motorola)
15935       need_lib_prefix=no
15936       need_version=no
15937       shlibpath_overrides_runpath=no
15938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15939       ;;
15940   esac
15941   ;;
15942
15943 sysv4*MP*)
15944   if test -d /usr/nec ;then
15945     version_type=linux
15946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15947     soname_spec='$libname${shared_ext}.$major'
15948     shlibpath_var=LD_LIBRARY_PATH
15949   fi
15950   ;;
15951
15952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15953   version_type=freebsd-elf
15954   need_lib_prefix=no
15955   need_version=no
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15957   soname_spec='${libname}${release}${shared_ext}$major'
15958   shlibpath_var=LD_LIBRARY_PATH
15959   shlibpath_overrides_runpath=yes
15960   hardcode_into_libs=yes
15961   if test "$with_gnu_ld" = yes; then
15962     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15963   else
15964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15965     case $host_os in
15966       sco3.2v5*)
15967         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15968         ;;
15969     esac
15970   fi
15971   sys_lib_dlsearch_path_spec='/usr/lib'
15972   ;;
15973
15974 tpf*)
15975   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15976   version_type=linux
15977   need_lib_prefix=no
15978   need_version=no
15979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980   shlibpath_var=LD_LIBRARY_PATH
15981   shlibpath_overrides_runpath=no
15982   hardcode_into_libs=yes
15983   ;;
15984
15985 uts4*)
15986   version_type=linux
15987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988   soname_spec='${libname}${release}${shared_ext}$major'
15989   shlibpath_var=LD_LIBRARY_PATH
15990   ;;
15991
15992 *)
15993   dynamic_linker=no
15994   ;;
15995 esac
15996 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15997 $as_echo "$dynamic_linker" >&6; }
15998 test "$dynamic_linker" = no && can_build_shared=no
15999
16000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16001 if test "$GCC" = yes; then
16002   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16003 fi
16004
16005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16006   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16007 fi
16008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16009   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16010 fi
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16049 hardcode_action_CXX=
16050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16051    test -n "$runpath_var_CXX" ||
16052    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16053
16054   # We can hardcode non-existent directories.
16055   if test "$hardcode_direct_CXX" != no &&
16056      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16057      # have to relink, otherwise we might link with an installed library
16058      # when we should be linking with a yet-to-be-installed one
16059      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16060      test "$hardcode_minus_L_CXX" != no; then
16061     # Linking always hardcodes the temporary library directory.
16062     hardcode_action_CXX=relink
16063   else
16064     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16065     hardcode_action_CXX=immediate
16066   fi
16067 else
16068   # We cannot hardcode anything, or else we can only hardcode existing
16069   # directories.
16070   hardcode_action_CXX=unsupported
16071 fi
16072 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16073 $as_echo "$hardcode_action_CXX" >&6; }
16074
16075 if test "$hardcode_action_CXX" = relink ||
16076    test "$inherit_rpath_CXX" = yes; then
16077   # Fast installation is not supported
16078   enable_fast_install=no
16079 elif test "$shlibpath_overrides_runpath" = yes ||
16080      test "$enable_shared" = no; then
16081   # Fast installation is not necessary
16082   enable_fast_install=needless
16083 fi
16084
16085
16086
16087
16088
16089
16090
16091   fi # test -n "$compiler"
16092
16093   CC=$lt_save_CC
16094   LDCXX=$LD
16095   LD=$lt_save_LD
16096   GCC=$lt_save_GCC
16097   with_gnu_ld=$lt_save_with_gnu_ld
16098   lt_cv_path_LDCXX=$lt_cv_path_LD
16099   lt_cv_path_LD=$lt_save_path_LD
16100   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16101   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16102 fi # test "$_lt_caught_CXX_error" != yes
16103
16104 ac_ext=c
16105 ac_cpp='$CPP $CPPFLAGS'
16106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122         ac_config_commands="$ac_config_commands libtool"
16123
16124
16125
16126
16127 # Only expand once:
16128
16129
16130
16131
16132 if test x$use_libtool != xno; then
16133    DEFAULT_OBJECT_TYPE=".lo"
16134    DEFAULT_ARCHIVE_TYPE=".la"
16135    DEFAULT_SHARED_OBJECT_TYPE=".la"
16136    LIBTOOL="\$(LIBTOOL)"
16137    LIBTOOL_INSTALL_TARGET="libtool-install"
16138    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16139    LIBTOOL_CLEAN_TARGET="libtool-clean"
16140    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16141    FD_PLUGIN_DIR="src/plugins/fd"
16142    have_plugins=yes
16143 else
16144    DEFAULT_OBJECT_TYPE=".o"
16145    DEFAULT_ARCHIVE_TYPE=".a"
16146    DEFAULT_SHARED_OBJECT_TYPE=".so"
16147    LIBTOOL="# \$(LIBTOOL)"
16148    LIBTOOL_INSTALL_TARGET=""
16149    LIBTOOL_UNINSTALL_TARGET=""
16150    LIBTOOL_CLEAN_TARGET=""
16151    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16152    FD_PLUGIN_DIR=""
16153    have_plugins=no
16154 fi
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166 # Check whether --enable-includes was given.
16167 if test "${enable_includes+set}" = set; then
16168   enableval=$enable_includes;
16169        if test x$enableval = xyes; then
16170           install_includes=yes
16171        fi
16172
16173
16174 fi
16175
16176
16177
16178 if test x$use_libtool != xno -a x$install_includes = xyes; then
16179    INCLUDE_INSTALL_TARGET="install-includes"
16180    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16181 else
16182    INCLUDE_INSTALL_TARGET=""
16183    INCLUDE_UNINSTALL_TARGET=""
16184 fi
16185
16186
16187
16188
16189 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16190 $as_echo_n "checking host system type... " >&6; }
16191 if test "${ac_cv_host+set}" = set; then
16192   $as_echo_n "(cached) " >&6
16193 else
16194   if test "x$host_alias" = x; then
16195   ac_cv_host=$ac_cv_build
16196 else
16197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16198     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16199 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16200    { (exit 1); exit 1; }; }
16201 fi
16202
16203 fi
16204 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16205 $as_echo "$ac_cv_host" >&6; }
16206 case $ac_cv_host in
16207 *-*-*) ;;
16208 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16209 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16210    { (exit 1); exit 1; }; };;
16211 esac
16212 host=$ac_cv_host
16213 ac_save_IFS=$IFS; IFS='-'
16214 set x $ac_cv_host
16215 shift
16216 host_cpu=$1
16217 host_vendor=$2
16218 shift; shift
16219 # Remember, the first character of IFS is used to create $*,
16220 # except with old shells:
16221 host_os=$*
16222 IFS=$ac_save_IFS
16223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16224
16225
16226 case $host_os in
16227   *cygwin* ) CYGWIN=yes;;
16228          * ) CYGWIN=no;;
16229 esac
16230
16231 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16232 then
16233
16234
16235 if $TRUEPRG; then
16236   HAVE_SUN_OS_TRUE=
16237   HAVE_SUN_OS_FALSE='#'
16238 else
16239   HAVE_SUN_OS_TRUE='#'
16240   HAVE_SUN_OS_FALSE=
16241 fi
16242         cat >>confdefs.h <<\_ACEOF
16243 #define HAVE_SUN_OS 1
16244 _ACEOF
16245
16246 else
16247
16248
16249 if $FALSEPRG; then
16250   HAVE_SUN_OS_TRUE=
16251   HAVE_SUN_OS_FALSE='#'
16252 else
16253   HAVE_SUN_OS_TRUE='#'
16254   HAVE_SUN_OS_FALSE=
16255 fi
16256 fi
16257
16258 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16259 then
16260
16261
16262 if $TRUEPRG; then
16263   HAVE_OSF1_OS_TRUE=
16264   HAVE_OSF1_OS_FALSE='#'
16265 else
16266   HAVE_OSF1_OS_TRUE='#'
16267   HAVE_OSF1_OS_FALSE=
16268 fi
16269         cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_OSF1_OS 1
16271 _ACEOF
16272
16273 else
16274
16275
16276 if $FALSEPRG; then
16277   HAVE_OSF1_OS_TRUE=
16278   HAVE_OSF1_OS_FALSE='#'
16279 else
16280   HAVE_OSF1_OS_TRUE='#'
16281   HAVE_OSF1_OS_FALSE=
16282 fi
16283 fi
16284
16285 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16286 then
16287
16288
16289 if $TRUEPRG; then
16290   HAVE_AIX_OS_TRUE=
16291   HAVE_AIX_OS_FALSE='#'
16292 else
16293   HAVE_AIX_OS_TRUE='#'
16294   HAVE_AIX_OS_FALSE=
16295 fi
16296         cat >>confdefs.h <<\_ACEOF
16297 #define HAVE_AIX_OS 1
16298 _ACEOF
16299
16300 else
16301
16302
16303 if $FALSEPRG; then
16304   HAVE_AIX_OS_TRUE=
16305   HAVE_AIX_OS_FALSE='#'
16306 else
16307   HAVE_AIX_OS_TRUE='#'
16308   HAVE_AIX_OS_FALSE=
16309 fi
16310 fi
16311
16312 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16313 then
16314
16315
16316 if $TRUEPRG; then
16317   HAVE_HPUX_OS_TRUE=
16318   HAVE_HPUX_OS_FALSE='#'
16319 else
16320   HAVE_HPUX_OS_TRUE='#'
16321   HAVE_HPUX_OS_FALSE=
16322 fi
16323         cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_HPUX_OS 1
16325 _ACEOF
16326
16327 else
16328
16329
16330 if $FALSEPRG; then
16331   HAVE_HPUX_OS_TRUE=
16332   HAVE_HPUX_OS_FALSE='#'
16333 else
16334   HAVE_HPUX_OS_TRUE='#'
16335   HAVE_HPUX_OS_FALSE=
16336 fi
16337 fi
16338
16339 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16340 then
16341
16342
16343 if $TRUEPRG; then
16344   HAVE_LINUX_OS_TRUE=
16345   HAVE_LINUX_OS_FALSE='#'
16346 else
16347   HAVE_LINUX_OS_TRUE='#'
16348   HAVE_LINUX_OS_FALSE=
16349 fi
16350         cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_LINUX_OS 1
16352 _ACEOF
16353
16354 else
16355
16356
16357 if $FALSEPRG; then
16358   HAVE_LINUX_OS_TRUE=
16359   HAVE_LINUX_OS_FALSE='#'
16360 else
16361   HAVE_LINUX_OS_TRUE='#'
16362   HAVE_LINUX_OS_FALSE=
16363 fi
16364 fi
16365
16366 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16367 then
16368
16369
16370 if $TRUEPRG; then
16371   HAVE_FREEBSD_OS_TRUE=
16372   HAVE_FREEBSD_OS_FALSE='#'
16373 else
16374   HAVE_FREEBSD_OS_TRUE='#'
16375   HAVE_FREEBSD_OS_FALSE=
16376 fi
16377         cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_FREEBSD_OS 1
16379 _ACEOF
16380
16381 else
16382
16383
16384 if $FALSEPRG; then
16385   HAVE_FREEBSD_OS_TRUE=
16386   HAVE_FREEBSD_OS_FALSE='#'
16387 else
16388   HAVE_FREEBSD_OS_TRUE='#'
16389   HAVE_FREEBSD_OS_FALSE=
16390 fi
16391 fi
16392
16393 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16394 then
16395
16396
16397 if $TRUEPRG; then
16398   HAVE_NETBSD_OS_TRUE=
16399   HAVE_NETBSD_OS_FALSE='#'
16400 else
16401   HAVE_NETBSD_OS_TRUE='#'
16402   HAVE_NETBSD_OS_FALSE=
16403 fi
16404         cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_NETBSD_OS 1
16406 _ACEOF
16407
16408 else
16409
16410
16411 if $FALSEPRG; then
16412   HAVE_NETBSD_OS_TRUE=
16413   HAVE_NETBSD_OS_FALSE='#'
16414 else
16415   HAVE_NETBSD_OS_TRUE='#'
16416   HAVE_NETBSD_OS_FALSE=
16417 fi
16418 fi
16419
16420 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16421 then
16422
16423
16424 if $TRUEPRG; then
16425   HAVE_OPENBSD_OS_TRUE=
16426   HAVE_OPENBSD_OS_FALSE='#'
16427 else
16428   HAVE_OPENBSD_OS_TRUE='#'
16429   HAVE_OPENBSD_OS_FALSE=
16430 fi
16431         cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_OPENBSD_OS 1
16433 _ACEOF
16434
16435 else
16436
16437
16438 if $FALSEPRG; then
16439   HAVE_OPENBSD_OS_TRUE=
16440   HAVE_OPENBSD_OS_FALSE='#'
16441 else
16442   HAVE_OPENBSD_OS_TRUE='#'
16443   HAVE_OPENBSD_OS_FALSE=
16444 fi
16445 fi
16446
16447 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16448 then
16449
16450
16451 if $TRUEPRG; then
16452   HAVE_BSDI_OS_TRUE=
16453   HAVE_BSDI_OS_FALSE='#'
16454 else
16455   HAVE_BSDI_OS_TRUE='#'
16456   HAVE_BSDI_OS_FALSE=
16457 fi
16458         cat >>confdefs.h <<\_ACEOF
16459 #define HAVE_BSDI_OS 1
16460 _ACEOF
16461
16462 else
16463
16464
16465 if $FALSEPRG; then
16466   HAVE_BSDI_OS_TRUE=
16467   HAVE_BSDI_OS_FALSE='#'
16468 else
16469   HAVE_BSDI_OS_TRUE='#'
16470   HAVE_BSDI_OS_FALSE=
16471 fi
16472 fi
16473
16474 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16475 then
16476
16477
16478 if $TRUEPRG; then
16479   HAVE_SGI_OS_TRUE=
16480   HAVE_SGI_OS_FALSE='#'
16481 else
16482   HAVE_SGI_OS_TRUE='#'
16483   HAVE_SGI_OS_FALSE=
16484 fi
16485         cat >>confdefs.h <<\_ACEOF
16486 #define HAVE_SGI_OS 1
16487 _ACEOF
16488
16489 else
16490
16491
16492 if $FALSEPRG; then
16493   HAVE_SGI_OS_TRUE=
16494   HAVE_SGI_OS_FALSE='#'
16495 else
16496   HAVE_SGI_OS_TRUE='#'
16497   HAVE_SGI_OS_FALSE=
16498 fi
16499 fi
16500
16501 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16502 then
16503
16504
16505 if $TRUEPRG; then
16506   HAVE_IRIX_OS_TRUE=
16507   HAVE_IRIX_OS_FALSE='#'
16508 else
16509   HAVE_IRIX_OS_TRUE='#'
16510   HAVE_IRIX_OS_FALSE=
16511 fi
16512         cat >>confdefs.h <<\_ACEOF
16513 #define HAVE_IRIX_OS 1
16514 _ACEOF
16515
16516 else
16517
16518
16519 if $FALSEPRG; then
16520   HAVE_IRIX_OS_TRUE=
16521   HAVE_IRIX_OS_FALSE='#'
16522 else
16523   HAVE_IRIX_OS_TRUE='#'
16524   HAVE_IRIX_OS_FALSE=
16525 fi
16526 fi
16527
16528 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16529 then
16530
16531
16532 if $TRUEPRG; then
16533   HAVE_DARWIN_OS_TRUE=
16534   HAVE_DARWIN_OS_FALSE='#'
16535 else
16536   HAVE_DARWIN_OS_TRUE='#'
16537   HAVE_DARWIN_OS_FALSE=
16538 fi
16539     cat >>confdefs.h <<\_ACEOF
16540 #define HAVE_DARWIN_OS 1
16541 _ACEOF
16542
16543 else
16544
16545
16546 if $FALSEPRG; then
16547   HAVE_DARWIN_OS_TRUE=
16548   HAVE_DARWIN_OS_FALSE='#'
16549 else
16550   HAVE_DARWIN_OS_TRUE='#'
16551   HAVE_DARWIN_OS_FALSE=
16552 fi
16553 fi
16554
16555
16556 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16557 $as_echo_n "checking for Operating System Distribution... " >&6; }
16558 if test "x$DISTNAME" != "x"
16559 then
16560         echo "distname set to $DISTNAME"
16561 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16562 then
16563         DISTNAME=alpha
16564 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16565 then
16566         DISTNAME=aix
16567 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16568 then
16569         DISTNAME=hpux
16570 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16571 then
16572         DISTNAME=solaris
16573 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16574 then
16575         DISTNAME=freebsd
16576 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16577 then
16578         DISTNAME=netbsd
16579 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16580 then
16581         DISTNAME=openbsd
16582 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16583 then
16584         DISTNAME=irix
16585 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16586 then
16587         DISTNAME=bsdi
16588 elif test -f /etc/SuSE-release
16589 then
16590         DISTNAME=suse
16591 elif test -d /etc/SuSEconfig
16592 then
16593         DISTNAME=suse5
16594 elif test -f /etc/mandrake-release
16595 then
16596         DISTNAME=mandrake
16597 elif test -f /etc/whitebox-release
16598 then
16599        DISTNAME=redhat
16600 elif test -f /etc/redhat-release
16601 then
16602         DISTNAME=redhat
16603 elif test -f /etc/gentoo-release
16604 then
16605         DISTNAME=gentoo
16606 elif test -f /etc/debian_version
16607 then
16608         DISTNAME=debian
16609 elif test -f /etc/slackware-version
16610 then
16611         DISTNAME=slackware
16612 elif test x$host_vendor = xapple
16613 then
16614     DISTNAME=osx
16615 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16616 then
16617     DISTNAME=darwin
16618 elif test -f /etc/engarde-version
16619 then
16620         DISTNAME=engarde
16621 elif test "$CYGWIN" = yes
16622 then
16623         DISTNAME=cygwin
16624         cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_CYGWIN 1
16626 _ACEOF
16627
16628 else
16629         DISTNAME=unknown
16630 fi
16631 { $as_echo "$as_me:$LINENO: result: done" >&5
16632 $as_echo "done" >&6; }
16633
16634
16635 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16637 set x ${MAKE-make}
16638 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16640   $as_echo_n "(cached) " >&6
16641 else
16642   cat >conftest.make <<\_ACEOF
16643 SHELL = /bin/sh
16644 all:
16645         @echo '@@@%%%=$(MAKE)=@@@%%%'
16646 _ACEOF
16647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16649   *@@@%%%=?*=@@@%%%*)
16650     eval ac_cv_prog_make_${ac_make}_set=yes;;
16651   *)
16652     eval ac_cv_prog_make_${ac_make}_set=no;;
16653 esac
16654 rm -f conftest.make
16655 fi
16656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16657   { $as_echo "$as_me:$LINENO: result: yes" >&5
16658 $as_echo "yes" >&6; }
16659   SET_MAKE=
16660 else
16661   { $as_echo "$as_me:$LINENO: result: no" >&5
16662 $as_echo "no" >&6; }
16663   SET_MAKE="MAKE=${MAKE-make}"
16664 fi
16665
16666
16667
16668         MKINSTALLDIRS=
16669   if test -n "$ac_aux_dir"; then
16670     case "$ac_aux_dir" in
16671       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16672       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16673     esac
16674   fi
16675   if test -z "$MKINSTALLDIRS"; then
16676     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16677   fi
16678
16679
16680
16681   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16682 $as_echo_n "checking whether NLS is requested... " >&6; }
16683     # Check whether --enable-nls was given.
16684 if test "${enable_nls+set}" = set; then
16685   enableval=$enable_nls; USE_NLS=$enableval
16686 else
16687   USE_NLS=yes
16688 fi
16689
16690   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16691 $as_echo "$USE_NLS" >&6; }
16692
16693
16694
16695
16696
16697
16698 # Prepare PATH_SEPARATOR.
16699 # The user is always right.
16700 if test "${PATH_SEPARATOR+set}" != set; then
16701   echo "#! /bin/sh" >conf$$.sh
16702   echo  "exit 0"   >>conf$$.sh
16703   chmod +x conf$$.sh
16704   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16705     PATH_SEPARATOR=';'
16706   else
16707     PATH_SEPARATOR=:
16708   fi
16709   rm -f conf$$.sh
16710 fi
16711
16712 # Find out how to test for executable files. Don't use a zero-byte file,
16713 # as systems may use methods other than mode bits to determine executability.
16714 cat >conf$$.file <<_ASEOF
16715 #! /bin/sh
16716 exit 0
16717 _ASEOF
16718 chmod +x conf$$.file
16719 if test -x conf$$.file >/dev/null 2>&1; then
16720   ac_executable_p="test -x"
16721 else
16722   ac_executable_p="test -f"
16723 fi
16724 rm -f conf$$.file
16725
16726 # Extract the first word of "msgfmt", so it can be a program name with args.
16727 set dummy msgfmt; ac_word=$2
16728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16729 $as_echo_n "checking for $ac_word... " >&6; }
16730 if test "${ac_cv_path_MSGFMT+set}" = set; then
16731   $as_echo_n "(cached) " >&6
16732 else
16733   case "$MSGFMT" in
16734   [\\/]* | ?:[\\/]*)
16735     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16736     ;;
16737   *)
16738     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16739     for ac_dir in $PATH; do
16740       IFS="$ac_save_IFS"
16741       test -z "$ac_dir" && ac_dir=.
16742       for ac_exec_ext in '' $ac_executable_extensions; do
16743         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16744           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16745           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16746      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16747             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16748             break 2
16749           fi
16750         fi
16751       done
16752     done
16753     IFS="$ac_save_IFS"
16754   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16755     ;;
16756 esac
16757 fi
16758 MSGFMT="$ac_cv_path_MSGFMT"
16759 if test "$MSGFMT" != ":"; then
16760   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16761 $as_echo "$MSGFMT" >&6; }
16762 else
16763   { $as_echo "$as_me:$LINENO: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16768 set dummy gmsgfmt; ac_word=$2
16769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16770 $as_echo_n "checking for $ac_word... " >&6; }
16771 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16772   $as_echo_n "(cached) " >&6
16773 else
16774   case $GMSGFMT in
16775   [\\/]* | ?:[\\/]*)
16776   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16777   ;;
16778   *)
16779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780 for as_dir in $PATH
16781 do
16782   IFS=$as_save_IFS
16783   test -z "$as_dir" && as_dir=.
16784   for ac_exec_ext in '' $ac_executable_extensions; do
16785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16786     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16787     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16788     break 2
16789   fi
16790 done
16791 done
16792 IFS=$as_save_IFS
16793
16794   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16795   ;;
16796 esac
16797 fi
16798 GMSGFMT=$ac_cv_path_GMSGFMT
16799 if test -n "$GMSGFMT"; then
16800   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16801 $as_echo "$GMSGFMT" >&6; }
16802 else
16803   { $as_echo "$as_me:$LINENO: result: no" >&5
16804 $as_echo "no" >&6; }
16805 fi
16806
16807
16808
16809
16810 # Prepare PATH_SEPARATOR.
16811 # The user is always right.
16812 if test "${PATH_SEPARATOR+set}" != set; then
16813   echo "#! /bin/sh" >conf$$.sh
16814   echo  "exit 0"   >>conf$$.sh
16815   chmod +x conf$$.sh
16816   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16817     PATH_SEPARATOR=';'
16818   else
16819     PATH_SEPARATOR=:
16820   fi
16821   rm -f conf$$.sh
16822 fi
16823
16824 # Find out how to test for executable files. Don't use a zero-byte file,
16825 # as systems may use methods other than mode bits to determine executability.
16826 cat >conf$$.file <<_ASEOF
16827 #! /bin/sh
16828 exit 0
16829 _ASEOF
16830 chmod +x conf$$.file
16831 if test -x conf$$.file >/dev/null 2>&1; then
16832   ac_executable_p="test -x"
16833 else
16834   ac_executable_p="test -f"
16835 fi
16836 rm -f conf$$.file
16837
16838 # Extract the first word of "xgettext", so it can be a program name with args.
16839 set dummy xgettext; ac_word=$2
16840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16841 $as_echo_n "checking for $ac_word... " >&6; }
16842 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16843   $as_echo_n "(cached) " >&6
16844 else
16845   case "$XGETTEXT" in
16846   [\\/]* | ?:[\\/]*)
16847     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16848     ;;
16849   *)
16850     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16851     for ac_dir in $PATH; do
16852       IFS="$ac_save_IFS"
16853       test -z "$ac_dir" && ac_dir=.
16854       for ac_exec_ext in '' $ac_executable_extensions; do
16855         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16856           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16857           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16858      (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
16859             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16860             break 2
16861           fi
16862         fi
16863       done
16864     done
16865     IFS="$ac_save_IFS"
16866   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16867     ;;
16868 esac
16869 fi
16870 XGETTEXT="$ac_cv_path_XGETTEXT"
16871 if test "$XGETTEXT" != ":"; then
16872   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16873 $as_echo "$XGETTEXT" >&6; }
16874 else
16875   { $as_echo "$as_me:$LINENO: result: no" >&5
16876 $as_echo "no" >&6; }
16877 fi
16878
16879     rm -f messages.po
16880
16881
16882 # Prepare PATH_SEPARATOR.
16883 # The user is always right.
16884 if test "${PATH_SEPARATOR+set}" != set; then
16885   echo "#! /bin/sh" >conf$$.sh
16886   echo  "exit 0"   >>conf$$.sh
16887   chmod +x conf$$.sh
16888   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16889     PATH_SEPARATOR=';'
16890   else
16891     PATH_SEPARATOR=:
16892   fi
16893   rm -f conf$$.sh
16894 fi
16895
16896 # Find out how to test for executable files. Don't use a zero-byte file,
16897 # as systems may use methods other than mode bits to determine executability.
16898 cat >conf$$.file <<_ASEOF
16899 #! /bin/sh
16900 exit 0
16901 _ASEOF
16902 chmod +x conf$$.file
16903 if test -x conf$$.file >/dev/null 2>&1; then
16904   ac_executable_p="test -x"
16905 else
16906   ac_executable_p="test -f"
16907 fi
16908 rm -f conf$$.file
16909
16910 # Extract the first word of "msgmerge", so it can be a program name with args.
16911 set dummy msgmerge; ac_word=$2
16912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16913 $as_echo_n "checking for $ac_word... " >&6; }
16914 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16915   $as_echo_n "(cached) " >&6
16916 else
16917   case "$MSGMERGE" in
16918   [\\/]* | ?:[\\/]*)
16919     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16920     ;;
16921   *)
16922     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16923     for ac_dir in $PATH; do
16924       IFS="$ac_save_IFS"
16925       test -z "$ac_dir" && ac_dir=.
16926       for ac_exec_ext in '' $ac_executable_extensions; do
16927         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16928           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16929           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16930             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16931             break 2
16932           fi
16933         fi
16934       done
16935     done
16936     IFS="$ac_save_IFS"
16937   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16938     ;;
16939 esac
16940 fi
16941 MSGMERGE="$ac_cv_path_MSGMERGE"
16942 if test "$MSGMERGE" != ":"; then
16943   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16944 $as_echo "$MSGMERGE" >&6; }
16945 else
16946   { $as_echo "$as_me:$LINENO: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950
16951       if test "$GMSGFMT" != ":"; then
16952             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16953        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16954       : ;
16955     else
16956       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16957       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16958 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16959       GMSGFMT=":"
16960     fi
16961   fi
16962
16963       if test "$XGETTEXT" != ":"; then
16964             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16965        (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
16966       : ;
16967     else
16968       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16969 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16970       XGETTEXT=":"
16971     fi
16972         rm -f messages.po
16973   fi
16974
16975   ac_config_commands="$ac_config_commands default-1"
16976
16977
16978
16979       if test "X$prefix" = "XNONE"; then
16980     acl_final_prefix="$ac_default_prefix"
16981   else
16982     acl_final_prefix="$prefix"
16983   fi
16984   if test "X$exec_prefix" = "XNONE"; then
16985     acl_final_exec_prefix='${prefix}'
16986   else
16987     acl_final_exec_prefix="$exec_prefix"
16988   fi
16989   acl_save_prefix="$prefix"
16990   prefix="$acl_final_prefix"
16991   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16992   prefix="$acl_save_prefix"
16993
16994
16995 # Check whether --with-gnu-ld was given.
16996 if test "${with_gnu_ld+set}" = set; then
16997   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16998 else
16999   with_gnu_ld=no
17000 fi
17001
17002 # Prepare PATH_SEPARATOR.
17003 # The user is always right.
17004 if test "${PATH_SEPARATOR+set}" != set; then
17005   echo "#! /bin/sh" >conf$$.sh
17006   echo  "exit 0"   >>conf$$.sh
17007   chmod +x conf$$.sh
17008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17009     PATH_SEPARATOR=';'
17010   else
17011     PATH_SEPARATOR=:
17012   fi
17013   rm -f conf$$.sh
17014 fi
17015 ac_prog=ld
17016 if test "$GCC" = yes; then
17017   # Check if gcc -print-prog-name=ld gives a path.
17018   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17019 $as_echo_n "checking for ld used by GCC... " >&6; }
17020   case $host in
17021   *-*-mingw*)
17022     # gcc leaves a trailing carriage return which upsets mingw
17023     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17024   *)
17025     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17026   esac
17027   case $ac_prog in
17028     # Accept absolute paths.
17029     [\\/]* | [A-Za-z]:[\\/]*)
17030       re_direlt='/[^/][^/]*/\.\./'
17031       # Canonicalize the path of ld
17032       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17033       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17034         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17035       done
17036       test -z "$LD" && LD="$ac_prog"
17037       ;;
17038   "")
17039     # If it fails, then pretend we aren't using GCC.
17040     ac_prog=ld
17041     ;;
17042   *)
17043     # If it is relative, then search for the first ld in PATH.
17044     with_gnu_ld=unknown
17045     ;;
17046   esac
17047 elif test "$with_gnu_ld" = yes; then
17048   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17049 $as_echo_n "checking for GNU ld... " >&6; }
17050 else
17051   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17052 $as_echo_n "checking for non-GNU ld... " >&6; }
17053 fi
17054 if test "${acl_cv_path_LD+set}" = set; then
17055   $as_echo_n "(cached) " >&6
17056 else
17057   if test -z "$LD"; then
17058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17059   for ac_dir in $PATH; do
17060     test -z "$ac_dir" && ac_dir=.
17061     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17062       acl_cv_path_LD="$ac_dir/$ac_prog"
17063       # Check to see if the program is GNU ld.  I'd rather use --version,
17064       # but apparently some GNU ld's only accept -v.
17065       # Break only if it was the GNU/non-GNU ld that we prefer.
17066       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17067       *GNU* | *'with BFD'*)
17068         test "$with_gnu_ld" != no && break ;;
17069       *)
17070         test "$with_gnu_ld" != yes && break ;;
17071       esac
17072     fi
17073   done
17074   IFS="$ac_save_ifs"
17075 else
17076   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17077 fi
17078 fi
17079
17080 LD="$acl_cv_path_LD"
17081 if test -n "$LD"; then
17082   { $as_echo "$as_me:$LINENO: result: $LD" >&5
17083 $as_echo "$LD" >&6; }
17084 else
17085   { $as_echo "$as_me:$LINENO: result: no" >&5
17086 $as_echo "no" >&6; }
17087 fi
17088 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17089 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17090    { (exit 1); exit 1; }; }
17091 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17092 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17093 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17094   $as_echo_n "(cached) " >&6
17095 else
17096   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17097 case `$LD -v 2>&1 </dev/null` in
17098 *GNU* | *'with BFD'*)
17099   acl_cv_prog_gnu_ld=yes ;;
17100 *)
17101   acl_cv_prog_gnu_ld=no ;;
17102 esac
17103 fi
17104 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17105 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17106 with_gnu_ld=$acl_cv_prog_gnu_ld
17107
17108
17109
17110
17111                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17112 $as_echo_n "checking for shared library run path origin... " >&6; }
17113 if test "${acl_cv_rpath+set}" = set; then
17114   $as_echo_n "(cached) " >&6
17115 else
17116
17117     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17118     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17119     . ./conftest.sh
17120     rm -f ./conftest.sh
17121     acl_cv_rpath=done
17122
17123 fi
17124 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17125 $as_echo "$acl_cv_rpath" >&6; }
17126   wl="$acl_cv_wl"
17127   libext="$acl_cv_libext"
17128   shlibext="$acl_cv_shlibext"
17129   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17130   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17131   hardcode_direct="$acl_cv_hardcode_direct"
17132   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17133     # Check whether --enable-rpath was given.
17134 if test "${enable_rpath+set}" = set; then
17135   enableval=$enable_rpath; :
17136 else
17137   enable_rpath=yes
17138 fi
17139
17140
17141
17142
17143
17144
17145
17146
17147     use_additional=yes
17148
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   acl_save_exec_prefix="$exec_prefix"
17152   exec_prefix="$acl_final_exec_prefix"
17153
17154     eval additional_includedir=\"$includedir\"
17155     eval additional_libdir=\"$libdir\"
17156
17157   exec_prefix="$acl_save_exec_prefix"
17158   prefix="$acl_save_prefix"
17159
17160
17161 # Check whether --with-libiconv-prefix was given.
17162 if test "${with_libiconv_prefix+set}" = set; then
17163   withval=$with_libiconv_prefix;
17164     if test "X$withval" = "Xno"; then
17165       use_additional=no
17166     else
17167       if test "X$withval" = "X"; then
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173
17174           eval additional_includedir=\"$includedir\"
17175           eval additional_libdir=\"$libdir\"
17176
17177   exec_prefix="$acl_save_exec_prefix"
17178   prefix="$acl_save_prefix"
17179
17180       else
17181         additional_includedir="$withval/include"
17182         additional_libdir="$withval/lib"
17183       fi
17184     fi
17185
17186 fi
17187
17188       LIBICONV=
17189   LTLIBICONV=
17190   INCICONV=
17191   rpathdirs=
17192   ltrpathdirs=
17193   names_already_handled=
17194   names_next_round='iconv '
17195   while test -n "$names_next_round"; do
17196     names_this_round="$names_next_round"
17197     names_next_round=
17198     for name in $names_this_round; do
17199       already_handled=
17200       for n in $names_already_handled; do
17201         if test "$n" = "$name"; then
17202           already_handled=yes
17203           break
17204         fi
17205       done
17206       if test -z "$already_handled"; then
17207         names_already_handled="$names_already_handled $name"
17208                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17209         eval value=\"\$HAVE_LIB$uppername\"
17210         if test -n "$value"; then
17211           if test "$value" = yes; then
17212             eval value=\"\$LIB$uppername\"
17213             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17214             eval value=\"\$LTLIB$uppername\"
17215             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17216           else
17217                                     :
17218           fi
17219         else
17220                               found_dir=
17221           found_la=
17222           found_so=
17223           found_a=
17224           if test $use_additional = yes; then
17225             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17226               found_dir="$additional_libdir"
17227               found_so="$additional_libdir/lib$name.$shlibext"
17228               if test -f "$additional_libdir/lib$name.la"; then
17229                 found_la="$additional_libdir/lib$name.la"
17230               fi
17231             else
17232               if test -f "$additional_libdir/lib$name.$libext"; then
17233                 found_dir="$additional_libdir"
17234                 found_a="$additional_libdir/lib$name.$libext"
17235                 if test -f "$additional_libdir/lib$name.la"; then
17236                   found_la="$additional_libdir/lib$name.la"
17237                 fi
17238               fi
17239             fi
17240           fi
17241           if test "X$found_dir" = "X"; then
17242             for x in $LDFLAGS $LTLIBICONV; do
17243
17244   acl_save_prefix="$prefix"
17245   prefix="$acl_final_prefix"
17246   acl_save_exec_prefix="$exec_prefix"
17247   exec_prefix="$acl_final_exec_prefix"
17248   eval x=\"$x\"
17249   exec_prefix="$acl_save_exec_prefix"
17250   prefix="$acl_save_prefix"
17251
17252               case "$x" in
17253                 -L*)
17254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17255                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17256                     found_dir="$dir"
17257                     found_so="$dir/lib$name.$shlibext"
17258                     if test -f "$dir/lib$name.la"; then
17259                       found_la="$dir/lib$name.la"
17260                     fi
17261                   else
17262                     if test -f "$dir/lib$name.$libext"; then
17263                       found_dir="$dir"
17264                       found_a="$dir/lib$name.$libext"
17265                       if test -f "$dir/lib$name.la"; then
17266                         found_la="$dir/lib$name.la"
17267                       fi
17268                     fi
17269                   fi
17270                   ;;
17271               esac
17272               if test "X$found_dir" != "X"; then
17273                 break
17274               fi
17275             done
17276           fi
17277           if test "X$found_dir" != "X"; then
17278                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17279             if test "X$found_so" != "X"; then
17280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17281                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17282               else
17283                                                                                 haveit=
17284                 for x in $ltrpathdirs; do
17285                   if test "X$x" = "X$found_dir"; then
17286                     haveit=yes
17287                     break
17288                   fi
17289                 done
17290                 if test -z "$haveit"; then
17291                   ltrpathdirs="$ltrpathdirs $found_dir"
17292                 fi
17293                                 if test "$hardcode_direct" = yes; then
17294                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17295                 else
17296                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17297                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17298                                                             haveit=
17299                     for x in $rpathdirs; do
17300                       if test "X$x" = "X$found_dir"; then
17301                         haveit=yes
17302                         break
17303                       fi
17304                     done
17305                     if test -z "$haveit"; then
17306                       rpathdirs="$rpathdirs $found_dir"
17307                     fi
17308                   else
17309                                                                                 haveit=
17310                     for x in $LDFLAGS $LIBICONV; do
17311
17312   acl_save_prefix="$prefix"
17313   prefix="$acl_final_prefix"
17314   acl_save_exec_prefix="$exec_prefix"
17315   exec_prefix="$acl_final_exec_prefix"
17316   eval x=\"$x\"
17317   exec_prefix="$acl_save_exec_prefix"
17318   prefix="$acl_save_prefix"
17319
17320                       if test "X$x" = "X-L$found_dir"; then
17321                         haveit=yes
17322                         break
17323                       fi
17324                     done
17325                     if test -z "$haveit"; then
17326                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17327                     fi
17328                     if test "$hardcode_minus_L" != no; then
17329                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17330                     else
17331                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17332                     fi
17333                   fi
17334                 fi
17335               fi
17336             else
17337               if test "X$found_a" != "X"; then
17338                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17339               else
17340                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17341               fi
17342             fi
17343                         additional_includedir=
17344             case "$found_dir" in
17345               */lib | */lib/)
17346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17347                 additional_includedir="$basedir/include"
17348                 ;;
17349             esac
17350             if test "X$additional_includedir" != "X"; then
17351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17352                 haveit=
17353                 if test "X$additional_includedir" = "X/usr/local/include"; then
17354                   if test -n "$GCC"; then
17355                     case $host_os in
17356                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17357                     esac
17358                   fi
17359                 fi
17360                 if test -z "$haveit"; then
17361                   for x in $CPPFLAGS $INCICONV; do
17362
17363   acl_save_prefix="$prefix"
17364   prefix="$acl_final_prefix"
17365   acl_save_exec_prefix="$exec_prefix"
17366   exec_prefix="$acl_final_exec_prefix"
17367   eval x=\"$x\"
17368   exec_prefix="$acl_save_exec_prefix"
17369   prefix="$acl_save_prefix"
17370
17371                     if test "X$x" = "X-I$additional_includedir"; then
17372                       haveit=yes
17373                       break
17374                     fi
17375                   done
17376                   if test -z "$haveit"; then
17377                     if test -d "$additional_includedir"; then
17378                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17379                     fi
17380                   fi
17381                 fi
17382               fi
17383             fi
17384                         if test -n "$found_la"; then
17385                                                         save_libdir="$libdir"
17386               case "$found_la" in
17387                 */* | *\\*) . "$found_la" ;;
17388                 *) . "./$found_la" ;;
17389               esac
17390               libdir="$save_libdir"
17391                             for dep in $dependency_libs; do
17392                 case "$dep" in
17393                   -L*)
17394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17396                       haveit=
17397                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17398                         if test -n "$GCC"; then
17399                           case $host_os in
17400                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17401                           esac
17402                         fi
17403                       fi
17404                       if test -z "$haveit"; then
17405                         haveit=
17406                         for x in $LDFLAGS $LIBICONV; do
17407
17408   acl_save_prefix="$prefix"
17409   prefix="$acl_final_prefix"
17410   acl_save_exec_prefix="$exec_prefix"
17411   exec_prefix="$acl_final_exec_prefix"
17412   eval x=\"$x\"
17413   exec_prefix="$acl_save_exec_prefix"
17414   prefix="$acl_save_prefix"
17415
17416                           if test "X$x" = "X-L$additional_libdir"; then
17417                             haveit=yes
17418                             break
17419                           fi
17420                         done
17421                         if test -z "$haveit"; then
17422                           if test -d "$additional_libdir"; then
17423                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17424                           fi
17425                         fi
17426                         haveit=
17427                         for x in $LDFLAGS $LTLIBICONV; do
17428
17429   acl_save_prefix="$prefix"
17430   prefix="$acl_final_prefix"
17431   acl_save_exec_prefix="$exec_prefix"
17432   exec_prefix="$acl_final_exec_prefix"
17433   eval x=\"$x\"
17434   exec_prefix="$acl_save_exec_prefix"
17435   prefix="$acl_save_prefix"
17436
17437                           if test "X$x" = "X-L$additional_libdir"; then
17438                             haveit=yes
17439                             break
17440                           fi
17441                         done
17442                         if test -z "$haveit"; then
17443                           if test -d "$additional_libdir"; then
17444                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17445                           fi
17446                         fi
17447                       fi
17448                     fi
17449                     ;;
17450                   -R*)
17451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17452                     if test "$enable_rpath" != no; then
17453                                                                   haveit=
17454                       for x in $rpathdirs; do
17455                         if test "X$x" = "X$dir"; then
17456                           haveit=yes
17457                           break
17458                         fi
17459                       done
17460                       if test -z "$haveit"; then
17461                         rpathdirs="$rpathdirs $dir"
17462                       fi
17463                                                                   haveit=
17464                       for x in $ltrpathdirs; do
17465                         if test "X$x" = "X$dir"; then
17466                           haveit=yes
17467                           break
17468                         fi
17469                       done
17470                       if test -z "$haveit"; then
17471                         ltrpathdirs="$ltrpathdirs $dir"
17472                       fi
17473                     fi
17474                     ;;
17475                   -l*)
17476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17477                     ;;
17478                   *.la)
17479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17480                     ;;
17481                   *)
17482                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17483                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17484                     ;;
17485                 esac
17486               done
17487             fi
17488           else
17489                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17490             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17491           fi
17492         fi
17493       fi
17494     done
17495   done
17496   if test "X$rpathdirs" != "X"; then
17497     if test -n "$hardcode_libdir_separator"; then
17498                         alldirs=
17499       for found_dir in $rpathdirs; do
17500         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17501       done
17502             acl_save_libdir="$libdir"
17503       libdir="$alldirs"
17504       eval flag=\"$hardcode_libdir_flag_spec\"
17505       libdir="$acl_save_libdir"
17506       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17507     else
17508             for found_dir in $rpathdirs; do
17509         acl_save_libdir="$libdir"
17510         libdir="$found_dir"
17511         eval flag=\"$hardcode_libdir_flag_spec\"
17512         libdir="$acl_save_libdir"
17513         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17514       done
17515     fi
17516   fi
17517   if test "X$ltrpathdirs" != "X"; then
17518             for found_dir in $ltrpathdirs; do
17519       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17520     done
17521   fi
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17541 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17542 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17543   $as_echo_n "(cached) " >&6
17544 else
17545   gt_save_CPPFLAGS="$CPPFLAGS"
17546      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17547      gt_save_LIBS="$LIBS"
17548      LIBS="$LIBS -framework CoreFoundation"
17549      cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555 #include <CFPreferences.h>
17556 int
17557 main ()
17558 {
17559 CFPreferencesCopyAppValue(NULL, NULL)
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (ac_try="$ac_link"
17566 case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17571 $as_echo "$ac_try_echo") >&5
17572   (eval "$ac_link") 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && {
17579          test -z "$ac_c_werror_flag" ||
17580          test ! -s conftest.err
17581        } && test -s conftest$ac_exeext && {
17582          test "$cross_compiling" = yes ||
17583          $as_test_x conftest$ac_exeext
17584        }; then
17585   gt_cv_func_CFPreferencesCopyAppValue=yes
17586 else
17587   $as_echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590         gt_cv_func_CFPreferencesCopyAppValue=no
17591 fi
17592
17593 rm -rf conftest.dSYM
17594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17595       conftest$ac_exeext conftest.$ac_ext
17596      CPPFLAGS="$gt_save_CPPFLAGS"
17597      LIBS="$gt_save_LIBS"
17598 fi
17599 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17600 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17601   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17602
17603 cat >>confdefs.h <<\_ACEOF
17604 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17605 _ACEOF
17606
17607   fi
17608     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17609 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17610 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17611   $as_echo_n "(cached) " >&6
17612 else
17613   gt_save_CPPFLAGS="$CPPFLAGS"
17614      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17615      gt_save_LIBS="$LIBS"
17616      LIBS="$LIBS -framework CoreFoundation"
17617      cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 #include <CFLocale.h>
17624 int
17625 main ()
17626 {
17627 CFLocaleCopyCurrent();
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640   (eval "$ac_link") 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } && {
17647          test -z "$ac_c_werror_flag" ||
17648          test ! -s conftest.err
17649        } && test -s conftest$ac_exeext && {
17650          test "$cross_compiling" = yes ||
17651          $as_test_x conftest$ac_exeext
17652        }; then
17653   gt_cv_func_CFLocaleCopyCurrent=yes
17654 else
17655   $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         gt_cv_func_CFLocaleCopyCurrent=no
17659 fi
17660
17661 rm -rf conftest.dSYM
17662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17663       conftest$ac_exeext conftest.$ac_ext
17664      CPPFLAGS="$gt_save_CPPFLAGS"
17665      LIBS="$gt_save_LIBS"
17666 fi
17667 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17668 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17669   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17670
17671 cat >>confdefs.h <<\_ACEOF
17672 #define HAVE_CFLOCALECOPYCURRENT 1
17673 _ACEOF
17674
17675   fi
17676   INTL_MACOSX_LIBS=
17677   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17678     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17679   fi
17680
17681
17682
17683
17684   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17685 $as_echo_n "checking whether NLS is requested... " >&6; }
17686     # Check whether --enable-nls was given.
17687 if test "${enable_nls+set}" = set; then
17688   enableval=$enable_nls; USE_NLS=$enableval
17689 else
17690   USE_NLS=yes
17691 fi
17692
17693   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17694 $as_echo "$USE_NLS" >&6; }
17695
17696
17697
17698
17699   LIBINTL=
17700   LTLIBINTL=
17701   POSUB=
17702
17703     if test "$USE_NLS" = "yes"; then
17704     gt_use_preinstalled_gnugettext=no
17705
17706
17707
17708
17709
17710
17711         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17712 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17713 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17714   $as_echo_n "(cached) " >&6
17715 else
17716   cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 #include <libintl.h>
17723 extern int _nl_msg_cat_cntr;
17724 extern int *_nl_domain_bindings;
17725 int
17726 main ()
17727 {
17728 bindtextdomain ("", "");
17729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17741 $as_echo "$ac_try_echo") >&5
17742   (eval "$ac_link") 2>conftest.er1
17743   ac_status=$?
17744   grep -v '^ *+' conftest.er1 >conftest.err
17745   rm -f conftest.er1
17746   cat conftest.err >&5
17747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); } && {
17749          test -z "$ac_c_werror_flag" ||
17750          test ! -s conftest.err
17751        } && test -s conftest$ac_exeext && {
17752          test "$cross_compiling" = yes ||
17753          $as_test_x conftest$ac_exeext
17754        }; then
17755   gt_cv_func_gnugettext1_libc=yes
17756 else
17757   $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760         gt_cv_func_gnugettext1_libc=no
17761 fi
17762
17763 rm -rf conftest.dSYM
17764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765       conftest$ac_exeext conftest.$ac_ext
17766 fi
17767 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17768 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17769
17770         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17771
17772
17773
17774
17775
17776           am_save_CPPFLAGS="$CPPFLAGS"
17777
17778   for element in $INCICONV; do
17779     haveit=
17780     for x in $CPPFLAGS; do
17781
17782   acl_save_prefix="$prefix"
17783   prefix="$acl_final_prefix"
17784   acl_save_exec_prefix="$exec_prefix"
17785   exec_prefix="$acl_final_exec_prefix"
17786   eval x=\"$x\"
17787   exec_prefix="$acl_save_exec_prefix"
17788   prefix="$acl_save_prefix"
17789
17790       if test "X$x" = "X$element"; then
17791         haveit=yes
17792         break
17793       fi
17794     done
17795     if test -z "$haveit"; then
17796       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17797     fi
17798   done
17799
17800
17801   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17802 $as_echo_n "checking for iconv... " >&6; }
17803 if test "${am_cv_func_iconv+set}" = set; then
17804   $as_echo_n "(cached) " >&6
17805 else
17806
17807     am_cv_func_iconv="no, consider installing GNU libiconv"
17808     am_cv_lib_iconv=no
17809     cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 #include <stdlib.h>
17816 #include <iconv.h>
17817 int
17818 main ()
17819 {
17820 iconv_t cd = iconv_open("","");
17821        iconv(cd,NULL,NULL,NULL,NULL);
17822        iconv_close(cd);
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (ac_try="$ac_link"
17829 case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834 $as_echo "$ac_try_echo") >&5
17835   (eval "$ac_link") 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } && {
17842          test -z "$ac_c_werror_flag" ||
17843          test ! -s conftest.err
17844        } && test -s conftest$ac_exeext && {
17845          test "$cross_compiling" = yes ||
17846          $as_test_x conftest$ac_exeext
17847        }; then
17848   am_cv_func_iconv=yes
17849 else
17850   $as_echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853
17854 fi
17855
17856 rm -rf conftest.dSYM
17857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17858       conftest$ac_exeext conftest.$ac_ext
17859     if test "$am_cv_func_iconv" != yes; then
17860       am_save_LIBS="$LIBS"
17861       LIBS="$LIBS $LIBICONV"
17862       cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h.  */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h.  */
17868 #include <stdlib.h>
17869 #include <iconv.h>
17870 int
17871 main ()
17872 {
17873 iconv_t cd = iconv_open("","");
17874          iconv(cd,NULL,NULL,NULL,NULL);
17875          iconv_close(cd);
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17887 $as_echo "$ac_try_echo") >&5
17888   (eval "$ac_link") 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } && {
17895          test -z "$ac_c_werror_flag" ||
17896          test ! -s conftest.err
17897        } && test -s conftest$ac_exeext && {
17898          test "$cross_compiling" = yes ||
17899          $as_test_x conftest$ac_exeext
17900        }; then
17901   am_cv_lib_iconv=yes
17902         am_cv_func_iconv=yes
17903 else
17904   $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907
17908 fi
17909
17910 rm -rf conftest.dSYM
17911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17912       conftest$ac_exeext conftest.$ac_ext
17913       LIBS="$am_save_LIBS"
17914     fi
17915
17916 fi
17917 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17918 $as_echo "$am_cv_func_iconv" >&6; }
17919   if test "$am_cv_func_iconv" = yes; then
17920
17921 cat >>confdefs.h <<\_ACEOF
17922 #define HAVE_ICONV 1
17923 _ACEOF
17924
17925   fi
17926   if test "$am_cv_lib_iconv" = yes; then
17927     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17928 $as_echo_n "checking how to link with libiconv... " >&6; }
17929     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17930 $as_echo "$LIBICONV" >&6; }
17931   else
17932             CPPFLAGS="$am_save_CPPFLAGS"
17933     LIBICONV=
17934     LTLIBICONV=
17935   fi
17936
17937
17938
17939
17940
17941
17942     use_additional=yes
17943
17944   acl_save_prefix="$prefix"
17945   prefix="$acl_final_prefix"
17946   acl_save_exec_prefix="$exec_prefix"
17947   exec_prefix="$acl_final_exec_prefix"
17948
17949     eval additional_includedir=\"$includedir\"
17950     eval additional_libdir=\"$libdir\"
17951
17952   exec_prefix="$acl_save_exec_prefix"
17953   prefix="$acl_save_prefix"
17954
17955
17956 # Check whether --with-libintl-prefix was given.
17957 if test "${with_libintl_prefix+set}" = set; then
17958   withval=$with_libintl_prefix;
17959     if test "X$withval" = "Xno"; then
17960       use_additional=no
17961     else
17962       if test "X$withval" = "X"; then
17963
17964   acl_save_prefix="$prefix"
17965   prefix="$acl_final_prefix"
17966   acl_save_exec_prefix="$exec_prefix"
17967   exec_prefix="$acl_final_exec_prefix"
17968
17969           eval additional_includedir=\"$includedir\"
17970           eval additional_libdir=\"$libdir\"
17971
17972   exec_prefix="$acl_save_exec_prefix"
17973   prefix="$acl_save_prefix"
17974
17975       else
17976         additional_includedir="$withval/include"
17977         additional_libdir="$withval/lib"
17978       fi
17979     fi
17980
17981 fi
17982
17983       LIBINTL=
17984   LTLIBINTL=
17985   INCINTL=
17986   rpathdirs=
17987   ltrpathdirs=
17988   names_already_handled=
17989   names_next_round='intl '
17990   while test -n "$names_next_round"; do
17991     names_this_round="$names_next_round"
17992     names_next_round=
17993     for name in $names_this_round; do
17994       already_handled=
17995       for n in $names_already_handled; do
17996         if test "$n" = "$name"; then
17997           already_handled=yes
17998           break
17999         fi
18000       done
18001       if test -z "$already_handled"; then
18002         names_already_handled="$names_already_handled $name"
18003                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18004         eval value=\"\$HAVE_LIB$uppername\"
18005         if test -n "$value"; then
18006           if test "$value" = yes; then
18007             eval value=\"\$LIB$uppername\"
18008             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18009             eval value=\"\$LTLIB$uppername\"
18010             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18011           else
18012                                     :
18013           fi
18014         else
18015                               found_dir=
18016           found_la=
18017           found_so=
18018           found_a=
18019           if test $use_additional = yes; then
18020             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18021               found_dir="$additional_libdir"
18022               found_so="$additional_libdir/lib$name.$shlibext"
18023               if test -f "$additional_libdir/lib$name.la"; then
18024                 found_la="$additional_libdir/lib$name.la"
18025               fi
18026             else
18027               if test -f "$additional_libdir/lib$name.$libext"; then
18028                 found_dir="$additional_libdir"
18029                 found_a="$additional_libdir/lib$name.$libext"
18030                 if test -f "$additional_libdir/lib$name.la"; then
18031                   found_la="$additional_libdir/lib$name.la"
18032                 fi
18033               fi
18034             fi
18035           fi
18036           if test "X$found_dir" = "X"; then
18037             for x in $LDFLAGS $LTLIBINTL; do
18038
18039   acl_save_prefix="$prefix"
18040   prefix="$acl_final_prefix"
18041   acl_save_exec_prefix="$exec_prefix"
18042   exec_prefix="$acl_final_exec_prefix"
18043   eval x=\"$x\"
18044   exec_prefix="$acl_save_exec_prefix"
18045   prefix="$acl_save_prefix"
18046
18047               case "$x" in
18048                 -L*)
18049                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18050                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18051                     found_dir="$dir"
18052                     found_so="$dir/lib$name.$shlibext"
18053                     if test -f "$dir/lib$name.la"; then
18054                       found_la="$dir/lib$name.la"
18055                     fi
18056                   else
18057                     if test -f "$dir/lib$name.$libext"; then
18058                       found_dir="$dir"
18059                       found_a="$dir/lib$name.$libext"
18060                       if test -f "$dir/lib$name.la"; then
18061                         found_la="$dir/lib$name.la"
18062                       fi
18063                     fi
18064                   fi
18065                   ;;
18066               esac
18067               if test "X$found_dir" != "X"; then
18068                 break
18069               fi
18070             done
18071           fi
18072           if test "X$found_dir" != "X"; then
18073                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18074             if test "X$found_so" != "X"; then
18075                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18076                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18077               else
18078                                                                                 haveit=
18079                 for x in $ltrpathdirs; do
18080                   if test "X$x" = "X$found_dir"; then
18081                     haveit=yes
18082                     break
18083                   fi
18084                 done
18085                 if test -z "$haveit"; then
18086                   ltrpathdirs="$ltrpathdirs $found_dir"
18087                 fi
18088                                 if test "$hardcode_direct" = yes; then
18089                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18090                 else
18091                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18092                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18093                                                             haveit=
18094                     for x in $rpathdirs; do
18095                       if test "X$x" = "X$found_dir"; then
18096                         haveit=yes
18097                         break
18098                       fi
18099                     done
18100                     if test -z "$haveit"; then
18101                       rpathdirs="$rpathdirs $found_dir"
18102                     fi
18103                   else
18104                                                                                 haveit=
18105                     for x in $LDFLAGS $LIBINTL; do
18106
18107   acl_save_prefix="$prefix"
18108   prefix="$acl_final_prefix"
18109   acl_save_exec_prefix="$exec_prefix"
18110   exec_prefix="$acl_final_exec_prefix"
18111   eval x=\"$x\"
18112   exec_prefix="$acl_save_exec_prefix"
18113   prefix="$acl_save_prefix"
18114
18115                       if test "X$x" = "X-L$found_dir"; then
18116                         haveit=yes
18117                         break
18118                       fi
18119                     done
18120                     if test -z "$haveit"; then
18121                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18122                     fi
18123                     if test "$hardcode_minus_L" != no; then
18124                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18125                     else
18126                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18127                     fi
18128                   fi
18129                 fi
18130               fi
18131             else
18132               if test "X$found_a" != "X"; then
18133                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18134               else
18135                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18136               fi
18137             fi
18138                         additional_includedir=
18139             case "$found_dir" in
18140               */lib | */lib/)
18141                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18142                 additional_includedir="$basedir/include"
18143                 ;;
18144             esac
18145             if test "X$additional_includedir" != "X"; then
18146                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18147                 haveit=
18148                 if test "X$additional_includedir" = "X/usr/local/include"; then
18149                   if test -n "$GCC"; then
18150                     case $host_os in
18151                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18152                     esac
18153                   fi
18154                 fi
18155                 if test -z "$haveit"; then
18156                   for x in $CPPFLAGS $INCINTL; do
18157
18158   acl_save_prefix="$prefix"
18159   prefix="$acl_final_prefix"
18160   acl_save_exec_prefix="$exec_prefix"
18161   exec_prefix="$acl_final_exec_prefix"
18162   eval x=\"$x\"
18163   exec_prefix="$acl_save_exec_prefix"
18164   prefix="$acl_save_prefix"
18165
18166                     if test "X$x" = "X-I$additional_includedir"; then
18167                       haveit=yes
18168                       break
18169                     fi
18170                   done
18171                   if test -z "$haveit"; then
18172                     if test -d "$additional_includedir"; then
18173                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18174                     fi
18175                   fi
18176                 fi
18177               fi
18178             fi
18179                         if test -n "$found_la"; then
18180                                                         save_libdir="$libdir"
18181               case "$found_la" in
18182                 */* | *\\*) . "$found_la" ;;
18183                 *) . "./$found_la" ;;
18184               esac
18185               libdir="$save_libdir"
18186                             for dep in $dependency_libs; do
18187                 case "$dep" in
18188                   -L*)
18189                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18190                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18191                       haveit=
18192                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18193                         if test -n "$GCC"; then
18194                           case $host_os in
18195                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18196                           esac
18197                         fi
18198                       fi
18199                       if test -z "$haveit"; then
18200                         haveit=
18201                         for x in $LDFLAGS $LIBINTL; do
18202
18203   acl_save_prefix="$prefix"
18204   prefix="$acl_final_prefix"
18205   acl_save_exec_prefix="$exec_prefix"
18206   exec_prefix="$acl_final_exec_prefix"
18207   eval x=\"$x\"
18208   exec_prefix="$acl_save_exec_prefix"
18209   prefix="$acl_save_prefix"
18210
18211                           if test "X$x" = "X-L$additional_libdir"; then
18212                             haveit=yes
18213                             break
18214                           fi
18215                         done
18216                         if test -z "$haveit"; then
18217                           if test -d "$additional_libdir"; then
18218                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18219                           fi
18220                         fi
18221                         haveit=
18222                         for x in $LDFLAGS $LTLIBINTL; do
18223
18224   acl_save_prefix="$prefix"
18225   prefix="$acl_final_prefix"
18226   acl_save_exec_prefix="$exec_prefix"
18227   exec_prefix="$acl_final_exec_prefix"
18228   eval x=\"$x\"
18229   exec_prefix="$acl_save_exec_prefix"
18230   prefix="$acl_save_prefix"
18231
18232                           if test "X$x" = "X-L$additional_libdir"; then
18233                             haveit=yes
18234                             break
18235                           fi
18236                         done
18237                         if test -z "$haveit"; then
18238                           if test -d "$additional_libdir"; then
18239                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18240                           fi
18241                         fi
18242                       fi
18243                     fi
18244                     ;;
18245                   -R*)
18246                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18247                     if test "$enable_rpath" != no; then
18248                                                                   haveit=
18249                       for x in $rpathdirs; do
18250                         if test "X$x" = "X$dir"; then
18251                           haveit=yes
18252                           break
18253                         fi
18254                       done
18255                       if test -z "$haveit"; then
18256                         rpathdirs="$rpathdirs $dir"
18257                       fi
18258                                                                   haveit=
18259                       for x in $ltrpathdirs; do
18260                         if test "X$x" = "X$dir"; then
18261                           haveit=yes
18262                           break
18263                         fi
18264                       done
18265                       if test -z "$haveit"; then
18266                         ltrpathdirs="$ltrpathdirs $dir"
18267                       fi
18268                     fi
18269                     ;;
18270                   -l*)
18271                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18272                     ;;
18273                   *.la)
18274                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18275                     ;;
18276                   *)
18277                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18278                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18279                     ;;
18280                 esac
18281               done
18282             fi
18283           else
18284                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18285             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18286           fi
18287         fi
18288       fi
18289     done
18290   done
18291   if test "X$rpathdirs" != "X"; then
18292     if test -n "$hardcode_libdir_separator"; then
18293                         alldirs=
18294       for found_dir in $rpathdirs; do
18295         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18296       done
18297             acl_save_libdir="$libdir"
18298       libdir="$alldirs"
18299       eval flag=\"$hardcode_libdir_flag_spec\"
18300       libdir="$acl_save_libdir"
18301       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18302     else
18303             for found_dir in $rpathdirs; do
18304         acl_save_libdir="$libdir"
18305         libdir="$found_dir"
18306         eval flag=\"$hardcode_libdir_flag_spec\"
18307         libdir="$acl_save_libdir"
18308         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18309       done
18310     fi
18311   fi
18312   if test "X$ltrpathdirs" != "X"; then
18313             for found_dir in $ltrpathdirs; do
18314       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18315     done
18316   fi
18317
18318           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18319 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18320 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18321   $as_echo_n "(cached) " >&6
18322 else
18323   gt_save_CPPFLAGS="$CPPFLAGS"
18324             CPPFLAGS="$CPPFLAGS $INCINTL"
18325             gt_save_LIBS="$LIBS"
18326             LIBS="$LIBS $LIBINTL"
18327                         cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 #include <libintl.h>
18334 extern int _nl_msg_cat_cntr;
18335 extern
18336 #ifdef __cplusplus
18337 "C"
18338 #endif
18339 const char *_nl_expand_alias (const char *);
18340 int
18341 main ()
18342 {
18343 bindtextdomain ("", "");
18344 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (ac_try="$ac_link"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357   (eval "$ac_link") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } && {
18364          test -z "$ac_c_werror_flag" ||
18365          test ! -s conftest.err
18366        } && test -s conftest$ac_exeext && {
18367          test "$cross_compiling" = yes ||
18368          $as_test_x conftest$ac_exeext
18369        }; then
18370   gt_cv_func_gnugettext1_libintl=yes
18371 else
18372   $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375         gt_cv_func_gnugettext1_libintl=no
18376 fi
18377
18378 rm -rf conftest.dSYM
18379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18380       conftest$ac_exeext conftest.$ac_ext
18381                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18382               LIBS="$LIBS $LIBICONV"
18383               cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389 #include <libintl.h>
18390 extern int _nl_msg_cat_cntr;
18391 extern
18392 #ifdef __cplusplus
18393 "C"
18394 #endif
18395 const char *_nl_expand_alias (const char *);
18396 int
18397 main ()
18398 {
18399 bindtextdomain ("", "");
18400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (ac_try="$ac_link"
18407 case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18412 $as_echo "$ac_try_echo") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest$ac_exeext && {
18423          test "$cross_compiling" = yes ||
18424          $as_test_x conftest$ac_exeext
18425        }; then
18426   LIBINTL="$LIBINTL $LIBICONV"
18427                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18428                 gt_cv_func_gnugettext1_libintl=yes
18429
18430 else
18431   $as_echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434
18435 fi
18436
18437 rm -rf conftest.dSYM
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439       conftest$ac_exeext conftest.$ac_ext
18440             fi
18441             CPPFLAGS="$gt_save_CPPFLAGS"
18442             LIBS="$gt_save_LIBS"
18443 fi
18444 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18445 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18446         fi
18447
18448                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18449            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18450                 && test "$PACKAGE" != gettext-runtime \
18451                 && test "$PACKAGE" != gettext-tools; }; then
18452           gt_use_preinstalled_gnugettext=yes
18453         else
18454                     LIBINTL=
18455           LTLIBINTL=
18456           INCINTL=
18457         fi
18458
18459
18460
18461     if test -n "$INTL_MACOSX_LIBS"; then
18462       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18463          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18464                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18465         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18466       fi
18467     fi
18468
18469     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18470        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define ENABLE_NLS 1
18474 _ACEOF
18475
18476     else
18477       USE_NLS=no
18478     fi
18479   fi
18480
18481   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18482 $as_echo_n "checking whether to use NLS... " >&6; }
18483   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18484 $as_echo "$USE_NLS" >&6; }
18485   if test "$USE_NLS" = "yes"; then
18486     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18487 $as_echo_n "checking where the gettext function comes from... " >&6; }
18488     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18489       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18490         gt_source="external libintl"
18491       else
18492         gt_source="libc"
18493       fi
18494     else
18495       gt_source="included intl directory"
18496     fi
18497     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18498 $as_echo "$gt_source" >&6; }
18499   fi
18500
18501   if test "$USE_NLS" = "yes"; then
18502
18503     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18504       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18505         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18506 $as_echo_n "checking how to link with libintl... " >&6; }
18507         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18508 $as_echo "$LIBINTL" >&6; }
18509
18510   for element in $INCINTL; do
18511     haveit=
18512     for x in $CPPFLAGS; do
18513
18514   acl_save_prefix="$prefix"
18515   prefix="$acl_final_prefix"
18516   acl_save_exec_prefix="$exec_prefix"
18517   exec_prefix="$acl_final_exec_prefix"
18518   eval x=\"$x\"
18519   exec_prefix="$acl_save_exec_prefix"
18520   prefix="$acl_save_prefix"
18521
18522       if test "X$x" = "X$element"; then
18523         haveit=yes
18524         break
18525       fi
18526     done
18527     if test -z "$haveit"; then
18528       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18529     fi
18530   done
18531
18532       fi
18533
18534
18535 cat >>confdefs.h <<\_ACEOF
18536 #define HAVE_GETTEXT 1
18537 _ACEOF
18538
18539
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_DCGETTEXT 1
18542 _ACEOF
18543
18544     fi
18545
18546         POSUB=po
18547   fi
18548
18549
18550
18551     INTLLIBS="$LIBINTL"
18552
18553
18554
18555
18556
18557
18558
18559 os_name=`uname -s 2>/dev/null`
18560 if test x${prefix} = xNONE ; then
18561    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18562       sysconfdir=/etc/bacula
18563    fi
18564
18565    if test `eval echo ${libdir}` = NONE/lib ; then
18566       case ${os_name} in
18567       Linux)
18568          os_processor=`uname -p 2>/dev/null`
18569          case ${os_processor} in
18570          x86_64)
18571             libdir=/usr/lib64
18572             ;;
18573          *)
18574             libdir=/usr/lib
18575             ;;
18576          esac
18577          ;;
18578       *)
18579          libdir=/usr/lib
18580          ;;
18581       esac
18582    fi
18583
18584    if test `eval echo ${includedir}` = NONE/include ; then
18585       includedir=/usr/include
18586    fi
18587
18588    if test `eval echo ${datarootdir}` = NONE/share ; then
18589       datarootdir=/usr/share
18590    fi
18591    prefix=
18592 fi
18593
18594 if test x${exec_prefix} = xNONE ; then
18595    exec_prefix=${prefix}
18596 fi
18597
18598 sysconfdir=`eval echo ${sysconfdir}`
18599 datarootdir=`eval echo ${datarootdir}`
18600 docdir=`eval echo ${docdir}`
18601 htmldir=`eval echo ${htmldir}`
18602 libdir=`eval echo ${libdir}`
18603 includedir=`eval echo ${includedir}`
18604 localedir=`eval echo ${datarootdir}/locale`
18605 cat >>confdefs.h <<_ACEOF
18606 #define SYSCONFDIR "$sysconfdir"
18607 _ACEOF
18608
18609 cat >>confdefs.h <<_ACEOF
18610 #define LOCALEDIR "$localedir"
18611 _ACEOF
18612
18613
18614 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18615    sbindir=${exec_prefix}/sbin
18616 fi
18617 sbindir=`eval echo ${sbindir}`
18618
18619 if test x$mandir = x'${prefix}/man' ; then
18620    mandir=/usr/share/man
18621 fi
18622
18623 if test x$htmldir = x${docdir} ; then
18624    htmldir=`eval echo ${docdir}bacula/html`
18625 fi
18626
18627 if test x$docdir = x'/usr/share/doc/' ; then
18628    docdir=`eval echo ${docdir}bacula`
18629 fi
18630
18631
18632 for ac_prog in msgfmt
18633 do
18634   # Extract the first word of "$ac_prog", so it can be a program name with args.
18635 set dummy $ac_prog; ac_word=$2
18636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18637 $as_echo_n "checking for $ac_word... " >&6; }
18638 if test "${ac_cv_path_MSGFMT+set}" = set; then
18639   $as_echo_n "(cached) " >&6
18640 else
18641   case $MSGFMT in
18642   [\\/]* | ?:[\\/]*)
18643   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18644   ;;
18645   *)
18646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18647 for as_dir in $PATH
18648 do
18649   IFS=$as_save_IFS
18650   test -z "$as_dir" && as_dir=.
18651   for ac_exec_ext in '' $ac_executable_extensions; do
18652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18653     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18655     break 2
18656   fi
18657 done
18658 done
18659 IFS=$as_save_IFS
18660
18661   ;;
18662 esac
18663 fi
18664 MSGFMT=$ac_cv_path_MSGFMT
18665 if test -n "$MSGFMT"; then
18666   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18667 $as_echo "$MSGFMT" >&6; }
18668 else
18669   { $as_echo "$as_me:$LINENO: result: no" >&5
18670 $as_echo "no" >&6; }
18671 fi
18672
18673
18674   test -n "$MSGFMT" && break
18675 done
18676 test -n "$MSGFMT" || MSGFMT="no"
18677
18678 if test "$MSGFMT" = "no"
18679 then
18680    echo 'msgfmt program not found, disabling NLS !'
18681    USE_NLS=no
18682    USE_INCLUDED_LIBINTL=no
18683 #else
18684
18685     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18686 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18687 if test "${ac_cv_gnu_library_2+set}" = set; then
18688   $as_echo_n "(cached) " >&6
18689 else
18690   cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696
18697 #include <features.h>
18698 #ifdef __GNU_LIBRARY__
18699  #if (__GLIBC__ >= 2)
18700   Lucky GNU user
18701  #endif
18702 #endif
18703
18704 _ACEOF
18705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18706   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18707   ac_cv_gnu_library_2=yes
18708 else
18709   ac_cv_gnu_library_2=no
18710 fi
18711 rm -f conftest*
18712
18713
18714
18715 fi
18716 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18717 $as_echo "$ac_cv_gnu_library_2" >&6; }
18718
18719     GLIBC2="$ac_cv_gnu_library_2"
18720
18721
18722 if test -n "$ac_tool_prefix"; then
18723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18726 $as_echo_n "checking for $ac_word... " >&6; }
18727 if test "${ac_cv_prog_RANLIB+set}" = set; then
18728   $as_echo_n "(cached) " >&6
18729 else
18730   if test -n "$RANLIB"; then
18731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18732 else
18733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734 for as_dir in $PATH
18735 do
18736   IFS=$as_save_IFS
18737   test -z "$as_dir" && as_dir=.
18738   for ac_exec_ext in '' $ac_executable_extensions; do
18739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18741     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18742     break 2
18743   fi
18744 done
18745 done
18746 IFS=$as_save_IFS
18747
18748 fi
18749 fi
18750 RANLIB=$ac_cv_prog_RANLIB
18751 if test -n "$RANLIB"; then
18752   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18753 $as_echo "$RANLIB" >&6; }
18754 else
18755   { $as_echo "$as_me:$LINENO: result: no" >&5
18756 $as_echo "no" >&6; }
18757 fi
18758
18759
18760 fi
18761 if test -z "$ac_cv_prog_RANLIB"; then
18762   ac_ct_RANLIB=$RANLIB
18763   # Extract the first word of "ranlib", so it can be a program name with args.
18764 set dummy ranlib; ac_word=$2
18765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18766 $as_echo_n "checking for $ac_word... " >&6; }
18767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18768   $as_echo_n "(cached) " >&6
18769 else
18770   if test -n "$ac_ct_RANLIB"; then
18771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18772 else
18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774 for as_dir in $PATH
18775 do
18776   IFS=$as_save_IFS
18777   test -z "$as_dir" && as_dir=.
18778   for ac_exec_ext in '' $ac_executable_extensions; do
18779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18780     ac_cv_prog_ac_ct_RANLIB="ranlib"
18781     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18782     break 2
18783   fi
18784 done
18785 done
18786 IFS=$as_save_IFS
18787
18788 fi
18789 fi
18790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18791 if test -n "$ac_ct_RANLIB"; then
18792   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18793 $as_echo "$ac_ct_RANLIB" >&6; }
18794 else
18795   { $as_echo "$as_me:$LINENO: result: no" >&5
18796 $as_echo "no" >&6; }
18797 fi
18798
18799   if test "x$ac_ct_RANLIB" = x; then
18800     RANLIB=":"
18801   else
18802     case $cross_compiling:$ac_tool_warned in
18803 yes:)
18804 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18806 ac_tool_warned=yes ;;
18807 esac
18808     RANLIB=$ac_ct_RANLIB
18809   fi
18810 else
18811   RANLIB="$ac_cv_prog_RANLIB"
18812 fi
18813
18814
18815         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18816 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18817 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18818   $as_echo_n "(cached) " >&6
18819 else
18820   ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-lcposix  $LIBS"
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828
18829 /* Override any GCC internal prototype to avoid an error.
18830    Use char because int might match the return type of a GCC
18831    builtin and then its argument prototype would still apply.  */
18832 #ifdef __cplusplus
18833 extern "C"
18834 #endif
18835 char strerror ();
18836 int
18837 main ()
18838 {
18839 return strerror ();
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18851 $as_echo "$ac_try_echo") >&5
18852   (eval "$ac_link") 2>conftest.er1
18853   ac_status=$?
18854   grep -v '^ *+' conftest.er1 >conftest.err
18855   rm -f conftest.er1
18856   cat conftest.err >&5
18857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); } && {
18859          test -z "$ac_c_werror_flag" ||
18860          test ! -s conftest.err
18861        } && test -s conftest$ac_exeext && {
18862          test "$cross_compiling" = yes ||
18863          $as_test_x conftest$ac_exeext
18864        }; then
18865   ac_cv_lib_cposix_strerror=yes
18866 else
18867   $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870         ac_cv_lib_cposix_strerror=no
18871 fi
18872
18873 rm -rf conftest.dSYM
18874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18875       conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_lib_save_LIBS
18877 fi
18878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18879 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18880 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18881   LIBS="$LIBS -lcposix"
18882 fi
18883
18884
18885
18886 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18887 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18888 if test "${ac_cv_c_const+set}" = set; then
18889   $as_echo_n "(cached) " >&6
18890 else
18891   cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897
18898 int
18899 main ()
18900 {
18901 /* FIXME: Include the comments suggested by Paul. */
18902 #ifndef __cplusplus
18903   /* Ultrix mips cc rejects this.  */
18904   typedef int charset[2];
18905   const charset cs;
18906   /* SunOS 4.1.1 cc rejects this.  */
18907   char const *const *pcpcc;
18908   char **ppc;
18909   /* NEC SVR4.0.2 mips cc rejects this.  */
18910   struct point {int x, y;};
18911   static struct point const zero = {0,0};
18912   /* AIX XL C 1.02.0.0 rejects this.
18913      It does not let you subtract one const X* pointer from another in
18914      an arm of an if-expression whose if-part is not a constant
18915      expression */
18916   const char *g = "string";
18917   pcpcc = &g + (g ? g-g : 0);
18918   /* HPUX 7.0 cc rejects these. */
18919   ++pcpcc;
18920   ppc = (char**) pcpcc;
18921   pcpcc = (char const *const *) ppc;
18922   { /* SCO 3.2v4 cc rejects this.  */
18923     char *t;
18924     char const *s = 0 ? (char *) 0 : (char const *) 0;
18925
18926     *t++ = 0;
18927     if (s) return 0;
18928   }
18929   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18930     int x[] = {25, 17};
18931     const int *foo = &x[0];
18932     ++foo;
18933   }
18934   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18935     typedef const int *iptr;
18936     iptr p = 0;
18937     ++p;
18938   }
18939   { /* AIX XL C 1.02.0.0 rejects this saying
18940        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18941     struct s { int j; const int *ap[3]; };
18942     struct s *b; b->j = 5;
18943   }
18944   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18945     const int foo = 10;
18946     if (!foo) return 0;
18947   }
18948   return !cs[0] && !zero.x;
18949 #endif
18950
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (ac_try="$ac_compile"
18957 case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18962 $as_echo "$ac_try_echo") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest.$ac_objext; then
18973   ac_cv_c_const=yes
18974 else
18975   $as_echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         ac_cv_c_const=no
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18984 $as_echo "$ac_cv_c_const" >&6; }
18985 if test $ac_cv_c_const = no; then
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define const /**/
18989 _ACEOF
18990
18991 fi
18992
18993
18994   { $as_echo "$as_me:$LINENO: checking for signed" >&5
18995 $as_echo_n "checking for signed... " >&6; }
18996 if test "${bh_cv_c_signed+set}" = set; then
18997   $as_echo_n "(cached) " >&6
18998 else
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005
19006 int
19007 main ()
19008 {
19009 signed char x;
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022   (eval "$ac_compile") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest.$ac_objext; then
19032   bh_cv_c_signed=yes
19033 else
19034   $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037         bh_cv_c_signed=no
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 fi
19042 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19043 $as_echo "$bh_cv_c_signed" >&6; }
19044   if test $bh_cv_c_signed = no; then
19045
19046 cat >>confdefs.h <<\_ACEOF
19047 #define signed /**/
19048 _ACEOF
19049
19050   fi
19051
19052 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19053 $as_echo_n "checking for inline... " >&6; }
19054 if test "${ac_cv_c_inline+set}" = set; then
19055   $as_echo_n "(cached) " >&6
19056 else
19057   ac_cv_c_inline=no
19058 for ac_kw in inline __inline__ __inline; do
19059   cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 #ifndef __cplusplus
19066 typedef int foo_t;
19067 static $ac_kw foo_t static_foo () {return 0; }
19068 $ac_kw foo_t foo () {return 0; }
19069 #endif
19070
19071 _ACEOF
19072 rm -f conftest.$ac_objext
19073 if { (ac_try="$ac_compile"
19074 case "(($ac_try" in
19075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076   *) ac_try_echo=$ac_try;;
19077 esac
19078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19079 $as_echo "$ac_try_echo") >&5
19080   (eval "$ac_compile") 2>conftest.er1
19081   ac_status=$?
19082   grep -v '^ *+' conftest.er1 >conftest.err
19083   rm -f conftest.er1
19084   cat conftest.err >&5
19085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } && {
19087          test -z "$ac_c_werror_flag" ||
19088          test ! -s conftest.err
19089        } && test -s conftest.$ac_objext; then
19090   ac_cv_c_inline=$ac_kw
19091 else
19092   $as_echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19094
19095
19096 fi
19097
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099   test "$ac_cv_c_inline" != no && break
19100 done
19101
19102 fi
19103 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19104 $as_echo "$ac_cv_c_inline" >&6; }
19105
19106
19107 case $ac_cv_c_inline in
19108   inline | yes) ;;
19109   *)
19110     case $ac_cv_c_inline in
19111       no) ac_val=;;
19112       *) ac_val=$ac_cv_c_inline;;
19113     esac
19114     cat >>confdefs.h <<_ACEOF
19115 #ifndef __cplusplus
19116 #define inline $ac_val
19117 #endif
19118 _ACEOF
19119     ;;
19120 esac
19121
19122 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19123 $as_echo_n "checking for off_t... " >&6; }
19124 if test "${ac_cv_type_off_t+set}" = set; then
19125   $as_echo_n "(cached) " >&6
19126 else
19127   ac_cv_type_off_t=no
19128 cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134 $ac_includes_default
19135 int
19136 main ()
19137 {
19138 if (sizeof (off_t))
19139        return 0;
19140   ;
19141   return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } && {
19159          test -z "$ac_c_werror_flag" ||
19160          test ! -s conftest.err
19161        } && test -s conftest.$ac_objext; then
19162   cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168 $ac_includes_default
19169 int
19170 main ()
19171 {
19172 if (sizeof ((off_t)))
19173           return 0;
19174   ;
19175   return 0;
19176 }
19177 _ACEOF
19178 rm -f conftest.$ac_objext
19179 if { (ac_try="$ac_compile"
19180 case "(($ac_try" in
19181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182   *) ac_try_echo=$ac_try;;
19183 esac
19184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19185 $as_echo "$ac_try_echo") >&5
19186   (eval "$ac_compile") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } && {
19193          test -z "$ac_c_werror_flag" ||
19194          test ! -s conftest.err
19195        } && test -s conftest.$ac_objext; then
19196   :
19197 else
19198   $as_echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201         ac_cv_type_off_t=yes
19202 fi
19203
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 else
19206   $as_echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209
19210 fi
19211
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 fi
19214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19215 $as_echo "$ac_cv_type_off_t" >&6; }
19216 if test "x$ac_cv_type_off_t" = x""yes; then
19217   :
19218 else
19219
19220 cat >>confdefs.h <<_ACEOF
19221 #define off_t long int
19222 _ACEOF
19223
19224 fi
19225
19226 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19227 $as_echo_n "checking for size_t... " >&6; }
19228 if test "${ac_cv_type_size_t+set}" = set; then
19229   $as_echo_n "(cached) " >&6
19230 else
19231   ac_cv_type_size_t=no
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 $ac_includes_default
19239 int
19240 main ()
19241 {
19242 if (sizeof (size_t))
19243        return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19255 $as_echo "$ac_try_echo") >&5
19256   (eval "$ac_compile") 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } && {
19263          test -z "$ac_c_werror_flag" ||
19264          test ! -s conftest.err
19265        } && test -s conftest.$ac_objext; then
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 $ac_includes_default
19273 int
19274 main ()
19275 {
19276 if (sizeof ((size_t)))
19277           return 0;
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (ac_try="$ac_compile"
19284 case "(($ac_try" in
19285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286   *) ac_try_echo=$ac_try;;
19287 esac
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290   (eval "$ac_compile") 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } && {
19297          test -z "$ac_c_werror_flag" ||
19298          test ! -s conftest.err
19299        } && test -s conftest.$ac_objext; then
19300   :
19301 else
19302   $as_echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19304
19305         ac_cv_type_size_t=yes
19306 fi
19307
19308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309 else
19310   $as_echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 fi
19318 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19319 $as_echo "$ac_cv_type_size_t" >&6; }
19320 if test "x$ac_cv_type_size_t" = x""yes; then
19321   :
19322 else
19323
19324 cat >>confdefs.h <<_ACEOF
19325 #define size_t unsigned int
19326 _ACEOF
19327
19328 fi
19329
19330
19331   { $as_echo "$as_me:$LINENO: checking for long long" >&5
19332 $as_echo_n "checking for long long... " >&6; }
19333 if test "${ac_cv_type_long_long+set}" = set; then
19334   $as_echo_n "(cached) " >&6
19335 else
19336   cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 long long ll = 1LL; int i = 63;
19343 int
19344 main ()
19345 {
19346 long long llmax = (long long) -1;
19347      return ll << i | ll >> i | llmax / ll | llmax % ll;
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (ac_try="$ac_link"
19354 case "(($ac_try" in
19355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356   *) ac_try_echo=$ac_try;;
19357 esac
19358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19359 $as_echo "$ac_try_echo") >&5
19360   (eval "$ac_link") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } && {
19367          test -z "$ac_c_werror_flag" ||
19368          test ! -s conftest.err
19369        } && test -s conftest$ac_exeext && {
19370          test "$cross_compiling" = yes ||
19371          $as_test_x conftest$ac_exeext
19372        }; then
19373   ac_cv_type_long_long=yes
19374 else
19375   $as_echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378         ac_cv_type_long_long=no
19379 fi
19380
19381 rm -rf conftest.dSYM
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383       conftest$ac_exeext conftest.$ac_ext
19384 fi
19385 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19386 $as_echo "$ac_cv_type_long_long" >&6; }
19387   if test $ac_cv_type_long_long = yes; then
19388
19389 cat >>confdefs.h <<\_ACEOF
19390 #define HAVE_LONG_LONG 1
19391 _ACEOF
19392
19393   fi
19394
19395
19396   { $as_echo "$as_me:$LINENO: checking for long double" >&5
19397 $as_echo_n "checking for long double... " >&6; }
19398 if test "${gt_cv_c_long_double+set}" = set; then
19399   $as_echo_n "(cached) " >&6
19400 else
19401   if test "$GCC" = yes; then
19402        gt_cv_c_long_double=yes
19403      else
19404        cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h.  */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h.  */
19410
19411          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19412          long double foo = 0.0;
19413          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19414          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19415
19416 int
19417 main ()
19418 {
19419
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext
19425 if { (ac_try="$ac_compile"
19426 case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19431 $as_echo "$ac_try_echo") >&5
19432   (eval "$ac_compile") 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } && {
19439          test -z "$ac_c_werror_flag" ||
19440          test ! -s conftest.err
19441        } && test -s conftest.$ac_objext; then
19442   gt_cv_c_long_double=yes
19443 else
19444   $as_echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447         gt_cv_c_long_double=no
19448 fi
19449
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451      fi
19452 fi
19453 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19454 $as_echo "$gt_cv_c_long_double" >&6; }
19455   if test $gt_cv_c_long_double = yes; then
19456
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_LONG_DOUBLE 1
19459 _ACEOF
19460
19461   fi
19462
19463
19464   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19465 $as_echo_n "checking for wchar_t... " >&6; }
19466 if test "${gt_cv_c_wchar_t+set}" = set; then
19467   $as_echo_n "(cached) " >&6
19468 else
19469   cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 #include <stddef.h>
19476        wchar_t foo = (wchar_t)'\0';
19477 int
19478 main ()
19479 {
19480
19481   ;
19482   return 0;
19483 }
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489   *) ac_try_echo=$ac_try;;
19490 esac
19491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19492 $as_echo "$ac_try_echo") >&5
19493   (eval "$ac_compile") 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } && {
19500          test -z "$ac_c_werror_flag" ||
19501          test ! -s conftest.err
19502        } && test -s conftest.$ac_objext; then
19503   gt_cv_c_wchar_t=yes
19504 else
19505   $as_echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508         gt_cv_c_wchar_t=no
19509 fi
19510
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 fi
19513 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19514 $as_echo "$gt_cv_c_wchar_t" >&6; }
19515   if test $gt_cv_c_wchar_t = yes; then
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_WCHAR_T 1
19519 _ACEOF
19520
19521   fi
19522
19523
19524   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19525 $as_echo_n "checking for wint_t... " >&6; }
19526 if test "${gt_cv_c_wint_t+set}" = set; then
19527   $as_echo_n "(cached) " >&6
19528 else
19529   cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535 #include <wchar.h>
19536        wint_t foo = (wchar_t)'\0';
19537 int
19538 main ()
19539 {
19540
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19552 $as_echo "$ac_try_echo") >&5
19553   (eval "$ac_compile") 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } && {
19560          test -z "$ac_c_werror_flag" ||
19561          test ! -s conftest.err
19562        } && test -s conftest.$ac_objext; then
19563   gt_cv_c_wint_t=yes
19564 else
19565   $as_echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568         gt_cv_c_wint_t=no
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 fi
19573 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19574 $as_echo "$gt_cv_c_wint_t" >&6; }
19575   if test $gt_cv_c_wint_t = yes; then
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_WINT_T 1
19579 _ACEOF
19580
19581   fi
19582
19583
19584   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19585 $as_echo_n "checking for inttypes.h... " >&6; }
19586 if test "${gl_cv_header_inttypes_h+set}" = set; then
19587   $as_echo_n "(cached) " >&6
19588 else
19589   cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #include <sys/types.h>
19596 #include <inttypes.h>
19597 int
19598 main ()
19599 {
19600 uintmax_t i = (uintmax_t) -1;
19601   ;
19602   return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19612 $as_echo "$ac_try_echo") >&5
19613   (eval "$ac_compile") 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } && {
19620          test -z "$ac_c_werror_flag" ||
19621          test ! -s conftest.err
19622        } && test -s conftest.$ac_objext; then
19623   gl_cv_header_inttypes_h=yes
19624 else
19625   $as_echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628         gl_cv_header_inttypes_h=no
19629 fi
19630
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 fi
19633 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19634 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19635   if test $gl_cv_header_inttypes_h = yes; then
19636
19637 cat >>confdefs.h <<_ACEOF
19638 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19639 _ACEOF
19640
19641   fi
19642
19643
19644   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19645 $as_echo_n "checking for stdint.h... " >&6; }
19646 if test "${gl_cv_header_stdint_h+set}" = set; then
19647   $as_echo_n "(cached) " >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 #include <sys/types.h>
19656 #include <stdint.h>
19657 int
19658 main ()
19659 {
19660 uintmax_t i = (uintmax_t) -1;
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19672 $as_echo "$ac_try_echo") >&5
19673   (eval "$ac_compile") 2>conftest.er1
19674   ac_status=$?
19675   grep -v '^ *+' conftest.er1 >conftest.err
19676   rm -f conftest.er1
19677   cat conftest.err >&5
19678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } && {
19680          test -z "$ac_c_werror_flag" ||
19681          test ! -s conftest.err
19682        } && test -s conftest.$ac_objext; then
19683   gl_cv_header_stdint_h=yes
19684 else
19685   $as_echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688         gl_cv_header_stdint_h=no
19689 fi
19690
19691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 fi
19693 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19694 $as_echo "$gl_cv_header_stdint_h" >&6; }
19695   if test $gl_cv_header_stdint_h = yes; then
19696
19697 cat >>confdefs.h <<_ACEOF
19698 #define HAVE_STDINT_H_WITH_UINTMAX 1
19699 _ACEOF
19700
19701   fi
19702
19703
19704
19705
19706   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19707 $as_echo_n "checking for intmax_t... " >&6; }
19708 if test "${gt_cv_c_intmax_t+set}" = set; then
19709   $as_echo_n "(cached) " >&6
19710 else
19711   cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717
19718 #include <stddef.h>
19719 #include <stdlib.h>
19720 #if HAVE_STDINT_H_WITH_UINTMAX
19721 #include <stdint.h>
19722 #endif
19723 #if HAVE_INTTYPES_H_WITH_UINTMAX
19724 #include <inttypes.h>
19725 #endif
19726
19727 int
19728 main ()
19729 {
19730 intmax_t x = -1;
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (ac_try="$ac_compile"
19737 case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19742 $as_echo "$ac_try_echo") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && {
19750          test -z "$ac_c_werror_flag" ||
19751          test ! -s conftest.err
19752        } && test -s conftest.$ac_objext; then
19753   gt_cv_c_intmax_t=yes
19754 else
19755   $as_echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         gt_cv_c_intmax_t=no
19759 fi
19760
19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 fi
19763 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19764 $as_echo "$gt_cv_c_intmax_t" >&6; }
19765   if test $gt_cv_c_intmax_t = yes; then
19766
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_INTMAX_T 1
19769 _ACEOF
19770
19771   fi
19772
19773
19774
19775   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19776 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19777 if test "${gt_cv_func_printf_posix+set}" = set; then
19778   $as_echo_n "(cached) " >&6
19779 else
19780
19781       if test "$cross_compiling" = yes; then
19782
19783         cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789
19790 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19791   notposix
19792 #endif
19793
19794 _ACEOF
19795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19796   $EGREP "notposix" >/dev/null 2>&1; then
19797   gt_cv_func_printf_posix="guessing no"
19798 else
19799   gt_cv_func_printf_posix="guessing yes"
19800 fi
19801 rm -f conftest*
19802
19803
19804 else
19805   cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811
19812 #include <stdio.h>
19813 #include <string.h>
19814 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19815    dollar expansion (possibly an autoconf bug).  */
19816 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19817 static char buf[100];
19818 int main ()
19819 {
19820   sprintf (buf, format, 33, 55);
19821   return (strcmp (buf, "55 33") != 0);
19822 }
19823 _ACEOF
19824 rm -f conftest$ac_exeext
19825 if { (ac_try="$ac_link"
19826 case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19831 $as_echo "$ac_try_echo") >&5
19832   (eval "$ac_link") 2>&5
19833   ac_status=$?
19834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19836   { (case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19841 $as_echo "$ac_try_echo") >&5
19842   (eval "$ac_try") 2>&5
19843   ac_status=$?
19844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   gt_cv_func_printf_posix=yes
19847 else
19848   $as_echo "$as_me: program exited with status $ac_status" >&5
19849 $as_echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 ( exit $ac_status )
19853 gt_cv_func_printf_posix=no
19854 fi
19855 rm -rf conftest.dSYM
19856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19857 fi
19858
19859
19860
19861 fi
19862 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19863 $as_echo "$gt_cv_func_printf_posix" >&6; }
19864   case $gt_cv_func_printf_posix in
19865     *yes)
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_POSIX_PRINTF 1
19869 _ACEOF
19870
19871       ;;
19872   esac
19873
19874 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19875 # for constant arguments.  Useless!
19876 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19877 $as_echo_n "checking for working alloca.h... " >&6; }
19878 if test "${ac_cv_working_alloca_h+set}" = set; then
19879   $as_echo_n "(cached) " >&6
19880 else
19881   cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887 #include <alloca.h>
19888 int
19889 main ()
19890 {
19891 char *p = (char *) alloca (2 * sizeof (int));
19892                           if (p) return 0;
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19904 $as_echo "$ac_try_echo") >&5
19905   (eval "$ac_link") 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } && {
19912          test -z "$ac_c_werror_flag" ||
19913          test ! -s conftest.err
19914        } && test -s conftest$ac_exeext && {
19915          test "$cross_compiling" = yes ||
19916          $as_test_x conftest$ac_exeext
19917        }; then
19918   ac_cv_working_alloca_h=yes
19919 else
19920   $as_echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923         ac_cv_working_alloca_h=no
19924 fi
19925
19926 rm -rf conftest.dSYM
19927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19928       conftest$ac_exeext conftest.$ac_ext
19929 fi
19930 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19931 $as_echo "$ac_cv_working_alloca_h" >&6; }
19932 if test $ac_cv_working_alloca_h = yes; then
19933
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_ALLOCA_H 1
19936 _ACEOF
19937
19938 fi
19939
19940 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19941 $as_echo_n "checking for alloca... " >&6; }
19942 if test "${ac_cv_func_alloca_works+set}" = set; then
19943   $as_echo_n "(cached) " >&6
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 #ifdef __GNUC__
19952 # define alloca __builtin_alloca
19953 #else
19954 # ifdef _MSC_VER
19955 #  include <malloc.h>
19956 #  define alloca _alloca
19957 # else
19958 #  ifdef HAVE_ALLOCA_H
19959 #   include <alloca.h>
19960 #  else
19961 #   ifdef _AIX
19962  #pragma alloca
19963 #   else
19964 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19965 char *alloca ();
19966 #    endif
19967 #   endif
19968 #  endif
19969 # endif
19970 #endif
19971
19972 int
19973 main ()
19974 {
19975 char *p = (char *) alloca (1);
19976                                     if (p) return 0;
19977   ;
19978   return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19988 $as_echo "$ac_try_echo") >&5
19989   (eval "$ac_link") 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } && {
19996          test -z "$ac_c_werror_flag" ||
19997          test ! -s conftest.err
19998        } && test -s conftest$ac_exeext && {
19999          test "$cross_compiling" = yes ||
20000          $as_test_x conftest$ac_exeext
20001        }; then
20002   ac_cv_func_alloca_works=yes
20003 else
20004   $as_echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007         ac_cv_func_alloca_works=no
20008 fi
20009
20010 rm -rf conftest.dSYM
20011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20012       conftest$ac_exeext conftest.$ac_ext
20013 fi
20014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20015 $as_echo "$ac_cv_func_alloca_works" >&6; }
20016
20017 if test $ac_cv_func_alloca_works = yes; then
20018
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_ALLOCA 1
20021 _ACEOF
20022
20023 else
20024   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20025 # that cause trouble.  Some versions do not even contain alloca or
20026 # contain a buggy version.  If you still want to use their alloca,
20027 # use ar to extract alloca.o from them instead of compiling alloca.c.
20028
20029 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20030
20031 cat >>confdefs.h <<\_ACEOF
20032 #define C_ALLOCA 1
20033 _ACEOF
20034
20035
20036 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20037 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20038 if test "${ac_cv_os_cray+set}" = set; then
20039   $as_echo_n "(cached) " >&6
20040 else
20041   cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 #if defined CRAY && ! defined CRAY2
20048 webecray
20049 #else
20050 wenotbecray
20051 #endif
20052
20053 _ACEOF
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055   $EGREP "webecray" >/dev/null 2>&1; then
20056   ac_cv_os_cray=yes
20057 else
20058   ac_cv_os_cray=no
20059 fi
20060 rm -f conftest*
20061
20062 fi
20063 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20064 $as_echo "$ac_cv_os_cray" >&6; }
20065 if test $ac_cv_os_cray = yes; then
20066   for ac_func in _getb67 GETB67 getb67; do
20067     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 $as_echo_n "checking for $ac_func... " >&6; }
20070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20071   $as_echo_n "(cached) " >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20081 #define $ac_func innocuous_$ac_func
20082
20083 /* System header to define __stub macros and hopefully few prototypes,
20084     which can conflict with char $ac_func (); below.
20085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20086     <limits.h> exists even on freestanding compilers.  */
20087
20088 #ifdef __STDC__
20089 # include <limits.h>
20090 #else
20091 # include <assert.h>
20092 #endif
20093
20094 #undef $ac_func
20095
20096 /* Override any GCC internal prototype to avoid an error.
20097    Use char because int might match the return type of a GCC
20098    builtin and then its argument prototype would still apply.  */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char $ac_func ();
20103 /* The GNU C library defines this for functions which it implements
20104     to always fail with ENOSYS.  Some functions are actually named
20105     something starting with __ and the normal name is an alias.  */
20106 #if defined __stub_$ac_func || defined __stub___$ac_func
20107 choke me
20108 #endif
20109
20110 int
20111 main ()
20112 {
20113 return $ac_func ();
20114   ;
20115   return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (ac_try="$ac_link"
20120 case "(($ac_try" in
20121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122   *) ac_try_echo=$ac_try;;
20123 esac
20124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20125 $as_echo "$ac_try_echo") >&5
20126   (eval "$ac_link") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && {
20133          test -z "$ac_c_werror_flag" ||
20134          test ! -s conftest.err
20135        } && test -s conftest$ac_exeext && {
20136          test "$cross_compiling" = yes ||
20137          $as_test_x conftest$ac_exeext
20138        }; then
20139   eval "$as_ac_var=yes"
20140 else
20141   $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144         eval "$as_ac_var=no"
20145 fi
20146
20147 rm -rf conftest.dSYM
20148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20149       conftest$ac_exeext conftest.$ac_ext
20150 fi
20151 ac_res=`eval 'as_val=${'$as_ac_var'}
20152                  $as_echo "$as_val"'`
20153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20154 $as_echo "$ac_res" >&6; }
20155 as_val=`eval 'as_val=${'$as_ac_var'}
20156                  $as_echo "$as_val"'`
20157    if test "x$as_val" = x""yes; then
20158
20159 cat >>confdefs.h <<_ACEOF
20160 #define CRAY_STACKSEG_END $ac_func
20161 _ACEOF
20162
20163     break
20164 fi
20165
20166   done
20167 fi
20168
20169 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20170 $as_echo_n "checking stack direction for C alloca... " >&6; }
20171 if test "${ac_cv_c_stack_direction+set}" = set; then
20172   $as_echo_n "(cached) " >&6
20173 else
20174   if test "$cross_compiling" = yes; then
20175   ac_cv_c_stack_direction=0
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 $ac_includes_default
20184 int
20185 find_stack_direction ()
20186 {
20187   static char *addr = 0;
20188   auto char dummy;
20189   if (addr == 0)
20190     {
20191       addr = &dummy;
20192       return find_stack_direction ();
20193     }
20194   else
20195     return (&dummy > addr) ? 1 : -1;
20196 }
20197
20198 int
20199 main ()
20200 {
20201   return find_stack_direction () < 0;
20202 }
20203 _ACEOF
20204 rm -f conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20211 $as_echo "$ac_try_echo") >&5
20212   (eval "$ac_link") 2>&5
20213   ac_status=$?
20214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20216   { (case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20221 $as_echo "$ac_try_echo") >&5
20222   (eval "$ac_try") 2>&5
20223   ac_status=$?
20224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   ac_cv_c_stack_direction=1
20227 else
20228   $as_echo "$as_me: program exited with status $ac_status" >&5
20229 $as_echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ( exit $ac_status )
20233 ac_cv_c_stack_direction=-1
20234 fi
20235 rm -rf conftest.dSYM
20236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20237 fi
20238
20239
20240 fi
20241 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20242 $as_echo "$ac_cv_c_stack_direction" >&6; }
20243
20244 cat >>confdefs.h <<_ACEOF
20245 #define STACK_DIRECTION $ac_cv_c_stack_direction
20246 _ACEOF
20247
20248
20249 fi
20250
20251
20252
20253 for ac_header in stdlib.h unistd.h
20254 do
20255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20257   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20258 $as_echo_n "checking for $ac_header... " >&6; }
20259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20260   $as_echo_n "(cached) " >&6
20261 fi
20262 ac_res=`eval 'as_val=${'$as_ac_Header'}
20263                  $as_echo "$as_val"'`
20264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20265 $as_echo "$ac_res" >&6; }
20266 else
20267   # Is the header compilable?
20268 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20269 $as_echo_n "checking $ac_header usability... " >&6; }
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276 $ac_includes_default
20277 #include <$ac_header>
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287   (eval "$ac_compile") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && {
20294          test -z "$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        } && test -s conftest.$ac_objext; then
20297   ac_header_compiler=yes
20298 else
20299   $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         ac_header_compiler=no
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307 $as_echo "$ac_header_compiler" >&6; }
20308
20309 # Is the header present?
20310 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20311 $as_echo_n "checking $ac_header presence... " >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 #include <$ac_header>
20319 _ACEOF
20320 if { (ac_try="$ac_cpp conftest.$ac_ext"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } >/dev/null && {
20334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20335          test ! -s conftest.err
20336        }; then
20337   ac_header_preproc=yes
20338 else
20339   $as_echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342   ac_header_preproc=no
20343 fi
20344
20345 rm -f conftest.err conftest.$ac_ext
20346 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20347 $as_echo "$ac_header_preproc" >&6; }
20348
20349 # So?  What about this header?
20350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20351   yes:no: )
20352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20353 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20354     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20356     ac_header_preproc=yes
20357     ;;
20358   no:yes:* )
20359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20360 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20362 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20364 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20366 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20370 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20371
20372     ;;
20373 esac
20374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20375 $as_echo_n "checking for $ac_header... " >&6; }
20376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20377   $as_echo_n "(cached) " >&6
20378 else
20379   eval "$as_ac_Header=\$ac_header_preproc"
20380 fi
20381 ac_res=`eval 'as_val=${'$as_ac_Header'}
20382                  $as_echo "$as_val"'`
20383                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20384 $as_echo "$ac_res" >&6; }
20385
20386 fi
20387 as_val=`eval 'as_val=${'$as_ac_Header'}
20388                  $as_echo "$as_val"'`
20389    if test "x$as_val" = x""yes; then
20390   cat >>confdefs.h <<_ACEOF
20391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20392 _ACEOF
20393
20394 fi
20395
20396 done
20397
20398
20399 for ac_func in getpagesize
20400 do
20401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20402 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20403 $as_echo_n "checking for $ac_func... " >&6; }
20404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20405   $as_echo_n "(cached) " >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20415 #define $ac_func innocuous_$ac_func
20416
20417 /* System header to define __stub macros and hopefully few prototypes,
20418     which can conflict with char $ac_func (); below.
20419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420     <limits.h> exists even on freestanding compilers.  */
20421
20422 #ifdef __STDC__
20423 # include <limits.h>
20424 #else
20425 # include <assert.h>
20426 #endif
20427
20428 #undef $ac_func
20429
20430 /* Override any GCC internal prototype to avoid an error.
20431    Use char because int might match the return type of a GCC
20432    builtin and then its argument prototype would still apply.  */
20433 #ifdef __cplusplus
20434 extern "C"
20435 #endif
20436 char $ac_func ();
20437 /* The GNU C library defines this for functions which it implements
20438     to always fail with ENOSYS.  Some functions are actually named
20439     something starting with __ and the normal name is an alias.  */
20440 #if defined __stub_$ac_func || defined __stub___$ac_func
20441 choke me
20442 #endif
20443
20444 int
20445 main ()
20446 {
20447 return $ac_func ();
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456   *) ac_try_echo=$ac_try;;
20457 esac
20458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20459 $as_echo "$ac_try_echo") >&5
20460   (eval "$ac_link") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest$ac_exeext && {
20470          test "$cross_compiling" = yes ||
20471          $as_test_x conftest$ac_exeext
20472        }; then
20473   eval "$as_ac_var=yes"
20474 else
20475   $as_echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478         eval "$as_ac_var=no"
20479 fi
20480
20481 rm -rf conftest.dSYM
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483       conftest$ac_exeext conftest.$ac_ext
20484 fi
20485 ac_res=`eval 'as_val=${'$as_ac_var'}
20486                  $as_echo "$as_val"'`
20487                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20488 $as_echo "$ac_res" >&6; }
20489 as_val=`eval 'as_val=${'$as_ac_var'}
20490                  $as_echo "$as_val"'`
20491    if test "x$as_val" = x""yes; then
20492   cat >>confdefs.h <<_ACEOF
20493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20494 _ACEOF
20495
20496 fi
20497 done
20498
20499 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20500 $as_echo_n "checking for working mmap... " >&6; }
20501 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20502   $as_echo_n "(cached) " >&6
20503 else
20504   if test "$cross_compiling" = yes; then
20505   ac_cv_func_mmap_fixed_mapped=no
20506 else
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 $ac_includes_default
20514 /* malloc might have been renamed as rpl_malloc. */
20515 #undef malloc
20516
20517 /* Thanks to Mike Haertel and Jim Avera for this test.
20518    Here is a matrix of mmap possibilities:
20519         mmap private not fixed
20520         mmap private fixed at somewhere currently unmapped
20521         mmap private fixed at somewhere already mapped
20522         mmap shared not fixed
20523         mmap shared fixed at somewhere currently unmapped
20524         mmap shared fixed at somewhere already mapped
20525    For private mappings, we should verify that changes cannot be read()
20526    back from the file, nor mmap's back from the file at a different
20527    address.  (There have been systems where private was not correctly
20528    implemented like the infamous i386 svr4.0, and systems where the
20529    VM page cache was not coherent with the file system buffer cache
20530    like early versions of FreeBSD and possibly contemporary NetBSD.)
20531    For shared mappings, we should conversely verify that changes get
20532    propagated back to all the places they're supposed to be.
20533
20534    Grep wants private fixed already mapped.
20535    The main things grep needs to know about mmap are:
20536    * does it exist and is it safe to write into the mmap'd area
20537    * how to use it (BSD variants)  */
20538
20539 #include <fcntl.h>
20540 #include <sys/mman.h>
20541
20542 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20543 char *malloc ();
20544 #endif
20545
20546 /* This mess was copied from the GNU getpagesize.h.  */
20547 #ifndef HAVE_GETPAGESIZE
20548 /* Assume that all systems that can run configure have sys/param.h.  */
20549 # ifndef HAVE_SYS_PARAM_H
20550 #  define HAVE_SYS_PARAM_H 1
20551 # endif
20552
20553 # ifdef _SC_PAGESIZE
20554 #  define getpagesize() sysconf(_SC_PAGESIZE)
20555 # else /* no _SC_PAGESIZE */
20556 #  ifdef HAVE_SYS_PARAM_H
20557 #   include <sys/param.h>
20558 #   ifdef EXEC_PAGESIZE
20559 #    define getpagesize() EXEC_PAGESIZE
20560 #   else /* no EXEC_PAGESIZE */
20561 #    ifdef NBPG
20562 #     define getpagesize() NBPG * CLSIZE
20563 #     ifndef CLSIZE
20564 #      define CLSIZE 1
20565 #     endif /* no CLSIZE */
20566 #    else /* no NBPG */
20567 #     ifdef NBPC
20568 #      define getpagesize() NBPC
20569 #     else /* no NBPC */
20570 #      ifdef PAGESIZE
20571 #       define getpagesize() PAGESIZE
20572 #      endif /* PAGESIZE */
20573 #     endif /* no NBPC */
20574 #    endif /* no NBPG */
20575 #   endif /* no EXEC_PAGESIZE */
20576 #  else /* no HAVE_SYS_PARAM_H */
20577 #   define getpagesize() 8192   /* punt totally */
20578 #  endif /* no HAVE_SYS_PARAM_H */
20579 # endif /* no _SC_PAGESIZE */
20580
20581 #endif /* no HAVE_GETPAGESIZE */
20582
20583 int
20584 main ()
20585 {
20586   char *data, *data2, *data3;
20587   int i, pagesize;
20588   int fd;
20589
20590   pagesize = getpagesize ();
20591
20592   /* First, make a file with some known garbage in it. */
20593   data = (char *) malloc (pagesize);
20594   if (!data)
20595     return 1;
20596   for (i = 0; i < pagesize; ++i)
20597     *(data + i) = rand ();
20598   umask (0);
20599   fd = creat ("conftest.mmap", 0600);
20600   if (fd < 0)
20601     return 1;
20602   if (write (fd, data, pagesize) != pagesize)
20603     return 1;
20604   close (fd);
20605
20606   /* Next, try to mmap the file at a fixed address which already has
20607      something else allocated at it.  If we can, also make sure that
20608      we see the same garbage.  */
20609   fd = open ("conftest.mmap", O_RDWR);
20610   if (fd < 0)
20611     return 1;
20612   data2 = (char *) malloc (2 * pagesize);
20613   if (!data2)
20614     return 1;
20615   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20616   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20617                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20618     return 1;
20619   for (i = 0; i < pagesize; ++i)
20620     if (*(data + i) != *(data2 + i))
20621       return 1;
20622
20623   /* Finally, make sure that changes to the mapped area do not
20624      percolate back to the file as seen by read().  (This is a bug on
20625      some variants of i386 svr4.0.)  */
20626   for (i = 0; i < pagesize; ++i)
20627     *(data2 + i) = *(data2 + i) + 1;
20628   data3 = (char *) malloc (pagesize);
20629   if (!data3)
20630     return 1;
20631   if (read (fd, data3, pagesize) != pagesize)
20632     return 1;
20633   for (i = 0; i < pagesize; ++i)
20634     if (*(data + i) != *(data3 + i))
20635       return 1;
20636   close (fd);
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648   (eval "$ac_link") 2>&5
20649   ac_status=$?
20650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20652   { (case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20657 $as_echo "$ac_try_echo") >&5
20658   (eval "$ac_try") 2>&5
20659   ac_status=$?
20660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }; then
20662   ac_cv_func_mmap_fixed_mapped=yes
20663 else
20664   $as_echo "$as_me: program exited with status $ac_status" >&5
20665 $as_echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ( exit $ac_status )
20669 ac_cv_func_mmap_fixed_mapped=no
20670 fi
20671 rm -rf conftest.dSYM
20672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20673 fi
20674
20675
20676 fi
20677 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20678 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20679 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_MMAP 1
20683 _ACEOF
20684
20685 fi
20686 rm -f conftest.mmap
20687
20688
20689     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20690 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20691 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20692   $as_echo_n "(cached) " >&6
20693 else
20694   cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700
20701 #include <features.h>
20702 #ifdef __GNU_LIBRARY__
20703  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20704   Lucky GNU user
20705  #endif
20706 #endif
20707
20708 _ACEOF
20709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20710   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20711   ac_cv_gnu_library_2_1=yes
20712 else
20713   ac_cv_gnu_library_2_1=no
20714 fi
20715 rm -f conftest*
20716
20717
20718
20719 fi
20720 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20721 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20722
20723     GLIBC21="$ac_cv_gnu_library_2_1"
20724
20725
20726
20727
20728   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20729 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20730 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20731   $as_echo_n "(cached) " >&6
20732 else
20733
20734       if test "$cross_compiling" = yes; then
20735
20736           # Guess based on the CPU.
20737           case "$host_cpu" in
20738             alpha* | i3456786 | m68k | s390*)
20739               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20740             *)
20741               gt_cv_int_divbyzero_sigfpe="guessing no";;
20742           esac
20743
20744 else
20745   cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751
20752 #include <stdlib.h>
20753 #include <signal.h>
20754
20755 static void
20756 #ifdef __cplusplus
20757 sigfpe_handler (int sig)
20758 #else
20759 sigfpe_handler (sig) int sig;
20760 #endif
20761 {
20762   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20763   exit (sig != SIGFPE);
20764 }
20765
20766 int x = 1;
20767 int y = 0;
20768 int z;
20769 int nan;
20770
20771 int main ()
20772 {
20773   signal (SIGFPE, sigfpe_handler);
20774 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20775 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20776   signal (SIGTRAP, sigfpe_handler);
20777 #endif
20778 /* Linux/SPARC yields signal SIGILL.  */
20779 #if defined (__sparc__) && defined (__linux__)
20780   signal (SIGILL, sigfpe_handler);
20781 #endif
20782
20783   z = x / y;
20784   nan = y / y;
20785   exit (1);
20786 }
20787
20788 _ACEOF
20789 rm -f conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793   *) ac_try_echo=$ac_try;;
20794 esac
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797   (eval "$ac_link") 2>&5
20798   ac_status=$?
20799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20806 $as_echo "$ac_try_echo") >&5
20807   (eval "$ac_try") 2>&5
20808   ac_status=$?
20809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   gt_cv_int_divbyzero_sigfpe=yes
20812 else
20813   $as_echo "$as_me: program exited with status $ac_status" >&5
20814 $as_echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 ( exit $ac_status )
20818 gt_cv_int_divbyzero_sigfpe=no
20819 fi
20820 rm -rf conftest.dSYM
20821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20822 fi
20823
20824
20825
20826 fi
20827 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20828 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20829   case "$gt_cv_int_divbyzero_sigfpe" in
20830     *yes) value=1;;
20831     *) value=0;;
20832   esac
20833
20834 cat >>confdefs.h <<_ACEOF
20835 #define INTDIV0_RAISES_SIGFPE $value
20836 _ACEOF
20837
20838
20839
20840   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20841 $as_echo_n "checking for unsigned long long... " >&6; }
20842 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20843   $as_echo_n "(cached) " >&6
20844 else
20845   cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 unsigned long long ull = 1ULL; int i = 63;
20852 int
20853 main ()
20854 {
20855 unsigned long long ullmax = (unsigned long long) -1;
20856      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext conftest$ac_exeext
20862 if { (ac_try="$ac_link"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20868 $as_echo "$ac_try_echo") >&5
20869   (eval "$ac_link") 2>conftest.er1
20870   ac_status=$?
20871   grep -v '^ *+' conftest.er1 >conftest.err
20872   rm -f conftest.er1
20873   cat conftest.err >&5
20874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); } && {
20876          test -z "$ac_c_werror_flag" ||
20877          test ! -s conftest.err
20878        } && test -s conftest$ac_exeext && {
20879          test "$cross_compiling" = yes ||
20880          $as_test_x conftest$ac_exeext
20881        }; then
20882   ac_cv_type_unsigned_long_long=yes
20883 else
20884   $as_echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887         ac_cv_type_unsigned_long_long=no
20888 fi
20889
20890 rm -rf conftest.dSYM
20891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20892       conftest$ac_exeext conftest.$ac_ext
20893 fi
20894 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20895 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20896   if test $ac_cv_type_unsigned_long_long = yes; then
20897
20898 cat >>confdefs.h <<\_ACEOF
20899 #define HAVE_UNSIGNED_LONG_LONG 1
20900 _ACEOF
20901
20902   fi
20903
20904
20905
20906
20907   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20908
20909     test $ac_cv_type_unsigned_long_long = yes \
20910       && ac_type='unsigned long long' \
20911       || ac_type='unsigned long'
20912
20913 cat >>confdefs.h <<_ACEOF
20914 #define uintmax_t $ac_type
20915 _ACEOF
20916
20917   else
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_UINTMAX_T 1
20921 _ACEOF
20922
20923   fi
20924
20925
20926   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20927 $as_echo_n "checking for inttypes.h... " >&6; }
20928 if test "${gt_cv_header_inttypes_h+set}" = set; then
20929   $as_echo_n "(cached) " >&6
20930 else
20931
20932     cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 #include <sys/types.h>
20939 #include <inttypes.h>
20940 int
20941 main ()
20942 {
20943
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   gt_cv_header_inttypes_h=yes
20967 else
20968   $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         gt_cv_header_inttypes_h=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975
20976 fi
20977 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20978 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20979   if test $gt_cv_header_inttypes_h = yes; then
20980
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_INTTYPES_H 1
20983 _ACEOF
20984
20985   fi
20986
20987
20988
20989   if test $gt_cv_header_inttypes_h = yes; then
20990     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20991 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20992 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20993   $as_echo_n "(cached) " >&6
20994 else
20995
20996         cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include <inttypes.h>
21003 #ifdef PRId32
21004 char *p = PRId32;
21005 #endif
21006
21007 int
21008 main ()
21009 {
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (ac_try="$ac_compile"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023   (eval "$ac_compile") 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && {
21030          test -z "$ac_c_werror_flag" ||
21031          test ! -s conftest.err
21032        } && test -s conftest.$ac_objext; then
21033   gt_cv_inttypes_pri_broken=no
21034 else
21035   $as_echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038         gt_cv_inttypes_pri_broken=yes
21039 fi
21040
21041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21042
21043 fi
21044 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21045 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21046   fi
21047   if test "$gt_cv_inttypes_pri_broken" = yes; then
21048
21049 cat >>confdefs.h <<_ACEOF
21050 #define PRI_MACROS_BROKEN 1
21051 _ACEOF
21052
21053   fi
21054
21055
21056
21057 for ac_header in stdint.h
21058 do
21059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21061   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21062 $as_echo_n "checking for $ac_header... " >&6; }
21063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064   $as_echo_n "(cached) " >&6
21065 fi
21066 ac_res=`eval 'as_val=${'$as_ac_Header'}
21067                  $as_echo "$as_val"'`
21068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21069 $as_echo "$ac_res" >&6; }
21070 else
21071   # Is the header compilable?
21072 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21073 $as_echo_n "checking $ac_header usability... " >&6; }
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081 #include <$ac_header>
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21090 $as_echo "$ac_try_echo") >&5
21091   (eval "$ac_compile") 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && {
21098          test -z "$ac_c_werror_flag" ||
21099          test ! -s conftest.err
21100        } && test -s conftest.$ac_objext; then
21101   ac_header_compiler=yes
21102 else
21103   $as_echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_header_compiler=no
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21111 $as_echo "$ac_header_compiler" >&6; }
21112
21113 # Is the header present?
21114 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21115 $as_echo_n "checking $ac_header presence... " >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 #include <$ac_header>
21123 _ACEOF
21124 if { (ac_try="$ac_cpp conftest.$ac_ext"
21125 case "(($ac_try" in
21126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127   *) ac_try_echo=$ac_try;;
21128 esac
21129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21130 $as_echo "$ac_try_echo") >&5
21131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } >/dev/null && {
21138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21139          test ! -s conftest.err
21140        }; then
21141   ac_header_preproc=yes
21142 else
21143   $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146   ac_header_preproc=no
21147 fi
21148
21149 rm -f conftest.err conftest.$ac_ext
21150 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21151 $as_echo "$ac_header_preproc" >&6; }
21152
21153 # So?  What about this header?
21154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21155   yes:no: )
21156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21157 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21160     ac_header_preproc=yes
21161     ;;
21162   no:yes:* )
21163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21164 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21166 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21168 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21170 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21174 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21175
21176     ;;
21177 esac
21178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21179 $as_echo_n "checking for $ac_header... " >&6; }
21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21181   $as_echo_n "(cached) " >&6
21182 else
21183   eval "$as_ac_Header=\$ac_header_preproc"
21184 fi
21185 ac_res=`eval 'as_val=${'$as_ac_Header'}
21186                  $as_echo "$as_val"'`
21187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21188 $as_echo "$ac_res" >&6; }
21189
21190 fi
21191 as_val=`eval 'as_val=${'$as_ac_Header'}
21192                  $as_echo "$as_val"'`
21193    if test "x$as_val" = x""yes; then
21194   cat >>confdefs.h <<_ACEOF
21195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21196 _ACEOF
21197
21198 fi
21199
21200 done
21201
21202     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21203 $as_echo_n "checking for SIZE_MAX... " >&6; }
21204   result=
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 #include <limits.h>
21213 #if HAVE_STDINT_H
21214 #include <stdint.h>
21215 #endif
21216 #ifdef SIZE_MAX
21217 Found it
21218 #endif
21219
21220 _ACEOF
21221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21222   $EGREP "Found it" >/dev/null 2>&1; then
21223   result=yes
21224 fi
21225 rm -f conftest*
21226
21227   if test -z "$result"; then
21228                     if test "$cross_compiling" = yes; then
21229   # Depending upon the size, compute the lo and hi bounds.
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 #include <stddef.h>
21237 int
21238 main ()
21239 {
21240 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21241 test_array [0] = 0
21242
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21254 $as_echo "$ac_try_echo") >&5
21255   (eval "$ac_compile") 2>conftest.er1
21256   ac_status=$?
21257   grep -v '^ *+' conftest.er1 >conftest.err
21258   rm -f conftest.er1
21259   cat conftest.err >&5
21260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); } && {
21262          test -z "$ac_c_werror_flag" ||
21263          test ! -s conftest.err
21264        } && test -s conftest.$ac_objext; then
21265   ac_lo=0 ac_mid=0
21266   while :; do
21267     cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 #include <stddef.h>
21274 int
21275 main ()
21276 {
21277 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21278 test_array [0] = 0
21279
21280   ;
21281   return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288   *) ac_try_echo=$ac_try;;
21289 esac
21290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291 $as_echo "$ac_try_echo") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ac_hi=$ac_mid; break
21303 else
21304   $as_echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ac_lo=`expr $ac_mid + 1`
21308                         if test $ac_lo -le $ac_mid; then
21309                           ac_lo= ac_hi=
21310                           break
21311                         fi
21312                         ac_mid=`expr 2 '*' $ac_mid + 1`
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316   done
21317 else
21318   $as_echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h.  */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h.  */
21327 #include <stddef.h>
21328 int
21329 main ()
21330 {
21331 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21332 test_array [0] = 0
21333
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 rm -f conftest.$ac_objext
21339 if { (ac_try="$ac_compile"
21340 case "(($ac_try" in
21341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342   *) ac_try_echo=$ac_try;;
21343 esac
21344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21345 $as_echo "$ac_try_echo") >&5
21346   (eval "$ac_compile") 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } && {
21353          test -z "$ac_c_werror_flag" ||
21354          test ! -s conftest.err
21355        } && test -s conftest.$ac_objext; then
21356   ac_hi=-1 ac_mid=-1
21357   while :; do
21358     cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364 #include <stddef.h>
21365 int
21366 main ()
21367 {
21368 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21369 test_array [0] = 0
21370
21371   ;
21372   return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext
21376 if { (ac_try="$ac_compile"
21377 case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21382 $as_echo "$ac_try_echo") >&5
21383   (eval "$ac_compile") 2>conftest.er1
21384   ac_status=$?
21385   grep -v '^ *+' conftest.er1 >conftest.err
21386   rm -f conftest.er1
21387   cat conftest.err >&5
21388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); } && {
21390          test -z "$ac_c_werror_flag" ||
21391          test ! -s conftest.err
21392        } && test -s conftest.$ac_objext; then
21393   ac_lo=$ac_mid; break
21394 else
21395   $as_echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398         ac_hi=`expr '(' $ac_mid ')' - 1`
21399                         if test $ac_mid -le $ac_hi; then
21400                           ac_lo= ac_hi=
21401                           break
21402                         fi
21403                         ac_mid=`expr 2 '*' $ac_mid`
21404 fi
21405
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407   done
21408 else
21409   $as_echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21411
21412         ac_lo= ac_hi=
21413 fi
21414
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 fi
21417
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 # Binary search between lo and hi bounds.
21420 while test "x$ac_lo" != "x$ac_hi"; do
21421   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 #include <stddef.h>
21429 int
21430 main ()
21431 {
21432 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21433 test_array [0] = 0
21434
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21446 $as_echo "$ac_try_echo") >&5
21447   (eval "$ac_compile") 2>conftest.er1
21448   ac_status=$?
21449   grep -v '^ *+' conftest.er1 >conftest.err
21450   rm -f conftest.er1
21451   cat conftest.err >&5
21452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); } && {
21454          test -z "$ac_c_werror_flag" ||
21455          test ! -s conftest.err
21456        } && test -s conftest.$ac_objext; then
21457   ac_hi=$ac_mid
21458 else
21459   $as_echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462         ac_lo=`expr '(' $ac_mid ')' + 1`
21463 fi
21464
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466 done
21467 case $ac_lo in
21468 ?*) res_hi=$ac_lo;;
21469 '') result=? ;;
21470 esac
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 #include <stddef.h>
21479 static long int longval () { return ~(size_t)0 / 10; }
21480 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21481 #include <stdio.h>
21482 #include <stdlib.h>
21483 int
21484 main ()
21485 {
21486
21487   FILE *f = fopen ("conftest.val", "w");
21488   if (! f)
21489     return 1;
21490   if ((~(size_t)0 / 10) < 0)
21491     {
21492       long int i = longval ();
21493       if (i != (~(size_t)0 / 10))
21494         return 1;
21495       fprintf (f, "%ld", i);
21496     }
21497   else
21498     {
21499       unsigned long int i = ulongval ();
21500       if (i != (~(size_t)0 / 10))
21501         return 1;
21502       fprintf (f, "%lu", i);
21503     }
21504   /* Do not output a trailing newline, as this causes \r\n confusion
21505      on some platforms.  */
21506   return ferror (f) || fclose (f) != 0;
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21519 $as_echo "$ac_try_echo") >&5
21520   (eval "$ac_link") 2>&5
21521   ac_status=$?
21522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21524   { (case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530   (eval "$ac_try") 2>&5
21531   ac_status=$?
21532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); }; }; then
21534   res_hi=`cat conftest.val`
21535 else
21536   $as_echo "$as_me: program exited with status $ac_status" >&5
21537 $as_echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ( exit $ac_status )
21541 result=?
21542 fi
21543 rm -rf conftest.dSYM
21544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21545 fi
21546 rm -f conftest.val
21547
21548     if test "$cross_compiling" = yes; then
21549   # Depending upon the size, compute the lo and hi bounds.
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556 #include <stddef.h>
21557 int
21558 main ()
21559 {
21560 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21561 test_array [0] = 0
21562
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574 $as_echo "$ac_try_echo") >&5
21575   (eval "$ac_compile") 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } && {
21582          test -z "$ac_c_werror_flag" ||
21583          test ! -s conftest.err
21584        } && test -s conftest.$ac_objext; then
21585   ac_lo=0 ac_mid=0
21586   while :; do
21587     cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 #include <stddef.h>
21594 int
21595 main ()
21596 {
21597 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21598 test_array [0] = 0
21599
21600   ;
21601   return 0;
21602 }
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608   *) ac_try_echo=$ac_try;;
21609 esac
21610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611 $as_echo "$ac_try_echo") >&5
21612   (eval "$ac_compile") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } && {
21619          test -z "$ac_c_werror_flag" ||
21620          test ! -s conftest.err
21621        } && test -s conftest.$ac_objext; then
21622   ac_hi=$ac_mid; break
21623 else
21624   $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627         ac_lo=`expr $ac_mid + 1`
21628                         if test $ac_lo -le $ac_mid; then
21629                           ac_lo= ac_hi=
21630                           break
21631                         fi
21632                         ac_mid=`expr 2 '*' $ac_mid + 1`
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636   done
21637 else
21638   $as_echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641         cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <stddef.h>
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21652 test_array [0] = 0
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21665 $as_echo "$ac_try_echo") >&5
21666   (eval "$ac_compile") 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && {
21673          test -z "$ac_c_werror_flag" ||
21674          test ! -s conftest.err
21675        } && test -s conftest.$ac_objext; then
21676   ac_hi=-1 ac_mid=-1
21677   while :; do
21678     cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 #include <stddef.h>
21685 int
21686 main ()
21687 {
21688 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21689 test_array [0] = 0
21690
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21702 $as_echo "$ac_try_echo") >&5
21703   (eval "$ac_compile") 2>conftest.er1
21704   ac_status=$?
21705   grep -v '^ *+' conftest.er1 >conftest.err
21706   rm -f conftest.er1
21707   cat conftest.err >&5
21708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); } && {
21710          test -z "$ac_c_werror_flag" ||
21711          test ! -s conftest.err
21712        } && test -s conftest.$ac_objext; then
21713   ac_lo=$ac_mid; break
21714 else
21715   $as_echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718         ac_hi=`expr '(' $ac_mid ')' - 1`
21719                         if test $ac_mid -le $ac_hi; then
21720                           ac_lo= ac_hi=
21721                           break
21722                         fi
21723                         ac_mid=`expr 2 '*' $ac_mid`
21724 fi
21725
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727   done
21728 else
21729   $as_echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732         ac_lo= ac_hi=
21733 fi
21734
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 fi
21737
21738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21739 # Binary search between lo and hi bounds.
21740 while test "x$ac_lo" != "x$ac_hi"; do
21741   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21742   cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748 #include <stddef.h>
21749 int
21750 main ()
21751 {
21752 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21753 test_array [0] = 0
21754
21755   ;
21756   return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767   (eval "$ac_compile") 2>conftest.er1
21768   ac_status=$?
21769   grep -v '^ *+' conftest.er1 >conftest.err
21770   rm -f conftest.er1
21771   cat conftest.err >&5
21772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); } && {
21774          test -z "$ac_c_werror_flag" ||
21775          test ! -s conftest.err
21776        } && test -s conftest.$ac_objext; then
21777   ac_hi=$ac_mid
21778 else
21779   $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         ac_lo=`expr '(' $ac_mid ')' + 1`
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 done
21787 case $ac_lo in
21788 ?*) res_lo=$ac_lo;;
21789 '') result=? ;;
21790 esac
21791 else
21792   cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 #include <stddef.h>
21799 static long int longval () { return ~(size_t)0 % 10; }
21800 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21801 #include <stdio.h>
21802 #include <stdlib.h>
21803 int
21804 main ()
21805 {
21806
21807   FILE *f = fopen ("conftest.val", "w");
21808   if (! f)
21809     return 1;
21810   if ((~(size_t)0 % 10) < 0)
21811     {
21812       long int i = longval ();
21813       if (i != (~(size_t)0 % 10))
21814         return 1;
21815       fprintf (f, "%ld", i);
21816     }
21817   else
21818     {
21819       unsigned long int i = ulongval ();
21820       if (i != (~(size_t)0 % 10))
21821         return 1;
21822       fprintf (f, "%lu", i);
21823     }
21824   /* Do not output a trailing newline, as this causes \r\n confusion
21825      on some platforms.  */
21826   return ferror (f) || fclose (f) != 0;
21827
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest$ac_exeext
21833 if { (ac_try="$ac_link"
21834 case "(($ac_try" in
21835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836   *) ac_try_echo=$ac_try;;
21837 esac
21838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840   (eval "$ac_link") 2>&5
21841   ac_status=$?
21842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844   { (case "(($ac_try" in
21845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846   *) ac_try_echo=$ac_try;;
21847 esac
21848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21849 $as_echo "$ac_try_echo") >&5
21850   (eval "$ac_try") 2>&5
21851   ac_status=$?
21852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; }; then
21854   res_lo=`cat conftest.val`
21855 else
21856   $as_echo "$as_me: program exited with status $ac_status" >&5
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860 ( exit $ac_status )
21861 result=?
21862 fi
21863 rm -rf conftest.dSYM
21864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 fi
21866 rm -f conftest.val
21867
21868     if test "$cross_compiling" = yes; then
21869   # Depending upon the size, compute the lo and hi bounds.
21870 cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876 #include <stddef.h>
21877 int
21878 main ()
21879 {
21880 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21881 test_array [0] = 0
21882
21883   ;
21884   return 0;
21885 }
21886 _ACEOF
21887 rm -f conftest.$ac_objext
21888 if { (ac_try="$ac_compile"
21889 case "(($ac_try" in
21890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891   *) ac_try_echo=$ac_try;;
21892 esac
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
21895   (eval "$ac_compile") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } && {
21902          test -z "$ac_c_werror_flag" ||
21903          test ! -s conftest.err
21904        } && test -s conftest.$ac_objext; then
21905   ac_lo=0 ac_mid=0
21906   while :; do
21907     cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 #include <stddef.h>
21914 int
21915 main ()
21916 {
21917 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21918 test_array [0] = 0
21919
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932   (eval "$ac_compile") 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } && {
21939          test -z "$ac_c_werror_flag" ||
21940          test ! -s conftest.err
21941        } && test -s conftest.$ac_objext; then
21942   ac_hi=$ac_mid; break
21943 else
21944   $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21946
21947         ac_lo=`expr $ac_mid + 1`
21948                         if test $ac_lo -le $ac_mid; then
21949                           ac_lo= ac_hi=
21950                           break
21951                         fi
21952                         ac_mid=`expr 2 '*' $ac_mid + 1`
21953 fi
21954
21955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956   done
21957 else
21958   $as_echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961         cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 #include <stddef.h>
21968 int
21969 main ()
21970 {
21971 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21972 test_array [0] = 0
21973
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 rm -f conftest.$ac_objext
21979 if { (ac_try="$ac_compile"
21980 case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21985 $as_echo "$ac_try_echo") >&5
21986   (eval "$ac_compile") 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && {
21993          test -z "$ac_c_werror_flag" ||
21994          test ! -s conftest.err
21995        } && test -s conftest.$ac_objext; then
21996   ac_hi=-1 ac_mid=-1
21997   while :; do
21998     cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 #include <stddef.h>
22005 int
22006 main ()
22007 {
22008 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22009 test_array [0] = 0
22010
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 rm -f conftest.$ac_objext
22016 if { (ac_try="$ac_compile"
22017 case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22022 $as_echo "$ac_try_echo") >&5
22023   (eval "$ac_compile") 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } && {
22030          test -z "$ac_c_werror_flag" ||
22031          test ! -s conftest.err
22032        } && test -s conftest.$ac_objext; then
22033   ac_lo=$ac_mid; break
22034 else
22035   $as_echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038         ac_hi=`expr '(' $ac_mid ')' - 1`
22039                         if test $ac_mid -le $ac_hi; then
22040                           ac_lo= ac_hi=
22041                           break
22042                         fi
22043                         ac_mid=`expr 2 '*' $ac_mid`
22044 fi
22045
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047   done
22048 else
22049   $as_echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052         ac_lo= ac_hi=
22053 fi
22054
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 fi
22057
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 # Binary search between lo and hi bounds.
22060 while test "x$ac_lo" != "x$ac_hi"; do
22061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22062   cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068 #include <stddef.h>
22069 int
22070 main ()
22071 {
22072 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22073 test_array [0] = 0
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083   *) ac_try_echo=$ac_try;;
22084 esac
22085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22086 $as_echo "$ac_try_echo") >&5
22087   (eval "$ac_compile") 2>conftest.er1
22088   ac_status=$?
22089   grep -v '^ *+' conftest.er1 >conftest.err
22090   rm -f conftest.er1
22091   cat conftest.err >&5
22092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); } && {
22094          test -z "$ac_c_werror_flag" ||
22095          test ! -s conftest.err
22096        } && test -s conftest.$ac_objext; then
22097   ac_hi=$ac_mid
22098 else
22099   $as_echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102         ac_lo=`expr '(' $ac_mid ')' + 1`
22103 fi
22104
22105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 done
22107 case $ac_lo in
22108 ?*) fits_in_uint=$ac_lo;;
22109 '') result=? ;;
22110 esac
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 #include <stddef.h>
22119 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22120 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22121 #include <stdio.h>
22122 #include <stdlib.h>
22123 int
22124 main ()
22125 {
22126
22127   FILE *f = fopen ("conftest.val", "w");
22128   if (! f)
22129     return 1;
22130   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22131     {
22132       long int i = longval ();
22133       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22134         return 1;
22135       fprintf (f, "%ld", i);
22136     }
22137   else
22138     {
22139       unsigned long int i = ulongval ();
22140       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22141         return 1;
22142       fprintf (f, "%lu", i);
22143     }
22144   /* Do not output a trailing newline, as this causes \r\n confusion
22145      on some platforms.  */
22146   return ferror (f) || fclose (f) != 0;
22147
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest$ac_exeext
22153 if { (ac_try="$ac_link"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22159 $as_echo "$ac_try_echo") >&5
22160   (eval "$ac_link") 2>&5
22161   ac_status=$?
22162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22164   { (case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22169 $as_echo "$ac_try_echo") >&5
22170   (eval "$ac_try") 2>&5
22171   ac_status=$?
22172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; }; then
22174   fits_in_uint=`cat conftest.val`
22175 else
22176   $as_echo "$as_me: program exited with status $ac_status" >&5
22177 $as_echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ( exit $ac_status )
22181 result=?
22182 fi
22183 rm -rf conftest.dSYM
22184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 rm -f conftest.val
22187
22188     if test "$fits_in_uint" = 1; then
22189                   cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195 #include <stddef.h>
22196         extern size_t foo;
22197         extern unsigned long foo;
22198
22199 int
22200 main ()
22201 {
22202
22203   ;
22204   return 0;
22205 }
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22214 $as_echo "$ac_try_echo") >&5
22215   (eval "$ac_compile") 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } && {
22222          test -z "$ac_c_werror_flag" ||
22223          test ! -s conftest.err
22224        } && test -s conftest.$ac_objext; then
22225   fits_in_uint=0
22226 else
22227   $as_echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230
22231 fi
22232
22233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234     fi
22235     if test -z "$result"; then
22236       if test "$fits_in_uint" = 1; then
22237         result="$res_hi$res_lo"U
22238       else
22239         result="$res_hi$res_lo"UL
22240       fi
22241     else
22242             result='~(size_t)0'
22243     fi
22244   fi
22245   { $as_echo "$as_me:$LINENO: result: $result" >&5
22246 $as_echo "$result" >&6; }
22247   if test "$result" != yes; then
22248
22249 cat >>confdefs.h <<_ACEOF
22250 #define SIZE_MAX $result
22251 _ACEOF
22252
22253   fi
22254
22255
22256
22257
22258
22259 for ac_header in stdint.h
22260 do
22261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22263   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22264 $as_echo_n "checking for $ac_header... " >&6; }
22265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22266   $as_echo_n "(cached) " >&6
22267 fi
22268 ac_res=`eval 'as_val=${'$as_ac_Header'}
22269                  $as_echo "$as_val"'`
22270                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22271 $as_echo "$ac_res" >&6; }
22272 else
22273   # Is the header compilable?
22274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22275 $as_echo_n "checking $ac_header usability... " >&6; }
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 $ac_includes_default
22283 #include <$ac_header>
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289   *) ac_try_echo=$ac_try;;
22290 esac
22291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22292 $as_echo "$ac_try_echo") >&5
22293   (eval "$ac_compile") 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && {
22300          test -z "$ac_c_werror_flag" ||
22301          test ! -s conftest.err
22302        } && test -s conftest.$ac_objext; then
22303   ac_header_compiler=yes
22304 else
22305   $as_echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308         ac_header_compiler=no
22309 fi
22310
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22313 $as_echo "$ac_header_compiler" >&6; }
22314
22315 # Is the header present?
22316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22317 $as_echo_n "checking $ac_header presence... " >&6; }
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <$ac_header>
22325 _ACEOF
22326 if { (ac_try="$ac_cpp conftest.$ac_ext"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22332 $as_echo "$ac_try_echo") >&5
22333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22334   ac_status=$?
22335   grep -v '^ *+' conftest.er1 >conftest.err
22336   rm -f conftest.er1
22337   cat conftest.err >&5
22338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } >/dev/null && {
22340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22341          test ! -s conftest.err
22342        }; then
22343   ac_header_preproc=yes
22344 else
22345   $as_echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348   ac_header_preproc=no
22349 fi
22350
22351 rm -f conftest.err conftest.$ac_ext
22352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22353 $as_echo "$ac_header_preproc" >&6; }
22354
22355 # So?  What about this header?
22356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22357   yes:no: )
22358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22362     ac_header_preproc=yes
22363     ;;
22364   no:yes:* )
22365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22368 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22372 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22377
22378     ;;
22379 esac
22380 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22381 $as_echo_n "checking for $ac_header... " >&6; }
22382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22383   $as_echo_n "(cached) " >&6
22384 else
22385   eval "$as_ac_Header=\$ac_header_preproc"
22386 fi
22387 ac_res=`eval 'as_val=${'$as_ac_Header'}
22388                  $as_echo "$as_val"'`
22389                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22390 $as_echo "$ac_res" >&6; }
22391
22392 fi
22393 as_val=`eval 'as_val=${'$as_ac_Header'}
22394                  $as_echo "$as_val"'`
22395    if test "x$as_val" = x""yes; then
22396   cat >>confdefs.h <<_ACEOF
22397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22398 _ACEOF
22399
22400 fi
22401
22402 done
22403
22404
22405
22406
22407
22408
22409
22410
22411   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22412 $as_echo_n "checking for ptrdiff_t... " >&6; }
22413 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22414   $as_echo_n "(cached) " >&6
22415 else
22416   ac_cv_type_ptrdiff_t=no
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423 $ac_includes_default
22424 int
22425 main ()
22426 {
22427 if (sizeof (ptrdiff_t))
22428        return 0;
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (ac_try="$ac_compile"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441   (eval "$ac_compile") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } && {
22448          test -z "$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        } && test -s conftest.$ac_objext; then
22451   cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 $ac_includes_default
22458 int
22459 main ()
22460 {
22461 if (sizeof ((ptrdiff_t)))
22462           return 0;
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475   (eval "$ac_compile") 2>conftest.er1
22476   ac_status=$?
22477   grep -v '^ *+' conftest.er1 >conftest.err
22478   rm -f conftest.er1
22479   cat conftest.err >&5
22480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && {
22482          test -z "$ac_c_werror_flag" ||
22483          test ! -s conftest.err
22484        } && test -s conftest.$ac_objext; then
22485   :
22486 else
22487   $as_echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490         ac_cv_type_ptrdiff_t=yes
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 else
22495   $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498
22499 fi
22500
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22504 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22505 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22506   :
22507 else
22508
22509 cat >>confdefs.h <<\_ACEOF
22510 #define ptrdiff_t long
22511 _ACEOF
22512
22513
22514 fi
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22527 stdlib.h string.h unistd.h sys/param.h
22528 do
22529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22531   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22532 $as_echo_n "checking for $ac_header... " >&6; }
22533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22534   $as_echo_n "(cached) " >&6
22535 fi
22536 ac_res=`eval 'as_val=${'$as_ac_Header'}
22537                  $as_echo "$as_val"'`
22538                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22539 $as_echo "$ac_res" >&6; }
22540 else
22541   # Is the header compilable?
22542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22543 $as_echo_n "checking $ac_header usability... " >&6; }
22544 cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h.  */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h.  */
22550 $ac_includes_default
22551 #include <$ac_header>
22552 _ACEOF
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557   *) ac_try_echo=$ac_try;;
22558 esac
22559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22560 $as_echo "$ac_try_echo") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_header_compiler=yes
22572 else
22573   $as_echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_header_compiler=no
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22581 $as_echo "$ac_header_compiler" >&6; }
22582
22583 # Is the header present?
22584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22585 $as_echo_n "checking $ac_header presence... " >&6; }
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592 #include <$ac_header>
22593 _ACEOF
22594 if { (ac_try="$ac_cpp conftest.$ac_ext"
22595 case "(($ac_try" in
22596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597   *) ac_try_echo=$ac_try;;
22598 esac
22599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22602   ac_status=$?
22603   grep -v '^ *+' conftest.er1 >conftest.err
22604   rm -f conftest.er1
22605   cat conftest.err >&5
22606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); } >/dev/null && {
22608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22609          test ! -s conftest.err
22610        }; then
22611   ac_header_preproc=yes
22612 else
22613   $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616   ac_header_preproc=no
22617 fi
22618
22619 rm -f conftest.err conftest.$ac_ext
22620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22621 $as_echo "$ac_header_preproc" >&6; }
22622
22623 # So?  What about this header?
22624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22625   yes:no: )
22626     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22630     ac_header_preproc=yes
22631     ;;
22632   no:yes:* )
22633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22636 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22640 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22645
22646     ;;
22647 esac
22648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22649 $as_echo_n "checking for $ac_header... " >&6; }
22650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22651   $as_echo_n "(cached) " >&6
22652 else
22653   eval "$as_ac_Header=\$ac_header_preproc"
22654 fi
22655 ac_res=`eval 'as_val=${'$as_ac_Header'}
22656                  $as_echo "$as_val"'`
22657                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22658 $as_echo "$ac_res" >&6; }
22659
22660 fi
22661 as_val=`eval 'as_val=${'$as_ac_Header'}
22662                  $as_echo "$as_val"'`
22663    if test "x$as_val" = x""yes; then
22664   cat >>confdefs.h <<_ACEOF
22665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22666 _ACEOF
22667
22668 fi
22669
22670 done
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22696 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22697 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22698 __fsetlocking
22699 do
22700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22701 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22702 $as_echo_n "checking for $ac_func... " >&6; }
22703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22704   $as_echo_n "(cached) " >&6
22705 else
22706   cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22714 #define $ac_func innocuous_$ac_func
22715
22716 /* System header to define __stub macros and hopefully few prototypes,
22717     which can conflict with char $ac_func (); below.
22718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22719     <limits.h> exists even on freestanding compilers.  */
22720
22721 #ifdef __STDC__
22722 # include <limits.h>
22723 #else
22724 # include <assert.h>
22725 #endif
22726
22727 #undef $ac_func
22728
22729 /* Override any GCC internal prototype to avoid an error.
22730    Use char because int might match the return type of a GCC
22731    builtin and then its argument prototype would still apply.  */
22732 #ifdef __cplusplus
22733 extern "C"
22734 #endif
22735 char $ac_func ();
22736 /* The GNU C library defines this for functions which it implements
22737     to always fail with ENOSYS.  Some functions are actually named
22738     something starting with __ and the normal name is an alias.  */
22739 #if defined __stub_$ac_func || defined __stub___$ac_func
22740 choke me
22741 #endif
22742
22743 int
22744 main ()
22745 {
22746 return $ac_func ();
22747   ;
22748   return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755   *) ac_try_echo=$ac_try;;
22756 esac
22757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22758 $as_echo "$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   $as_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          test "$cross_compiling" = yes ||
22770          $as_test_x conftest$ac_exeext
22771        }; then
22772   eval "$as_ac_var=yes"
22773 else
22774   $as_echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22776
22777         eval "$as_ac_var=no"
22778 fi
22779
22780 rm -rf conftest.dSYM
22781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22782       conftest$ac_exeext conftest.$ac_ext
22783 fi
22784 ac_res=`eval 'as_val=${'$as_ac_var'}
22785                  $as_echo "$as_val"'`
22786                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22787 $as_echo "$ac_res" >&6; }
22788 as_val=`eval 'as_val=${'$as_ac_var'}
22789                  $as_echo "$as_val"'`
22790    if test "x$as_val" = x""yes; then
22791   cat >>confdefs.h <<_ACEOF
22792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22793 _ACEOF
22794
22795 fi
22796 done
22797
22798
22799
22800   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22801 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22802 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22803   $as_echo_n "(cached) " >&6
22804 else
22805   cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811 #include <stdio.h>
22812 int
22813 main ()
22814 {
22815
22816 #ifndef _snprintf
22817   char *p = (char *) _snprintf;
22818 #endif
22819
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828   *) ac_try_echo=$ac_try;;
22829 esac
22830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22831 $as_echo "$ac_try_echo") >&5
22832   (eval "$ac_compile") 2>conftest.er1
22833   ac_status=$?
22834   grep -v '^ *+' conftest.er1 >conftest.err
22835   rm -f conftest.er1
22836   cat conftest.err >&5
22837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } && {
22839          test -z "$ac_c_werror_flag" ||
22840          test ! -s conftest.err
22841        } && test -s conftest.$ac_objext; then
22842   ac_cv_have_decl__snprintf=yes
22843 else
22844   $as_echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22846
22847         ac_cv_have_decl__snprintf=no
22848 fi
22849
22850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 fi
22852 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22853 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22854   if test $ac_cv_have_decl__snprintf = yes; then
22855     gt_value=1
22856   else
22857     gt_value=0
22858   fi
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_DECL__SNPRINTF $gt_value
22862 _ACEOF
22863
22864
22865
22866   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22867 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22868 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22869   $as_echo_n "(cached) " >&6
22870 else
22871   cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 #include <stdio.h>
22878 int
22879 main ()
22880 {
22881
22882 #ifndef _snwprintf
22883   char *p = (char *) _snwprintf;
22884 #endif
22885
22886   ;
22887   return 0;
22888 }
22889 _ACEOF
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22897 $as_echo "$ac_try_echo") >&5
22898   (eval "$ac_compile") 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && {
22905          test -z "$ac_c_werror_flag" ||
22906          test ! -s conftest.err
22907        } && test -s conftest.$ac_objext; then
22908   ac_cv_have_decl__snwprintf=yes
22909 else
22910   $as_echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913         ac_cv_have_decl__snwprintf=no
22914 fi
22915
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 fi
22918 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22919 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22920   if test $ac_cv_have_decl__snwprintf = yes; then
22921     gt_value=1
22922   else
22923     gt_value=0
22924   fi
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_DECL__SNWPRINTF $gt_value
22928 _ACEOF
22929
22930
22931
22932
22933   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22934 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22935 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22936   $as_echo_n "(cached) " >&6
22937 else
22938   cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944 #include <stdio.h>
22945 int
22946 main ()
22947 {
22948
22949 #ifndef feof_unlocked
22950   char *p = (char *) feof_unlocked;
22951 #endif
22952
22953   ;
22954   return 0;
22955 }
22956 _ACEOF
22957 rm -f conftest.$ac_objext
22958 if { (ac_try="$ac_compile"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22964 $as_echo "$ac_try_echo") >&5
22965   (eval "$ac_compile") 2>conftest.er1
22966   ac_status=$?
22967   grep -v '^ *+' conftest.er1 >conftest.err
22968   rm -f conftest.er1
22969   cat conftest.err >&5
22970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); } && {
22972          test -z "$ac_c_werror_flag" ||
22973          test ! -s conftest.err
22974        } && test -s conftest.$ac_objext; then
22975   ac_cv_have_decl_feof_unlocked=yes
22976 else
22977   $as_echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22979
22980         ac_cv_have_decl_feof_unlocked=no
22981 fi
22982
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 fi
22985 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22986 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22987   if test $ac_cv_have_decl_feof_unlocked = yes; then
22988     gt_value=1
22989   else
22990     gt_value=0
22991   fi
22992
22993 cat >>confdefs.h <<_ACEOF
22994 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22995 _ACEOF
22996
22997
22998
22999   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23000 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23001 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23002   $as_echo_n "(cached) " >&6
23003 else
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 #include <stdio.h>
23011 int
23012 main ()
23013 {
23014
23015 #ifndef fgets_unlocked
23016   char *p = (char *) fgets_unlocked;
23017 #endif
23018
23019   ;
23020   return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext
23024 if { (ac_try="$ac_compile"
23025 case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23030 $as_echo "$ac_try_echo") >&5
23031   (eval "$ac_compile") 2>conftest.er1
23032   ac_status=$?
23033   grep -v '^ *+' conftest.er1 >conftest.err
23034   rm -f conftest.er1
23035   cat conftest.err >&5
23036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } && {
23038          test -z "$ac_c_werror_flag" ||
23039          test ! -s conftest.err
23040        } && test -s conftest.$ac_objext; then
23041   ac_cv_have_decl_fgets_unlocked=yes
23042 else
23043   $as_echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046         ac_cv_have_decl_fgets_unlocked=no
23047 fi
23048
23049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23050 fi
23051 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23052 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23053   if test $ac_cv_have_decl_fgets_unlocked = yes; then
23054     gt_value=1
23055   else
23056     gt_value=0
23057   fi
23058
23059 cat >>confdefs.h <<_ACEOF
23060 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23061 _ACEOF
23062
23063
23064
23065   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23066 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23067 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23068   $as_echo_n "(cached) " >&6
23069 else
23070   cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076 #include <stdio.h>
23077 int
23078 main ()
23079 {
23080
23081 #ifndef getc_unlocked
23082   char *p = (char *) getc_unlocked;
23083 #endif
23084
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest.$ac_objext
23090 if { (ac_try="$ac_compile"
23091 case "(($ac_try" in
23092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23093   *) ac_try_echo=$ac_try;;
23094 esac
23095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23096 $as_echo "$ac_try_echo") >&5
23097   (eval "$ac_compile") 2>conftest.er1
23098   ac_status=$?
23099   grep -v '^ *+' conftest.er1 >conftest.err
23100   rm -f conftest.er1
23101   cat conftest.err >&5
23102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); } && {
23104          test -z "$ac_c_werror_flag" ||
23105          test ! -s conftest.err
23106        } && test -s conftest.$ac_objext; then
23107   ac_cv_have_decl_getc_unlocked=yes
23108 else
23109   $as_echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112         ac_cv_have_decl_getc_unlocked=no
23113 fi
23114
23115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116 fi
23117 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23118 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23119   if test $ac_cv_have_decl_getc_unlocked = yes; then
23120     gt_value=1
23121   else
23122     gt_value=0
23123   fi
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23127 _ACEOF
23128
23129
23130
23131   case $gt_cv_func_printf_posix in
23132     *yes) HAVE_POSIX_PRINTF=1 ;;
23133     *) HAVE_POSIX_PRINTF=0 ;;
23134   esac
23135
23136   if test "$ac_cv_func_asprintf" = yes; then
23137     HAVE_ASPRINTF=1
23138   else
23139     HAVE_ASPRINTF=0
23140   fi
23141
23142   if test "$ac_cv_func_snprintf" = yes; then
23143     HAVE_SNPRINTF=1
23144   else
23145     HAVE_SNPRINTF=0
23146   fi
23147
23148   if test "$ac_cv_func_wprintf" = yes; then
23149     HAVE_WPRINTF=1
23150   else
23151     HAVE_WPRINTF=0
23152   fi
23153
23154
23155
23156
23157
23158
23159
23160           am_save_CPPFLAGS="$CPPFLAGS"
23161
23162   for element in $INCICONV; do
23163     haveit=
23164     for x in $CPPFLAGS; do
23165
23166   acl_save_prefix="$prefix"
23167   prefix="$acl_final_prefix"
23168   acl_save_exec_prefix="$exec_prefix"
23169   exec_prefix="$acl_final_exec_prefix"
23170   eval x=\"$x\"
23171   exec_prefix="$acl_save_exec_prefix"
23172   prefix="$acl_save_prefix"
23173
23174       if test "X$x" = "X$element"; then
23175         haveit=yes
23176         break
23177       fi
23178     done
23179     if test -z "$haveit"; then
23180       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23181     fi
23182   done
23183
23184
23185   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23186 $as_echo_n "checking for iconv... " >&6; }
23187 if test "${am_cv_func_iconv+set}" = set; then
23188   $as_echo_n "(cached) " >&6
23189 else
23190
23191     am_cv_func_iconv="no, consider installing GNU libiconv"
23192     am_cv_lib_iconv=no
23193     cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199 #include <stdlib.h>
23200 #include <iconv.h>
23201 int
23202 main ()
23203 {
23204 iconv_t cd = iconv_open("","");
23205        iconv(cd,NULL,NULL,NULL,NULL);
23206        iconv_close(cd);
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (ac_try="$ac_link"
23213 case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23218 $as_echo "$ac_try_echo") >&5
23219   (eval "$ac_link") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } && {
23226          test -z "$ac_c_werror_flag" ||
23227          test ! -s conftest.err
23228        } && test -s conftest$ac_exeext && {
23229          test "$cross_compiling" = yes ||
23230          $as_test_x conftest$ac_exeext
23231        }; then
23232   am_cv_func_iconv=yes
23233 else
23234   $as_echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237
23238 fi
23239
23240 rm -rf conftest.dSYM
23241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23242       conftest$ac_exeext conftest.$ac_ext
23243     if test "$am_cv_func_iconv" != yes; then
23244       am_save_LIBS="$LIBS"
23245       LIBS="$LIBS $LIBICONV"
23246       cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h.  */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h.  */
23252 #include <stdlib.h>
23253 #include <iconv.h>
23254 int
23255 main ()
23256 {
23257 iconv_t cd = iconv_open("","");
23258          iconv(cd,NULL,NULL,NULL,NULL);
23259          iconv_close(cd);
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (ac_try="$ac_link"
23266 case "(($ac_try" in
23267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268   *) ac_try_echo=$ac_try;;
23269 esac
23270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23271 $as_echo "$ac_try_echo") >&5
23272   (eval "$ac_link") 2>conftest.er1
23273   ac_status=$?
23274   grep -v '^ *+' conftest.er1 >conftest.err
23275   rm -f conftest.er1
23276   cat conftest.err >&5
23277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } && {
23279          test -z "$ac_c_werror_flag" ||
23280          test ! -s conftest.err
23281        } && test -s conftest$ac_exeext && {
23282          test "$cross_compiling" = yes ||
23283          $as_test_x conftest$ac_exeext
23284        }; then
23285   am_cv_lib_iconv=yes
23286         am_cv_func_iconv=yes
23287 else
23288   $as_echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291
23292 fi
23293
23294 rm -rf conftest.dSYM
23295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23296       conftest$ac_exeext conftest.$ac_ext
23297       LIBS="$am_save_LIBS"
23298     fi
23299
23300 fi
23301 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23302 $as_echo "$am_cv_func_iconv" >&6; }
23303   if test "$am_cv_func_iconv" = yes; then
23304
23305 cat >>confdefs.h <<\_ACEOF
23306 #define HAVE_ICONV 1
23307 _ACEOF
23308
23309   fi
23310   if test "$am_cv_lib_iconv" = yes; then
23311     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23312 $as_echo_n "checking how to link with libiconv... " >&6; }
23313     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23314 $as_echo "$LIBICONV" >&6; }
23315   else
23316             CPPFLAGS="$am_save_CPPFLAGS"
23317     LIBICONV=
23318     LTLIBICONV=
23319   fi
23320
23321
23322
23323   if test "$am_cv_func_iconv" = yes; then
23324     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23325 $as_echo_n "checking for iconv declaration... " >&6; }
23326     if test "${am_cv_proto_iconv+set}" = set; then
23327   $as_echo_n "(cached) " >&6
23328 else
23329
23330       cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h.  */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h.  */
23336
23337 #include <stdlib.h>
23338 #include <iconv.h>
23339 extern
23340 #ifdef __cplusplus
23341 "C"
23342 #endif
23343 #if defined(__STDC__) || defined(__cplusplus)
23344 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23345 #else
23346 size_t iconv();
23347 #endif
23348
23349 int
23350 main ()
23351 {
23352
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext
23358 if { (ac_try="$ac_compile"
23359 case "(($ac_try" in
23360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361   *) ac_try_echo=$ac_try;;
23362 esac
23363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23364 $as_echo "$ac_try_echo") >&5
23365   (eval "$ac_compile") 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } && {
23372          test -z "$ac_c_werror_flag" ||
23373          test ! -s conftest.err
23374        } && test -s conftest.$ac_objext; then
23375   am_cv_proto_iconv_arg1=""
23376 else
23377   $as_echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380         am_cv_proto_iconv_arg1="const"
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384       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);"
23385 fi
23386
23387     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23388     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23389          }$am_cv_proto_iconv" >&5
23390 $as_echo "${ac_t:-
23391          }$am_cv_proto_iconv" >&6; }
23392
23393 cat >>confdefs.h <<_ACEOF
23394 #define ICONV_CONST $am_cv_proto_iconv_arg1
23395 _ACEOF
23396
23397   fi
23398
23399
23400   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23401 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23402 if test "${am_cv_langinfo_codeset+set}" = set; then
23403   $as_echo_n "(cached) " >&6
23404 else
23405   cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411 #include <langinfo.h>
23412 int
23413 main ()
23414 {
23415 char* cs = nl_langinfo(CODESET);
23416   ;
23417   return 0;
23418 }
23419 _ACEOF
23420 rm -f conftest.$ac_objext conftest$ac_exeext
23421 if { (ac_try="$ac_link"
23422 case "(($ac_try" in
23423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424   *) ac_try_echo=$ac_try;;
23425 esac
23426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23427 $as_echo "$ac_try_echo") >&5
23428   (eval "$ac_link") 2>conftest.er1
23429   ac_status=$?
23430   grep -v '^ *+' conftest.er1 >conftest.err
23431   rm -f conftest.er1
23432   cat conftest.err >&5
23433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); } && {
23435          test -z "$ac_c_werror_flag" ||
23436          test ! -s conftest.err
23437        } && test -s conftest$ac_exeext && {
23438          test "$cross_compiling" = yes ||
23439          $as_test_x conftest$ac_exeext
23440        }; then
23441   am_cv_langinfo_codeset=yes
23442 else
23443   $as_echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446         am_cv_langinfo_codeset=no
23447 fi
23448
23449 rm -rf conftest.dSYM
23450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23451       conftest$ac_exeext conftest.$ac_ext
23452
23453 fi
23454 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23455 $as_echo "$am_cv_langinfo_codeset" >&6; }
23456   if test $am_cv_langinfo_codeset = yes; then
23457
23458 cat >>confdefs.h <<\_ACEOF
23459 #define HAVE_LANGINFO_CODESET 1
23460 _ACEOF
23461
23462   fi
23463
23464   if test $ac_cv_header_locale_h = yes; then
23465
23466   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23467 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23468 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23469   $as_echo_n "(cached) " >&6
23470 else
23471   cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477 #include <locale.h>
23478 int
23479 main ()
23480 {
23481 return LC_MESSAGES
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 rm -f conftest.$ac_objext conftest$ac_exeext
23487 if { (ac_try="$ac_link"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23493 $as_echo "$ac_try_echo") >&5
23494   (eval "$ac_link") 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } && {
23501          test -z "$ac_c_werror_flag" ||
23502          test ! -s conftest.err
23503        } && test -s conftest$ac_exeext && {
23504          test "$cross_compiling" = yes ||
23505          $as_test_x conftest$ac_exeext
23506        }; then
23507   gt_cv_val_LC_MESSAGES=yes
23508 else
23509   $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23511
23512         gt_cv_val_LC_MESSAGES=no
23513 fi
23514
23515 rm -rf conftest.dSYM
23516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23517       conftest$ac_exeext conftest.$ac_ext
23518 fi
23519 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23520 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23521   if test $gt_cv_val_LC_MESSAGES = yes; then
23522
23523 cat >>confdefs.h <<\_ACEOF
23524 #define HAVE_LC_MESSAGES 1
23525 _ACEOF
23526
23527   fi
23528
23529   fi
23530
23531   if test -n "$INTL_MACOSX_LIBS"; then
23532     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23533   fi
23534
23535                       for ac_prog in bison
23536 do
23537   # Extract the first word of "$ac_prog", so it can be a program name with args.
23538 set dummy $ac_prog; ac_word=$2
23539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23540 $as_echo_n "checking for $ac_word... " >&6; }
23541 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23542   $as_echo_n "(cached) " >&6
23543 else
23544   if test -n "$INTLBISON"; then
23545   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23546 else
23547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23548 for as_dir in $PATH
23549 do
23550   IFS=$as_save_IFS
23551   test -z "$as_dir" && as_dir=.
23552   for ac_exec_ext in '' $ac_executable_extensions; do
23553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23554     ac_cv_prog_INTLBISON="$ac_prog"
23555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23556     break 2
23557   fi
23558 done
23559 done
23560 IFS=$as_save_IFS
23561
23562 fi
23563 fi
23564 INTLBISON=$ac_cv_prog_INTLBISON
23565 if test -n "$INTLBISON"; then
23566   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23567 $as_echo "$INTLBISON" >&6; }
23568 else
23569   { $as_echo "$as_me:$LINENO: result: no" >&5
23570 $as_echo "no" >&6; }
23571 fi
23572
23573
23574   test -n "$INTLBISON" && break
23575 done
23576
23577   if test -z "$INTLBISON"; then
23578     ac_verc_fail=yes
23579   else
23580         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23581 $as_echo_n "checking version of bison... " >&6; }
23582     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23583     case $ac_prog_version in
23584       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23585       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23586          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23587       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23588     esac
23589     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23590 $as_echo "$ac_prog_version" >&6; }
23591   fi
23592   if test $ac_verc_fail = yes; then
23593     INTLBISON=:
23594   fi
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23612 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23613 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23614   $as_echo_n "(cached) " >&6
23615 else
23616   gt_save_CPPFLAGS="$CPPFLAGS"
23617      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23618      gt_save_LIBS="$LIBS"
23619      LIBS="$LIBS -framework CoreFoundation"
23620      cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h.  */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h.  */
23626 #include <CFPreferences.h>
23627 int
23628 main ()
23629 {
23630 CFPreferencesCopyAppValue(NULL, NULL)
23631   ;
23632   return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (ac_try="$ac_link"
23637 case "(($ac_try" in
23638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639   *) ac_try_echo=$ac_try;;
23640 esac
23641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642 $as_echo "$ac_try_echo") >&5
23643   (eval "$ac_link") 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } && {
23650          test -z "$ac_c_werror_flag" ||
23651          test ! -s conftest.err
23652        } && test -s conftest$ac_exeext && {
23653          test "$cross_compiling" = yes ||
23654          $as_test_x conftest$ac_exeext
23655        }; then
23656   gt_cv_func_CFPreferencesCopyAppValue=yes
23657 else
23658   $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661         gt_cv_func_CFPreferencesCopyAppValue=no
23662 fi
23663
23664 rm -rf conftest.dSYM
23665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23666       conftest$ac_exeext conftest.$ac_ext
23667      CPPFLAGS="$gt_save_CPPFLAGS"
23668      LIBS="$gt_save_LIBS"
23669 fi
23670 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23671 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23672   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23673
23674 cat >>confdefs.h <<\_ACEOF
23675 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23676 _ACEOF
23677
23678   fi
23679     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23680 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23681 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23682   $as_echo_n "(cached) " >&6
23683 else
23684   gt_save_CPPFLAGS="$CPPFLAGS"
23685      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23686      gt_save_LIBS="$LIBS"
23687      LIBS="$LIBS -framework CoreFoundation"
23688      cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h.  */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h.  */
23694 #include <CFLocale.h>
23695 int
23696 main ()
23697 {
23698 CFLocaleCopyCurrent();
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (ac_try="$ac_link"
23705 case "(($ac_try" in
23706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707   *) ac_try_echo=$ac_try;;
23708 esac
23709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23710 $as_echo "$ac_try_echo") >&5
23711   (eval "$ac_link") 2>conftest.er1
23712   ac_status=$?
23713   grep -v '^ *+' conftest.er1 >conftest.err
23714   rm -f conftest.er1
23715   cat conftest.err >&5
23716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } && {
23718          test -z "$ac_c_werror_flag" ||
23719          test ! -s conftest.err
23720        } && test -s conftest$ac_exeext && {
23721          test "$cross_compiling" = yes ||
23722          $as_test_x conftest$ac_exeext
23723        }; then
23724   gt_cv_func_CFLocaleCopyCurrent=yes
23725 else
23726   $as_echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729         gt_cv_func_CFLocaleCopyCurrent=no
23730 fi
23731
23732 rm -rf conftest.dSYM
23733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23734       conftest$ac_exeext conftest.$ac_ext
23735      CPPFLAGS="$gt_save_CPPFLAGS"
23736      LIBS="$gt_save_LIBS"
23737 fi
23738 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23739 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23740   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23741
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_CFLOCALECOPYCURRENT 1
23744 _ACEOF
23745
23746   fi
23747   INTL_MACOSX_LIBS=
23748   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23749     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23750   fi
23751
23752
23753
23754
23755   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23756 $as_echo_n "checking whether NLS is requested... " >&6; }
23757     # Check whether --enable-nls was given.
23758 if test "${enable_nls+set}" = set; then
23759   enableval=$enable_nls; USE_NLS=$enableval
23760 else
23761   USE_NLS=yes
23762 fi
23763
23764   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23765 $as_echo "$USE_NLS" >&6; }
23766
23767
23768
23769
23770     BUILD_INCLUDED_LIBINTL=no
23771     USE_INCLUDED_LIBINTL=no
23772
23773   LIBINTL=
23774   LTLIBINTL=
23775   POSUB=
23776
23777     if test "$USE_NLS" = "yes"; then
23778     gt_use_preinstalled_gnugettext=no
23779
23780       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23781 $as_echo_n "checking whether included gettext is requested... " >&6; }
23782
23783 # Check whether --with-included-gettext was given.
23784 if test "${with_included_gettext+set}" = set; then
23785   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23786 else
23787   nls_cv_force_use_gnu_gettext=no
23788 fi
23789
23790       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23791 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23792
23793       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23794       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23795
23796
23797
23798
23799
23800
23801         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23802 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23803 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23804   $as_echo_n "(cached) " >&6
23805 else
23806   cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h.  */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h.  */
23812 #include <libintl.h>
23813 extern int _nl_msg_cat_cntr;
23814 extern int *_nl_domain_bindings;
23815 int
23816 main ()
23817 {
23818 bindtextdomain ("", "");
23819 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext conftest$ac_exeext
23825 if { (ac_try="$ac_link"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832   (eval "$ac_link") 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } && {
23839          test -z "$ac_c_werror_flag" ||
23840          test ! -s conftest.err
23841        } && test -s conftest$ac_exeext && {
23842          test "$cross_compiling" = yes ||
23843          $as_test_x conftest$ac_exeext
23844        }; then
23845   gt_cv_func_gnugettext1_libc=yes
23846 else
23847   $as_echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850         gt_cv_func_gnugettext1_libc=no
23851 fi
23852
23853 rm -rf conftest.dSYM
23854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23855       conftest$ac_exeext conftest.$ac_ext
23856 fi
23857 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23858 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23859
23860         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23861
23862
23863
23864     use_additional=yes
23865
23866   acl_save_prefix="$prefix"
23867   prefix="$acl_final_prefix"
23868   acl_save_exec_prefix="$exec_prefix"
23869   exec_prefix="$acl_final_exec_prefix"
23870
23871     eval additional_includedir=\"$includedir\"
23872     eval additional_libdir=\"$libdir\"
23873
23874   exec_prefix="$acl_save_exec_prefix"
23875   prefix="$acl_save_prefix"
23876
23877
23878 # Check whether --with-libintl-prefix was given.
23879 if test "${with_libintl_prefix+set}" = set; then
23880   withval=$with_libintl_prefix;
23881     if test "X$withval" = "Xno"; then
23882       use_additional=no
23883     else
23884       if test "X$withval" = "X"; then
23885
23886   acl_save_prefix="$prefix"
23887   prefix="$acl_final_prefix"
23888   acl_save_exec_prefix="$exec_prefix"
23889   exec_prefix="$acl_final_exec_prefix"
23890
23891           eval additional_includedir=\"$includedir\"
23892           eval additional_libdir=\"$libdir\"
23893
23894   exec_prefix="$acl_save_exec_prefix"
23895   prefix="$acl_save_prefix"
23896
23897       else
23898         additional_includedir="$withval/include"
23899         additional_libdir="$withval/lib"
23900       fi
23901     fi
23902
23903 fi
23904
23905       LIBINTL=
23906   LTLIBINTL=
23907   INCINTL=
23908   rpathdirs=
23909   ltrpathdirs=
23910   names_already_handled=
23911   names_next_round='intl '
23912   while test -n "$names_next_round"; do
23913     names_this_round="$names_next_round"
23914     names_next_round=
23915     for name in $names_this_round; do
23916       already_handled=
23917       for n in $names_already_handled; do
23918         if test "$n" = "$name"; then
23919           already_handled=yes
23920           break
23921         fi
23922       done
23923       if test -z "$already_handled"; then
23924         names_already_handled="$names_already_handled $name"
23925                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23926         eval value=\"\$HAVE_LIB$uppername\"
23927         if test -n "$value"; then
23928           if test "$value" = yes; then
23929             eval value=\"\$LIB$uppername\"
23930             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23931             eval value=\"\$LTLIB$uppername\"
23932             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23933           else
23934                                     :
23935           fi
23936         else
23937                               found_dir=
23938           found_la=
23939           found_so=
23940           found_a=
23941           if test $use_additional = yes; then
23942             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23943               found_dir="$additional_libdir"
23944               found_so="$additional_libdir/lib$name.$shlibext"
23945               if test -f "$additional_libdir/lib$name.la"; then
23946                 found_la="$additional_libdir/lib$name.la"
23947               fi
23948             else
23949               if test -f "$additional_libdir/lib$name.$libext"; then
23950                 found_dir="$additional_libdir"
23951                 found_a="$additional_libdir/lib$name.$libext"
23952                 if test -f "$additional_libdir/lib$name.la"; then
23953                   found_la="$additional_libdir/lib$name.la"
23954                 fi
23955               fi
23956             fi
23957           fi
23958           if test "X$found_dir" = "X"; then
23959             for x in $LDFLAGS $LTLIBINTL; do
23960
23961   acl_save_prefix="$prefix"
23962   prefix="$acl_final_prefix"
23963   acl_save_exec_prefix="$exec_prefix"
23964   exec_prefix="$acl_final_exec_prefix"
23965   eval x=\"$x\"
23966   exec_prefix="$acl_save_exec_prefix"
23967   prefix="$acl_save_prefix"
23968
23969               case "$x" in
23970                 -L*)
23971                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23972                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23973                     found_dir="$dir"
23974                     found_so="$dir/lib$name.$shlibext"
23975                     if test -f "$dir/lib$name.la"; then
23976                       found_la="$dir/lib$name.la"
23977                     fi
23978                   else
23979                     if test -f "$dir/lib$name.$libext"; then
23980                       found_dir="$dir"
23981                       found_a="$dir/lib$name.$libext"
23982                       if test -f "$dir/lib$name.la"; then
23983                         found_la="$dir/lib$name.la"
23984                       fi
23985                     fi
23986                   fi
23987                   ;;
23988               esac
23989               if test "X$found_dir" != "X"; then
23990                 break
23991               fi
23992             done
23993           fi
23994           if test "X$found_dir" != "X"; then
23995                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23996             if test "X$found_so" != "X"; then
23997                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23998                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23999               else
24000                                                                                 haveit=
24001                 for x in $ltrpathdirs; do
24002                   if test "X$x" = "X$found_dir"; then
24003                     haveit=yes
24004                     break
24005                   fi
24006                 done
24007                 if test -z "$haveit"; then
24008                   ltrpathdirs="$ltrpathdirs $found_dir"
24009                 fi
24010                                 if test "$hardcode_direct" = yes; then
24011                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24012                 else
24013                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24014                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24015                                                             haveit=
24016                     for x in $rpathdirs; do
24017                       if test "X$x" = "X$found_dir"; then
24018                         haveit=yes
24019                         break
24020                       fi
24021                     done
24022                     if test -z "$haveit"; then
24023                       rpathdirs="$rpathdirs $found_dir"
24024                     fi
24025                   else
24026                                                                                 haveit=
24027                     for x in $LDFLAGS $LIBINTL; do
24028
24029   acl_save_prefix="$prefix"
24030   prefix="$acl_final_prefix"
24031   acl_save_exec_prefix="$exec_prefix"
24032   exec_prefix="$acl_final_exec_prefix"
24033   eval x=\"$x\"
24034   exec_prefix="$acl_save_exec_prefix"
24035   prefix="$acl_save_prefix"
24036
24037                       if test "X$x" = "X-L$found_dir"; then
24038                         haveit=yes
24039                         break
24040                       fi
24041                     done
24042                     if test -z "$haveit"; then
24043                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24044                     fi
24045                     if test "$hardcode_minus_L" != no; then
24046                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24047                     else
24048                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24049                     fi
24050                   fi
24051                 fi
24052               fi
24053             else
24054               if test "X$found_a" != "X"; then
24055                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24056               else
24057                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24058               fi
24059             fi
24060                         additional_includedir=
24061             case "$found_dir" in
24062               */lib | */lib/)
24063                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24064                 additional_includedir="$basedir/include"
24065                 ;;
24066             esac
24067             if test "X$additional_includedir" != "X"; then
24068                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24069                 haveit=
24070                 if test "X$additional_includedir" = "X/usr/local/include"; then
24071                   if test -n "$GCC"; then
24072                     case $host_os in
24073                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24074                     esac
24075                   fi
24076                 fi
24077                 if test -z "$haveit"; then
24078                   for x in $CPPFLAGS $INCINTL; do
24079
24080   acl_save_prefix="$prefix"
24081   prefix="$acl_final_prefix"
24082   acl_save_exec_prefix="$exec_prefix"
24083   exec_prefix="$acl_final_exec_prefix"
24084   eval x=\"$x\"
24085   exec_prefix="$acl_save_exec_prefix"
24086   prefix="$acl_save_prefix"
24087
24088                     if test "X$x" = "X-I$additional_includedir"; then
24089                       haveit=yes
24090                       break
24091                     fi
24092                   done
24093                   if test -z "$haveit"; then
24094                     if test -d "$additional_includedir"; then
24095                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24096                     fi
24097                   fi
24098                 fi
24099               fi
24100             fi
24101                         if test -n "$found_la"; then
24102                                                         save_libdir="$libdir"
24103               case "$found_la" in
24104                 */* | *\\*) . "$found_la" ;;
24105                 *) . "./$found_la" ;;
24106               esac
24107               libdir="$save_libdir"
24108                             for dep in $dependency_libs; do
24109                 case "$dep" in
24110                   -L*)
24111                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24112                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24113                       haveit=
24114                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24115                         if test -n "$GCC"; then
24116                           case $host_os in
24117                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24118                           esac
24119                         fi
24120                       fi
24121                       if test -z "$haveit"; then
24122                         haveit=
24123                         for x in $LDFLAGS $LIBINTL; do
24124
24125   acl_save_prefix="$prefix"
24126   prefix="$acl_final_prefix"
24127   acl_save_exec_prefix="$exec_prefix"
24128   exec_prefix="$acl_final_exec_prefix"
24129   eval x=\"$x\"
24130   exec_prefix="$acl_save_exec_prefix"
24131   prefix="$acl_save_prefix"
24132
24133                           if test "X$x" = "X-L$additional_libdir"; then
24134                             haveit=yes
24135                             break
24136                           fi
24137                         done
24138                         if test -z "$haveit"; then
24139                           if test -d "$additional_libdir"; then
24140                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24141                           fi
24142                         fi
24143                         haveit=
24144                         for x in $LDFLAGS $LTLIBINTL; do
24145
24146   acl_save_prefix="$prefix"
24147   prefix="$acl_final_prefix"
24148   acl_save_exec_prefix="$exec_prefix"
24149   exec_prefix="$acl_final_exec_prefix"
24150   eval x=\"$x\"
24151   exec_prefix="$acl_save_exec_prefix"
24152   prefix="$acl_save_prefix"
24153
24154                           if test "X$x" = "X-L$additional_libdir"; then
24155                             haveit=yes
24156                             break
24157                           fi
24158                         done
24159                         if test -z "$haveit"; then
24160                           if test -d "$additional_libdir"; then
24161                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24162                           fi
24163                         fi
24164                       fi
24165                     fi
24166                     ;;
24167                   -R*)
24168                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24169                     if test "$enable_rpath" != no; then
24170                                                                   haveit=
24171                       for x in $rpathdirs; do
24172                         if test "X$x" = "X$dir"; then
24173                           haveit=yes
24174                           break
24175                         fi
24176                       done
24177                       if test -z "$haveit"; then
24178                         rpathdirs="$rpathdirs $dir"
24179                       fi
24180                                                                   haveit=
24181                       for x in $ltrpathdirs; do
24182                         if test "X$x" = "X$dir"; then
24183                           haveit=yes
24184                           break
24185                         fi
24186                       done
24187                       if test -z "$haveit"; then
24188                         ltrpathdirs="$ltrpathdirs $dir"
24189                       fi
24190                     fi
24191                     ;;
24192                   -l*)
24193                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24194                     ;;
24195                   *.la)
24196                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24197                     ;;
24198                   *)
24199                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24200                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24201                     ;;
24202                 esac
24203               done
24204             fi
24205           else
24206                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24207             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24208           fi
24209         fi
24210       fi
24211     done
24212   done
24213   if test "X$rpathdirs" != "X"; then
24214     if test -n "$hardcode_libdir_separator"; then
24215                         alldirs=
24216       for found_dir in $rpathdirs; do
24217         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24218       done
24219             acl_save_libdir="$libdir"
24220       libdir="$alldirs"
24221       eval flag=\"$hardcode_libdir_flag_spec\"
24222       libdir="$acl_save_libdir"
24223       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24224     else
24225             for found_dir in $rpathdirs; do
24226         acl_save_libdir="$libdir"
24227         libdir="$found_dir"
24228         eval flag=\"$hardcode_libdir_flag_spec\"
24229         libdir="$acl_save_libdir"
24230         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24231       done
24232     fi
24233   fi
24234   if test "X$ltrpathdirs" != "X"; then
24235             for found_dir in $ltrpathdirs; do
24236       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24237     done
24238   fi
24239
24240           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24241 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24242 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24243   $as_echo_n "(cached) " >&6
24244 else
24245   gt_save_CPPFLAGS="$CPPFLAGS"
24246             CPPFLAGS="$CPPFLAGS $INCINTL"
24247             gt_save_LIBS="$LIBS"
24248             LIBS="$LIBS $LIBINTL"
24249                         cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h.  */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h.  */
24255 #include <libintl.h>
24256 extern int _nl_msg_cat_cntr;
24257 extern
24258 #ifdef __cplusplus
24259 "C"
24260 #endif
24261 const char *_nl_expand_alias (const char *);
24262 int
24263 main ()
24264 {
24265 bindtextdomain ("", "");
24266 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24267   ;
24268   return 0;
24269 }
24270 _ACEOF
24271 rm -f conftest.$ac_objext conftest$ac_exeext
24272 if { (ac_try="$ac_link"
24273 case "(($ac_try" in
24274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24275   *) ac_try_echo=$ac_try;;
24276 esac
24277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24278 $as_echo "$ac_try_echo") >&5
24279   (eval "$ac_link") 2>conftest.er1
24280   ac_status=$?
24281   grep -v '^ *+' conftest.er1 >conftest.err
24282   rm -f conftest.er1
24283   cat conftest.err >&5
24284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); } && {
24286          test -z "$ac_c_werror_flag" ||
24287          test ! -s conftest.err
24288        } && test -s conftest$ac_exeext && {
24289          test "$cross_compiling" = yes ||
24290          $as_test_x conftest$ac_exeext
24291        }; then
24292   gt_cv_func_gnugettext1_libintl=yes
24293 else
24294   $as_echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296
24297         gt_cv_func_gnugettext1_libintl=no
24298 fi
24299
24300 rm -rf conftest.dSYM
24301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24302       conftest$ac_exeext conftest.$ac_ext
24303                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24304               LIBS="$LIBS $LIBICONV"
24305               cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 #include <libintl.h>
24312 extern int _nl_msg_cat_cntr;
24313 extern
24314 #ifdef __cplusplus
24315 "C"
24316 #endif
24317 const char *_nl_expand_alias (const char *);
24318 int
24319 main ()
24320 {
24321 bindtextdomain ("", "");
24322 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (ac_try="$ac_link"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24334 $as_echo "$ac_try_echo") >&5
24335   (eval "$ac_link") 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } && {
24342          test -z "$ac_c_werror_flag" ||
24343          test ! -s conftest.err
24344        } && test -s conftest$ac_exeext && {
24345          test "$cross_compiling" = yes ||
24346          $as_test_x conftest$ac_exeext
24347        }; then
24348   LIBINTL="$LIBINTL $LIBICONV"
24349                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24350                 gt_cv_func_gnugettext1_libintl=yes
24351
24352 else
24353   $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356
24357 fi
24358
24359 rm -rf conftest.dSYM
24360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24361       conftest$ac_exeext conftest.$ac_ext
24362             fi
24363             CPPFLAGS="$gt_save_CPPFLAGS"
24364             LIBS="$gt_save_LIBS"
24365 fi
24366 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24367 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24368         fi
24369
24370                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24371            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24372                 && test "$PACKAGE" != gettext-runtime \
24373                 && test "$PACKAGE" != gettext-tools; }; then
24374           gt_use_preinstalled_gnugettext=yes
24375         else
24376                     LIBINTL=
24377           LTLIBINTL=
24378           INCINTL=
24379         fi
24380
24381
24382         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24383                               nls_cv_use_gnu_gettext=yes
24384         fi
24385       fi
24386
24387       if test "$nls_cv_use_gnu_gettext" = "yes"; then
24388                 BUILD_INCLUDED_LIBINTL=yes
24389         USE_INCLUDED_LIBINTL=yes
24390         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24391         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24392         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24393       fi
24394
24395       CATOBJEXT=
24396       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24397          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24398                 CATOBJEXT=.gmo
24399       fi
24400
24401
24402     if test -n "$INTL_MACOSX_LIBS"; then
24403       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24404          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24405                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24406         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24407       fi
24408     fi
24409
24410     if test "$gt_use_preinstalled_gnugettext" = "yes" \
24411        || test "$nls_cv_use_gnu_gettext" = "yes"; then
24412
24413 cat >>confdefs.h <<\_ACEOF
24414 #define ENABLE_NLS 1
24415 _ACEOF
24416
24417     else
24418       USE_NLS=no
24419     fi
24420   fi
24421
24422   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24423 $as_echo_n "checking whether to use NLS... " >&6; }
24424   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24425 $as_echo "$USE_NLS" >&6; }
24426   if test "$USE_NLS" = "yes"; then
24427     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24428 $as_echo_n "checking where the gettext function comes from... " >&6; }
24429     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24430       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24431         gt_source="external libintl"
24432       else
24433         gt_source="libc"
24434       fi
24435     else
24436       gt_source="included intl directory"
24437     fi
24438     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24439 $as_echo "$gt_source" >&6; }
24440   fi
24441
24442   if test "$USE_NLS" = "yes"; then
24443
24444     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24445       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24446         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24447 $as_echo_n "checking how to link with libintl... " >&6; }
24448         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24449 $as_echo "$LIBINTL" >&6; }
24450
24451   for element in $INCINTL; do
24452     haveit=
24453     for x in $CPPFLAGS; do
24454
24455   acl_save_prefix="$prefix"
24456   prefix="$acl_final_prefix"
24457   acl_save_exec_prefix="$exec_prefix"
24458   exec_prefix="$acl_final_exec_prefix"
24459   eval x=\"$x\"
24460   exec_prefix="$acl_save_exec_prefix"
24461   prefix="$acl_save_prefix"
24462
24463       if test "X$x" = "X$element"; then
24464         haveit=yes
24465         break
24466       fi
24467     done
24468     if test -z "$haveit"; then
24469       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24470     fi
24471   done
24472
24473       fi
24474
24475
24476 cat >>confdefs.h <<\_ACEOF
24477 #define HAVE_GETTEXT 1
24478 _ACEOF
24479
24480
24481 cat >>confdefs.h <<\_ACEOF
24482 #define HAVE_DCGETTEXT 1
24483 _ACEOF
24484
24485     fi
24486
24487         POSUB=po
24488   fi
24489
24490
24491             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24492       BUILD_INCLUDED_LIBINTL=yes
24493     fi
24494
24495
24496
24497
24498
24499         nls_cv_header_intl=
24500     nls_cv_header_libgt=
24501
24502         DATADIRNAME=share
24503
24504
24505         INSTOBJEXT=.mo
24506
24507
24508         GENCAT=gencat
24509
24510
24511         INTLOBJS=
24512     if test "$USE_INCLUDED_LIBINTL" = yes; then
24513       INTLOBJS="\$(GETTOBJS)"
24514     fi
24515
24516
24517         INTL_LIBTOOL_SUFFIX_PREFIX=
24518
24519
24520
24521     INTLLIBS="$LIBINTL"
24522
24523
24524
24525
24526
24527
24528 fi
24529
24530 support_mysql=no
24531 support_sqlite=no
24532 support_sqlite3=no
24533 support_postgresql=no
24534 support_ingres=no
24535 support_dbi=no
24536 support_smartalloc=yes
24537 support_readline=yes
24538 support_conio=yes
24539 support_gnome=no
24540 support_bat=no
24541 support_wx_console=no
24542 support_tray_monitor=no
24543 support_tls=no
24544 support_crypto=no
24545 gnome_version=
24546 wx_version=
24547 support_static_tools=no
24548 support_static_fd=no
24549 support_static_sd=no
24550 support_static_dir=no
24551 support_static_cons=no
24552 support_python=no
24553 build_client_only=no
24554 build_dird=yes
24555 build_stored=yes
24556 cats=
24557 db_type=Internal
24558 support_lockmgr=no
24559 DB_TYPE=bdb
24560
24561
24562 # Check whether --enable-gnome was given.
24563 if test "${enable_gnome+set}" = set; then
24564   enableval=$enable_gnome;
24565        if test x$enableval = xyes; then
24566           support_gnome=yes
24567        fi
24568
24569
24570 fi
24571
24572
24573 GNOME_DIR=
24574 if test x$support_gnome = xyes; then
24575    { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24576 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24577    { (exit 1); exit 1; }; }
24578    { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24579 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24580    { (exit 1); exit 1; }; }
24581 fi
24582 # AC_SUBST(GNOME_DIR)
24583
24584 # Check whether --enable-bat was given.
24585 if test "${enable_bat+set}" = set; then
24586   enableval=$enable_bat;
24587        if test x$enableval = xyes; then
24588
24589 cat >>confdefs.h <<\_ACEOF
24590 #define HAVE_BAT 1
24591 _ACEOF
24592
24593           support_bat=yes
24594        fi
24595
24596
24597 fi
24598
24599
24600 BAT_DIR=
24601 if test x$support_bat = xyes; then
24602    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24603    pkg=$?
24604    if test $pkg = 0; then
24605       BAT_DIR=src/qt-console
24606    else
24607       { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24608 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24609    { (exit 1); exit 1; }; }
24610    fi
24611 fi
24612
24613 got_qwt=no
24614 QWT_INC=
24615 QWT_LDFLAGS=
24616 QWT_LIB=
24617 QWT=
24618 no_qwt=no
24619
24620
24621
24622
24623
24624
24625
24626
24627 # Check whether --enable-bwx-console was given.
24628 if test "${enable_bwx_console+set}" = set; then
24629   enableval=$enable_bwx_console;
24630        if test x$enableval = xyes; then
24631           support_wx_console=yes
24632        fi
24633
24634
24635 fi
24636
24637
24638 WX_DIR=
24639 if test x$support_wx_console = xyes; then
24640    abc=`$WXCONFIG $WXFLAGS --cppflags`
24641    pkg=$?
24642    if test $pkg = 0; then
24643       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24644       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24645       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24646
24647
24648
24649       WX_DIR="src/wx-console"
24650    else
24651       echo " "
24652       echo "wx-config program not found. bwx-console disabled."
24653       echo " "
24654       support_wx_console=no
24655    fi
24656 fi
24657
24658
24659 # Check whether --enable-tray-monitor was given.
24660 if test "${enable_tray_monitor+set}" = set; then
24661   enableval=$enable_tray_monitor;
24662        if test x$enableval = xyes; then
24663           support_tray_monitor=yes
24664        fi
24665
24666
24667 fi
24668
24669
24670 TRAY_MONITOR_DIR=
24671 if test x$support_tray_monitor = xyes; then
24672    abc=`$PKGCONFIG --exists gtk+-2.0`
24673    pkg=$?
24674    if test $pkg = 0; then
24675       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24676       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24677
24678
24679       TRAY_MONITOR_DIR=src/tray-monitor
24680       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24681       pkg=$?
24682       if test $pkg = 0; then
24683
24684 cat >>confdefs.h <<\_ACEOF
24685 #define HAVE_GTK_2_4 1
24686 _ACEOF
24687
24688       fi
24689    fi
24690 fi
24691
24692
24693 # Check whether --enable-smartalloc was given.
24694 if test "${enable_smartalloc+set}" = set; then
24695   enableval=$enable_smartalloc;
24696        if test x$enableval = xno; then
24697           support_smartalloc=no
24698        fi
24699
24700
24701 fi
24702
24703
24704 if test x$support_smartalloc = xyes; then
24705
24706 cat >>confdefs.h <<\_ACEOF
24707 #define SMARTALLOC 1
24708 _ACEOF
24709
24710 fi
24711
24712 # Check whether --enable-lockmgr was given.
24713 if test "${enable_lockmgr+set}" = set; then
24714   enableval=$enable_lockmgr;
24715        if test x$enableval = xyes; then
24716           support_lockmgr=yes
24717        fi
24718
24719
24720 fi
24721
24722
24723 if test x$support_lockmgr = xyes; then
24724
24725 cat >>confdefs.h <<\_ACEOF
24726 #define _USE_LOCKMGR 1
24727 _ACEOF
24728
24729 fi
24730
24731
24732 # Check whether --enable-static-tools was given.
24733 if test "${enable_static_tools+set}" = set; then
24734   enableval=$enable_static_tools;
24735        if test x$enableval = xyes; then
24736           if test x$use_libtool = xyes; then
24737              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24738   please rerun configure with --disable-libtool" >&5
24739 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24740   please rerun configure with --disable-libtool" >&2;}
24741    { (exit 1); exit 1; }; }
24742           fi
24743           support_static_tools=yes
24744        fi
24745
24746
24747 fi
24748
24749
24750 TTOOL_LDFLAGS=
24751 if test x$support_static_tools = xyes; then
24752    TTOOL_LDFLAGS="-static"
24753 fi
24754
24755
24756 # Check whether --enable-static-fd was given.
24757 if test "${enable_static_fd+set}" = set; then
24758   enableval=$enable_static_fd;
24759        if test x$enableval = xyes; then
24760           if test x$use_libtool = xyes; then
24761              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24762   please rerun configure with --disable-libtool" >&5
24763 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24764   please rerun configure with --disable-libtool" >&2;}
24765    { (exit 1); exit 1; }; }
24766           fi
24767           support_static_fd=yes
24768        fi
24769
24770
24771 fi
24772
24773
24774 STATIC_FD=
24775 if test x$support_static_fd = xyes; then
24776    STATIC_FD="static-bacula-fd"
24777 fi
24778
24779
24780 # Check whether --enable-static-sd was given.
24781 if test "${enable_static_sd+set}" = set; then
24782   enableval=$enable_static_sd;
24783        if test x$enableval = xyes; then
24784           if test x$use_libtool = xyes; then
24785              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24786   please rerun configure with --disable-libtool" >&5
24787 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24788   please rerun configure with --disable-libtool" >&2;}
24789    { (exit 1); exit 1; }; }
24790           fi
24791           support_static_sd=yes
24792        fi
24793
24794
24795 fi
24796
24797
24798 STATIC_SD=
24799 if test x$support_static_sd = xyes; then
24800    STATIC_SD="static-bacula-sd"
24801 fi
24802
24803
24804 # Check whether --enable-static-dir was given.
24805 if test "${enable_static_dir+set}" = set; then
24806   enableval=$enable_static_dir;
24807        if test x$enableval = xyes; then
24808           if test x$use_libtool = xyes; then
24809              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24810   please rerun configure with --disable-libtool" >&5
24811 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24812   please rerun configure with --disable-libtool" >&2;}
24813    { (exit 1); exit 1; }; }
24814           fi
24815           support_static_dir=yes
24816        fi
24817
24818
24819 fi
24820
24821
24822 STATIC_DIR=
24823 if test x$support_static_dir = xyes; then
24824    STATIC_DIR="static-bacula-dir"
24825 fi
24826
24827
24828 # Check whether --enable-static-cons was given.
24829 if test "${enable_static_cons+set}" = set; then
24830   enableval=$enable_static_cons;
24831        if test x$enableval = xyes; then
24832           if test x$use_libtool = xyes; then
24833              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24834   please rerun configure with --disable-libtool" >&5
24835 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24836   please rerun configure with --disable-libtool" >&2;}
24837    { (exit 1); exit 1; }; }
24838           fi
24839           support_static_cons=yes
24840        fi
24841
24842
24843 fi
24844
24845
24846 STATIC_CONS=
24847 STATIC_GNOME_CONS=
24848 STATIC_WX_CONS=
24849 if test x$support_static_cons = xyes; then
24850    STATIC_CONS="static-bconsole"
24851    STATIC_GNOME_CONS="static-bgnome-console"
24852    STATIC_WX_CONS="static-bwx-console"
24853 fi
24854
24855
24856
24857
24858 # Check whether --enable-client-only was given.
24859 if test "${enable_client_only+set}" = set; then
24860   enableval=$enable_client_only;
24861        if test x$enableval = xyes; then
24862           build_client_only=yes
24863           db_type=None
24864           DB_TYPE=none
24865        fi
24866
24867
24868 fi
24869
24870 if test x$build_client_only = xno; then
24871    ALL_DIRS="subdirs"
24872 else
24873    ALL_DIRS=""
24874 fi
24875
24876
24877 # Check whether --enable-build-dird was given.
24878 if test "${enable_build_dird+set}" = set; then
24879   enableval=$enable_build_dird;
24880        if test x$enableval = xno; then
24881           build_dird=no
24882        fi
24883
24884
24885 fi
24886
24887 if test x$build_dird = xyes; then
24888    DIRD_DIR="src/dird"
24889    DIR_TOOLS="DIRTOOLS"
24890 else
24891    DIRD_DIR=""
24892    DIR_TOOLS="NODIRTOOLS"
24893 fi
24894
24895
24896
24897 # Check whether --enable-build-stored was given.
24898 if test "${enable_build_stored+set}" = set; then
24899   enableval=$enable_build_stored;
24900       if test x$enableval = xno; then
24901          build_stored=no
24902       fi
24903
24904
24905 fi
24906
24907 if test x$build_stored = xyes; then
24908    STORED_DIR="src/stored"
24909 else
24910    STORED_DIR=""
24911 fi
24912
24913
24914 # Check whether --enable-conio was given.
24915 if test "${enable_conio+set}" = set; then
24916   enableval=$enable_conio;
24917        if test x$enableval = xno; then
24918           support_conio=no
24919        fi
24920
24921
24922 fi
24923
24924
24925
24926 support_ipv6=yes
24927 # Check whether --enable-ipv6 was given.
24928 if test "${enable_ipv6+set}" = set; then
24929   enableval=$enable_ipv6;
24930        if test x$enableval = xno; then
24931           support_ipv6=no
24932        fi
24933
24934
24935 fi
24936
24937
24938 if test x$support_ipv6 = xyes; then
24939     cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945  #include <sys/types.h>
24946 #include <sys/socket.h>
24947 #include <netinet/in.h>
24948 int
24949 main ()
24950 {
24951 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24952   ;
24953   return 0;
24954 }
24955 _ACEOF
24956 rm -f conftest.$ac_objext conftest$ac_exeext
24957 if { (ac_try="$ac_link"
24958 case "(($ac_try" in
24959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960   *) ac_try_echo=$ac_try;;
24961 esac
24962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24963 $as_echo "$ac_try_echo") >&5
24964   (eval "$ac_link") 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } && {
24971          test -z "$ac_c_werror_flag" ||
24972          test ! -s conftest.err
24973        } && test -s conftest$ac_exeext && {
24974          test "$cross_compiling" = yes ||
24975          $as_test_x conftest$ac_exeext
24976        }; then
24977   support_ipv6=yes
24978 else
24979   $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982         support_ipv6=no
24983 fi
24984
24985 rm -rf conftest.dSYM
24986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24987       conftest$ac_exeext conftest.$ac_ext
24988 fi
24989
24990 if test x$support_ipv6 = xyes; then
24991
24992 cat >>confdefs.h <<\_ACEOF
24993 #define HAVE_IPV6 1
24994 _ACEOF
24995
24996 fi
24997
24998 TERM_LIB=""
24999 if test "${ac_cv_header_curses_h+set}" = set; then
25000   { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25001 $as_echo_n "checking for curses.h... " >&6; }
25002 if test "${ac_cv_header_curses_h+set}" = set; then
25003   $as_echo_n "(cached) " >&6
25004 fi
25005 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25006 $as_echo "$ac_cv_header_curses_h" >&6; }
25007 else
25008   # Is the header compilable?
25009 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25010 $as_echo_n "checking curses.h usability... " >&6; }
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017 $ac_includes_default
25018 #include <curses.h>
25019 _ACEOF
25020 rm -f conftest.$ac_objext
25021 if { (ac_try="$ac_compile"
25022 case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25027 $as_echo "$ac_try_echo") >&5
25028   (eval "$ac_compile") 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } && {
25035          test -z "$ac_c_werror_flag" ||
25036          test ! -s conftest.err
25037        } && test -s conftest.$ac_objext; then
25038   ac_header_compiler=yes
25039 else
25040   $as_echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043         ac_header_compiler=no
25044 fi
25045
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25048 $as_echo "$ac_header_compiler" >&6; }
25049
25050 # Is the header present?
25051 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25052 $as_echo_n "checking curses.h presence... " >&6; }
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059 #include <curses.h>
25060 _ACEOF
25061 if { (ac_try="$ac_cpp conftest.$ac_ext"
25062 case "(($ac_try" in
25063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064   *) ac_try_echo=$ac_try;;
25065 esac
25066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25067 $as_echo "$ac_try_echo") >&5
25068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25069   ac_status=$?
25070   grep -v '^ *+' conftest.er1 >conftest.err
25071   rm -f conftest.er1
25072   cat conftest.err >&5
25073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); } >/dev/null && {
25075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25076          test ! -s conftest.err
25077        }; then
25078   ac_header_preproc=yes
25079 else
25080   $as_echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083   ac_header_preproc=no
25084 fi
25085
25086 rm -f conftest.err conftest.$ac_ext
25087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25088 $as_echo "$ac_header_preproc" >&6; }
25089
25090 # So?  What about this header?
25091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092   yes:no: )
25093     { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25094 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25095     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25096 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25097     ac_header_preproc=yes
25098     ;;
25099   no:yes:* )
25100     { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25101 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25102     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
25103 $as_echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
25104     { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25105 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25106     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
25107 $as_echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25108     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25109 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25110     { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25111 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25112
25113     ;;
25114 esac
25115 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25116 $as_echo_n "checking for curses.h... " >&6; }
25117 if test "${ac_cv_header_curses_h+set}" = set; then
25118   $as_echo_n "(cached) " >&6
25119 else
25120   ac_cv_header_curses_h=$ac_header_preproc
25121 fi
25122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25123 $as_echo "$ac_cv_header_curses_h" >&6; }
25124
25125 fi
25126 if test "x$ac_cv_header_curses_h" = x""yes; then
25127    { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25128 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25129 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25130   $as_echo_n "(cached) " >&6
25131 else
25132   ac_check_lib_save_LIBS=$LIBS
25133 LIBS="-lncurses  $LIBS"
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140
25141 /* Override any GCC internal prototype to avoid an error.
25142    Use char because int might match the return type of a GCC
25143    builtin and then its argument prototype would still apply.  */
25144 #ifdef __cplusplus
25145 extern "C"
25146 #endif
25147 char tgetent ();
25148 int
25149 main ()
25150 {
25151 return tgetent ();
25152   ;
25153   return 0;
25154 }
25155 _ACEOF
25156 rm -f conftest.$ac_objext conftest$ac_exeext
25157 if { (ac_try="$ac_link"
25158 case "(($ac_try" in
25159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25160   *) ac_try_echo=$ac_try;;
25161 esac
25162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25163 $as_echo "$ac_try_echo") >&5
25164   (eval "$ac_link") 2>conftest.er1
25165   ac_status=$?
25166   grep -v '^ *+' conftest.er1 >conftest.err
25167   rm -f conftest.er1
25168   cat conftest.err >&5
25169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); } && {
25171          test -z "$ac_c_werror_flag" ||
25172          test ! -s conftest.err
25173        } && test -s conftest$ac_exeext && {
25174          test "$cross_compiling" = yes ||
25175          $as_test_x conftest$ac_exeext
25176        }; then
25177   ac_cv_lib_ncurses_tgetent=yes
25178 else
25179   $as_echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         ac_cv_lib_ncurses_tgetent=no
25183 fi
25184
25185 rm -rf conftest.dSYM
25186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25187       conftest$ac_exeext conftest.$ac_ext
25188 LIBS=$ac_check_lib_save_LIBS
25189 fi
25190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25191 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25192 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25193    TERM_LIB="-lncurses"
25194 else
25195    { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25197 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25198   $as_echo_n "(cached) " >&6
25199 else
25200   ac_check_lib_save_LIBS=$LIBS
25201 LIBS="-ltermcap  $LIBS"
25202 cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h.  */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h.  */
25208
25209 /* Override any GCC internal prototype to avoid an error.
25210    Use char because int might match the return type of a GCC
25211    builtin and then its argument prototype would still apply.  */
25212 #ifdef __cplusplus
25213 extern "C"
25214 #endif
25215 char tgetent ();
25216 int
25217 main ()
25218 {
25219 return tgetent ();
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 rm -f conftest.$ac_objext conftest$ac_exeext
25225 if { (ac_try="$ac_link"
25226 case "(($ac_try" in
25227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228   *) ac_try_echo=$ac_try;;
25229 esac
25230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231 $as_echo "$ac_try_echo") >&5
25232   (eval "$ac_link") 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } && {
25239          test -z "$ac_c_werror_flag" ||
25240          test ! -s conftest.err
25241        } && test -s conftest$ac_exeext && {
25242          test "$cross_compiling" = yes ||
25243          $as_test_x conftest$ac_exeext
25244        }; then
25245   ac_cv_lib_termcap_tgetent=yes
25246 else
25247   $as_echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250         ac_cv_lib_termcap_tgetent=no
25251 fi
25252
25253 rm -rf conftest.dSYM
25254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25255       conftest$ac_exeext conftest.$ac_ext
25256 LIBS=$ac_check_lib_save_LIBS
25257 fi
25258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25259 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25260 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25261    TERM_LIB="-ltermcap"
25262 fi
25263
25264
25265 fi
25266
25267
25268 else
25269
25270 for ac_header in curses.h
25271 do
25272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25274   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25275 $as_echo_n "checking for $ac_header... " >&6; }
25276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25277   $as_echo_n "(cached) " >&6
25278 fi
25279 ac_res=`eval 'as_val=${'$as_ac_Header'}
25280                  $as_echo "$as_val"'`
25281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25282 $as_echo "$ac_res" >&6; }
25283 else
25284   # Is the header compilable?
25285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25286 $as_echo_n "checking $ac_header usability... " >&6; }
25287 cat >conftest.$ac_ext <<_ACEOF
25288 /* confdefs.h.  */
25289 _ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h.  */
25293 $ac_includes_default
25294 #include <$ac_header>
25295 _ACEOF
25296 rm -f conftest.$ac_objext
25297 if { (ac_try="$ac_compile"
25298 case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25303 $as_echo "$ac_try_echo") >&5
25304   (eval "$ac_compile") 2>conftest.er1
25305   ac_status=$?
25306   grep -v '^ *+' conftest.er1 >conftest.err
25307   rm -f conftest.er1
25308   cat conftest.err >&5
25309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); } && {
25311          test -z "$ac_c_werror_flag" ||
25312          test ! -s conftest.err
25313        } && test -s conftest.$ac_objext; then
25314   ac_header_compiler=yes
25315 else
25316   $as_echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25318
25319         ac_header_compiler=no
25320 fi
25321
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25324 $as_echo "$ac_header_compiler" >&6; }
25325
25326 # Is the header present?
25327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25328 $as_echo_n "checking $ac_header presence... " >&6; }
25329 cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335 #include <$ac_header>
25336 _ACEOF
25337 if { (ac_try="$ac_cpp conftest.$ac_ext"
25338 case "(($ac_try" in
25339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340   *) ac_try_echo=$ac_try;;
25341 esac
25342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25343 $as_echo "$ac_try_echo") >&5
25344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25345   ac_status=$?
25346   grep -v '^ *+' conftest.er1 >conftest.err
25347   rm -f conftest.er1
25348   cat conftest.err >&5
25349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); } >/dev/null && {
25351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25352          test ! -s conftest.err
25353        }; then
25354   ac_header_preproc=yes
25355 else
25356   $as_echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25358
25359   ac_header_preproc=no
25360 fi
25361
25362 rm -f conftest.err conftest.$ac_ext
25363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25364 $as_echo "$ac_header_preproc" >&6; }
25365
25366 # So?  What about this header?
25367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25368   yes:no: )
25369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25373     ac_header_preproc=yes
25374     ;;
25375   no:yes:* )
25376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25379 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25383 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25388
25389     ;;
25390 esac
25391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25392 $as_echo_n "checking for $ac_header... " >&6; }
25393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25394   $as_echo_n "(cached) " >&6
25395 else
25396   eval "$as_ac_Header=\$ac_header_preproc"
25397 fi
25398 ac_res=`eval 'as_val=${'$as_ac_Header'}
25399                  $as_echo "$as_val"'`
25400                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25401 $as_echo "$ac_res" >&6; }
25402
25403 fi
25404 as_val=`eval 'as_val=${'$as_ac_Header'}
25405                  $as_echo "$as_val"'`
25406    if test "x$as_val" = x""yes; then
25407   cat >>confdefs.h <<_ACEOF
25408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25409 _ACEOF
25410
25411 fi
25412
25413 done
25414
25415      if test "${ac_cv_header_term_h+set}" = set; then
25416   { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25417 $as_echo_n "checking for term.h... " >&6; }
25418 if test "${ac_cv_header_term_h+set}" = set; then
25419   $as_echo_n "(cached) " >&6
25420 fi
25421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25422 $as_echo "$ac_cv_header_term_h" >&6; }
25423 else
25424   # Is the header compilable?
25425 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25426 $as_echo_n "checking term.h usability... " >&6; }
25427 cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 $ac_includes_default
25434 #include <term.h>
25435 _ACEOF
25436 rm -f conftest.$ac_objext
25437 if { (ac_try="$ac_compile"
25438 case "(($ac_try" in
25439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25440   *) ac_try_echo=$ac_try;;
25441 esac
25442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25443 $as_echo "$ac_try_echo") >&5
25444   (eval "$ac_compile") 2>conftest.er1
25445   ac_status=$?
25446   grep -v '^ *+' conftest.er1 >conftest.err
25447   rm -f conftest.er1
25448   cat conftest.err >&5
25449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } && {
25451          test -z "$ac_c_werror_flag" ||
25452          test ! -s conftest.err
25453        } && test -s conftest.$ac_objext; then
25454   ac_header_compiler=yes
25455 else
25456   $as_echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25458
25459         ac_header_compiler=no
25460 fi
25461
25462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25464 $as_echo "$ac_header_compiler" >&6; }
25465
25466 # Is the header present?
25467 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25468 $as_echo_n "checking term.h presence... " >&6; }
25469 cat >conftest.$ac_ext <<_ACEOF
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475 #include <term.h>
25476 _ACEOF
25477 if { (ac_try="$ac_cpp conftest.$ac_ext"
25478 case "(($ac_try" in
25479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480   *) ac_try_echo=$ac_try;;
25481 esac
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } >/dev/null && {
25491          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25492          test ! -s conftest.err
25493        }; then
25494   ac_header_preproc=yes
25495 else
25496   $as_echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25498
25499   ac_header_preproc=no
25500 fi
25501
25502 rm -f conftest.err conftest.$ac_ext
25503 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25504 $as_echo "$ac_header_preproc" >&6; }
25505
25506 # So?  What about this header?
25507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25508   yes:no: )
25509     { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25510 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25511     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25512 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25513     ac_header_preproc=yes
25514     ;;
25515   no:yes:* )
25516     { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25517 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25518     { $as_echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
25519 $as_echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
25520     { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25521 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25522     { $as_echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
25523 $as_echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25524     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25525 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25526     { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25527 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25528
25529     ;;
25530 esac
25531 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25532 $as_echo_n "checking for term.h... " >&6; }
25533 if test "${ac_cv_header_term_h+set}" = set; then
25534   $as_echo_n "(cached) " >&6
25535 else
25536   ac_cv_header_term_h=$ac_header_preproc
25537 fi
25538 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25539 $as_echo "$ac_cv_header_term_h" >&6; }
25540
25541 fi
25542 if test "x$ac_cv_header_term_h" = x""yes; then
25543    { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25544 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25545 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25546   $as_echo_n "(cached) " >&6
25547 else
25548   ac_check_lib_save_LIBS=$LIBS
25549 LIBS="-lcurses  $LIBS"
25550 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556
25557 /* Override any GCC internal prototype to avoid an error.
25558    Use char because int might match the return type of a GCC
25559    builtin and then its argument prototype would still apply.  */
25560 #ifdef __cplusplus
25561 extern "C"
25562 #endif
25563 char tgetent ();
25564 int
25565 main ()
25566 {
25567 return tgetent ();
25568   ;
25569   return 0;
25570 }
25571 _ACEOF
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (ac_try="$ac_link"
25574 case "(($ac_try" in
25575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576   *) ac_try_echo=$ac_try;;
25577 esac
25578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25579 $as_echo "$ac_try_echo") >&5
25580   (eval "$ac_link") 2>conftest.er1
25581   ac_status=$?
25582   grep -v '^ *+' conftest.er1 >conftest.err
25583   rm -f conftest.er1
25584   cat conftest.err >&5
25585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } && {
25587          test -z "$ac_c_werror_flag" ||
25588          test ! -s conftest.err
25589        } && test -s conftest$ac_exeext && {
25590          test "$cross_compiling" = yes ||
25591          $as_test_x conftest$ac_exeext
25592        }; then
25593   ac_cv_lib_curses_tgetent=yes
25594 else
25595   $as_echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598         ac_cv_lib_curses_tgetent=no
25599 fi
25600
25601 rm -rf conftest.dSYM
25602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25603       conftest$ac_exeext conftest.$ac_ext
25604 LIBS=$ac_check_lib_save_LIBS
25605 fi
25606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25607 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25608 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25609    TERM_LIB="-lcurses"
25610 fi
25611
25612
25613 fi
25614
25615
25616
25617 fi
25618
25619
25620
25621
25622 got_conio="no"
25623 if test x$support_conio = xyes; then
25624    if test x$TERM_LIB != x; then
25625       CONS_LIBS=$TERM_LIB
25626       CONS_OBJ="conio.o"
25627       CONS_SRC="conio.c"
25628       got_conio="yes"
25629       support_readline=no
25630
25631 cat >>confdefs.h <<\_ACEOF
25632 #define HAVE_CONIO 1
25633 _ACEOF
25634
25635    else
25636       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25637    fi
25638 fi
25639
25640
25641 # Check whether --enable-readline was given.
25642 if test "${enable_readline+set}" = set; then
25643   enableval=$enable_readline;
25644        if test x$enableval = xno; then
25645           support_readline=no
25646        fi
25647
25648
25649 fi
25650
25651 if test x$TERM_LIB = x ; then
25652    support_readline=no
25653 fi
25654
25655 got_readline="no"
25656 READLINE_SRC=
25657 if test x$support_readline = xyes; then
25658
25659 # Check whether --with-readline was given.
25660 if test "${with_readline+set}" = set; then
25661   withval=$with_readline;
25662           case "$with_readline" in
25663           no)
25664              :
25665              ;;
25666           yes|*)
25667              if test -f ${with_readline}/readline.h; then
25668                 CONS_INC="-I${with_readline}"
25669                 CONS_LDFLAGS="-L$with_readline"
25670              elif test -f ${with_readline}/include/readline/readline.h; then
25671                 CONS_INC="-I${with_readline}/include/readline"
25672                 CONS_LDFLAGS="-L${with_readline}/lib"
25673                 with_readline="${with_readline}/include/readline"
25674              else
25675                 with_readline="/usr/include/readline"
25676              fi
25677
25678              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25680   { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25681 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25683   $as_echo_n "(cached) " >&6
25684 fi
25685 ac_res=`eval 'as_val=${'$as_ac_Header'}
25686                  $as_echo "$as_val"'`
25687                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25688 $as_echo "$ac_res" >&6; }
25689 else
25690   # Is the header compilable?
25691 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25692 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25693 cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 $ac_includes_default
25700 #include <${with_readline}/readline.h>
25701 _ACEOF
25702 rm -f conftest.$ac_objext
25703 if { (ac_try="$ac_compile"
25704 case "(($ac_try" in
25705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706   *) ac_try_echo=$ac_try;;
25707 esac
25708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25709 $as_echo "$ac_try_echo") >&5
25710   (eval "$ac_compile") 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } && {
25717          test -z "$ac_c_werror_flag" ||
25718          test ! -s conftest.err
25719        } && test -s conftest.$ac_objext; then
25720   ac_header_compiler=yes
25721 else
25722   $as_echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725         ac_header_compiler=no
25726 fi
25727
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 $as_echo "$ac_header_compiler" >&6; }
25731
25732 # Is the header present?
25733 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25734 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741 #include <${with_readline}/readline.h>
25742 _ACEOF
25743 if { (ac_try="$ac_cpp conftest.$ac_ext"
25744 case "(($ac_try" in
25745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746   *) ac_try_echo=$ac_try;;
25747 esac
25748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25749 $as_echo "$ac_try_echo") >&5
25750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25751   ac_status=$?
25752   grep -v '^ *+' conftest.er1 >conftest.err
25753   rm -f conftest.er1
25754   cat conftest.err >&5
25755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); } >/dev/null && {
25757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25758          test ! -s conftest.err
25759        }; then
25760   ac_header_preproc=yes
25761 else
25762   $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765   ac_header_preproc=no
25766 fi
25767
25768 rm -f conftest.err conftest.$ac_ext
25769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25770 $as_echo "$ac_header_preproc" >&6; }
25771
25772 # So?  What about this header?
25773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774   yes:no: )
25775     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25776 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25777     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25778 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25779     ac_header_preproc=yes
25780     ;;
25781   no:yes:* )
25782     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25783 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25784     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25785 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25786     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25787 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25788     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25789 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25790     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25791 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25792     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25793 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25794
25795     ;;
25796 esac
25797 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25798 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25800   $as_echo_n "(cached) " >&6
25801 else
25802   eval "$as_ac_Header=\$ac_header_preproc"
25803 fi
25804 ac_res=`eval 'as_val=${'$as_ac_Header'}
25805                  $as_echo "$as_val"'`
25806                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25807 $as_echo "$ac_res" >&6; }
25808
25809 fi
25810 as_val=`eval 'as_val=${'$as_ac_Header'}
25811                  $as_echo "$as_val"'`
25812    if test "x$as_val" = x""yes; then
25813
25814
25815 cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_READLINE 1
25817 _ACEOF
25818
25819                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25820                     got_readline="yes"
25821
25822 else
25823
25824                     echo " "
25825                     echo "readline.h not found. readline turned off ..."
25826                     echo " "
25827
25828
25829 fi
25830
25831
25832              ;;
25833           esac
25834
25835 else
25836
25837                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25838   { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25839 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25840 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25841   $as_echo_n "(cached) " >&6
25842 fi
25843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25844 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25845 else
25846   # Is the header compilable?
25847 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25848 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 $ac_includes_default
25856 #include </usr/include/readline/readline.h>
25857 _ACEOF
25858 rm -f conftest.$ac_objext
25859 if { (ac_try="$ac_compile"
25860 case "(($ac_try" in
25861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25862   *) ac_try_echo=$ac_try;;
25863 esac
25864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25865 $as_echo "$ac_try_echo") >&5
25866   (eval "$ac_compile") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && {
25873          test -z "$ac_c_werror_flag" ||
25874          test ! -s conftest.err
25875        } && test -s conftest.$ac_objext; then
25876   ac_header_compiler=yes
25877 else
25878   $as_echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881         ac_header_compiler=no
25882 fi
25883
25884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25886 $as_echo "$ac_header_compiler" >&6; }
25887
25888 # Is the header present?
25889 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25890 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25891 cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897 #include </usr/include/readline/readline.h>
25898 _ACEOF
25899 if { (ac_try="$ac_cpp conftest.$ac_ext"
25900 case "(($ac_try" in
25901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902   *) ac_try_echo=$ac_try;;
25903 esac
25904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25905 $as_echo "$ac_try_echo") >&5
25906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } >/dev/null && {
25913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25914          test ! -s conftest.err
25915        }; then
25916   ac_header_preproc=yes
25917 else
25918   $as_echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921   ac_header_preproc=no
25922 fi
25923
25924 rm -f conftest.err conftest.$ac_ext
25925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25926 $as_echo "$ac_header_preproc" >&6; }
25927
25928 # So?  What about this header?
25929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25930   yes:no: )
25931     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25932 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25933     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25934 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25935     ac_header_preproc=yes
25936     ;;
25937   no:yes:* )
25938     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25939 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25940     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25941 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25942     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25943 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25944     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25945 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25946     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25947 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25948     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25949 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25950
25951     ;;
25952 esac
25953 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25954 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25955 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25956   $as_echo_n "(cached) " >&6
25957 else
25958   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25959 fi
25960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25961 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25962
25963 fi
25964 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
25965
25966
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_READLINE 1
25969 _ACEOF
25970
25971                 got_readline="yes"
25972                 CONS_INC="-I/usr/include/readline"
25973                 CONS_LIBS="-lreadline $TERM_LIB"
25974
25975 else
25976
25977                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25979   { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25980 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
25981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25982   $as_echo_n "(cached) " >&6
25983 fi
25984 ac_res=`eval 'as_val=${'$as_ac_Header'}
25985                  $as_echo "$as_val"'`
25986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25987 $as_echo "$ac_res" >&6; }
25988 else
25989   # Is the header compilable?
25990 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25991 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
25992 cat >conftest.$ac_ext <<_ACEOF
25993 /* confdefs.h.  */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h.  */
25998 $ac_includes_default
25999 #include <${TOP_DIR}/depkgs/readline/readline.h>
26000 _ACEOF
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005   *) ac_try_echo=$ac_try;;
26006 esac
26007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26008 $as_echo "$ac_try_echo") >&5
26009   (eval "$ac_compile") 2>conftest.er1
26010   ac_status=$?
26011   grep -v '^ *+' conftest.er1 >conftest.err
26012   rm -f conftest.er1
26013   cat conftest.err >&5
26014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && {
26016          test -z "$ac_c_werror_flag" ||
26017          test ! -s conftest.err
26018        } && test -s conftest.$ac_objext; then
26019   ac_header_compiler=yes
26020 else
26021   $as_echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         ac_header_compiler=no
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26029 $as_echo "$ac_header_compiler" >&6; }
26030
26031 # Is the header present?
26032 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26033 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26034 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040 #include <${TOP_DIR}/depkgs/readline/readline.h>
26041 _ACEOF
26042 if { (ac_try="$ac_cpp conftest.$ac_ext"
26043 case "(($ac_try" in
26044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045   *) ac_try_echo=$ac_try;;
26046 esac
26047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26048 $as_echo "$ac_try_echo") >&5
26049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26050   ac_status=$?
26051   grep -v '^ *+' conftest.er1 >conftest.err
26052   rm -f conftest.er1
26053   cat conftest.err >&5
26054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); } >/dev/null && {
26056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26057          test ! -s conftest.err
26058        }; then
26059   ac_header_preproc=yes
26060 else
26061   $as_echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064   ac_header_preproc=no
26065 fi
26066
26067 rm -f conftest.err conftest.$ac_ext
26068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26069 $as_echo "$ac_header_preproc" >&6; }
26070
26071 # So?  What about this header?
26072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26073   yes:no: )
26074     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26075 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26076     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26077 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26078     ac_header_preproc=yes
26079     ;;
26080   no:yes:* )
26081     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26082 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26083     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
26084 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
26085     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26086 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26087     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
26088 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26089     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26090 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26091     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26092 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26093
26094     ;;
26095 esac
26096 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26097 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099   $as_echo_n "(cached) " >&6
26100 else
26101   eval "$as_ac_Header=\$ac_header_preproc"
26102 fi
26103 ac_res=`eval 'as_val=${'$as_ac_Header'}
26104                  $as_echo "$as_val"'`
26105                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26106 $as_echo "$ac_res" >&6; }
26107
26108 fi
26109 as_val=`eval 'as_val=${'$as_ac_Header'}
26110                  $as_echo "$as_val"'`
26111    if test "x$as_val" = x""yes; then
26112
26113
26114 cat >>confdefs.h <<\_ACEOF
26115 #define HAVE_READLINE 1
26116 _ACEOF
26117
26118                         got_readline="yes"
26119                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
26120                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26121                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26122                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26123
26124 else
26125
26126                         echo " "
26127                         echo "readline.h not found. readline turned off ..."
26128                         echo " "
26129
26130
26131 fi
26132
26133
26134
26135
26136 fi
26137
26138
26139
26140
26141 fi
26142
26143 fi
26144
26145
26146
26147
26148
26149
26150
26151
26152 MAKE_SHELL=/bin/sh
26153
26154 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26155 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26156 if test "${ac_cv_header_stat_broken+set}" = set; then
26157   $as_echo_n "(cached) " >&6
26158 else
26159   cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <sys/types.h>
26166 #include <sys/stat.h>
26167
26168 #if defined S_ISBLK && defined S_IFDIR
26169 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26170 #endif
26171
26172 #if defined S_ISBLK && defined S_IFCHR
26173 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26174 #endif
26175
26176 #if defined S_ISLNK && defined S_IFREG
26177 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26178 #endif
26179
26180 #if defined S_ISSOCK && defined S_IFREG
26181 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26182 #endif
26183
26184 _ACEOF
26185 rm -f conftest.$ac_objext
26186 if { (ac_try="$ac_compile"
26187 case "(($ac_try" in
26188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189   *) ac_try_echo=$ac_try;;
26190 esac
26191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26192 $as_echo "$ac_try_echo") >&5
26193   (eval "$ac_compile") 2>conftest.er1
26194   ac_status=$?
26195   grep -v '^ *+' conftest.er1 >conftest.err
26196   rm -f conftest.er1
26197   cat conftest.err >&5
26198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); } && {
26200          test -z "$ac_c_werror_flag" ||
26201          test ! -s conftest.err
26202        } && test -s conftest.$ac_objext; then
26203   ac_cv_header_stat_broken=no
26204 else
26205   $as_echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208         ac_cv_header_stat_broken=yes
26209 fi
26210
26211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212 fi
26213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26214 $as_echo "$ac_cv_header_stat_broken" >&6; }
26215 if test $ac_cv_header_stat_broken = yes; then
26216
26217 cat >>confdefs.h <<\_ACEOF
26218 #define STAT_MACROS_BROKEN 1
26219 _ACEOF
26220
26221 fi
26222
26223
26224
26225
26226
26227
26228 ac_header_dirent=no
26229 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26230   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26231 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26232 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26234   $as_echo_n "(cached) " >&6
26235 else
26236   cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h.  */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h.  */
26242 #include <sys/types.h>
26243 #include <$ac_hdr>
26244
26245 int
26246 main ()
26247 {
26248 if ((DIR *) 0)
26249 return 0;
26250   ;
26251   return 0;
26252 }
26253 _ACEOF
26254 rm -f conftest.$ac_objext
26255 if { (ac_try="$ac_compile"
26256 case "(($ac_try" in
26257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26258   *) ac_try_echo=$ac_try;;
26259 esac
26260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26261 $as_echo "$ac_try_echo") >&5
26262   (eval "$ac_compile") 2>conftest.er1
26263   ac_status=$?
26264   grep -v '^ *+' conftest.er1 >conftest.err
26265   rm -f conftest.er1
26266   cat conftest.err >&5
26267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } && {
26269          test -z "$ac_c_werror_flag" ||
26270          test ! -s conftest.err
26271        } && test -s conftest.$ac_objext; then
26272   eval "$as_ac_Header=yes"
26273 else
26274   $as_echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26276
26277         eval "$as_ac_Header=no"
26278 fi
26279
26280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281 fi
26282 ac_res=`eval 'as_val=${'$as_ac_Header'}
26283                  $as_echo "$as_val"'`
26284                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26285 $as_echo "$ac_res" >&6; }
26286 as_val=`eval 'as_val=${'$as_ac_Header'}
26287                  $as_echo "$as_val"'`
26288    if test "x$as_val" = x""yes; then
26289   cat >>confdefs.h <<_ACEOF
26290 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26291 _ACEOF
26292
26293 ac_header_dirent=$ac_hdr; break
26294 fi
26295
26296 done
26297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26298 if test $ac_header_dirent = dirent.h; then
26299   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26300 $as_echo_n "checking for library containing opendir... " >&6; }
26301 if test "${ac_cv_search_opendir+set}" = set; then
26302   $as_echo_n "(cached) " >&6
26303 else
26304   ac_func_search_save_LIBS=$LIBS
26305 cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h.  */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h.  */
26311
26312 /* Override any GCC internal prototype to avoid an error.
26313    Use char because int might match the return type of a GCC
26314    builtin and then its argument prototype would still apply.  */
26315 #ifdef __cplusplus
26316 extern "C"
26317 #endif
26318 char opendir ();
26319 int
26320 main ()
26321 {
26322 return opendir ();
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 for ac_lib in '' dir; do
26328   if test -z "$ac_lib"; then
26329     ac_res="none required"
26330   else
26331     ac_res=-l$ac_lib
26332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26333   fi
26334   rm -f conftest.$ac_objext conftest$ac_exeext
26335 if { (ac_try="$ac_link"
26336 case "(($ac_try" in
26337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338   *) ac_try_echo=$ac_try;;
26339 esac
26340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26341 $as_echo "$ac_try_echo") >&5
26342   (eval "$ac_link") 2>conftest.er1
26343   ac_status=$?
26344   grep -v '^ *+' conftest.er1 >conftest.err
26345   rm -f conftest.er1
26346   cat conftest.err >&5
26347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348   (exit $ac_status); } && {
26349          test -z "$ac_c_werror_flag" ||
26350          test ! -s conftest.err
26351        } && test -s conftest$ac_exeext && {
26352          test "$cross_compiling" = yes ||
26353          $as_test_x conftest$ac_exeext
26354        }; then
26355   ac_cv_search_opendir=$ac_res
26356 else
26357   $as_echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360
26361 fi
26362
26363 rm -rf conftest.dSYM
26364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365       conftest$ac_exeext
26366   if test "${ac_cv_search_opendir+set}" = set; then
26367   break
26368 fi
26369 done
26370 if test "${ac_cv_search_opendir+set}" = set; then
26371   :
26372 else
26373   ac_cv_search_opendir=no
26374 fi
26375 rm conftest.$ac_ext
26376 LIBS=$ac_func_search_save_LIBS
26377 fi
26378 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26379 $as_echo "$ac_cv_search_opendir" >&6; }
26380 ac_res=$ac_cv_search_opendir
26381 if test "$ac_res" != no; then
26382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26383
26384 fi
26385
26386 else
26387   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26388 $as_echo_n "checking for library containing opendir... " >&6; }
26389 if test "${ac_cv_search_opendir+set}" = set; then
26390   $as_echo_n "(cached) " >&6
26391 else
26392   ac_func_search_save_LIBS=$LIBS
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399
26400 /* Override any GCC internal prototype to avoid an error.
26401    Use char because int might match the return type of a GCC
26402    builtin and then its argument prototype would still apply.  */
26403 #ifdef __cplusplus
26404 extern "C"
26405 #endif
26406 char opendir ();
26407 int
26408 main ()
26409 {
26410 return opendir ();
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 for ac_lib in '' x; do
26416   if test -z "$ac_lib"; then
26417     ac_res="none required"
26418   else
26419     ac_res=-l$ac_lib
26420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26421   fi
26422   rm -f conftest.$ac_objext conftest$ac_exeext
26423 if { (ac_try="$ac_link"
26424 case "(($ac_try" in
26425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426   *) ac_try_echo=$ac_try;;
26427 esac
26428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26429 $as_echo "$ac_try_echo") >&5
26430   (eval "$ac_link") 2>conftest.er1
26431   ac_status=$?
26432   grep -v '^ *+' conftest.er1 >conftest.err
26433   rm -f conftest.er1
26434   cat conftest.err >&5
26435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); } && {
26437          test -z "$ac_c_werror_flag" ||
26438          test ! -s conftest.err
26439        } && test -s conftest$ac_exeext && {
26440          test "$cross_compiling" = yes ||
26441          $as_test_x conftest$ac_exeext
26442        }; then
26443   ac_cv_search_opendir=$ac_res
26444 else
26445   $as_echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448
26449 fi
26450
26451 rm -rf conftest.dSYM
26452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26453       conftest$ac_exeext
26454   if test "${ac_cv_search_opendir+set}" = set; then
26455   break
26456 fi
26457 done
26458 if test "${ac_cv_search_opendir+set}" = set; then
26459   :
26460 else
26461   ac_cv_search_opendir=no
26462 fi
26463 rm conftest.$ac_ext
26464 LIBS=$ac_func_search_save_LIBS
26465 fi
26466 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26467 $as_echo "$ac_cv_search_opendir" >&6; }
26468 ac_res=$ac_cv_search_opendir
26469 if test "$ac_res" != no; then
26470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26471
26472 fi
26473
26474 fi
26475
26476
26477
26478
26479
26480
26481
26482
26483 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26484 do
26485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26486 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26487 $as_echo_n "checking for $ac_func... " >&6; }
26488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26489   $as_echo_n "(cached) " >&6
26490 else
26491   cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26499 #define $ac_func innocuous_$ac_func
26500
26501 /* System header to define __stub macros and hopefully few prototypes,
26502     which can conflict with char $ac_func (); below.
26503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26504     <limits.h> exists even on freestanding compilers.  */
26505
26506 #ifdef __STDC__
26507 # include <limits.h>
26508 #else
26509 # include <assert.h>
26510 #endif
26511
26512 #undef $ac_func
26513
26514 /* Override any GCC internal prototype to avoid an error.
26515    Use char because int might match the return type of a GCC
26516    builtin and then its argument prototype would still apply.  */
26517 #ifdef __cplusplus
26518 extern "C"
26519 #endif
26520 char $ac_func ();
26521 /* The GNU C library defines this for functions which it implements
26522     to always fail with ENOSYS.  Some functions are actually named
26523     something starting with __ and the normal name is an alias.  */
26524 #if defined __stub_$ac_func || defined __stub___$ac_func
26525 choke me
26526 #endif
26527
26528 int
26529 main ()
26530 {
26531 return $ac_func ();
26532   ;
26533   return 0;
26534 }
26535 _ACEOF
26536 rm -f conftest.$ac_objext conftest$ac_exeext
26537 if { (ac_try="$ac_link"
26538 case "(($ac_try" in
26539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540   *) ac_try_echo=$ac_try;;
26541 esac
26542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26543 $as_echo "$ac_try_echo") >&5
26544   (eval "$ac_link") 2>conftest.er1
26545   ac_status=$?
26546   grep -v '^ *+' conftest.er1 >conftest.err
26547   rm -f conftest.er1
26548   cat conftest.err >&5
26549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); } && {
26551          test -z "$ac_c_werror_flag" ||
26552          test ! -s conftest.err
26553        } && test -s conftest$ac_exeext && {
26554          test "$cross_compiling" = yes ||
26555          $as_test_x conftest$ac_exeext
26556        }; then
26557   eval "$as_ac_var=yes"
26558 else
26559   $as_echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562         eval "$as_ac_var=no"
26563 fi
26564
26565 rm -rf conftest.dSYM
26566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26567       conftest$ac_exeext conftest.$ac_ext
26568 fi
26569 ac_res=`eval 'as_val=${'$as_ac_var'}
26570                  $as_echo "$as_val"'`
26571                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26572 $as_echo "$ac_res" >&6; }
26573 as_val=`eval 'as_val=${'$as_ac_var'}
26574                  $as_echo "$as_val"'`
26575    if test "x$as_val" = x""yes; then
26576   cat >>confdefs.h <<_ACEOF
26577 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26578 _ACEOF
26579
26580 fi
26581 done
26582
26583
26584
26585 for ac_func in nanosleep nl_langinfo
26586 do
26587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26589 $as_echo_n "checking for $ac_func... " >&6; }
26590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26591   $as_echo_n "(cached) " >&6
26592 else
26593   cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26601 #define $ac_func innocuous_$ac_func
26602
26603 /* System header to define __stub macros and hopefully few prototypes,
26604     which can conflict with char $ac_func (); below.
26605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26606     <limits.h> exists even on freestanding compilers.  */
26607
26608 #ifdef __STDC__
26609 # include <limits.h>
26610 #else
26611 # include <assert.h>
26612 #endif
26613
26614 #undef $ac_func
26615
26616 /* Override any GCC internal prototype to avoid an error.
26617    Use char because int might match the return type of a GCC
26618    builtin and then its argument prototype would still apply.  */
26619 #ifdef __cplusplus
26620 extern "C"
26621 #endif
26622 char $ac_func ();
26623 /* The GNU C library defines this for functions which it implements
26624     to always fail with ENOSYS.  Some functions are actually named
26625     something starting with __ and the normal name is an alias.  */
26626 #if defined __stub_$ac_func || defined __stub___$ac_func
26627 choke me
26628 #endif
26629
26630 int
26631 main ()
26632 {
26633 return $ac_func ();
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest.$ac_objext conftest$ac_exeext
26639 if { (ac_try="$ac_link"
26640 case "(($ac_try" in
26641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642   *) ac_try_echo=$ac_try;;
26643 esac
26644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26645 $as_echo "$ac_try_echo") >&5
26646   (eval "$ac_link") 2>conftest.er1
26647   ac_status=$?
26648   grep -v '^ *+' conftest.er1 >conftest.err
26649   rm -f conftest.er1
26650   cat conftest.err >&5
26651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); } && {
26653          test -z "$ac_c_werror_flag" ||
26654          test ! -s conftest.err
26655        } && test -s conftest$ac_exeext && {
26656          test "$cross_compiling" = yes ||
26657          $as_test_x conftest$ac_exeext
26658        }; then
26659   eval "$as_ac_var=yes"
26660 else
26661   $as_echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26663
26664         eval "$as_ac_var=no"
26665 fi
26666
26667 rm -rf conftest.dSYM
26668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26669       conftest$ac_exeext conftest.$ac_ext
26670 fi
26671 ac_res=`eval 'as_val=${'$as_ac_var'}
26672                  $as_echo "$as_val"'`
26673                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26674 $as_echo "$ac_res" >&6; }
26675 as_val=`eval 'as_val=${'$as_ac_var'}
26676                  $as_echo "$as_val"'`
26677    if test "x$as_val" = x""yes; then
26678   cat >>confdefs.h <<_ACEOF
26679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26680 _ACEOF
26681
26682 fi
26683 done
26684
26685
26686 for ac_header in varargs.h
26687 do
26688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26690   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26691 $as_echo_n "checking for $ac_header... " >&6; }
26692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26693   $as_echo_n "(cached) " >&6
26694 fi
26695 ac_res=`eval 'as_val=${'$as_ac_Header'}
26696                  $as_echo "$as_val"'`
26697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26698 $as_echo "$ac_res" >&6; }
26699 else
26700   # Is the header compilable?
26701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26702 $as_echo_n "checking $ac_header usability... " >&6; }
26703 cat >conftest.$ac_ext <<_ACEOF
26704 /* confdefs.h.  */
26705 _ACEOF
26706 cat confdefs.h >>conftest.$ac_ext
26707 cat >>conftest.$ac_ext <<_ACEOF
26708 /* end confdefs.h.  */
26709 $ac_includes_default
26710 #include <$ac_header>
26711 _ACEOF
26712 rm -f conftest.$ac_objext
26713 if { (ac_try="$ac_compile"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26719 $as_echo "$ac_try_echo") >&5
26720   (eval "$ac_compile") 2>conftest.er1
26721   ac_status=$?
26722   grep -v '^ *+' conftest.er1 >conftest.err
26723   rm -f conftest.er1
26724   cat conftest.err >&5
26725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } && {
26727          test -z "$ac_c_werror_flag" ||
26728          test ! -s conftest.err
26729        } && test -s conftest.$ac_objext; then
26730   ac_header_compiler=yes
26731 else
26732   $as_echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26734
26735         ac_header_compiler=no
26736 fi
26737
26738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26740 $as_echo "$ac_header_compiler" >&6; }
26741
26742 # Is the header present?
26743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26744 $as_echo_n "checking $ac_header presence... " >&6; }
26745 cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 #include <$ac_header>
26752 _ACEOF
26753 if { (ac_try="$ac_cpp conftest.$ac_ext"
26754 case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26759 $as_echo "$ac_try_echo") >&5
26760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } >/dev/null && {
26767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26768          test ! -s conftest.err
26769        }; then
26770   ac_header_preproc=yes
26771 else
26772   $as_echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775   ac_header_preproc=no
26776 fi
26777
26778 rm -f conftest.err conftest.$ac_ext
26779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26780 $as_echo "$ac_header_preproc" >&6; }
26781
26782 # So?  What about this header?
26783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26784   yes:no: )
26785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26789     ac_header_preproc=yes
26790     ;;
26791   no:yes:* )
26792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26795 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26799 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26804
26805     ;;
26806 esac
26807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26808 $as_echo_n "checking for $ac_header... " >&6; }
26809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26810   $as_echo_n "(cached) " >&6
26811 else
26812   eval "$as_ac_Header=\$ac_header_preproc"
26813 fi
26814 ac_res=`eval 'as_val=${'$as_ac_Header'}
26815                  $as_echo "$as_val"'`
26816                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26817 $as_echo "$ac_res" >&6; }
26818
26819 fi
26820 as_val=`eval 'as_val=${'$as_ac_Header'}
26821                  $as_echo "$as_val"'`
26822    if test "x$as_val" = x""yes; then
26823   cat >>confdefs.h <<_ACEOF
26824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26825 _ACEOF
26826
26827 fi
26828
26829 done
26830
26831
26832
26833 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26834 $as_echo_n "checking for Python support... " >&6; }
26835
26836 # Check whether --with-python was given.
26837 if test "${with_python+set}" = set; then
26838   withval=$with_python;
26839        PYTHON_INCDIR=
26840        PYTHON_LIBS=
26841        if test "$withval" != "no"; then
26842           if test "$withval" = "yes"; then
26843              if test -e /usr/bin/python-config ; then
26844                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26845                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26846              else
26847                 for python_root in /usr /usr/local /usr/sfw; do
26848                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26849                       if test -f $python_root/include/${ver}/Python.h; then
26850                          PYTHON_INCDIR=-I$python_root/include/${ver}
26851                          if test -d $python_root/lib64/${ver}/config; then
26852                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26853                          else
26854                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26855                          fi
26856                          break
26857                       fi
26858                    done
26859                 done
26860
26861                 if test x$PYTHON_INCDIR = x; then
26862                    if test -f $prefix/include/Python.h; then
26863                       PYTHON_INCDIR=-I$prefix/include
26864                       if test -d $prefix/lib64/config; then
26865                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26866                       else
26867                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26868                       fi
26869                    else
26870                       { $as_echo "$as_me:$LINENO: result: no" >&5
26871 $as_echo "no" >&6; }
26872                       { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26873 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26874    { (exit 1); exit 1; }; }
26875                    fi
26876                 fi
26877              fi
26878           else
26879              if test -e $withval/bin/python-config ; then
26880                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26881                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26882              elif test -f $withval/Python.h; then
26883                 PYTHON_INCDIR=-I$withval
26884                 PYTHON_LIBS="-L$withval/config -lpython"
26885              elif test -f $withval/include/Python.h; then
26886                 PYTHON_INCDIR=-I$withval/include
26887                 if test -d $withval/lib64/config; then
26888                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26889                 else
26890                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26891                 fi
26892              elif test -f $withval/include/python/Python.h; then
26893                 PYTHON_INCDIR=-I$withval/include/python
26894                 if test -d $withval/lib64/python/config; then
26895                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26896                 else
26897                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26898                 fi
26899              else
26900                 { $as_echo "$as_me:$LINENO: result: no" >&5
26901 $as_echo "no" >&6; }
26902                 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26903 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26904    { (exit 1); exit 1; }; }
26905              fi
26906           fi
26907
26908           cat >>confdefs.h <<\_ACEOF
26909 #define HAVE_PYTHON 1
26910 _ACEOF
26911
26912           { $as_echo "$as_me:$LINENO: result: yes" >&5
26913 $as_echo "yes" >&6; }
26914           support_python=yes
26915           { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
26916 $as_echo "$as_me: checking for more Python libs" >&6;}
26917           saved_LIBS="$LIBS"; LIBS=
26918           { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26919 $as_echo_n "checking for library containing shm_open... " >&6; }
26920 if test "${ac_cv_search_shm_open+set}" = set; then
26921   $as_echo_n "(cached) " >&6
26922 else
26923   ac_func_search_save_LIBS=$LIBS
26924 cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930
26931 /* Override any GCC internal prototype to avoid an error.
26932    Use char because int might match the return type of a GCC
26933    builtin and then its argument prototype would still apply.  */
26934 #ifdef __cplusplus
26935 extern "C"
26936 #endif
26937 char shm_open ();
26938 int
26939 main ()
26940 {
26941 return shm_open ();
26942   ;
26943   return 0;
26944 }
26945 _ACEOF
26946 for ac_lib in '' rt; do
26947   if test -z "$ac_lib"; then
26948     ac_res="none required"
26949   else
26950     ac_res=-l$ac_lib
26951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26952   fi
26953   rm -f conftest.$ac_objext conftest$ac_exeext
26954 if { (ac_try="$ac_link"
26955 case "(($ac_try" in
26956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957   *) ac_try_echo=$ac_try;;
26958 esac
26959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26960 $as_echo "$ac_try_echo") >&5
26961   (eval "$ac_link") 2>conftest.er1
26962   ac_status=$?
26963   grep -v '^ *+' conftest.er1 >conftest.err
26964   rm -f conftest.er1
26965   cat conftest.err >&5
26966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); } && {
26968          test -z "$ac_c_werror_flag" ||
26969          test ! -s conftest.err
26970        } && test -s conftest$ac_exeext && {
26971          test "$cross_compiling" = yes ||
26972          $as_test_x conftest$ac_exeext
26973        }; then
26974   ac_cv_search_shm_open=$ac_res
26975 else
26976   $as_echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26978
26979
26980 fi
26981
26982 rm -rf conftest.dSYM
26983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26984       conftest$ac_exeext
26985   if test "${ac_cv_search_shm_open+set}" = set; then
26986   break
26987 fi
26988 done
26989 if test "${ac_cv_search_shm_open+set}" = set; then
26990   :
26991 else
26992   ac_cv_search_shm_open=no
26993 fi
26994 rm conftest.$ac_ext
26995 LIBS=$ac_func_search_save_LIBS
26996 fi
26997 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26998 $as_echo "$ac_cv_search_shm_open" >&6; }
26999 ac_res=$ac_cv_search_shm_open
27000 if test "$ac_res" != no; then
27001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27002
27003 fi
27004
27005
27006 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27007 $as_echo_n "checking for openpty in -lutil... " >&6; }
27008 if test "${ac_cv_lib_util_openpty+set}" = set; then
27009   $as_echo_n "(cached) " >&6
27010 else
27011   ac_check_lib_save_LIBS=$LIBS
27012 LIBS="-lutil  $LIBS"
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019
27020 /* Override any GCC internal prototype to avoid an error.
27021    Use char because int might match the return type of a GCC
27022    builtin and then its argument prototype would still apply.  */
27023 #ifdef __cplusplus
27024 extern "C"
27025 #endif
27026 char openpty ();
27027 int
27028 main ()
27029 {
27030 return openpty ();
27031   ;
27032   return 0;
27033 }
27034 _ACEOF
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (ac_try="$ac_link"
27037 case "(($ac_try" in
27038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039   *) ac_try_echo=$ac_try;;
27040 esac
27041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27042 $as_echo "$ac_try_echo") >&5
27043   (eval "$ac_link") 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } && {
27050          test -z "$ac_c_werror_flag" ||
27051          test ! -s conftest.err
27052        } && test -s conftest$ac_exeext && {
27053          test "$cross_compiling" = yes ||
27054          $as_test_x conftest$ac_exeext
27055        }; then
27056   ac_cv_lib_util_openpty=yes
27057 else
27058   $as_echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27060
27061         ac_cv_lib_util_openpty=no
27062 fi
27063
27064 rm -rf conftest.dSYM
27065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27066       conftest$ac_exeext conftest.$ac_ext
27067 LIBS=$ac_check_lib_save_LIBS
27068 fi
27069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27070 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27071 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27072   cat >>confdefs.h <<_ACEOF
27073 #define HAVE_LIBUTIL 1
27074 _ACEOF
27075
27076   LIBS="-lutil $LIBS"
27077
27078 fi
27079
27080           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27081           LIBS="$saved_LIBS"
27082        else
27083           { $as_echo "$as_me:$LINENO: result: no" >&5
27084 $as_echo "no" >&6; }
27085        fi
27086
27087 else
27088
27089        { $as_echo "$as_me:$LINENO: result: no" >&5
27090 $as_echo "no" >&6; }
27091
27092
27093 fi
27094
27095
27096
27097
27098 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27099 $as_echo_n "checking for socket... " >&6; }
27100 if test "${ac_cv_func_socket+set}" = set; then
27101   $as_echo_n "(cached) " >&6
27102 else
27103   cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27111 #define socket innocuous_socket
27112
27113 /* System header to define __stub macros and hopefully few prototypes,
27114     which can conflict with char socket (); below.
27115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27116     <limits.h> exists even on freestanding compilers.  */
27117
27118 #ifdef __STDC__
27119 # include <limits.h>
27120 #else
27121 # include <assert.h>
27122 #endif
27123
27124 #undef socket
27125
27126 /* Override any GCC internal prototype to avoid an error.
27127    Use char because int might match the return type of a GCC
27128    builtin and then its argument prototype would still apply.  */
27129 #ifdef __cplusplus
27130 extern "C"
27131 #endif
27132 char socket ();
27133 /* The GNU C library defines this for functions which it implements
27134     to always fail with ENOSYS.  Some functions are actually named
27135     something starting with __ and the normal name is an alias.  */
27136 #if defined __stub_socket || defined __stub___socket
27137 choke me
27138 #endif
27139
27140 int
27141 main ()
27142 {
27143 return socket ();
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 rm -f conftest.$ac_objext conftest$ac_exeext
27149 if { (ac_try="$ac_link"
27150 case "(($ac_try" in
27151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152   *) ac_try_echo=$ac_try;;
27153 esac
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156   (eval "$ac_link") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } && {
27163          test -z "$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        } && test -s conftest$ac_exeext && {
27166          test "$cross_compiling" = yes ||
27167          $as_test_x conftest$ac_exeext
27168        }; then
27169   ac_cv_func_socket=yes
27170 else
27171   $as_echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27173
27174         ac_cv_func_socket=no
27175 fi
27176
27177 rm -rf conftest.dSYM
27178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179       conftest$ac_exeext conftest.$ac_ext
27180 fi
27181 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27182 $as_echo "$ac_cv_func_socket" >&6; }
27183 if test "x$ac_cv_func_socket" = x""yes; then
27184   { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27185 $as_echo "using libc's socket" >&6; }
27186 else
27187
27188 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27189 $as_echo_n "checking for socket in -lxnet... " >&6; }
27190 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27191   $as_echo_n "(cached) " >&6
27192 else
27193   ac_check_lib_save_LIBS=$LIBS
27194 LIBS="-lxnet  $LIBS"
27195 cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201
27202 /* Override any GCC internal prototype to avoid an error.
27203    Use char because int might match the return type of a GCC
27204    builtin and then its argument prototype would still apply.  */
27205 #ifdef __cplusplus
27206 extern "C"
27207 #endif
27208 char socket ();
27209 int
27210 main ()
27211 {
27212 return socket ();
27213   ;
27214   return 0;
27215 }
27216 _ACEOF
27217 rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221   *) ac_try_echo=$ac_try;;
27222 esac
27223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224 $as_echo "$ac_try_echo") >&5
27225   (eval "$ac_link") 2>conftest.er1
27226   ac_status=$?
27227   grep -v '^ *+' conftest.er1 >conftest.err
27228   rm -f conftest.er1
27229   cat conftest.err >&5
27230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231   (exit $ac_status); } && {
27232          test -z "$ac_c_werror_flag" ||
27233          test ! -s conftest.err
27234        } && test -s conftest$ac_exeext && {
27235          test "$cross_compiling" = yes ||
27236          $as_test_x conftest$ac_exeext
27237        }; then
27238   ac_cv_lib_xnet_socket=yes
27239 else
27240   $as_echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27242
27243         ac_cv_lib_xnet_socket=no
27244 fi
27245
27246 rm -rf conftest.dSYM
27247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27248       conftest$ac_exeext conftest.$ac_ext
27249 LIBS=$ac_check_lib_save_LIBS
27250 fi
27251 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27252 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27253 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27254   cat >>confdefs.h <<_ACEOF
27255 #define HAVE_LIBXNET 1
27256 _ACEOF
27257
27258   LIBS="-lxnet $LIBS"
27259
27260 fi
27261
27262
27263 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27264 $as_echo_n "checking for socket in -lsocket... " >&6; }
27265 if test "${ac_cv_lib_socket_socket+set}" = set; then
27266   $as_echo_n "(cached) " >&6
27267 else
27268   ac_check_lib_save_LIBS=$LIBS
27269 LIBS="-lsocket  $LIBS"
27270 cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h.  */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h.  */
27276
27277 /* Override any GCC internal prototype to avoid an error.
27278    Use char because int might match the return type of a GCC
27279    builtin and then its argument prototype would still apply.  */
27280 #ifdef __cplusplus
27281 extern "C"
27282 #endif
27283 char socket ();
27284 int
27285 main ()
27286 {
27287 return socket ();
27288   ;
27289   return 0;
27290 }
27291 _ACEOF
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (ac_try="$ac_link"
27294 case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27299 $as_echo "$ac_try_echo") >&5
27300   (eval "$ac_link") 2>conftest.er1
27301   ac_status=$?
27302   grep -v '^ *+' conftest.er1 >conftest.err
27303   rm -f conftest.er1
27304   cat conftest.err >&5
27305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); } && {
27307          test -z "$ac_c_werror_flag" ||
27308          test ! -s conftest.err
27309        } && test -s conftest$ac_exeext && {
27310          test "$cross_compiling" = yes ||
27311          $as_test_x conftest$ac_exeext
27312        }; then
27313   ac_cv_lib_socket_socket=yes
27314 else
27315   $as_echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318         ac_cv_lib_socket_socket=no
27319 fi
27320
27321 rm -rf conftest.dSYM
27322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27323       conftest$ac_exeext conftest.$ac_ext
27324 LIBS=$ac_check_lib_save_LIBS
27325 fi
27326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27327 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27328 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27329   cat >>confdefs.h <<_ACEOF
27330 #define HAVE_LIBSOCKET 1
27331 _ACEOF
27332
27333   LIBS="-lsocket $LIBS"
27334
27335 fi
27336
27337
27338 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27339 $as_echo_n "checking for socket in -linet... " >&6; }
27340 if test "${ac_cv_lib_inet_socket+set}" = set; then
27341   $as_echo_n "(cached) " >&6
27342 else
27343   ac_check_lib_save_LIBS=$LIBS
27344 LIBS="-linet  $LIBS"
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352 /* Override any GCC internal prototype to avoid an error.
27353    Use char because int might match the return type of a GCC
27354    builtin and then its argument prototype would still apply.  */
27355 #ifdef __cplusplus
27356 extern "C"
27357 #endif
27358 char socket ();
27359 int
27360 main ()
27361 {
27362 return socket ();
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (ac_try="$ac_link"
27369 case "(($ac_try" in
27370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371   *) ac_try_echo=$ac_try;;
27372 esac
27373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27374 $as_echo "$ac_try_echo") >&5
27375   (eval "$ac_link") 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } && {
27382          test -z "$ac_c_werror_flag" ||
27383          test ! -s conftest.err
27384        } && test -s conftest$ac_exeext && {
27385          test "$cross_compiling" = yes ||
27386          $as_test_x conftest$ac_exeext
27387        }; then
27388   ac_cv_lib_inet_socket=yes
27389 else
27390   $as_echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393         ac_cv_lib_inet_socket=no
27394 fi
27395
27396 rm -rf conftest.dSYM
27397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27398       conftest$ac_exeext conftest.$ac_ext
27399 LIBS=$ac_check_lib_save_LIBS
27400 fi
27401 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27402 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27403 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27404   cat >>confdefs.h <<_ACEOF
27405 #define HAVE_LIBINET 1
27406 _ACEOF
27407
27408   LIBS="-linet $LIBS"
27409
27410 fi
27411
27412 fi
27413
27414
27415 TCPW_MSG="no"
27416 WRAPLIBS=""
27417
27418 # Check whether --with-tcp-wrappers was given.
27419 if test "${with_tcp_wrappers+set}" = set; then
27420   withval=$with_tcp_wrappers;
27421        if test "x$withval" != "xno" ; then
27422           saved_LIBS="$LIBS"
27423           LIBS="$saved_LIBS -lwrap"
27424           { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27425 $as_echo_n "checking for library containing nanosleep... " >&6; }
27426 if test "${ac_cv_search_nanosleep+set}" = set; then
27427   $as_echo_n "(cached) " >&6
27428 else
27429   ac_func_search_save_LIBS=$LIBS
27430 cat >conftest.$ac_ext <<_ACEOF
27431 /* confdefs.h.  */
27432 _ACEOF
27433 cat confdefs.h >>conftest.$ac_ext
27434 cat >>conftest.$ac_ext <<_ACEOF
27435 /* end confdefs.h.  */
27436
27437 /* Override any GCC internal prototype to avoid an error.
27438    Use char because int might match the return type of a GCC
27439    builtin and then its argument prototype would still apply.  */
27440 #ifdef __cplusplus
27441 extern "C"
27442 #endif
27443 char nanosleep ();
27444 int
27445 main ()
27446 {
27447 return nanosleep ();
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 for ac_lib in '' rt; do
27453   if test -z "$ac_lib"; then
27454     ac_res="none required"
27455   else
27456     ac_res=-l$ac_lib
27457     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27458   fi
27459   rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (ac_try="$ac_link"
27461 case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27466 $as_echo "$ac_try_echo") >&5
27467   (eval "$ac_link") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } && {
27474          test -z "$ac_c_werror_flag" ||
27475          test ! -s conftest.err
27476        } && test -s conftest$ac_exeext && {
27477          test "$cross_compiling" = yes ||
27478          $as_test_x conftest$ac_exeext
27479        }; then
27480   ac_cv_search_nanosleep=$ac_res
27481 else
27482   $as_echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27484
27485
27486 fi
27487
27488 rm -rf conftest.dSYM
27489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27490       conftest$ac_exeext
27491   if test "${ac_cv_search_nanosleep+set}" = set; then
27492   break
27493 fi
27494 done
27495 if test "${ac_cv_search_nanosleep+set}" = set; then
27496   :
27497 else
27498   ac_cv_search_nanosleep=no
27499 fi
27500 rm conftest.$ac_ext
27501 LIBS=$ac_func_search_save_LIBS
27502 fi
27503 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27504 $as_echo "$ac_cv_search_nanosleep" >&6; }
27505 ac_res=$ac_cv_search_nanosleep
27506 if test "$ac_res" != no; then
27507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27508
27509 fi
27510
27511           { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27512 $as_echo_n "checking for libwrap... " >&6; }
27513           cat >conftest.$ac_ext <<_ACEOF
27514 /* confdefs.h.  */
27515 _ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h.  */
27519
27520                #include <sys/types.h>
27521                #include <tcpd.h>
27522                int deny_severity = 0;
27523                int allow_severity = 0;
27524                struct request_info *req;
27525
27526 int
27527 main ()
27528 {
27529
27530                 hosts_access(req);
27531
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 rm -f conftest.$ac_objext conftest$ac_exeext
27537 if { (ac_try="$ac_link"
27538 case "(($ac_try" in
27539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540   *) ac_try_echo=$ac_try;;
27541 esac
27542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27543 $as_echo "$ac_try_echo") >&5
27544   (eval "$ac_link") 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } && {
27551          test -z "$ac_c_werror_flag" ||
27552          test ! -s conftest.err
27553        } && test -s conftest$ac_exeext && {
27554          test "$cross_compiling" = yes ||
27555          $as_test_x conftest$ac_exeext
27556        }; then
27557
27558                  { $as_echo "$as_me:$LINENO: result: yes" >&5
27559 $as_echo "yes" >&6; }
27560
27561 cat >>confdefs.h <<\_ACEOF
27562 #define HAVE_LIBWRAP 1
27563 _ACEOF
27564
27565                  TCPW_MSG="yes"
27566                  LIBS="$saved_LIBS"
27567                  WRAPLIBS="-lwrap"
27568
27569 else
27570   $as_echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27572
27573
27574                  LIBS="$saved_LIBS -lwrap -lnsl"
27575                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27576                  cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582
27583                        #include <sys/types.h>
27584                        #include <tcpd.h>
27585                        int deny_severity = 0;
27586                        int allow_severity = 0;
27587                        struct request_info *req;
27588
27589 int
27590 main ()
27591 {
27592
27593                        hosts_access(req);
27594
27595   ;
27596   return 0;
27597 }
27598 _ACEOF
27599 rm -f conftest.$ac_objext conftest$ac_exeext
27600 if { (ac_try="$ac_link"
27601 case "(($ac_try" in
27602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603   *) ac_try_echo=$ac_try;;
27604 esac
27605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27606 $as_echo "$ac_try_echo") >&5
27607   (eval "$ac_link") 2>conftest.er1
27608   ac_status=$?
27609   grep -v '^ *+' conftest.er1 >conftest.err
27610   rm -f conftest.er1
27611   cat conftest.err >&5
27612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); } && {
27614          test -z "$ac_c_werror_flag" ||
27615          test ! -s conftest.err
27616        } && test -s conftest$ac_exeext && {
27617          test "$cross_compiling" = yes ||
27618          $as_test_x conftest$ac_exeext
27619        }; then
27620
27621                       { $as_echo "$as_me:$LINENO: result: yes" >&5
27622 $as_echo "yes" >&6; }
27623
27624 cat >>confdefs.h <<\_ACEOF
27625 #define HAVE_LIBWRAP 1
27626 _ACEOF
27627
27628                       TCPW_MSG="yes"
27629                       LIBS="$saved_LIBS"
27630                       WRAPLIBS="-lwrap"
27631
27632 else
27633   $as_echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636
27637                       { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27638 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27639    { (exit 1); exit 1; }; }
27640
27641
27642 fi
27643
27644 rm -rf conftest.dSYM
27645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27646       conftest$ac_exeext conftest.$ac_ext
27647
27648
27649 fi
27650
27651 rm -rf conftest.dSYM
27652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27653       conftest$ac_exeext conftest.$ac_ext
27654        fi
27655
27656
27657 fi
27658
27659
27660 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27661 $as_echo_n "checking for OpenSSL... " >&6; }
27662
27663 # Check whether --with-openssl was given.
27664 if test "${with_openssl+set}" = set; then
27665   withval=$with_openssl;
27666         with_openssl_directory=${withval}
27667
27668
27669 fi
27670
27671
27672 if test "x$with_openssl_directory" != "xno"; then
27673    OPENSSL_LIBS="-lssl -lcrypto"
27674    OPENSSL_INC=""
27675
27676    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27677       #
27678       # Make sure the $with_openssl_directory also makes sense
27679       #
27680       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27681          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27682          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27683       fi
27684    fi
27685
27686    saved_LIBS="${LIBS}"
27687    saved_CFLAGS="${CFLAGS}"
27688    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27689    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27690
27691    cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697
27698           #include <openssl/ssl.h>
27699
27700 int
27701 main ()
27702 {
27703
27704            CRYPTO_set_id_callback(NULL);
27705
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext conftest$ac_exeext
27711 if { (ac_try="$ac_link"
27712 case "(($ac_try" in
27713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714   *) ac_try_echo=$ac_try;;
27715 esac
27716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27717 $as_echo "$ac_try_echo") >&5
27718   (eval "$ac_link") 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } && {
27725          test -z "$ac_c_werror_flag" ||
27726          test ! -s conftest.err
27727        } && test -s conftest$ac_exeext && {
27728          test "$cross_compiling" = yes ||
27729          $as_test_x conftest$ac_exeext
27730        }; then
27731
27732           support_tls="yes"
27733           support_crypto="yes"
27734
27735 else
27736   $as_echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739
27740           support_tls="no"
27741           support_crypto="no"
27742
27743
27744 fi
27745
27746 rm -rf conftest.dSYM
27747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27748       conftest$ac_exeext conftest.$ac_ext
27749
27750    cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756
27757           #include <openssl/evp.h>
27758
27759 int
27760 main ()
27761 {
27762
27763           EVP_sha512();
27764
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (ac_try="$ac_link"
27771 case "(($ac_try" in
27772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773   *) ac_try_echo=$ac_try;;
27774 esac
27775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27776 $as_echo "$ac_try_echo") >&5
27777   (eval "$ac_link") 2>conftest.er1
27778   ac_status=$?
27779   grep -v '^ *+' conftest.er1 >conftest.err
27780   rm -f conftest.er1
27781   cat conftest.err >&5
27782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); } && {
27784          test -z "$ac_c_werror_flag" ||
27785          test ! -s conftest.err
27786        } && test -s conftest$ac_exeext && {
27787          test "$cross_compiling" = yes ||
27788          $as_test_x conftest$ac_exeext
27789        }; then
27790
27791           ac_cv_openssl_sha2="yes"
27792
27793 else
27794   $as_echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797
27798           ac_cv_openssl_sha2="no"
27799
27800
27801 fi
27802
27803 rm -rf conftest.dSYM
27804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27805       conftest$ac_exeext conftest.$ac_ext
27806
27807                cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h.  */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h.  */
27813
27814           #include <openssl/evp.h>
27815
27816 int
27817 main ()
27818 {
27819
27820           EVP_aes_192_cbc();
27821
27822   ;
27823   return 0;
27824 }
27825 _ACEOF
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (ac_try="$ac_link"
27828 case "(($ac_try" in
27829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830   *) ac_try_echo=$ac_try;;
27831 esac
27832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27833 $as_echo "$ac_try_echo") >&5
27834   (eval "$ac_link") 2>conftest.er1
27835   ac_status=$?
27836   grep -v '^ *+' conftest.er1 >conftest.err
27837   rm -f conftest.er1
27838   cat conftest.err >&5
27839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); } && {
27841          test -z "$ac_c_werror_flag" ||
27842          test ! -s conftest.err
27843        } && test -s conftest$ac_exeext && {
27844          test "$cross_compiling" = yes ||
27845          $as_test_x conftest$ac_exeext
27846        }; then
27847
27848           ac_cv_openssl_export="no"
27849
27850 else
27851   $as_echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27853
27854
27855           ac_cv_openssl_export="yes"
27856
27857
27858 fi
27859
27860 rm -rf conftest.dSYM
27861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27862       conftest$ac_exeext conftest.$ac_ext
27863
27864    LIBS="${saved_LIBS}"
27865    CFLAGS="${saved_CFLAGS}"
27866
27867    if test "$support_tls" = "yes"; then
27868
27869 cat >>confdefs.h <<\_ACEOF
27870 #define HAVE_OPENSSL 1
27871 _ACEOF
27872
27873
27874 cat >>confdefs.h <<\_ACEOF
27875 #define HAVE_TLS 1
27876 _ACEOF
27877
27878
27879 cat >>confdefs.h <<\_ACEOF
27880 #define HAVE_CRYPTO 1
27881 _ACEOF
27882
27883    fi
27884
27885    if test "$ac_cv_openssl_sha2" = "yes"; then
27886
27887 cat >>confdefs.h <<\_ACEOF
27888 #define HAVE_SHA2 1
27889 _ACEOF
27890
27891    fi
27892
27893    if test "$ac_cv_openssl_export" = "yes"; then
27894
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27897 _ACEOF
27898
27899    fi
27900 else
27901    support_tls="no"
27902    support_crypto="no"
27903    OPENSSL_LIBS=""
27904    OPENSSL_INC=""
27905 fi
27906 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
27907 $as_echo "$support_tls" >&6; }
27908
27909 if test "$support_tls" = "no"; then
27910    OPENSSL_LIBS=""
27911    OPENSSL_INC=""
27912 fi
27913 if test "$support_crypto" = "no"; then
27914    OPENSSL_LIBS=""
27915    OPENSSL_INC=""
27916 else
27917    { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27918 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
27919 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27920   $as_echo_n "(cached) " >&6
27921 else
27922   ac_check_lib_save_LIBS=$LIBS
27923 LIBS="-lssl  $LIBS"
27924 cat >conftest.$ac_ext <<_ACEOF
27925 /* confdefs.h.  */
27926 _ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h.  */
27930
27931 /* Override any GCC internal prototype to avoid an error.
27932    Use char because int might match the return type of a GCC
27933    builtin and then its argument prototype would still apply.  */
27934 #ifdef __cplusplus
27935 extern "C"
27936 #endif
27937 char EVP_PKEY_encrypt_old ();
27938 int
27939 main ()
27940 {
27941 return EVP_PKEY_encrypt_old ();
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 rm -f conftest.$ac_objext conftest$ac_exeext
27947 if { (ac_try="$ac_link"
27948 case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27953 $as_echo "$ac_try_echo") >&5
27954   (eval "$ac_link") 2>conftest.er1
27955   ac_status=$?
27956   grep -v '^ *+' conftest.er1 >conftest.err
27957   rm -f conftest.er1
27958   cat conftest.err >&5
27959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } && {
27961          test -z "$ac_c_werror_flag" ||
27962          test ! -s conftest.err
27963        } && test -s conftest$ac_exeext && {
27964          test "$cross_compiling" = yes ||
27965          $as_test_x conftest$ac_exeext
27966        }; then
27967   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27968 else
27969   $as_echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27973 fi
27974
27975 rm -rf conftest.dSYM
27976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27977       conftest$ac_exeext conftest.$ac_ext
27978 LIBS=$ac_check_lib_save_LIBS
27979 fi
27980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27981 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27982 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then
27983
27984 cat >>confdefs.h <<\_ACEOF
27985 #define HAVE_OPENSSLv1 1
27986 _ACEOF
27987
27988 fi
27989
27990 fi
27991
27992
27993
27994
27995 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27996 $as_echo_n "checking for library containing dlopen... " >&6; }
27997 if test "${ac_cv_search_dlopen+set}" = set; then
27998   $as_echo_n "(cached) " >&6
27999 else
28000   ac_func_search_save_LIBS=$LIBS
28001 cat >conftest.$ac_ext <<_ACEOF
28002 /* confdefs.h.  */
28003 _ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h.  */
28007
28008 /* Override any GCC internal prototype to avoid an error.
28009    Use char because int might match the return type of a GCC
28010    builtin and then its argument prototype would still apply.  */
28011 #ifdef __cplusplus
28012 extern "C"
28013 #endif
28014 char dlopen ();
28015 int
28016 main ()
28017 {
28018 return dlopen ();
28019   ;
28020   return 0;
28021 }
28022 _ACEOF
28023 for ac_lib in '' dl; do
28024   if test -z "$ac_lib"; then
28025     ac_res="none required"
28026   else
28027     ac_res=-l$ac_lib
28028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28029   fi
28030   rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (ac_try="$ac_link"
28032 case "(($ac_try" in
28033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034   *) ac_try_echo=$ac_try;;
28035 esac
28036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28037 $as_echo "$ac_try_echo") >&5
28038   (eval "$ac_link") 2>conftest.er1
28039   ac_status=$?
28040   grep -v '^ *+' conftest.er1 >conftest.err
28041   rm -f conftest.er1
28042   cat conftest.err >&5
28043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } && {
28045          test -z "$ac_c_werror_flag" ||
28046          test ! -s conftest.err
28047        } && test -s conftest$ac_exeext && {
28048          test "$cross_compiling" = yes ||
28049          $as_test_x conftest$ac_exeext
28050        }; then
28051   ac_cv_search_dlopen=$ac_res
28052 else
28053   $as_echo "$as_me: failed program was:" >&5
28054 sed 's/^/| /' conftest.$ac_ext >&5
28055
28056
28057 fi
28058
28059 rm -rf conftest.dSYM
28060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28061       conftest$ac_exeext
28062   if test "${ac_cv_search_dlopen+set}" = set; then
28063   break
28064 fi
28065 done
28066 if test "${ac_cv_search_dlopen+set}" = set; then
28067   :
28068 else
28069   ac_cv_search_dlopen=no
28070 fi
28071 rm conftest.$ac_ext
28072 LIBS=$ac_func_search_save_LIBS
28073 fi
28074 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28075 $as_echo "$ac_cv_search_dlopen" >&6; }
28076 ac_res=$ac_cv_search_dlopen
28077 if test "$ac_res" != no; then
28078   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28079
28080 fi
28081
28082
28083 working_dir=`eval echo ${prefix}/var/bacula/working`
28084
28085 # Check whether --with-working-dir was given.
28086 if test "${with_working_dir+set}" = set; then
28087   withval=$with_working_dir;
28088        if test "x$withval" != "xno" ; then
28089          working_dir=$withval
28090        fi
28091
28092
28093 fi
28094
28095
28096
28097
28098 archivedir=/tmp
28099
28100 # Check whether --with-archivedir was given.
28101 if test "${with_archivedir+set}" = set; then
28102   withval=$with_archivedir;
28103        if test "x$withval" != "xno" ; then
28104           archivedir=$withval
28105        fi
28106
28107
28108 fi
28109
28110
28111
28112
28113 basename=`hostname`
28114
28115 # Check whether --with-basename was given.
28116 if test "${with_basename+set}" = set; then
28117   withval=$with_basename;
28118        if test "x$withval" != "xno" ; then
28119           basename=$withval
28120        fi
28121
28122
28123 fi
28124
28125
28126
28127
28128 hostname=`uname -n | cut -d '.' -f 1`
28129 if test x${hostname} = x ; then
28130   hostname="localhost"
28131 fi
28132
28133 # Check whether --with-hostname was given.
28134 if test "${with_hostname+set}" = set; then
28135   withval=$with_hostname;
28136        if test "x$withval" != "xno" ; then
28137          hostname=$withval
28138        fi
28139
28140
28141 fi
28142
28143
28144
28145
28146
28147 scriptdir=`eval echo ${sysconfdir}`
28148
28149 # Check whether --with-scriptdir was given.
28150 if test "${with_scriptdir+set}" = set; then
28151   withval=$with_scriptdir;
28152        if test "x$withval" != "xno" ; then
28153           scriptdir=$withval
28154        fi
28155
28156
28157 fi
28158
28159
28160
28161
28162
28163 bsrdir=/tmp
28164
28165 # Check whether --with-bsrdir was given.
28166 if test "${with_bsrdir+set}" = set; then
28167   withval=$with_bsrdir;
28168        if test "x$withval" != "xno" ; then
28169           bsrdir=$withval
28170        fi
28171
28172
28173 fi
28174
28175
28176
28177
28178 logdir=/tmp
28179
28180 # Check whether --with-logdir was given.
28181 if test "${with_logdir+set}" = set; then
28182   withval=$with_logdir;
28183        if test "x$withval" != "xno" ; then
28184           logdir=$withval
28185        fi
28186
28187
28188 fi
28189
28190
28191
28192
28193
28194 # ------------------------------------------
28195 # Where to place plugindir (plugin files)
28196 # ------------------------------------------
28197 plugindir=`eval echo ${libdir}`
28198
28199 # Check whether --with-plugindir was given.
28200 if test "${with_plugindir+set}" = set; then
28201   withval=$with_plugindir;
28202        if test "x$withval" != "xno" ; then
28203           plugindir=$withval
28204        fi
28205
28206
28207 fi
28208
28209
28210
28211
28212 dump_email=root@localhost
28213
28214 # Check whether --with-dump-email was given.
28215 if test "${with_dump_email+set}" = set; then
28216   withval=$with_dump_email;
28217        if test "x$withval" != "xno" ; then
28218           dump_email=$withval
28219        fi
28220
28221
28222 fi
28223
28224
28225
28226
28227 job_email=root@localhost
28228
28229 # Check whether --with-job-email was given.
28230 if test "${with_job_email+set}" = set; then
28231   withval=$with_job_email;
28232        if test "x$withval" != "xno" ; then
28233           job_email=$withval
28234        fi
28235
28236
28237 fi
28238
28239
28240
28241
28242 smtp_host=localhost
28243
28244 # Check whether --with-smtp_host was given.
28245 if test "${with_smtp_host+set}" = set; then
28246   withval=$with_smtp_host;
28247        if test "x$withval" != "xno" ; then
28248           smtp_host=$withval
28249        fi
28250
28251
28252 fi
28253
28254
28255
28256
28257 piddir=/var/run
28258
28259 # Check whether --with-pid-dir was given.
28260 if test "${with_pid_dir+set}" = set; then
28261   withval=$with_pid_dir;
28262        if test "x$withval" != "xno" ; then
28263           piddir=$withval
28264        fi
28265
28266
28267 fi
28268
28269
28270 cat >>confdefs.h <<_ACEOF
28271 #define _PATH_BACULA_PIDDIR "$piddir"
28272 _ACEOF
28273
28274
28275
28276 subsysdir=/var/run/subsys
28277 if test -d /var/run/subsys; then
28278    subsysdir=/var/run/subsys
28279 elif test -d /var/lock/subsys; then
28280    subsysdir=/var/lock/subsys
28281 else
28282    subsysdir=/var/run/subsys
28283 fi
28284
28285 # Check whether --with-subsys-dir was given.
28286 if test "${with_subsys_dir+set}" = set; then
28287   withval=$with_subsys_dir;
28288        if test "x$withval" != "xno" ; then
28289           subsysdir=$withval
28290        fi
28291
28292
28293 fi
28294
28295
28296
28297
28298 baseport=9101
28299
28300 # Check whether --with-baseport was given.
28301 if test "${with_baseport+set}" = set; then
28302   withval=$with_baseport;
28303        if test "x$withval" != "xno" ; then
28304           baseport=$withval
28305        fi
28306
28307
28308 fi
28309
28310
28311
28312 dir_port=`expr $baseport`
28313 fd_port=`expr $baseport + 1`
28314 sd_port=`expr $fd_port + 1`
28315
28316
28317
28318
28319
28320 dir_password=
28321
28322 # Check whether --with-dir-password was given.
28323 if test "${with_dir_password+set}" = set; then
28324   withval=$with_dir_password;
28325        if test "x$withval" != "xno" ; then
28326           dir_password=$withval
28327        fi
28328
28329
28330 fi
28331
28332
28333 if test "x$dir_password" = "x" ; then
28334    if test "x$OPENSSL" = "xnone" ; then
28335       key=`autoconf/randpass 33`
28336    else
28337       key=`openssl rand -base64 33`
28338    fi
28339    dir_password=$key
28340 fi
28341
28342 fd_password=
28343
28344 # Check whether --with-fd-password was given.
28345 if test "${with_fd_password+set}" = set; then
28346   withval=$with_fd_password;
28347        if test "x$withval" != "xno" ; then
28348           fd_password=$withval
28349        fi
28350
28351
28352 fi
28353
28354
28355 if test "x$fd_password" = "x" ; then
28356    if test "x$OPENSSL" = "xnone" ; then
28357       key=`autoconf/randpass 37`
28358    else
28359       key=`openssl rand -base64 33`
28360    fi
28361    fd_password=$key
28362 fi
28363
28364 sd_password=
28365
28366 # Check whether --with-sd-password was given.
28367 if test "${with_sd_password+set}" = set; then
28368   withval=$with_sd_password;
28369        if test "x$withval" != "xno" ; then
28370           sd_password=$withval
28371        fi
28372
28373
28374 fi
28375
28376
28377 if test "x$sd_password" = "x" ; then
28378    if test "x$OPENSSL" = "xnone" ; then
28379       key=`autoconf/randpass 41`
28380    else
28381       key=`openssl rand -base64 33`
28382    fi
28383    sd_password=$key
28384 fi
28385
28386 mon_dir_password=
28387
28388 # Check whether --with-mon-dir-password was given.
28389 if test "${with_mon_dir_password+set}" = set; then
28390   withval=$with_mon_dir_password;
28391        if test "x$withval" != "xno" ; then
28392           mon_dir_password=$withval
28393        fi
28394
28395
28396 fi
28397
28398
28399 if test "x$mon_dir_password" = "x" ; then
28400    if test "x$OPENSSL" = "xnone" ; then
28401       key=`autoconf/randpass 33`
28402    else
28403       key=`openssl rand -base64 33`
28404    fi
28405    mon_dir_password=$key
28406 fi
28407
28408 mon_fd_password=
28409
28410 # Check whether --with-mon-fd-password was given.
28411 if test "${with_mon_fd_password+set}" = set; then
28412   withval=$with_mon_fd_password;
28413        if test "x$withval" != "xno" ; then
28414           mon_fd_password=$withval
28415        fi
28416
28417
28418 fi
28419
28420
28421 if test "x$mon_fd_password" = "x" ; then
28422    if test "x$OPENSSL" = "xnone" ; then
28423       key=`autoconf/randpass 37`
28424    else
28425       key=`openssl rand -base64 33`
28426    fi
28427    mon_fd_password=$key
28428 fi
28429
28430 mon_sd_password=
28431
28432 # Check whether --with-mon-sd-password was given.
28433 if test "${with_mon_sd_password+set}" = set; then
28434   withval=$with_mon_sd_password;
28435        if test "x$withval" != "xno" ; then
28436           mon_sd_password=$withval
28437        fi
28438
28439
28440 fi
28441
28442
28443 if test "x$mon_sd_password" = "x" ; then
28444    if test "x$OPENSSL" = "xnone" ; then
28445       key=`autoconf/randpass 41`
28446    else
28447       key=`openssl rand -base64 33`
28448    fi
28449    mon_sd_password=$key
28450 fi
28451
28452
28453
28454
28455
28456
28457
28458
28459 db_name=bacula
28460
28461 # Check whether --with-db_name was given.
28462 if test "${with_db_name+set}" = set; then
28463   withval=$with_db_name;
28464        if test "x$withval" != "x" ; then
28465           db_name=$withval
28466        fi
28467
28468
28469 fi
28470
28471
28472
28473 db_user=bacula
28474
28475 # Check whether --with-db_user was given.
28476 if test "${with_db_user+set}" = set; then
28477   withval=$with_db_user;
28478        if test "x$withval" != "x" ; then
28479           db_user=$withval
28480        fi
28481
28482
28483 fi
28484
28485
28486
28487 db_password=
28488
28489 # Check whether --with-db_password was given.
28490 if test "${with_db_password+set}" = set; then
28491   withval=$with_db_password;
28492        if test "x$withval" != "x" ; then
28493           db_password=$withval
28494        fi
28495
28496
28497 fi
28498
28499
28500
28501 db_port=" "
28502
28503 # Check whether --with-db_port was given.
28504 if test "${with_db_port+set}" = set; then
28505   withval=$with_db_port;
28506        if test "x$withval" != "x" ; then
28507           db_port=$withval
28508        fi
28509
28510
28511 fi
28512
28513
28514
28515 #
28516 # Handle users and groups for each daemon
28517 #
28518 dir_user=
28519
28520 # Check whether --with-dir_user was given.
28521 if test "${with_dir_user+set}" = set; then
28522   withval=$with_dir_user;
28523        if test "x$withval" != "x" ; then
28524            dir_user=$withval
28525        fi
28526
28527
28528 fi
28529
28530
28531 dir_group=
28532
28533 # Check whether --with-dir_group was given.
28534 if test "${with_dir_group+set}" = set; then
28535   withval=$with_dir_group;
28536        if test "x$withval" != "x" ; then
28537           dir_group=$withval
28538        fi
28539
28540
28541 fi
28542
28543
28544 sd_user=
28545
28546 # Check whether --with-sd_user was given.
28547 if test "${with_sd_user+set}" = set; then
28548   withval=$with_sd_user;
28549        if test "x$withval" != "x" ; then
28550           sd_user=$withval
28551        fi
28552
28553
28554 fi
28555
28556
28557 sd_group=
28558
28559 # Check whether --with-sd_group was given.
28560 if test "${with_sd_group+set}" = set; then
28561   withval=$with_sd_group;
28562        if test "x$withval" != "x" ; then
28563           sd_group=$withval
28564        fi
28565
28566
28567 fi
28568
28569
28570 fd_user=
28571
28572 # Check whether --with-fd_user was given.
28573 if test "${with_fd_user+set}" = set; then
28574   withval=$with_fd_user;
28575        if test "x$withval" != "x" ; then
28576           fd_user=$withval
28577        fi
28578
28579
28580 fi
28581
28582
28583 fd_group=
28584
28585 # Check whether --with-fd_group was given.
28586 if test "${with_fd_group+set}" = set; then
28587   withval=$with_fd_group;
28588        if test "x$withval" != "x" ; then
28589           fd_group=$withval
28590        fi
28591
28592
28593 fi
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603 SBINPERM=0750
28604
28605 # Check whether --with-sbin-perm was given.
28606 if test "${with_sbin_perm+set}" = set; then
28607   withval=$with_sbin_perm;
28608        if test "x$withval" != "x" ; then
28609           SBINPERM=$withval
28610        fi
28611
28612
28613 fi
28614
28615
28616
28617
28618 SQL_LIB=
28619
28620 db_found=no
28621 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28622 $as_echo_n "checking for PostgreSQL support... " >&6; }
28623
28624 # Check whether --with-postgresql was given.
28625 if test "${with_postgresql+set}" = set; then
28626   withval=$with_postgresql;
28627   if test "$withval" != "no"; then
28628       if test "$db_found" = "yes"; then
28629           { $as_echo "$as_me:$LINENO: result: error" >&5
28630 $as_echo "error" >&6; }
28631           { { $as_echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
28632 $as_echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
28633    { (exit 1); exit 1; }; };
28634       fi
28635       if test "$withval" = "yes"; then
28636           PG_CONFIG=`which pg_config`
28637           if test -n "$PG_CONFIG";then
28638               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28639               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28640               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28641           elif test -f /usr/local/include/libpq-fe.h; then
28642               POSTGRESQL_INCDIR=/usr/local/include
28643               if test -d /usr/local/lib64; then
28644                  POSTGRESQL_LIBDIR=/usr/local/lib64
28645               else
28646                  POSTGRESQL_LIBDIR=/usr/local/lib
28647               fi
28648               POSTGRESQL_BINDIR=/usr/local/bin
28649           elif test -f /usr/include/libpq-fe.h; then
28650               POSTGRESQL_INCDIR=/usr/include
28651               if test -d /usr/lib64; then
28652                  POSTGRESQL_LIBDIR=/usr/lib64
28653               else
28654                  POSTGRESQL_LIBDIR=/usr/lib
28655               fi
28656               POSTGRESQL_BINDIR=/usr/bin
28657           elif test -f /usr/include/pgsql/libpq-fe.h; then
28658               POSTGRESQL_INCDIR=/usr/include/pgsql
28659               if test -d /usr/lib64/pgsql; then
28660                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28661               else
28662                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28663               fi
28664               POSTGRESQL_BINDIR=/usr/bin
28665           elif test -f /usr/include/postgresql/libpq-fe.h; then
28666               POSTGRESQL_INCDIR=/usr/include/postgresql
28667               if test -d /usr/lib64/postgresql; then
28668                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28669               else
28670                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28671               fi
28672               POSTGRESQL_BINDIR=/usr/bin
28673           else
28674               { $as_echo "$as_me:$LINENO: result: no" >&5
28675 $as_echo "no" >&6; }
28676               { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28677 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28678    { (exit 1); exit 1; }; }
28679           fi
28680       elif test -f $withval/include/libpq-fe.h; then
28681           POSTGRESQL_INCDIR=$withval/include
28682           POSTGRESQL_LIBDIR=$withval/lib
28683           POSTGRESQL_BINDIR=$withval/bin
28684       elif test -f $withval/include/postgresql/libpq-fe.h; then
28685           POSTGRESQL_INCDIR=$withval/include/postgresql
28686      if test -d $withval/lib64; then
28687          POSTGRESQL_LIBDIR=$withval/lib64
28688      else
28689          POSTGRESQL_LIBDIR=$withval/lib
28690      fi
28691           POSTGRESQL_BINDIR=$withval/bin
28692       else
28693           { $as_echo "$as_me:$LINENO: result: no" >&5
28694 $as_echo "no" >&6; }
28695           { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28696 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28697    { (exit 1); exit 1; }; }
28698       fi
28699       cat >>confdefs.h <<\_ACEOF
28700 #define HAVE_POSTGRESQL 1
28701 _ACEOF
28702
28703       { $as_echo "$as_me:$LINENO: result: yes" >&5
28704 $as_echo "yes" >&6; }
28705       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28706       { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28707 $as_echo_n "checking for crypt... " >&6; }
28708 if test "${ac_cv_func_crypt+set}" = set; then
28709   $as_echo_n "(cached) " >&6
28710 else
28711   cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28719 #define crypt innocuous_crypt
28720
28721 /* System header to define __stub macros and hopefully few prototypes,
28722     which can conflict with char crypt (); below.
28723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28724     <limits.h> exists even on freestanding compilers.  */
28725
28726 #ifdef __STDC__
28727 # include <limits.h>
28728 #else
28729 # include <assert.h>
28730 #endif
28731
28732 #undef crypt
28733
28734 /* Override any GCC internal prototype to avoid an error.
28735    Use char because int might match the return type of a GCC
28736    builtin and then its argument prototype would still apply.  */
28737 #ifdef __cplusplus
28738 extern "C"
28739 #endif
28740 char crypt ();
28741 /* The GNU C library defines this for functions which it implements
28742     to always fail with ENOSYS.  Some functions are actually named
28743     something starting with __ and the normal name is an alias.  */
28744 #if defined __stub_crypt || defined __stub___crypt
28745 choke me
28746 #endif
28747
28748 int
28749 main ()
28750 {
28751 return crypt ();
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext conftest$ac_exeext
28757 if { (ac_try="$ac_link"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28763 $as_echo "$ac_try_echo") >&5
28764   (eval "$ac_link") 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } && {
28771          test -z "$ac_c_werror_flag" ||
28772          test ! -s conftest.err
28773        } && test -s conftest$ac_exeext && {
28774          test "$cross_compiling" = yes ||
28775          $as_test_x conftest$ac_exeext
28776        }; then
28777   ac_cv_func_crypt=yes
28778 else
28779   $as_echo "$as_me: failed program was:" >&5
28780 sed 's/^/| /' conftest.$ac_ext >&5
28781
28782         ac_cv_func_crypt=no
28783 fi
28784
28785 rm -rf conftest.dSYM
28786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28787       conftest$ac_exeext conftest.$ac_ext
28788 fi
28789 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28790 $as_echo "$ac_cv_func_crypt" >&6; }
28791 if test "x$ac_cv_func_crypt" = x""yes; then
28792   :
28793 else
28794   { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28795 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28796 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28797   $as_echo_n "(cached) " >&6
28798 else
28799   ac_check_lib_save_LIBS=$LIBS
28800 LIBS="-lcrypt  $LIBS"
28801 cat >conftest.$ac_ext <<_ACEOF
28802 /* confdefs.h.  */
28803 _ACEOF
28804 cat confdefs.h >>conftest.$ac_ext
28805 cat >>conftest.$ac_ext <<_ACEOF
28806 /* end confdefs.h.  */
28807
28808 /* Override any GCC internal prototype to avoid an error.
28809    Use char because int might match the return type of a GCC
28810    builtin and then its argument prototype would still apply.  */
28811 #ifdef __cplusplus
28812 extern "C"
28813 #endif
28814 char crypt ();
28815 int
28816 main ()
28817 {
28818 return crypt ();
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (ac_try="$ac_link"
28825 case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28830 $as_echo "$ac_try_echo") >&5
28831   (eval "$ac_link") 2>conftest.er1
28832   ac_status=$?
28833   grep -v '^ *+' conftest.er1 >conftest.err
28834   rm -f conftest.er1
28835   cat conftest.err >&5
28836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); } && {
28838          test -z "$ac_c_werror_flag" ||
28839          test ! -s conftest.err
28840        } && test -s conftest$ac_exeext && {
28841          test "$cross_compiling" = yes ||
28842          $as_test_x conftest$ac_exeext
28843        }; then
28844   ac_cv_lib_crypt_crypt=yes
28845 else
28846   $as_echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849         ac_cv_lib_crypt_crypt=no
28850 fi
28851
28852 rm -rf conftest.dSYM
28853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28854       conftest$ac_exeext conftest.$ac_ext
28855 LIBS=$ac_check_lib_save_LIBS
28856 fi
28857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28858 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28859 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28860   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28861 fi
28862
28863 fi
28864
28865       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28866       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28867       SQL_BINDIR=$POSTGRESQL_BINDIR
28868       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28869
28870       db_found=yes
28871       support_postgresql=yes
28872       db_type=PostgreSQL
28873       DB_TYPE=postgresql
28874   else
28875       { $as_echo "$as_me:$LINENO: result: no" >&5
28876 $as_echo "no" >&6; }
28877   fi
28878
28879 else
28880
28881   { $as_echo "$as_me:$LINENO: result: no" >&5
28882 $as_echo "no" >&6; }
28883
28884 fi
28885
28886
28887
28888
28889
28890
28891
28892
28893 db_found=no
28894 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28895 $as_echo_n "checking for MySQL support... " >&6; }
28896
28897 # Check whether --with-mysql was given.
28898 if test "${with_mysql+set}" = set; then
28899   withval=$with_mysql;
28900   if test "$withval" != "no"; then
28901         if test "$withval" = "yes"; then
28902            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28903                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28904                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28905                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28906                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28907                    else
28908                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28909                    fi
28910                    MYSQL_BINDIR=/usr/local/mysql/bin
28911            elif test -f /usr/include/mysql/mysql.h; then
28912                    MYSQL_INCDIR=/usr/include/mysql
28913                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28914                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28915                            MYSQL_LIBDIR=/usr/lib64/mysql
28916                    elif test -f /usr/lib64/libmysqlclient_r.a \
28917                         -o -f /usr/lib64/libmysqlclient_r.so; then
28918                            MYSQL_LIBDIR=/usr/lib64
28919                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28920                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28921                            MYSQL_LIBDIR=/usr/lib/mysql
28922                    else
28923                            MYSQL_LIBDIR=/usr/lib
28924                    fi
28925                    MYSQL_BINDIR=/usr/bin
28926            elif test -f /usr/include/mysql.h; then
28927                    MYSQL_INCDIR=/usr/include
28928                    if test -f /usr/lib64/libmysqlclient_r.a \
28929                         -o -f /usr/lib64/libmysqlclient_r.so; then
28930                            MYSQL_LIBDIR=/usr/lib64
28931                    else
28932                            MYSQL_LIBDIR=/usr/lib
28933                    fi
28934                    MYSQL_BINDIR=/usr/bin
28935            elif test -f /usr/local/include/mysql/mysql.h; then
28936                    MYSQL_INCDIR=/usr/local/include/mysql
28937                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28938                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28939                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28940                    else
28941                            MYSQL_LIBDIR=/usr/local/lib/mysql
28942                    fi
28943                    MYSQL_BINDIR=/usr/local/bin
28944            elif test -f /usr/local/include/mysql.h; then
28945                    MYSQL_INCDIR=/usr/local/include
28946                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28947                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28948                            MYSQL_LIBDIR=/usr/local/lib64
28949                    else
28950                            MYSQL_LIBDIR=/usr/local/lib
28951                    fi
28952                    MYSQL_BINDIR=/usr/local/bin
28953            else
28954               { $as_echo "$as_me:$LINENO: result: no" >&5
28955 $as_echo "no" >&6; }
28956               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28957 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28958    { (exit 1); exit 1; }; }
28959            fi
28960         else
28961            if test -f $withval/include/mysql/mysql.h; then
28962               MYSQL_INCDIR=$withval/include/mysql
28963               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28964                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28965                  MYSQL_LIBDIR=$withval/lib64/mysql
28966               elif test -f $withval/lib64/libmysqlclient_r.a \
28967                    -o -f $withval/lib64/libmysqlclient_r.so; then
28968                  MYSQL_LIBDIR=$withval/lib64
28969               elif test -f $withval/lib/libmysqlclient_r.a \
28970                    -o -f $withval/lib/libmysqlclient_r.so; then
28971                  MYSQL_LIBDIR=$withval/lib
28972               else
28973                  MYSQL_LIBDIR=$withval/lib/mysql
28974               fi
28975               MYSQL_BINDIR=$withval/bin
28976            elif test -f $withval/include/mysql.h; then
28977               MYSQL_INCDIR=$withval/include
28978               if test -f $withval/lib64/libmysqlclient_r.a \
28979                    -o -f $withval/lib64/libmysqlclient_r.so; then
28980                  MYSQL_LIBDIR=$withval/lib64
28981               else
28982                  MYSQL_LIBDIR=$withval/lib
28983               fi
28984               MYSQL_BINDIR=$withval/bin
28985            else
28986               { $as_echo "$as_me:$LINENO: result: no" >&5
28987 $as_echo "no" >&6; }
28988               { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28989 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28990    { (exit 1); exit 1; }; }
28991            fi
28992         fi
28993     SQL_INCLUDE=-I$MYSQL_INCDIR
28994     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28995          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28996        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28997        cat >>confdefs.h <<\_ACEOF
28998 #define HAVE_THREAD_SAFE_MYSQL 1
28999 _ACEOF
29000
29001     fi
29002     SQL_BINDIR=$MYSQL_BINDIR
29003     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29004
29005
29006 cat >>confdefs.h <<\_ACEOF
29007 #define HAVE_MYSQL 1
29008 _ACEOF
29009
29010     { $as_echo "$as_me:$LINENO: result: yes" >&5
29011 $as_echo "yes" >&6; }
29012     db_found=yes
29013     support_mysql=yes
29014     db_type=MySQL
29015     DB_TYPE=mysql
29016
29017   else
29018         { $as_echo "$as_me:$LINENO: result: no" >&5
29019 $as_echo "no" >&6; }
29020   fi
29021
29022
29023 fi
29024
29025
29026
29027 # Check whether --with-embedded-mysql was given.
29028 if test "${with_embedded_mysql+set}" = set; then
29029   withval=$with_embedded_mysql;
29030   if test "$withval" != "no"; then
29031         if test "$withval" = "yes"; then
29032                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29033                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
29034                         if test -d /usr/local/mysql/lib64/mysql; then
29035                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29036                         else
29037                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29038                         fi
29039                         MYSQL_BINDIR=/usr/local/mysql/bin
29040                 elif test -f /usr/include/mysql/mysql.h; then
29041                         MYSQL_INCDIR=/usr/include/mysql
29042                         if test -d /usr/lib64/mysql; then
29043                                 MYSQL_LIBDIR=/usr/lib64/mysql
29044                         else
29045                                 MYSQL_LIBDIR=/usr/lib/mysql
29046                         fi
29047                         MYSQL_BINDIR=/usr/bin
29048                 elif test -f /usr/include/mysql.h; then
29049                         MYSQL_INCDIR=/usr/include
29050                         if test -d /usr/lib64; then
29051                                 MYSQL_LIBDIR=/usr/lib64
29052                         else
29053                                 MYSQL_LIBDIR=/usr/lib
29054                         fi
29055                         MYSQL_BINDIR=/usr/bin
29056                 elif test -f /usr/local/include/mysql/mysql.h; then
29057                         MYSQL_INCDIR=/usr/local/include/mysql
29058                         if test -d /usr/local/lib64/mysql; then
29059                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
29060                         else
29061                                 MYSQL_LIBDIR=/usr/local/lib/mysql
29062                         fi
29063                         MYSQL_BINDIR=/usr/local/bin
29064                 elif test -f /usr/local/include/mysql.h; then
29065                         MYSQL_INCDIR=/usr/local/include
29066                         if test -d /usr/local/lib64; then
29067                                 MYSQL_LIBDIR=/usr/local/lib64
29068                         else
29069                                 MYSQL_LIBDIR=/usr/local/lib
29070                         fi
29071                         MYSQL_BINDIR=/usr/local/bin
29072                 else
29073                    { $as_echo "$as_me:$LINENO: result: no" >&5
29074 $as_echo "no" >&6; }
29075                    { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29076 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29077    { (exit 1); exit 1; }; }
29078                 fi
29079         else
29080                 if test -f $withval/include/mysql/mysql.h; then
29081                         MYSQL_INCDIR=$withval/include/mysql
29082                         if test -d $withval/lib64/mysql; then
29083                                 MYSQL_LIBDIR=$withval/lib64/mysql
29084                         else
29085                                 MYSQL_LIBDIR=$withval/lib/mysql
29086                         fi
29087                         MYSQL_BINDIR=$withval/bin
29088                 elif test -f $withval/include/mysql.h; then
29089                         MYSQL_INCDIR=$withval/include
29090                         if test -d $withval/lib64; then
29091                                 MYSQL_LIBDIR=$withval/lib64
29092                         else
29093                                 MYSQL_LIBDIR=$withval/lib
29094                         fi
29095                         MYSQL_BINDIR=$withval/bin
29096                 else
29097                    { $as_echo "$as_me:$LINENO: result: no" >&5
29098 $as_echo "no" >&6; }
29099                    { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29100 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29101    { (exit 1); exit 1; }; }
29102                 fi
29103         fi
29104     SQL_INCLUDE=-I$MYSQL_INCDIR
29105     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29106     SQL_BINDIR=$MYSQL_BINDIR
29107     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29108
29109     cat >>confdefs.h <<\_ACEOF
29110 #define HAVE_MYSQL 1
29111 _ACEOF
29112
29113     cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_EMBEDDED_MYSQL 1
29115 _ACEOF
29116
29117     { $as_echo "$as_me:$LINENO: result: yes" >&5
29118 $as_echo "yes" >&6; }
29119     db_found=yes
29120     support_mysql=yes
29121     db_type=MySQL
29122     DB_TYPE=mysql
29123
29124   else
29125         { $as_echo "$as_me:$LINENO: result: no" >&5
29126 $as_echo "no" >&6; }
29127   fi
29128
29129
29130 fi
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141 db_found=no
29142 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29143 $as_echo_n "checking for Ingres support... " >&6; }
29144
29145 # Check whether --with-ingres was given.
29146 if test "${with_ingres+set}" = set; then
29147   withval=$with_ingres;
29148   if test "$withval" != "no"; then
29149      if test "$withval" = "yes"; then
29150         if test -f ${II_SYSTEM}/files/eqdefc.h; then
29151            INGRES_INCDIR=${II_SYSTEM}/files
29152            INGRES_LIBDIR=${II_SYSTEM}/lib
29153            INGRES_BINDIR=${II_SYSTEM}/bin
29154         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29155            INGRES_INCDIR=${II_SYSTEM}/ingres/files
29156            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29157            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29158         else
29159            { $as_echo "$as_me:$LINENO: result: no" >&5
29160 $as_echo "no" >&6; }
29161            { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29162 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29163    { (exit 1); exit 1; }; }
29164         fi
29165      else
29166         if test -f $withval/files/eqdefc.h; then
29167            INGRES_INCDIR=$withval/files
29168            INGRES_LIBDIR=$withval/lib
29169            INGRES_BINDIR=$withval/bin
29170         else
29171            { $as_echo "$as_me:$LINENO: result: no" >&5
29172 $as_echo "no" >&6; }
29173            { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29174 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29175    { (exit 1); exit 1; }; }
29176         fi
29177      fi
29178      SQL_INCLUDE=-I$INGRES_INCDIR
29179      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29180      SQL_BINDIR=$INGRES_BINDIR
29181      SQL_LIB=$INGRES_LIBDIR/libingres.a
29182
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_INGRES 1
29185 _ACEOF
29186
29187      { $as_echo "$as_me:$LINENO: result: yes" >&5
29188 $as_echo "yes" >&6; }
29189      db_found=yes
29190      support_ingres=yes
29191      db_type=Ingres
29192      DB_TYPE=ingres
29193
29194   else
29195      { $as_echo "$as_me:$LINENO: result: no" >&5
29196 $as_echo "no" >&6; }
29197   fi
29198
29199 else
29200
29201   { $as_echo "$as_me:$LINENO: result: no" >&5
29202 $as_echo "no" >&6; }
29203
29204 fi
29205
29206
29207
29208
29209
29210
29211
29212
29213 db_found=no
29214 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29215 $as_echo_n "checking for SQLite3 support... " >&6; }
29216
29217 # Check whether --with-sqlite3 was given.
29218 if test "${with_sqlite3+set}" = set; then
29219   withval=$with_sqlite3;
29220   if test "$withval" != "no"; then
29221      if test "$withval" = "yes"; then
29222         if test -f /usr/local/include/sqlite3.h; then
29223            SQLITE_INCDIR=/usr/local/include
29224            if test -d /usr/local/lib64; then
29225               SQLITE_LIBDIR=/usr/local/lib64
29226            else
29227               SQLITE_LIBDIR=/usr/local/lib
29228            fi
29229            SQLITE_BINDIR=/usr/local/bin
29230         elif test -f /usr/include/sqlite3.h; then
29231            SQLITE_INCDIR=/usr/include
29232            if test -d /usr/lib64; then
29233               SQLITE_LIBDIR=/usr/lib64
29234            else
29235               SQLITE_LIBDIR=/usr/lib
29236            fi
29237            SQLITE_BINDIR=/usr/bin
29238         elif test -f $prefix/include/sqlite3.h; then
29239            SQLITE_INCDIR=$prefix/include
29240            if test -d $prefix/lib64; then
29241               SQLITE_LIBDIR=$prefix/lib64
29242            else
29243               SQLITE_LIBDIR=$prefix/lib
29244            fi
29245            SQLITE_BINDIR=$prefix/bin
29246         else
29247            { $as_echo "$as_me:$LINENO: result: no" >&5
29248 $as_echo "no" >&6; }
29249            { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29250 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29251    { (exit 1); exit 1; }; }
29252         fi
29253      else
29254         if test -f $withval/sqlite3.h; then
29255            SQLITE_INCDIR=$withval
29256            SQLITE_LIBDIR=$withval
29257            SQLITE_BINDIR=$withval
29258         elif test -f $withval/include/sqlite3.h; then
29259            SQLITE_INCDIR=$withval/include
29260            if test -d $withval/lib64; then
29261               SQLITE_LIBDIR=$withval/lib64
29262            else
29263               SQLITE_LIBDIR=$withval/lib
29264            fi
29265            SQLITE_BINDIR=$withval/bin
29266         else
29267            { $as_echo "$as_me:$LINENO: result: no" >&5
29268 $as_echo "no" >&6; }
29269            { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29270 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29271    { (exit 1); exit 1; }; }
29272         fi
29273      fi
29274      SQL_INCLUDE=-I$SQLITE_INCDIR
29275      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
29276      SQL_BINDIR=$SQLITE_BINDIR
29277      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
29278
29279      cat >>confdefs.h <<\_ACEOF
29280 #define HAVE_SQLITE3 1
29281 _ACEOF
29282
29283      { $as_echo "$as_me:$LINENO: result: yes" >&5
29284 $as_echo "yes" >&6; }
29285      db_found=yes
29286      support_sqlite3=yes
29287      db_type=SQLite3
29288      DB_TYPE=sqlite3
29289
29290   else
29291      { $as_echo "$as_me:$LINENO: result: no" >&5
29292 $as_echo "no" >&6; }
29293   fi
29294
29295 else
29296
29297   { $as_echo "$as_me:$LINENO: result: no" >&5
29298 $as_echo "no" >&6; }
29299
29300 fi
29301
29302
29303
29304
29305
29306
29307
29308 # BA_CHECK_SQLITE_DB
29309
29310
29311 db_found=no
29312 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29313 $as_echo_n "checking for DBI support... " >&6; }
29314
29315 # Check whether --with-dbi was given.
29316 if test "${with_dbi+set}" = set; then
29317   withval=$with_dbi;
29318   if test "$withval" != "no"; then
29319      if test "$withval" = "yes"; then
29320         if test -f /usr/local/include/dbi/dbi.h; then
29321            DBI_INCDIR=/usr/local/dbi/include
29322            if test -d /usr/local/lib64; then
29323               DBI_LIBDIR=/usr/local/lib64
29324            else
29325               DBI_LIBDIR=/usr/local/lib
29326            fi
29327            DBI_BINDIR=/usr/local/bin
29328         elif test -f /usr/include/dbi/dbi.h; then
29329            DBI_INCDIR=/usr/include
29330            if test -d /usr/lib64; then
29331               DBI_LIBDIR=/usr/lib64
29332            else
29333               DBI_LIBDIR=/usr/lib
29334            fi
29335            DBI_BINDIR=/usr/bin
29336         elif test -f $prefix/include/dbi/dbi.h; then
29337            DBI_INCDIR=$prefix/include
29338            if test -d $prefix/lib64; then
29339               DBI_LIBDIR=$prefix/lib64
29340            else
29341               DBI_LIBDIR=$prefix/lib
29342            fi
29343            DBI_BINDIR=$prefix/bin
29344         else
29345            { $as_echo "$as_me:$LINENO: result: no" >&5
29346 $as_echo "no" >&6; }
29347            { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29348 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29349    { (exit 1); exit 1; }; }
29350         fi
29351         if test -d /usr/local/lib/dbd; then
29352            DRIVERDIR=/usr/local/lib/dbd
29353            if test -d /usr/local/lib64/dbd; then
29354               DRIVERDIR=/usr/local/lib64/dbd
29355            else
29356               DRIVERDIR=/usr/local/lib/dbd
29357            fi
29358         elif test -d /usr/lib/dbd; then
29359            DRIVERDIR=/usr/lib/dbd
29360            if test -d /usr/lib64/dbd; then
29361               DRIVERDIR=/usr/lib64/dbd
29362            else
29363               DRIVERDIR=/usr/lib/dbd
29364            fi
29365         elif test -d $prefix/lib/dbd; then
29366            if test -d $prefix/lib64/dbd; then
29367               DRIVERDIR=$prefix/lib64/dbd
29368            else
29369               DRIVERDIR=$prefix/lib/dbd
29370            fi
29371         elif test -d /usr/local/lib64/dbd; then
29372            DRIVERDIR=/usr/local/lib64/dbd
29373         elif test -d /usr/lib64/dbd; then
29374            DRIVERDIR=/usr/lib64/dbd
29375         elif test -d $prefix/lib64/dbd; then
29376            DRIVERDIR=$prefix/lib64/dbd
29377         else
29378            { $as_echo "$as_me:$LINENO: result: no" >&5
29379 $as_echo "no" >&6; }
29380            { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29381 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29382    { (exit 1); exit 1; }; }
29383         fi
29384      else
29385         if test -f $withval/dbi.h; then
29386            DBI_INCDIR=$withval
29387            DBI_LIBDIR=$withval
29388            DBI_BINDIR=$withval
29389         elif test -f $withval/include/dbi/dbi.h; then
29390            DBI_INCDIR=$withval/include
29391            if test -d $withval/lib64; then
29392               DBI_LIBDIR=$withval/lib64
29393            else
29394               DBI_LIBDIR=$withval/lib
29395            fi
29396            DBI_BINDIR=$withval/bin
29397         else
29398            { $as_echo "$as_me:$LINENO: result: no" >&5
29399 $as_echo "no" >&6; }
29400            { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29401 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29402    { (exit 1); exit 1; }; }
29403         fi
29404         if test -d $withval/dbd; then
29405            DRIVERDIR=$withval/dbd
29406         elif test -d $withval/lib/; then
29407            if test -d $withval/lib64/dbd; then
29408               DRIVERDIR=$withval/lib64/dbd
29409            else
29410               DRIVERDIR=$withval/lib/dbd
29411            fi
29412         elif test -d $withval/lib64/dbd; then
29413            DRIVERDIR=$withval/lib64/dbd
29414         else
29415            { $as_echo "$as_me:$LINENO: result: no" >&5
29416 $as_echo "no" >&6; }
29417            { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29418 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29419    { (exit 1); exit 1; }; }
29420         fi
29421      fi
29422      SQL_INCLUDE=-I$DBI_INCDIR
29423      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
29424      SQL_BINDIR=$DBI_BINDIR
29425      SQL_LIB=$DBI_LIBDIR/libdbi.a
29426      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29427
29428
29429 cat >>confdefs.h <<\_ACEOF
29430 #define HAVE_DBI 1
29431 _ACEOF
29432
29433      { $as_echo "$as_me:$LINENO: result: yes" >&5
29434 $as_echo "yes" >&6; }
29435      db_found=yes
29436      support_dbi=yes
29437      db_type=DBI
29438      DB_TYPE=dbi
29439      uncomment_dbi=" "
29440
29441   else
29442      { $as_echo "$as_me:$LINENO: result: no" >&5
29443 $as_echo "no" >&6; }
29444   fi
29445
29446 else
29447
29448   { $as_echo "$as_me:$LINENO: result: no" >&5
29449 $as_echo "no" >&6; }
29450
29451 fi
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462 db_found=no
29463 db_prog=no
29464 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29465 $as_echo_n "checking for DBI drivers support... " >&6; }
29466
29467 # Check whether --with-dbi-driver was given.
29468 if test "${with_dbi_driver+set}" = set; then
29469   withval=$with_dbi_driver;
29470   if test "$withval" != "no"; then
29471      case $withval in
29472         "mysql")
29473            db_prog="mysql"
29474            if test -f /usr/local/mysql/bin/mysql; then
29475               SQL_BINDIR=/usr/local/mysql/bin
29476               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29477                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29478                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
29479               else
29480                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
29481               fi
29482            elif test -f /usr/bin/mysql; then
29483               SQL_BINDIR=/usr/bin
29484               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29485                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29486                   SQL_LIBDIR=/usr/lib64/mysql
29487               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29488                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29489                   SQL_LIBDIR=/usr/lib/mysql
29490               else
29491                   SQL_LIBDIR=/usr/lib
29492               fi
29493            elif test -f /usr/local/bin/mysql; then
29494               SQL_BINDIR=/usr/local/bin
29495               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29496                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29497                   SQL_LIBDIR=/usr/local/lib64/mysql
29498               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29499                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29500                   SQL_LIBDIR=/usr/local/lib/mysql
29501               else
29502                   SQL_LIBDIR=/usr/local/lib
29503               fi
29504            elif test -f $withval/bin/mysql; then
29505               SQL_BINDIR=$withval/bin
29506               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29507                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29508                   SQL_LIBDIR=$withval/lib64/mysql
29509               elif test -f $withval/lib64/libmysqlclient_r.a \
29510                   -o -f $withval/lib64/libmysqlclient_r.so; then
29511                   SQL_LIBDIR=$withval/lib64
29512               elif test -f $withval/lib/libmysqlclient_r.a \
29513                   -o -f $withval/lib/libmysqlclient_r.so; then
29514                   SQL_LIBDIR=$withval/lib/
29515               else
29516                   SQL_LIBDIR=$withval/lib/mysql
29517               fi
29518            else
29519               { $as_echo "$as_me:$LINENO: result: no" >&5
29520 $as_echo "no" >&6; }
29521               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29522 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29523    { (exit 1); exit 1; }; }
29524            fi
29525            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29526               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29527            else
29528               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29529            fi
29530         ;;
29531         "postgresql")
29532            db_prog="postgresql"
29533            PG_CONFIG=`which pg_config`
29534            if test -n "$PG_CONFIG"; then
29535               SQL_BINDIR=`"$PG_CONFIG" --bindir`
29536               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
29537            elif test -f /usr/local/bin/psql; then
29538               SQL_BINDIR=/usr/local/bin
29539               if test -d /usr/local/lib64; then
29540                  SQL_LIBDIR=/usr/local/lib64
29541               else
29542                  SQL_LIBDIR=/usr/local/lib
29543               fi
29544            elif test -f /usr/bin/psql; then
29545               SQL_BINDIR=/usr/local/bin
29546               if test -d /usr/lib64/postgresql; then
29547                  SQL_LIBDIR=/usr/lib64/postgresql
29548               elif test -d /usr/lib/postgresql; then
29549                  SQL_LIBDIR=/usr/lib/postgresql
29550               elif test -d /usr/lib64; then
29551                  SQL_LIBDIR=/usr/lib64
29552               else
29553                  SQL_LIBDIR=/usr/lib
29554               fi
29555            elif test -f $withval/bin/psql; then
29556               SQL_BINDIR=$withval/bin
29557               if test -d $withval/lib64; then
29558                  SQL_LIBDIR=$withval/lib64
29559               else
29560                  SQL_LIBDIR=$withval/lib
29561               fi
29562            else
29563               { $as_echo "$as_me:$LINENO: result: no" >&5
29564 $as_echo "no" >&6; }
29565               { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29566 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29567    { (exit 1); exit 1; }; }
29568            fi
29569            if test -f $SQL_LIBDIR/libpq.so; then
29570               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
29571            else
29572               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
29573            fi
29574         ;;
29575         "sqlite")
29576            db_prog="sqlite"
29577            if test -f /usr/local/bin/sqlite; then
29578               SQL_BINDIR=/usr/local/bin
29579               if test -d /usr/local/lib64; then
29580                  SQL_LIBDIR=/usr/local/lib64
29581               else
29582                  SQL_LIBDIR=/usr/local/lib
29583               fi
29584            elif test -f /usr/bin/sqlite; then
29585               SQL_BINDIR=/usr/bin
29586               if test -d /usr/lib64; then
29587                  SQL_LIBDIR=/usr/lib64
29588               else
29589                  SQL_LIBDIR=/usr/lib
29590               fi
29591            elif test -f $withval/bin/sqlite; then
29592               SQL_BINDIR=$withval/bin
29593               if test -d $withval/lib64; then
29594                  SQL_LIBDIR=$withval/lib64
29595               else
29596                  SQL_LIBDIR=$withval/lib
29597               fi
29598            else
29599               { $as_echo "$as_me:$LINENO: result: no" >&5
29600 $as_echo "no" >&6; }
29601               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29602 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29603    { (exit 1); exit 1; }; }
29604            fi
29605            if test -f $SQL_LIBDIR/libsqlite.so; then
29606               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
29607            else
29608               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
29609            fi
29610         ;;
29611         "sqlite3")
29612            db_prog="sqlite3"
29613            if test -f /usr/local/bin/sqlite3; then
29614               SQL_BINDIR=/usr/local/bin
29615               if test -d /usr/local/lib64; then
29616                  SQL_LIBDIR=/usr/local/lib64
29617               else
29618                  SQL_LIBDIR=/usr/local/lib
29619               fi
29620            elif test -f /usr/bin/sqlite3; then
29621               SQL_BINDIR=/usr/bin
29622               if test -d /usr/lib64; then
29623                  SQL_LIBDIR=/usr/lib64
29624               else
29625                  SQL_LIBDIR=/usr/lib
29626               fi
29627            elif test -f $withval/bin/sqlite3; then
29628               SQL_BINDIR=$withval/bin
29629               if test -d $withval/lib64; then
29630                  SQL_LIBDIR=$withval/lib64
29631               else
29632                  SQL_LIBDIR=$withval/lib
29633               fi
29634            else
29635               { $as_echo "$as_me:$LINENO: result: no" >&5
29636 $as_echo "no" >&6; }
29637               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29638 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29639    { (exit 1); exit 1; }; }
29640            fi
29641            if test -f $SQL_LIBDIR/libsqlite3.so; then
29642               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
29643            else
29644               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
29645            fi
29646         ;;
29647         *)
29648            { $as_echo "$as_me:$LINENO: result: no" >&5
29649 $as_echo "no" >&6; }
29650            { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29651 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29652    { (exit 1); exit 1; }; }
29653         ;;
29654      esac
29655
29656      { $as_echo "$as_me:$LINENO: result: yes" >&5
29657 $as_echo "yes" >&6; }
29658      DB_PROG=$db_prog
29659   else
29660      { $as_echo "$as_me:$LINENO: result: no" >&5
29661 $as_echo "no" >&6; }
29662   fi
29663
29664 else
29665
29666   { $as_echo "$as_me:$LINENO: result: no" >&5
29667 $as_echo "no" >&6; }
29668
29669 fi
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680 support_batch_insert=no
29681 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29682 pkg=$?
29683 if test $pkg = 0; then
29684    support_batch_insert=yes
29685    # Check whether --enable-batch-insert was given.
29686 if test "${enable_batch_insert+set}" = set; then
29687   enableval=$enable_batch_insert;
29688           if test x$enableval = xno; then
29689              support_batch_insert=no
29690           else
29691              support_batch_insert=yes
29692           fi
29693
29694
29695 fi
29696
29697 fi
29698
29699 if test x$DB_TYPE = xpostgresql; then
29700    { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29701 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29702 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29703   $as_echo_n "(cached) " >&6
29704 else
29705   ac_check_lib_save_LIBS=$LIBS
29706 LIBS="-lpq  $LIBS"
29707 cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h.  */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h.  */
29713
29714 /* Override any GCC internal prototype to avoid an error.
29715    Use char because int might match the return type of a GCC
29716    builtin and then its argument prototype would still apply.  */
29717 #ifdef __cplusplus
29718 extern "C"
29719 #endif
29720 char PQisthreadsafe ();
29721 int
29722 main ()
29723 {
29724 return PQisthreadsafe ();
29725   ;
29726   return 0;
29727 }
29728 _ACEOF
29729 rm -f conftest.$ac_objext conftest$ac_exeext
29730 if { (ac_try="$ac_link"
29731 case "(($ac_try" in
29732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733   *) ac_try_echo=$ac_try;;
29734 esac
29735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29736 $as_echo "$ac_try_echo") >&5
29737   (eval "$ac_link") 2>conftest.er1
29738   ac_status=$?
29739   grep -v '^ *+' conftest.er1 >conftest.err
29740   rm -f conftest.er1
29741   cat conftest.err >&5
29742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); } && {
29744          test -z "$ac_c_werror_flag" ||
29745          test ! -s conftest.err
29746        } && test -s conftest$ac_exeext && {
29747          test "$cross_compiling" = yes ||
29748          $as_test_x conftest$ac_exeext
29749        }; then
29750   ac_cv_lib_pq_PQisthreadsafe=yes
29751 else
29752   $as_echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29754
29755         ac_cv_lib_pq_PQisthreadsafe=no
29756 fi
29757
29758 rm -rf conftest.dSYM
29759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29760       conftest$ac_exeext conftest.$ac_ext
29761 LIBS=$ac_check_lib_save_LIBS
29762 fi
29763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29764 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29765 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29766
29767 cat >>confdefs.h <<\_ACEOF
29768 #define HAVE_PQISTHREADSAFE 1
29769 _ACEOF
29770
29771 fi
29772
29773    { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29774 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29775 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29776   $as_echo_n "(cached) " >&6
29777 else
29778   ac_check_lib_save_LIBS=$LIBS
29779 LIBS="-lpq  $LIBS"
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h.  */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h.  */
29786
29787 /* Override any GCC internal prototype to avoid an error.
29788    Use char because int might match the return type of a GCC
29789    builtin and then its argument prototype would still apply.  */
29790 #ifdef __cplusplus
29791 extern "C"
29792 #endif
29793 char PQputCopyData ();
29794 int
29795 main ()
29796 {
29797 return PQputCopyData ();
29798   ;
29799   return 0;
29800 }
29801 _ACEOF
29802 rm -f conftest.$ac_objext conftest$ac_exeext
29803 if { (ac_try="$ac_link"
29804 case "(($ac_try" in
29805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806   *) ac_try_echo=$ac_try;;
29807 esac
29808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29809 $as_echo "$ac_try_echo") >&5
29810   (eval "$ac_link") 2>conftest.er1
29811   ac_status=$?
29812   grep -v '^ *+' conftest.er1 >conftest.err
29813   rm -f conftest.er1
29814   cat conftest.err >&5
29815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); } && {
29817          test -z "$ac_c_werror_flag" ||
29818          test ! -s conftest.err
29819        } && test -s conftest$ac_exeext && {
29820          test "$cross_compiling" = yes ||
29821          $as_test_x conftest$ac_exeext
29822        }; then
29823   ac_cv_lib_pq_PQputCopyData=yes
29824 else
29825   $as_echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828         ac_cv_lib_pq_PQputCopyData=no
29829 fi
29830
29831 rm -rf conftest.dSYM
29832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29833       conftest$ac_exeext conftest.$ac_ext
29834 LIBS=$ac_check_lib_save_LIBS
29835 fi
29836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29837 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29838 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29839
29840 cat >>confdefs.h <<\_ACEOF
29841 #define HAVE_PQ_COPY 1
29842 _ACEOF
29843
29844 fi
29845
29846    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29847     then
29848         support_batch_insert=no
29849    fi
29850 fi
29851
29852 if test x$DB_TYPE = xdbi; then
29853    DB_TYPE=$DB_PROG
29854    db_type=$DB_PROG
29855    pkg=1
29856       if test $DB_PROG = postgresql; then
29857       { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29858 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29859 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29860   $as_echo_n "(cached) " >&6
29861 else
29862   ac_check_lib_save_LIBS=$LIBS
29863 LIBS="-lpq  $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 PQisthreadsafe ();
29878 int
29879 main ()
29880 {
29881 return PQisthreadsafe ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29893 $as_echo "$ac_try_echo") >&5
29894   (eval "$ac_link") 2>conftest.er1
29895   ac_status=$?
29896   grep -v '^ *+' conftest.er1 >conftest.err
29897   rm -f conftest.er1
29898   cat conftest.err >&5
29899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); } && {
29901          test -z "$ac_c_werror_flag" ||
29902          test ! -s conftest.err
29903        } && test -s conftest$ac_exeext && {
29904          test "$cross_compiling" = yes ||
29905          $as_test_x conftest$ac_exeext
29906        }; then
29907   ac_cv_lib_pq_PQisthreadsafe=yes
29908 else
29909   $as_echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.$ac_ext >&5
29911
29912         ac_cv_lib_pq_PQisthreadsafe=no
29913 fi
29914
29915 rm -rf conftest.dSYM
29916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29917       conftest$ac_exeext conftest.$ac_ext
29918 LIBS=$ac_check_lib_save_LIBS
29919 fi
29920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29921 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29922 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29923   cat >>confdefs.h <<\_ACEOF
29924 #define HAVE_PQISTHREADSAFE 1
29925 _ACEOF
29926
29927 fi
29928
29929       { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29930 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29931 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29932   $as_echo_n "(cached) " >&6
29933 else
29934   ac_check_lib_save_LIBS=$LIBS
29935 LIBS="-lpq  $LIBS"
29936 cat >conftest.$ac_ext <<_ACEOF
29937 /* confdefs.h.  */
29938 _ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h.  */
29942
29943 /* Override any GCC internal prototype to avoid an error.
29944    Use char because int might match the return type of a GCC
29945    builtin and then its argument prototype would still apply.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char PQputCopyData ();
29950 int
29951 main ()
29952 {
29953 return PQputCopyData ();
29954   ;
29955   return 0;
29956 }
29957 _ACEOF
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (ac_try="$ac_link"
29960 case "(($ac_try" in
29961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962   *) ac_try_echo=$ac_try;;
29963 esac
29964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29965 $as_echo "$ac_try_echo") >&5
29966   (eval "$ac_link") 2>conftest.er1
29967   ac_status=$?
29968   grep -v '^ *+' conftest.er1 >conftest.err
29969   rm -f conftest.er1
29970   cat conftest.err >&5
29971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && {
29973          test -z "$ac_c_werror_flag" ||
29974          test ! -s conftest.err
29975        } && test -s conftest$ac_exeext && {
29976          test "$cross_compiling" = yes ||
29977          $as_test_x conftest$ac_exeext
29978        }; then
29979   ac_cv_lib_pq_PQputCopyData=yes
29980 else
29981   $as_echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29983
29984         ac_cv_lib_pq_PQputCopyData=no
29985 fi
29986
29987 rm -rf conftest.dSYM
29988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29989       conftest$ac_exeext conftest.$ac_ext
29990 LIBS=$ac_check_lib_save_LIBS
29991 fi
29992 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29993 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29994 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29995   cat >>confdefs.h <<\_ACEOF
29996 #define HAVE_PQ_COPY 1
29997 _ACEOF
29998
29999 fi
30000
30001       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
30002       pkg=$?
30003    fi
30004
30005    if test $DB_PROG = mysql; then
30006       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30007       pkg=$?
30008    fi
30009
30010    if test $DB_PROG = sqlite3; then
30011       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30012       pkg=$?
30013       { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
30014 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
30015 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
30016   $as_echo_n "(cached) " >&6
30017 else
30018   ac_check_lib_save_LIBS=$LIBS
30019 LIBS="-lsqlite3  $LIBS"
30020 cat >conftest.$ac_ext <<_ACEOF
30021 /* confdefs.h.  */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h.  */
30026
30027 /* Override any GCC internal prototype to avoid an error.
30028    Use char because int might match the return type of a GCC
30029    builtin and then its argument prototype would still apply.  */
30030 #ifdef __cplusplus
30031 extern "C"
30032 #endif
30033 char sqlite3_threadsafe ();
30034 int
30035 main ()
30036 {
30037 return sqlite3_threadsafe ();
30038   ;
30039   return 0;
30040 }
30041 _ACEOF
30042 rm -f conftest.$ac_objext conftest$ac_exeext
30043 if { (ac_try="$ac_link"
30044 case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30049 $as_echo "$ac_try_echo") >&5
30050   (eval "$ac_link") 2>conftest.er1
30051   ac_status=$?
30052   grep -v '^ *+' conftest.er1 >conftest.err
30053   rm -f conftest.er1
30054   cat conftest.err >&5
30055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); } && {
30057          test -z "$ac_c_werror_flag" ||
30058          test ! -s conftest.err
30059        } && test -s conftest$ac_exeext && {
30060          test "$cross_compiling" = yes ||
30061          $as_test_x conftest$ac_exeext
30062        }; then
30063   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
30064 else
30065   $as_echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
30069 fi
30070
30071 rm -rf conftest.dSYM
30072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30073       conftest$ac_exeext conftest.$ac_ext
30074 LIBS=$ac_check_lib_save_LIBS
30075 fi
30076 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
30077 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
30078 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
30079
30080 cat >>confdefs.h <<\_ACEOF
30081 #define HAVE_SQLITE3_THREADSAFE 1
30082 _ACEOF
30083
30084 fi
30085
30086    fi
30087
30088    if test $pkg = 0; then
30089       # Check whether --enable-batch-insert was given.
30090 if test "${enable_batch_insert+set}" = set; then
30091   enableval=$enable_batch_insert;
30092              if test x$enableval = xno; then
30093                 support_batch_insert=no
30094              else
30095                 support_batch_insert=yes
30096              fi
30097
30098
30099 fi
30100
30101    fi
30102 else
30103       uncomment_dbi="#"
30104 fi
30105
30106
30107
30108 if test x$DB_TYPE = xingres; then
30109    support_batch_insert=yes
30110 fi
30111
30112 if test $support_batch_insert = yes ; then
30113
30114 cat >>confdefs.h <<\_ACEOF
30115 #define HAVE_BATCH_FILE_INSERT 1
30116 _ACEOF
30117
30118 fi
30119
30120 cat >>confdefs.h <<\_ACEOF
30121 #define PROTOTYPES 1
30122 _ACEOF
30123
30124
30125 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30126    if test -z "$CCOPTS"; then
30127       CCOPTS='-g -O2 -Wall'
30128    fi
30129    CFLAGS="$CCOPTS"
30130 fi
30131
30132
30133
30134 largefile_support="no"
30135
30136    # Check whether --enable-largefile was given.
30137 if test "${enable_largefile+set}" = set; then
30138   enableval=$enable_largefile;
30139 fi
30140
30141    if test "$enable_largefile" != no; then
30142      if test -n "$ac_tool_prefix"; then
30143   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30144 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30146 $as_echo_n "checking for $ac_word... " >&6; }
30147 if test "${ac_cv_prog_GETCONF+set}" = set; then
30148   $as_echo_n "(cached) " >&6
30149 else
30150   if test -n "$GETCONF"; then
30151   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30152 else
30153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30154 for as_dir in $PATH
30155 do
30156   IFS=$as_save_IFS
30157   test -z "$as_dir" && as_dir=.
30158   for ac_exec_ext in '' $ac_executable_extensions; do
30159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30160     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30161     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30162     break 2
30163   fi
30164 done
30165 done
30166 IFS=$as_save_IFS
30167
30168 fi
30169 fi
30170 GETCONF=$ac_cv_prog_GETCONF
30171 if test -n "$GETCONF"; then
30172   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30173 $as_echo "$GETCONF" >&6; }
30174 else
30175   { $as_echo "$as_me:$LINENO: result: no" >&5
30176 $as_echo "no" >&6; }
30177 fi
30178
30179
30180 fi
30181 if test -z "$ac_cv_prog_GETCONF"; then
30182   ac_ct_GETCONF=$GETCONF
30183   # Extract the first word of "getconf", so it can be a program name with args.
30184 set dummy getconf; ac_word=$2
30185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30186 $as_echo_n "checking for $ac_word... " >&6; }
30187 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30188   $as_echo_n "(cached) " >&6
30189 else
30190   if test -n "$ac_ct_GETCONF"; then
30191   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30192 else
30193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30194 for as_dir in $PATH
30195 do
30196   IFS=$as_save_IFS
30197   test -z "$as_dir" && as_dir=.
30198   for ac_exec_ext in '' $ac_executable_extensions; do
30199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30200     ac_cv_prog_ac_ct_GETCONF="getconf"
30201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30202     break 2
30203   fi
30204 done
30205 done
30206 IFS=$as_save_IFS
30207
30208 fi
30209 fi
30210 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30211 if test -n "$ac_ct_GETCONF"; then
30212   { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30213 $as_echo "$ac_ct_GETCONF" >&6; }
30214 else
30215   { $as_echo "$as_me:$LINENO: result: no" >&5
30216 $as_echo "no" >&6; }
30217 fi
30218
30219   if test "x$ac_ct_GETCONF" = x; then
30220     GETCONF=""
30221   else
30222     case $cross_compiling:$ac_tool_warned in
30223 yes:)
30224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30226 ac_tool_warned=yes ;;
30227 esac
30228     GETCONF=$ac_ct_GETCONF
30229   fi
30230 else
30231   GETCONF="$ac_cv_prog_GETCONF"
30232 fi
30233
30234      { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30235 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30236 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30237   $as_echo_n "(cached) " >&6
30238 else
30239   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30240         ac_cv_sys_largefile_CFLAGS=no
30241         case "$host_os" in
30242            # IRIX 6.2 and later require cc -n32.
30243            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30244              if test "$GCC" != yes; then
30245                ac_cv_sys_largefile_CFLAGS=-n32
30246              fi
30247              ac_save_CC="$CC"
30248              CC="$CC $ac_cv_sys_largefile_CFLAGS"
30249              cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h.  */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h.  */
30255
30256 int
30257 main ()
30258 {
30259
30260   ;
30261   return 0;
30262 }
30263 _ACEOF
30264 rm -f conftest.$ac_objext conftest$ac_exeext
30265 if { (ac_try="$ac_link"
30266 case "(($ac_try" in
30267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268   *) ac_try_echo=$ac_try;;
30269 esac
30270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30271 $as_echo "$ac_try_echo") >&5
30272   (eval "$ac_link") 2>conftest.er1
30273   ac_status=$?
30274   grep -v '^ *+' conftest.er1 >conftest.err
30275   rm -f conftest.er1
30276   cat conftest.err >&5
30277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); } && {
30279          test -z "$ac_c_werror_flag" ||
30280          test ! -s conftest.err
30281        } && test -s conftest$ac_exeext && {
30282          test "$cross_compiling" = yes ||
30283          $as_test_x conftest$ac_exeext
30284        }; then
30285   :
30286 else
30287   $as_echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30289
30290         ac_cv_sys_largefile_CFLAGS=no
30291 fi
30292
30293 rm -rf conftest.dSYM
30294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30295       conftest$ac_exeext conftest.$ac_ext
30296              CC="$ac_save_CC"
30297            esac
30298       }
30299 fi
30300 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30301 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30302      { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30303 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30304 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30305   $as_echo_n "(cached) " >&6
30306 else
30307   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30308         ac_cv_sys_largefile_LDFLAGS=no
30309
30310       }
30311 fi
30312 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30313 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30314      { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30315 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30316 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30317   $as_echo_n "(cached) " >&6
30318 else
30319   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30320         ac_cv_sys_largefile_LIBS=no
30321
30322       }
30323 fi
30324 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30325 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30326
30327      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30328        case "$ac_flag" in
30329        no) ;;
30330        -D_FILE_OFFSET_BITS=*) ;;
30331        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30332        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30333        -D?* | -I?*)
30334          case "$ac_flag" in
30335    no) ;;
30336    ?*)
30337      case "$CPPFLAGS" in
30338      '') CPPFLAGS="$ac_flag" ;;
30339      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30340      esac ;;
30341    esac ;;
30342        *)
30343          case "$ac_flag" in
30344    no) ;;
30345    ?*)
30346      case "$CFLAGS" in
30347      '') CFLAGS="$ac_flag" ;;
30348      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30349      esac ;;
30350    esac ;;
30351        esac
30352      done
30353      case "$ac_cv_sys_largefile_LDFLAGS" in
30354    no) ;;
30355    ?*)
30356      case "$LDFLAGS" in
30357      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30358      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30359      esac ;;
30360    esac
30361      case "$ac_cv_sys_largefile_LIBS" in
30362    no) ;;
30363    ?*)
30364      case "$LIBS" in
30365      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30366      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30367      esac ;;
30368    esac
30369      { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30370 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30371 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30372   $as_echo_n "(cached) " >&6
30373 else
30374   ac_cv_sys_file_offset_bits=no
30375       ac_cv_sys_file_offset_bits=64
30376       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30377         case "$ac_flag" in
30378         -D_FILE_OFFSET_BITS)
30379           ac_cv_sys_file_offset_bits=1 ;;
30380         -D_FILE_OFFSET_BITS=*)
30381           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30382         esac
30383       done
30384
30385 fi
30386 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30387 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30388    if test "$ac_cv_sys_file_offset_bits" != no; then
30389
30390 cat >>confdefs.h <<_ACEOF
30391 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30392 _ACEOF
30393
30394    fi
30395      { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30396 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30397 if test "${ac_cv_sys_largefile_source+set}" = set; then
30398   $as_echo_n "(cached) " >&6
30399 else
30400   ac_cv_sys_largefile_source=no
30401       ac_cv_sys_largefile_source=1
30402       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30403         case "$ac_flag" in
30404         -D_LARGEFILE_SOURCE)
30405           ac_cv_sys_largefile_source=1 ;;
30406         -D_LARGEFILE_SOURCE=*)
30407           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30408         esac
30409       done
30410
30411 fi
30412 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30413 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30414    if test "$ac_cv_sys_largefile_source" != no; then
30415
30416 cat >>confdefs.h <<_ACEOF
30417 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30418 _ACEOF
30419
30420    fi
30421      { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30422 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30423 if test "${ac_cv_sys_large_files+set}" = set; then
30424   $as_echo_n "(cached) " >&6
30425 else
30426   ac_cv_sys_large_files=no
30427       ac_cv_sys_large_files=1
30428       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30429         case "$ac_flag" in
30430         -D_LARGE_FILES)
30431           ac_cv_sys_large_files=1 ;;
30432         -D_LARGE_FILES=*)
30433           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30434         esac
30435       done
30436
30437 fi
30438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30439 $as_echo "$ac_cv_sys_large_files" >&6; }
30440    if test "$ac_cv_sys_large_files" != no; then
30441
30442 cat >>confdefs.h <<_ACEOF
30443 #define _LARGE_FILES $ac_cv_sys_large_files
30444 _ACEOF
30445
30446    fi
30447    fi
30448
30449
30450 { $as_echo "$as_me:$LINENO: checking for X" >&5
30451 $as_echo_n "checking for X... " >&6; }
30452
30453
30454 # Check whether --with-x was given.
30455 if test "${with_x+set}" = set; then
30456   withval=$with_x;
30457 fi
30458
30459 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30460 if test "x$with_x" = xno; then
30461   # The user explicitly disabled X.
30462   have_x=disabled
30463 else
30464   case $x_includes,$x_libraries in #(
30465     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30466 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30467    { (exit 1); exit 1; }; };; #(
30468     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30469   $as_echo_n "(cached) " >&6
30470 else
30471   # One or both of the vars are not set, and there is no cached value.
30472 ac_x_includes=no ac_x_libraries=no
30473 rm -f -r conftest.dir
30474 if mkdir conftest.dir; then
30475   cd conftest.dir
30476   cat >Imakefile <<'_ACEOF'
30477 incroot:
30478         @echo incroot='${INCROOT}'
30479 usrlibdir:
30480         @echo usrlibdir='${USRLIBDIR}'
30481 libdir:
30482         @echo libdir='${LIBDIR}'
30483 _ACEOF
30484   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30485     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30486     for ac_var in incroot usrlibdir libdir; do
30487       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30488     done
30489     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30490     for ac_extension in a so sl dylib la dll; do
30491       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30492          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30493         ac_im_usrlibdir=$ac_im_libdir; break
30494       fi
30495     done
30496     # Screen out bogus values from the imake configuration.  They are
30497     # bogus both because they are the default anyway, and because
30498     # using them would break gcc on systems where it needs fixed includes.
30499     case $ac_im_incroot in
30500         /usr/include) ac_x_includes= ;;
30501         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30502     esac
30503     case $ac_im_usrlibdir in
30504         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30505         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30506     esac
30507   fi
30508   cd ..
30509   rm -f -r conftest.dir
30510 fi
30511
30512 # Standard set of common directories for X headers.
30513 # Check X11 before X11Rn because it is often a symlink to the current release.
30514 ac_x_header_dirs='
30515 /usr/X11/include
30516 /usr/X11R6/include
30517 /usr/X11R5/include
30518 /usr/X11R4/include
30519
30520 /usr/include/X11
30521 /usr/include/X11R6
30522 /usr/include/X11R5
30523 /usr/include/X11R4
30524
30525 /usr/local/X11/include
30526 /usr/local/X11R6/include
30527 /usr/local/X11R5/include
30528 /usr/local/X11R4/include
30529
30530 /usr/local/include/X11
30531 /usr/local/include/X11R6
30532 /usr/local/include/X11R5
30533 /usr/local/include/X11R4
30534
30535 /usr/X386/include
30536 /usr/x386/include
30537 /usr/XFree86/include/X11
30538
30539 /usr/include
30540 /usr/local/include
30541 /usr/unsupported/include
30542 /usr/athena/include
30543 /usr/local/x11r5/include
30544 /usr/lpp/Xamples/include
30545
30546 /usr/openwin/include
30547 /usr/openwin/share/include'
30548
30549 if test "$ac_x_includes" = no; then
30550   # Guess where to find include files, by looking for Xlib.h.
30551   # First, try using that file with no special directory specified.
30552   cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558 #include <X11/Xlib.h>
30559 _ACEOF
30560 if { (ac_try="$ac_cpp conftest.$ac_ext"
30561 case "(($ac_try" in
30562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563   *) ac_try_echo=$ac_try;;
30564 esac
30565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30566 $as_echo "$ac_try_echo") >&5
30567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30568   ac_status=$?
30569   grep -v '^ *+' conftest.er1 >conftest.err
30570   rm -f conftest.er1
30571   cat conftest.err >&5
30572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573   (exit $ac_status); } >/dev/null && {
30574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30575          test ! -s conftest.err
30576        }; then
30577   # We can compile using X headers with no special include directory.
30578 ac_x_includes=
30579 else
30580   $as_echo "$as_me: failed program was:" >&5
30581 sed 's/^/| /' conftest.$ac_ext >&5
30582
30583   for ac_dir in $ac_x_header_dirs; do
30584   if test -r "$ac_dir/X11/Xlib.h"; then
30585     ac_x_includes=$ac_dir
30586     break
30587   fi
30588 done
30589 fi
30590
30591 rm -f conftest.err conftest.$ac_ext
30592 fi # $ac_x_includes = no
30593
30594 if test "$ac_x_libraries" = no; then
30595   # Check for the libraries.
30596   # See if we find them without any special options.
30597   # Don't add to $LIBS permanently.
30598   ac_save_LIBS=$LIBS
30599   LIBS="-lX11 $LIBS"
30600   cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h.  */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h.  */
30606 #include <X11/Xlib.h>
30607 int
30608 main ()
30609 {
30610 XrmInitialize ()
30611   ;
30612   return 0;
30613 }
30614 _ACEOF
30615 rm -f conftest.$ac_objext conftest$ac_exeext
30616 if { (ac_try="$ac_link"
30617 case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30622 $as_echo "$ac_try_echo") >&5
30623   (eval "$ac_link") 2>conftest.er1
30624   ac_status=$?
30625   grep -v '^ *+' conftest.er1 >conftest.err
30626   rm -f conftest.er1
30627   cat conftest.err >&5
30628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); } && {
30630          test -z "$ac_c_werror_flag" ||
30631          test ! -s conftest.err
30632        } && test -s conftest$ac_exeext && {
30633          test "$cross_compiling" = yes ||
30634          $as_test_x conftest$ac_exeext
30635        }; then
30636   LIBS=$ac_save_LIBS
30637 # We can link X programs with no special library path.
30638 ac_x_libraries=
30639 else
30640   $as_echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30642
30643         LIBS=$ac_save_LIBS
30644 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30645 do
30646   # Don't even attempt the hair of trying to link an X program!
30647   for ac_extension in a so sl dylib la dll; do
30648     if test -r "$ac_dir/libX11.$ac_extension"; then
30649       ac_x_libraries=$ac_dir
30650       break 2
30651     fi
30652   done
30653 done
30654 fi
30655
30656 rm -rf conftest.dSYM
30657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30658       conftest$ac_exeext conftest.$ac_ext
30659 fi # $ac_x_libraries = no
30660
30661 case $ac_x_includes,$ac_x_libraries in #(
30662   no,* | *,no | *\'*)
30663     # Didn't find X, or a directory has "'" in its name.
30664     ac_cv_have_x="have_x=no";; #(
30665   *)
30666     # Record where we found X for the cache.
30667     ac_cv_have_x="have_x=yes\
30668         ac_x_includes='$ac_x_includes'\
30669         ac_x_libraries='$ac_x_libraries'"
30670 esac
30671 fi
30672 ;; #(
30673     *) have_x=yes;;
30674   esac
30675   eval "$ac_cv_have_x"
30676 fi # $with_x != no
30677
30678 if test "$have_x" != yes; then
30679   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30680 $as_echo "$have_x" >&6; }
30681   no_x=yes
30682 else
30683   # If each of the values was on the command line, it overrides each guess.
30684   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30685   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30686   # Update the cache value to reflect the command line values.
30687   ac_cv_have_x="have_x=yes\
30688         ac_x_includes='$x_includes'\
30689         ac_x_libraries='$x_libraries'"
30690   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30691 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30692 fi
30693
30694 if test "$no_x" = yes; then
30695   # Not all programs may use this symbol, but it does not hurt to define it.
30696
30697 cat >>confdefs.h <<\_ACEOF
30698 #define X_DISPLAY_MISSING 1
30699 _ACEOF
30700
30701   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30702 else
30703   if test -n "$x_includes"; then
30704     X_CFLAGS="$X_CFLAGS -I$x_includes"
30705   fi
30706
30707   # It would also be nice to do this for all -L options, not just this one.
30708   if test -n "$x_libraries"; then
30709     X_LIBS="$X_LIBS -L$x_libraries"
30710     # For Solaris; some versions of Sun CC require a space after -R and
30711     # others require no space.  Words are not sufficient . . . .
30712     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30713 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30714     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30715     ac_xsave_c_werror_flag=$ac_c_werror_flag
30716     ac_c_werror_flag=yes
30717     cat >conftest.$ac_ext <<_ACEOF
30718 /* confdefs.h.  */
30719 _ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h.  */
30723
30724 int
30725 main ()
30726 {
30727
30728   ;
30729   return 0;
30730 }
30731 _ACEOF
30732 rm -f conftest.$ac_objext conftest$ac_exeext
30733 if { (ac_try="$ac_link"
30734 case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30739 $as_echo "$ac_try_echo") >&5
30740   (eval "$ac_link") 2>conftest.er1
30741   ac_status=$?
30742   grep -v '^ *+' conftest.er1 >conftest.err
30743   rm -f conftest.er1
30744   cat conftest.err >&5
30745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); } && {
30747          test -z "$ac_c_werror_flag" ||
30748          test ! -s conftest.err
30749        } && test -s conftest$ac_exeext && {
30750          test "$cross_compiling" = yes ||
30751          $as_test_x conftest$ac_exeext
30752        }; then
30753   { $as_echo "$as_me:$LINENO: result: no" >&5
30754 $as_echo "no" >&6; }
30755        X_LIBS="$X_LIBS -R$x_libraries"
30756 else
30757   $as_echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760         LIBS="$ac_xsave_LIBS -R $x_libraries"
30761        cat >conftest.$ac_ext <<_ACEOF
30762 /* confdefs.h.  */
30763 _ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h.  */
30767
30768 int
30769 main ()
30770 {
30771
30772   ;
30773   return 0;
30774 }
30775 _ACEOF
30776 rm -f conftest.$ac_objext conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30783 $as_echo "$ac_try_echo") >&5
30784   (eval "$ac_link") 2>conftest.er1
30785   ac_status=$?
30786   grep -v '^ *+' conftest.er1 >conftest.err
30787   rm -f conftest.er1
30788   cat conftest.err >&5
30789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790   (exit $ac_status); } && {
30791          test -z "$ac_c_werror_flag" ||
30792          test ! -s conftest.err
30793        } && test -s conftest$ac_exeext && {
30794          test "$cross_compiling" = yes ||
30795          $as_test_x conftest$ac_exeext
30796        }; then
30797   { $as_echo "$as_me:$LINENO: result: yes" >&5
30798 $as_echo "yes" >&6; }
30799           X_LIBS="$X_LIBS -R $x_libraries"
30800 else
30801   $as_echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30803
30804         { $as_echo "$as_me:$LINENO: result: neither works" >&5
30805 $as_echo "neither works" >&6; }
30806 fi
30807
30808 rm -rf conftest.dSYM
30809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30810       conftest$ac_exeext conftest.$ac_ext
30811 fi
30812
30813 rm -rf conftest.dSYM
30814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30815       conftest$ac_exeext conftest.$ac_ext
30816     ac_c_werror_flag=$ac_xsave_c_werror_flag
30817     LIBS=$ac_xsave_LIBS
30818   fi
30819
30820   # Check for system-dependent libraries X programs must link with.
30821   # Do this before checking for the system-independent R6 libraries
30822   # (-lICE), since we may need -lsocket or whatever for X linking.
30823
30824   if test "$ISC" = yes; then
30825     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30826   else
30827     # Martyn Johnson says this is needed for Ultrix, if the X
30828     # libraries were built with DECnet support.  And Karl Berry says
30829     # the Alpha needs dnet_stub (dnet does not exist).
30830     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30831     cat >conftest.$ac_ext <<_ACEOF
30832 /* confdefs.h.  */
30833 _ACEOF
30834 cat confdefs.h >>conftest.$ac_ext
30835 cat >>conftest.$ac_ext <<_ACEOF
30836 /* end confdefs.h.  */
30837
30838 /* Override any GCC internal prototype to avoid an error.
30839    Use char because int might match the return type of a GCC
30840    builtin and then its argument prototype would still apply.  */
30841 #ifdef __cplusplus
30842 extern "C"
30843 #endif
30844 char XOpenDisplay ();
30845 int
30846 main ()
30847 {
30848 return XOpenDisplay ();
30849   ;
30850   return 0;
30851 }
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (ac_try="$ac_link"
30855 case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30860 $as_echo "$ac_try_echo") >&5
30861   (eval "$ac_link") 2>conftest.er1
30862   ac_status=$?
30863   grep -v '^ *+' conftest.er1 >conftest.err
30864   rm -f conftest.er1
30865   cat conftest.err >&5
30866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867   (exit $ac_status); } && {
30868          test -z "$ac_c_werror_flag" ||
30869          test ! -s conftest.err
30870        } && test -s conftest$ac_exeext && {
30871          test "$cross_compiling" = yes ||
30872          $as_test_x conftest$ac_exeext
30873        }; then
30874   :
30875 else
30876   $as_echo "$as_me: failed program was:" >&5
30877 sed 's/^/| /' conftest.$ac_ext >&5
30878
30879         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30880 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30881 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30882   $as_echo_n "(cached) " >&6
30883 else
30884   ac_check_lib_save_LIBS=$LIBS
30885 LIBS="-ldnet  $LIBS"
30886 cat >conftest.$ac_ext <<_ACEOF
30887 /* confdefs.h.  */
30888 _ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h.  */
30892
30893 /* Override any GCC internal prototype to avoid an error.
30894    Use char because int might match the return type of a GCC
30895    builtin and then its argument prototype would still apply.  */
30896 #ifdef __cplusplus
30897 extern "C"
30898 #endif
30899 char dnet_ntoa ();
30900 int
30901 main ()
30902 {
30903 return dnet_ntoa ();
30904   ;
30905   return 0;
30906 }
30907 _ACEOF
30908 rm -f conftest.$ac_objext conftest$ac_exeext
30909 if { (ac_try="$ac_link"
30910 case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30915 $as_echo "$ac_try_echo") >&5
30916   (eval "$ac_link") 2>conftest.er1
30917   ac_status=$?
30918   grep -v '^ *+' conftest.er1 >conftest.err
30919   rm -f conftest.er1
30920   cat conftest.err >&5
30921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); } && {
30923          test -z "$ac_c_werror_flag" ||
30924          test ! -s conftest.err
30925        } && test -s conftest$ac_exeext && {
30926          test "$cross_compiling" = yes ||
30927          $as_test_x conftest$ac_exeext
30928        }; then
30929   ac_cv_lib_dnet_dnet_ntoa=yes
30930 else
30931   $as_echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.$ac_ext >&5
30933
30934         ac_cv_lib_dnet_dnet_ntoa=no
30935 fi
30936
30937 rm -rf conftest.dSYM
30938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30939       conftest$ac_exeext conftest.$ac_ext
30940 LIBS=$ac_check_lib_save_LIBS
30941 fi
30942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30943 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30944 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30945   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30946 fi
30947
30948     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30949       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30950 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30951 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30952   $as_echo_n "(cached) " >&6
30953 else
30954   ac_check_lib_save_LIBS=$LIBS
30955 LIBS="-ldnet_stub  $LIBS"
30956 cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962
30963 /* Override any GCC internal prototype to avoid an error.
30964    Use char because int might match the return type of a GCC
30965    builtin and then its argument prototype would still apply.  */
30966 #ifdef __cplusplus
30967 extern "C"
30968 #endif
30969 char dnet_ntoa ();
30970 int
30971 main ()
30972 {
30973 return dnet_ntoa ();
30974   ;
30975   return 0;
30976 }
30977 _ACEOF
30978 rm -f conftest.$ac_objext conftest$ac_exeext
30979 if { (ac_try="$ac_link"
30980 case "(($ac_try" in
30981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982   *) ac_try_echo=$ac_try;;
30983 esac
30984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30985 $as_echo "$ac_try_echo") >&5
30986   (eval "$ac_link") 2>conftest.er1
30987   ac_status=$?
30988   grep -v '^ *+' conftest.er1 >conftest.err
30989   rm -f conftest.er1
30990   cat conftest.err >&5
30991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); } && {
30993          test -z "$ac_c_werror_flag" ||
30994          test ! -s conftest.err
30995        } && test -s conftest$ac_exeext && {
30996          test "$cross_compiling" = yes ||
30997          $as_test_x conftest$ac_exeext
30998        }; then
30999   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31000 else
31001   $as_echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31003
31004         ac_cv_lib_dnet_stub_dnet_ntoa=no
31005 fi
31006
31007 rm -rf conftest.dSYM
31008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31009       conftest$ac_exeext conftest.$ac_ext
31010 LIBS=$ac_check_lib_save_LIBS
31011 fi
31012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31013 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31014 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31015   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31016 fi
31017
31018     fi
31019 fi
31020
31021 rm -rf conftest.dSYM
31022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31023       conftest$ac_exeext conftest.$ac_ext
31024     LIBS="$ac_xsave_LIBS"
31025
31026     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31027     # to get the SysV transport functions.
31028     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31029     # needs -lnsl.
31030     # The nsl library prevents programs from opening the X display
31031     # on Irix 5.2, according to T.E. Dickey.
31032     # The functions gethostbyname, getservbyname, and inet_addr are
31033     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31034     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31035 $as_echo_n "checking for gethostbyname... " >&6; }
31036 if test "${ac_cv_func_gethostbyname+set}" = set; then
31037   $as_echo_n "(cached) " >&6
31038 else
31039   cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31047 #define gethostbyname innocuous_gethostbyname
31048
31049 /* System header to define __stub macros and hopefully few prototypes,
31050     which can conflict with char gethostbyname (); below.
31051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31052     <limits.h> exists even on freestanding compilers.  */
31053
31054 #ifdef __STDC__
31055 # include <limits.h>
31056 #else
31057 # include <assert.h>
31058 #endif
31059
31060 #undef gethostbyname
31061
31062 /* Override any GCC internal prototype to avoid an error.
31063    Use char because int might match the return type of a GCC
31064    builtin and then its argument prototype would still apply.  */
31065 #ifdef __cplusplus
31066 extern "C"
31067 #endif
31068 char gethostbyname ();
31069 /* The GNU C library defines this for functions which it implements
31070     to always fail with ENOSYS.  Some functions are actually named
31071     something starting with __ and the normal name is an alias.  */
31072 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31073 choke me
31074 #endif
31075
31076 int
31077 main ()
31078 {
31079 return gethostbyname ();
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 rm -f conftest.$ac_objext conftest$ac_exeext
31085 if { (ac_try="$ac_link"
31086 case "(($ac_try" in
31087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088   *) ac_try_echo=$ac_try;;
31089 esac
31090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31091 $as_echo "$ac_try_echo") >&5
31092   (eval "$ac_link") 2>conftest.er1
31093   ac_status=$?
31094   grep -v '^ *+' conftest.er1 >conftest.err
31095   rm -f conftest.er1
31096   cat conftest.err >&5
31097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098   (exit $ac_status); } && {
31099          test -z "$ac_c_werror_flag" ||
31100          test ! -s conftest.err
31101        } && test -s conftest$ac_exeext && {
31102          test "$cross_compiling" = yes ||
31103          $as_test_x conftest$ac_exeext
31104        }; then
31105   ac_cv_func_gethostbyname=yes
31106 else
31107   $as_echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31109
31110         ac_cv_func_gethostbyname=no
31111 fi
31112
31113 rm -rf conftest.dSYM
31114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31115       conftest$ac_exeext conftest.$ac_ext
31116 fi
31117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31118 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31119
31120     if test $ac_cv_func_gethostbyname = no; then
31121       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31122 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31123 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31124   $as_echo_n "(cached) " >&6
31125 else
31126   ac_check_lib_save_LIBS=$LIBS
31127 LIBS="-lnsl  $LIBS"
31128 cat >conftest.$ac_ext <<_ACEOF
31129 /* confdefs.h.  */
31130 _ACEOF
31131 cat confdefs.h >>conftest.$ac_ext
31132 cat >>conftest.$ac_ext <<_ACEOF
31133 /* end confdefs.h.  */
31134
31135 /* Override any GCC internal prototype to avoid an error.
31136    Use char because int might match the return type of a GCC
31137    builtin and then its argument prototype would still apply.  */
31138 #ifdef __cplusplus
31139 extern "C"
31140 #endif
31141 char gethostbyname ();
31142 int
31143 main ()
31144 {
31145 return gethostbyname ();
31146   ;
31147   return 0;
31148 }
31149 _ACEOF
31150 rm -f conftest.$ac_objext conftest$ac_exeext
31151 if { (ac_try="$ac_link"
31152 case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31157 $as_echo "$ac_try_echo") >&5
31158   (eval "$ac_link") 2>conftest.er1
31159   ac_status=$?
31160   grep -v '^ *+' conftest.er1 >conftest.err
31161   rm -f conftest.er1
31162   cat conftest.err >&5
31163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); } && {
31165          test -z "$ac_c_werror_flag" ||
31166          test ! -s conftest.err
31167        } && test -s conftest$ac_exeext && {
31168          test "$cross_compiling" = yes ||
31169          $as_test_x conftest$ac_exeext
31170        }; then
31171   ac_cv_lib_nsl_gethostbyname=yes
31172 else
31173   $as_echo "$as_me: failed program was:" >&5
31174 sed 's/^/| /' conftest.$ac_ext >&5
31175
31176         ac_cv_lib_nsl_gethostbyname=no
31177 fi
31178
31179 rm -rf conftest.dSYM
31180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31181       conftest$ac_exeext conftest.$ac_ext
31182 LIBS=$ac_check_lib_save_LIBS
31183 fi
31184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31185 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31186 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31187   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31188 fi
31189
31190       if test $ac_cv_lib_nsl_gethostbyname = no; then
31191         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31192 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31193 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31194   $as_echo_n "(cached) " >&6
31195 else
31196   ac_check_lib_save_LIBS=$LIBS
31197 LIBS="-lbsd  $LIBS"
31198 cat >conftest.$ac_ext <<_ACEOF
31199 /* confdefs.h.  */
31200 _ACEOF
31201 cat confdefs.h >>conftest.$ac_ext
31202 cat >>conftest.$ac_ext <<_ACEOF
31203 /* end confdefs.h.  */
31204
31205 /* Override any GCC internal prototype to avoid an error.
31206    Use char because int might match the return type of a GCC
31207    builtin and then its argument prototype would still apply.  */
31208 #ifdef __cplusplus
31209 extern "C"
31210 #endif
31211 char gethostbyname ();
31212 int
31213 main ()
31214 {
31215 return gethostbyname ();
31216   ;
31217   return 0;
31218 }
31219 _ACEOF
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221 if { (ac_try="$ac_link"
31222 case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31227 $as_echo "$ac_try_echo") >&5
31228   (eval "$ac_link") 2>conftest.er1
31229   ac_status=$?
31230   grep -v '^ *+' conftest.er1 >conftest.err
31231   rm -f conftest.er1
31232   cat conftest.err >&5
31233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234   (exit $ac_status); } && {
31235          test -z "$ac_c_werror_flag" ||
31236          test ! -s conftest.err
31237        } && test -s conftest$ac_exeext && {
31238          test "$cross_compiling" = yes ||
31239          $as_test_x conftest$ac_exeext
31240        }; then
31241   ac_cv_lib_bsd_gethostbyname=yes
31242 else
31243   $as_echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31245
31246         ac_cv_lib_bsd_gethostbyname=no
31247 fi
31248
31249 rm -rf conftest.dSYM
31250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31251       conftest$ac_exeext conftest.$ac_ext
31252 LIBS=$ac_check_lib_save_LIBS
31253 fi
31254 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31255 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31256 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31257   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31258 fi
31259
31260       fi
31261     fi
31262
31263     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31264     # socket/setsockopt and other routines are undefined under SCO ODT
31265     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31266     # on later versions), says Simon Leinen: it contains gethostby*
31267     # variants that don't use the name server (or something).  -lsocket
31268     # must be given before -lnsl if both are needed.  We assume that
31269     # if connect needs -lnsl, so does gethostbyname.
31270     { $as_echo "$as_me:$LINENO: checking for connect" >&5
31271 $as_echo_n "checking for connect... " >&6; }
31272 if test "${ac_cv_func_connect+set}" = set; then
31273   $as_echo_n "(cached) " >&6
31274 else
31275   cat >conftest.$ac_ext <<_ACEOF
31276 /* confdefs.h.  */
31277 _ACEOF
31278 cat confdefs.h >>conftest.$ac_ext
31279 cat >>conftest.$ac_ext <<_ACEOF
31280 /* end confdefs.h.  */
31281 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31283 #define connect innocuous_connect
31284
31285 /* System header to define __stub macros and hopefully few prototypes,
31286     which can conflict with char connect (); below.
31287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31288     <limits.h> exists even on freestanding compilers.  */
31289
31290 #ifdef __STDC__
31291 # include <limits.h>
31292 #else
31293 # include <assert.h>
31294 #endif
31295
31296 #undef connect
31297
31298 /* Override any GCC internal prototype to avoid an error.
31299    Use char because int might match the return type of a GCC
31300    builtin and then its argument prototype would still apply.  */
31301 #ifdef __cplusplus
31302 extern "C"
31303 #endif
31304 char connect ();
31305 /* The GNU C library defines this for functions which it implements
31306     to always fail with ENOSYS.  Some functions are actually named
31307     something starting with __ and the normal name is an alias.  */
31308 #if defined __stub_connect || defined __stub___connect
31309 choke me
31310 #endif
31311
31312 int
31313 main ()
31314 {
31315 return connect ();
31316   ;
31317   return 0;
31318 }
31319 _ACEOF
31320 rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324   *) ac_try_echo=$ac_try;;
31325 esac
31326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31327 $as_echo "$ac_try_echo") >&5
31328   (eval "$ac_link") 2>conftest.er1
31329   ac_status=$?
31330   grep -v '^ *+' conftest.er1 >conftest.err
31331   rm -f conftest.er1
31332   cat conftest.err >&5
31333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); } && {
31335          test -z "$ac_c_werror_flag" ||
31336          test ! -s conftest.err
31337        } && test -s conftest$ac_exeext && {
31338          test "$cross_compiling" = yes ||
31339          $as_test_x conftest$ac_exeext
31340        }; then
31341   ac_cv_func_connect=yes
31342 else
31343   $as_echo "$as_me: failed program was:" >&5
31344 sed 's/^/| /' conftest.$ac_ext >&5
31345
31346         ac_cv_func_connect=no
31347 fi
31348
31349 rm -rf conftest.dSYM
31350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31351       conftest$ac_exeext conftest.$ac_ext
31352 fi
31353 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31354 $as_echo "$ac_cv_func_connect" >&6; }
31355
31356     if test $ac_cv_func_connect = no; then
31357       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31358 $as_echo_n "checking for connect in -lsocket... " >&6; }
31359 if test "${ac_cv_lib_socket_connect+set}" = set; then
31360   $as_echo_n "(cached) " >&6
31361 else
31362   ac_check_lib_save_LIBS=$LIBS
31363 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31364 cat >conftest.$ac_ext <<_ACEOF
31365 /* confdefs.h.  */
31366 _ACEOF
31367 cat confdefs.h >>conftest.$ac_ext
31368 cat >>conftest.$ac_ext <<_ACEOF
31369 /* end confdefs.h.  */
31370
31371 /* Override any GCC internal prototype to avoid an error.
31372    Use char because int might match the return type of a GCC
31373    builtin and then its argument prototype would still apply.  */
31374 #ifdef __cplusplus
31375 extern "C"
31376 #endif
31377 char connect ();
31378 int
31379 main ()
31380 {
31381 return connect ();
31382   ;
31383   return 0;
31384 }
31385 _ACEOF
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (ac_try="$ac_link"
31388 case "(($ac_try" in
31389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390   *) ac_try_echo=$ac_try;;
31391 esac
31392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31393 $as_echo "$ac_try_echo") >&5
31394   (eval "$ac_link") 2>conftest.er1
31395   ac_status=$?
31396   grep -v '^ *+' conftest.er1 >conftest.err
31397   rm -f conftest.er1
31398   cat conftest.err >&5
31399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400   (exit $ac_status); } && {
31401          test -z "$ac_c_werror_flag" ||
31402          test ! -s conftest.err
31403        } && test -s conftest$ac_exeext && {
31404          test "$cross_compiling" = yes ||
31405          $as_test_x conftest$ac_exeext
31406        }; then
31407   ac_cv_lib_socket_connect=yes
31408 else
31409   $as_echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31411
31412         ac_cv_lib_socket_connect=no
31413 fi
31414
31415 rm -rf conftest.dSYM
31416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31417       conftest$ac_exeext conftest.$ac_ext
31418 LIBS=$ac_check_lib_save_LIBS
31419 fi
31420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31421 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31422 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31423   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31424 fi
31425
31426     fi
31427
31428     # Guillermo Gomez says -lposix is necessary on A/UX.
31429     { $as_echo "$as_me:$LINENO: checking for remove" >&5
31430 $as_echo_n "checking for remove... " >&6; }
31431 if test "${ac_cv_func_remove+set}" = set; then
31432   $as_echo_n "(cached) " >&6
31433 else
31434   cat >conftest.$ac_ext <<_ACEOF
31435 /* confdefs.h.  */
31436 _ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h.  */
31440 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31442 #define remove innocuous_remove
31443
31444 /* System header to define __stub macros and hopefully few prototypes,
31445     which can conflict with char remove (); below.
31446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31447     <limits.h> exists even on freestanding compilers.  */
31448
31449 #ifdef __STDC__
31450 # include <limits.h>
31451 #else
31452 # include <assert.h>
31453 #endif
31454
31455 #undef remove
31456
31457 /* Override any GCC internal prototype to avoid an error.
31458    Use char because int might match the return type of a GCC
31459    builtin and then its argument prototype would still apply.  */
31460 #ifdef __cplusplus
31461 extern "C"
31462 #endif
31463 char remove ();
31464 /* The GNU C library defines this for functions which it implements
31465     to always fail with ENOSYS.  Some functions are actually named
31466     something starting with __ and the normal name is an alias.  */
31467 #if defined __stub_remove || defined __stub___remove
31468 choke me
31469 #endif
31470
31471 int
31472 main ()
31473 {
31474 return remove ();
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (ac_try="$ac_link"
31481 case "(($ac_try" in
31482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483   *) ac_try_echo=$ac_try;;
31484 esac
31485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31486 $as_echo "$ac_try_echo") >&5
31487   (eval "$ac_link") 2>conftest.er1
31488   ac_status=$?
31489   grep -v '^ *+' conftest.er1 >conftest.err
31490   rm -f conftest.er1
31491   cat conftest.err >&5
31492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); } && {
31494          test -z "$ac_c_werror_flag" ||
31495          test ! -s conftest.err
31496        } && test -s conftest$ac_exeext && {
31497          test "$cross_compiling" = yes ||
31498          $as_test_x conftest$ac_exeext
31499        }; then
31500   ac_cv_func_remove=yes
31501 else
31502   $as_echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31504
31505         ac_cv_func_remove=no
31506 fi
31507
31508 rm -rf conftest.dSYM
31509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510       conftest$ac_exeext conftest.$ac_ext
31511 fi
31512 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31513 $as_echo "$ac_cv_func_remove" >&6; }
31514
31515     if test $ac_cv_func_remove = no; then
31516       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31517 $as_echo_n "checking for remove in -lposix... " >&6; }
31518 if test "${ac_cv_lib_posix_remove+set}" = set; then
31519   $as_echo_n "(cached) " >&6
31520 else
31521   ac_check_lib_save_LIBS=$LIBS
31522 LIBS="-lposix  $LIBS"
31523 cat >conftest.$ac_ext <<_ACEOF
31524 /* confdefs.h.  */
31525 _ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h.  */
31529
31530 /* Override any GCC internal prototype to avoid an error.
31531    Use char because int might match the return type of a GCC
31532    builtin and then its argument prototype would still apply.  */
31533 #ifdef __cplusplus
31534 extern "C"
31535 #endif
31536 char remove ();
31537 int
31538 main ()
31539 {
31540 return remove ();
31541   ;
31542   return 0;
31543 }
31544 _ACEOF
31545 rm -f conftest.$ac_objext conftest$ac_exeext
31546 if { (ac_try="$ac_link"
31547 case "(($ac_try" in
31548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31549   *) ac_try_echo=$ac_try;;
31550 esac
31551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31552 $as_echo "$ac_try_echo") >&5
31553   (eval "$ac_link") 2>conftest.er1
31554   ac_status=$?
31555   grep -v '^ *+' conftest.er1 >conftest.err
31556   rm -f conftest.er1
31557   cat conftest.err >&5
31558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); } && {
31560          test -z "$ac_c_werror_flag" ||
31561          test ! -s conftest.err
31562        } && test -s conftest$ac_exeext && {
31563          test "$cross_compiling" = yes ||
31564          $as_test_x conftest$ac_exeext
31565        }; then
31566   ac_cv_lib_posix_remove=yes
31567 else
31568   $as_echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31570
31571         ac_cv_lib_posix_remove=no
31572 fi
31573
31574 rm -rf conftest.dSYM
31575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31576       conftest$ac_exeext conftest.$ac_ext
31577 LIBS=$ac_check_lib_save_LIBS
31578 fi
31579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31580 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31581 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31582   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31583 fi
31584
31585     fi
31586
31587     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31588     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31589 $as_echo_n "checking for shmat... " >&6; }
31590 if test "${ac_cv_func_shmat+set}" = set; then
31591   $as_echo_n "(cached) " >&6
31592 else
31593   cat >conftest.$ac_ext <<_ACEOF
31594 /* confdefs.h.  */
31595 _ACEOF
31596 cat confdefs.h >>conftest.$ac_ext
31597 cat >>conftest.$ac_ext <<_ACEOF
31598 /* end confdefs.h.  */
31599 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31601 #define shmat innocuous_shmat
31602
31603 /* System header to define __stub macros and hopefully few prototypes,
31604     which can conflict with char shmat (); below.
31605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31606     <limits.h> exists even on freestanding compilers.  */
31607
31608 #ifdef __STDC__
31609 # include <limits.h>
31610 #else
31611 # include <assert.h>
31612 #endif
31613
31614 #undef shmat
31615
31616 /* Override any GCC internal prototype to avoid an error.
31617    Use char because int might match the return type of a GCC
31618    builtin and then its argument prototype would still apply.  */
31619 #ifdef __cplusplus
31620 extern "C"
31621 #endif
31622 char shmat ();
31623 /* The GNU C library defines this for functions which it implements
31624     to always fail with ENOSYS.  Some functions are actually named
31625     something starting with __ and the normal name is an alias.  */
31626 #if defined __stub_shmat || defined __stub___shmat
31627 choke me
31628 #endif
31629
31630 int
31631 main ()
31632 {
31633 return shmat ();
31634   ;
31635   return 0;
31636 }
31637 _ACEOF
31638 rm -f conftest.$ac_objext conftest$ac_exeext
31639 if { (ac_try="$ac_link"
31640 case "(($ac_try" in
31641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642   *) ac_try_echo=$ac_try;;
31643 esac
31644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31645 $as_echo "$ac_try_echo") >&5
31646   (eval "$ac_link") 2>conftest.er1
31647   ac_status=$?
31648   grep -v '^ *+' conftest.er1 >conftest.err
31649   rm -f conftest.er1
31650   cat conftest.err >&5
31651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); } && {
31653          test -z "$ac_c_werror_flag" ||
31654          test ! -s conftest.err
31655        } && test -s conftest$ac_exeext && {
31656          test "$cross_compiling" = yes ||
31657          $as_test_x conftest$ac_exeext
31658        }; then
31659   ac_cv_func_shmat=yes
31660 else
31661   $as_echo "$as_me: failed program was:" >&5
31662 sed 's/^/| /' conftest.$ac_ext >&5
31663
31664         ac_cv_func_shmat=no
31665 fi
31666
31667 rm -rf conftest.dSYM
31668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31669       conftest$ac_exeext conftest.$ac_ext
31670 fi
31671 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31672 $as_echo "$ac_cv_func_shmat" >&6; }
31673
31674     if test $ac_cv_func_shmat = no; then
31675       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31676 $as_echo_n "checking for shmat in -lipc... " >&6; }
31677 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31678   $as_echo_n "(cached) " >&6
31679 else
31680   ac_check_lib_save_LIBS=$LIBS
31681 LIBS="-lipc  $LIBS"
31682 cat >conftest.$ac_ext <<_ACEOF
31683 /* confdefs.h.  */
31684 _ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h.  */
31688
31689 /* Override any GCC internal prototype to avoid an error.
31690    Use char because int might match the return type of a GCC
31691    builtin and then its argument prototype would still apply.  */
31692 #ifdef __cplusplus
31693 extern "C"
31694 #endif
31695 char shmat ();
31696 int
31697 main ()
31698 {
31699 return shmat ();
31700   ;
31701   return 0;
31702 }
31703 _ACEOF
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (ac_try="$ac_link"
31706 case "(($ac_try" in
31707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708   *) ac_try_echo=$ac_try;;
31709 esac
31710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31711 $as_echo "$ac_try_echo") >&5
31712   (eval "$ac_link") 2>conftest.er1
31713   ac_status=$?
31714   grep -v '^ *+' conftest.er1 >conftest.err
31715   rm -f conftest.er1
31716   cat conftest.err >&5
31717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718   (exit $ac_status); } && {
31719          test -z "$ac_c_werror_flag" ||
31720          test ! -s conftest.err
31721        } && test -s conftest$ac_exeext && {
31722          test "$cross_compiling" = yes ||
31723          $as_test_x conftest$ac_exeext
31724        }; then
31725   ac_cv_lib_ipc_shmat=yes
31726 else
31727   $as_echo "$as_me: failed program was:" >&5
31728 sed 's/^/| /' conftest.$ac_ext >&5
31729
31730         ac_cv_lib_ipc_shmat=no
31731 fi
31732
31733 rm -rf conftest.dSYM
31734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31735       conftest$ac_exeext conftest.$ac_ext
31736 LIBS=$ac_check_lib_save_LIBS
31737 fi
31738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31739 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31740 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31741   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31742 fi
31743
31744     fi
31745   fi
31746
31747   # Check for libraries that X11R6 Xt/Xaw programs need.
31748   ac_save_LDFLAGS=$LDFLAGS
31749   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31750   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31751   # check for ICE first), but we must link in the order -lSM -lICE or
31752   # we get undefined symbols.  So assume we have SM if we have ICE.
31753   # These have to be linked with before -lX11, unlike the other
31754   # libraries we check for below, so use a different variable.
31755   # John Interrante, Karl Berry
31756   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31757 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31758 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31759   $as_echo_n "(cached) " >&6
31760 else
31761   ac_check_lib_save_LIBS=$LIBS
31762 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31763 cat >conftest.$ac_ext <<_ACEOF
31764 /* confdefs.h.  */
31765 _ACEOF
31766 cat confdefs.h >>conftest.$ac_ext
31767 cat >>conftest.$ac_ext <<_ACEOF
31768 /* end confdefs.h.  */
31769
31770 /* Override any GCC internal prototype to avoid an error.
31771    Use char because int might match the return type of a GCC
31772    builtin and then its argument prototype would still apply.  */
31773 #ifdef __cplusplus
31774 extern "C"
31775 #endif
31776 char IceConnectionNumber ();
31777 int
31778 main ()
31779 {
31780 return IceConnectionNumber ();
31781   ;
31782   return 0;
31783 }
31784 _ACEOF
31785 rm -f conftest.$ac_objext conftest$ac_exeext
31786 if { (ac_try="$ac_link"
31787 case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31792 $as_echo "$ac_try_echo") >&5
31793   (eval "$ac_link") 2>conftest.er1
31794   ac_status=$?
31795   grep -v '^ *+' conftest.er1 >conftest.err
31796   rm -f conftest.er1
31797   cat conftest.err >&5
31798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); } && {
31800          test -z "$ac_c_werror_flag" ||
31801          test ! -s conftest.err
31802        } && test -s conftest$ac_exeext && {
31803          test "$cross_compiling" = yes ||
31804          $as_test_x conftest$ac_exeext
31805        }; then
31806   ac_cv_lib_ICE_IceConnectionNumber=yes
31807 else
31808   $as_echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31810
31811         ac_cv_lib_ICE_IceConnectionNumber=no
31812 fi
31813
31814 rm -rf conftest.dSYM
31815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31816       conftest$ac_exeext conftest.$ac_ext
31817 LIBS=$ac_check_lib_save_LIBS
31818 fi
31819 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31820 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31821 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31822   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31823 fi
31824
31825   LDFLAGS=$ac_save_LDFLAGS
31826
31827 fi
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859 for ac_header in \
31860    assert.h \
31861    fcntl.h \
31862    grp.h \
31863    pwd.h \
31864    libc.h \
31865    limits.h \
31866    stdarg.h \
31867    stdlib.h \
31868    stdint.h \
31869    string.h \
31870    strings.h \
31871    termios.h \
31872    termcap.h \
31873    term.h \
31874    unistd.h \
31875    sys/bitypes.h \
31876    sys/byteorder.h \
31877    sys/ioctl.h \
31878    sys/select.h \
31879    sys/socket.h \
31880    sys/sockio.h \
31881    sys/stat.h \
31882    sys/time.h \
31883    sys/types.h \
31884    arpa/nameser.h \
31885    mtio.h \
31886    sys/mtio.h \
31887    sys/tape.h \
31888    regex.h \
31889
31890 do
31891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31893   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31894 $as_echo_n "checking for $ac_header... " >&6; }
31895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31896   $as_echo_n "(cached) " >&6
31897 fi
31898 ac_res=`eval 'as_val=${'$as_ac_Header'}
31899                  $as_echo "$as_val"'`
31900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31901 $as_echo "$ac_res" >&6; }
31902 else
31903   # Is the header compilable?
31904 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31905 $as_echo_n "checking $ac_header usability... " >&6; }
31906 cat >conftest.$ac_ext <<_ACEOF
31907 /* confdefs.h.  */
31908 _ACEOF
31909 cat confdefs.h >>conftest.$ac_ext
31910 cat >>conftest.$ac_ext <<_ACEOF
31911 /* end confdefs.h.  */
31912 $ac_includes_default
31913 #include <$ac_header>
31914 _ACEOF
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919   *) ac_try_echo=$ac_try;;
31920 esac
31921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31922 $as_echo "$ac_try_echo") >&5
31923   (eval "$ac_compile") 2>conftest.er1
31924   ac_status=$?
31925   grep -v '^ *+' conftest.er1 >conftest.err
31926   rm -f conftest.er1
31927   cat conftest.err >&5
31928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929   (exit $ac_status); } && {
31930          test -z "$ac_c_werror_flag" ||
31931          test ! -s conftest.err
31932        } && test -s conftest.$ac_objext; then
31933   ac_header_compiler=yes
31934 else
31935   $as_echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31937
31938         ac_header_compiler=no
31939 fi
31940
31941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31943 $as_echo "$ac_header_compiler" >&6; }
31944
31945 # Is the header present?
31946 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31947 $as_echo_n "checking $ac_header presence... " >&6; }
31948 cat >conftest.$ac_ext <<_ACEOF
31949 /* confdefs.h.  */
31950 _ACEOF
31951 cat confdefs.h >>conftest.$ac_ext
31952 cat >>conftest.$ac_ext <<_ACEOF
31953 /* end confdefs.h.  */
31954 #include <$ac_header>
31955 _ACEOF
31956 if { (ac_try="$ac_cpp conftest.$ac_ext"
31957 case "(($ac_try" in
31958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959   *) ac_try_echo=$ac_try;;
31960 esac
31961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31962 $as_echo "$ac_try_echo") >&5
31963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31964   ac_status=$?
31965   grep -v '^ *+' conftest.er1 >conftest.err
31966   rm -f conftest.er1
31967   cat conftest.err >&5
31968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); } >/dev/null && {
31970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31971          test ! -s conftest.err
31972        }; then
31973   ac_header_preproc=yes
31974 else
31975   $as_echo "$as_me: failed program was:" >&5
31976 sed 's/^/| /' conftest.$ac_ext >&5
31977
31978   ac_header_preproc=no
31979 fi
31980
31981 rm -f conftest.err conftest.$ac_ext
31982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31983 $as_echo "$ac_header_preproc" >&6; }
31984
31985 # So?  What about this header?
31986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31987   yes:no: )
31988     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31989 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31992     ac_header_preproc=yes
31993     ;;
31994   no:yes:* )
31995     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31996 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31997     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31998 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32000 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32002 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32004 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32006 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32007
32008     ;;
32009 esac
32010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32011 $as_echo_n "checking for $ac_header... " >&6; }
32012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32013   $as_echo_n "(cached) " >&6
32014 else
32015   eval "$as_ac_Header=\$ac_header_preproc"
32016 fi
32017 ac_res=`eval 'as_val=${'$as_ac_Header'}
32018                  $as_echo "$as_val"'`
32019                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32020 $as_echo "$ac_res" >&6; }
32021
32022 fi
32023 as_val=`eval 'as_val=${'$as_ac_Header'}
32024                  $as_echo "$as_val"'`
32025    if test "x$as_val" = x""yes; then
32026   cat >>confdefs.h <<_ACEOF
32027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32028 _ACEOF
32029
32030 fi
32031
32032 done
32033
32034 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32035 $as_echo_n "checking for ANSI C header files... " >&6; }
32036 if test "${ac_cv_header_stdc+set}" = set; then
32037   $as_echo_n "(cached) " >&6
32038 else
32039   cat >conftest.$ac_ext <<_ACEOF
32040 /* confdefs.h.  */
32041 _ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h.  */
32045 #include <stdlib.h>
32046 #include <stdarg.h>
32047 #include <string.h>
32048 #include <float.h>
32049
32050 int
32051 main ()
32052 {
32053
32054   ;
32055   return 0;
32056 }
32057 _ACEOF
32058 rm -f conftest.$ac_objext
32059 if { (ac_try="$ac_compile"
32060 case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32065 $as_echo "$ac_try_echo") >&5
32066   (eval "$ac_compile") 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } && {
32073          test -z "$ac_c_werror_flag" ||
32074          test ! -s conftest.err
32075        } && test -s conftest.$ac_objext; then
32076   ac_cv_header_stdc=yes
32077 else
32078   $as_echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32080
32081         ac_cv_header_stdc=no
32082 fi
32083
32084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32085
32086 if test $ac_cv_header_stdc = yes; then
32087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32088   cat >conftest.$ac_ext <<_ACEOF
32089 /* confdefs.h.  */
32090 _ACEOF
32091 cat confdefs.h >>conftest.$ac_ext
32092 cat >>conftest.$ac_ext <<_ACEOF
32093 /* end confdefs.h.  */
32094 #include <string.h>
32095
32096 _ACEOF
32097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32098   $EGREP "memchr" >/dev/null 2>&1; then
32099   :
32100 else
32101   ac_cv_header_stdc=no
32102 fi
32103 rm -f conftest*
32104
32105 fi
32106
32107 if test $ac_cv_header_stdc = yes; then
32108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32109   cat >conftest.$ac_ext <<_ACEOF
32110 /* confdefs.h.  */
32111 _ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h.  */
32115 #include <stdlib.h>
32116
32117 _ACEOF
32118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32119   $EGREP "free" >/dev/null 2>&1; then
32120   :
32121 else
32122   ac_cv_header_stdc=no
32123 fi
32124 rm -f conftest*
32125
32126 fi
32127
32128 if test $ac_cv_header_stdc = yes; then
32129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32130   if test "$cross_compiling" = yes; then
32131   :
32132 else
32133   cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139 #include <ctype.h>
32140 #include <stdlib.h>
32141 #if ((' ' & 0x0FF) == 0x020)
32142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32144 #else
32145 # define ISLOWER(c) \
32146                    (('a' <= (c) && (c) <= 'i') \
32147                      || ('j' <= (c) && (c) <= 'r') \
32148                      || ('s' <= (c) && (c) <= 'z'))
32149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32150 #endif
32151
32152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32153 int
32154 main ()
32155 {
32156   int i;
32157   for (i = 0; i < 256; i++)
32158     if (XOR (islower (i), ISLOWER (i))
32159         || toupper (i) != TOUPPER (i))
32160       return 2;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest$ac_exeext
32165 if { (ac_try="$ac_link"
32166 case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32171 $as_echo "$ac_try_echo") >&5
32172   (eval "$ac_link") 2>&5
32173   ac_status=$?
32174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32176   { (case "(($ac_try" in
32177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178   *) ac_try_echo=$ac_try;;
32179 esac
32180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32181 $as_echo "$ac_try_echo") >&5
32182   (eval "$ac_try") 2>&5
32183   ac_status=$?
32184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185   (exit $ac_status); }; }; then
32186   :
32187 else
32188   $as_echo "$as_me: program exited with status $ac_status" >&5
32189 $as_echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32191
32192 ( exit $ac_status )
32193 ac_cv_header_stdc=no
32194 fi
32195 rm -rf conftest.dSYM
32196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32197 fi
32198
32199
32200 fi
32201 fi
32202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32203 $as_echo "$ac_cv_header_stdc" >&6; }
32204 if test $ac_cv_header_stdc = yes; then
32205
32206 cat >>confdefs.h <<\_ACEOF
32207 #define STDC_HEADERS 1
32208 _ACEOF
32209
32210 fi
32211
32212 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32213 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32214 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32215   $as_echo_n "(cached) " >&6
32216 else
32217   cat >conftest.$ac_ext <<_ACEOF
32218 /* confdefs.h.  */
32219 _ACEOF
32220 cat confdefs.h >>conftest.$ac_ext
32221 cat >>conftest.$ac_ext <<_ACEOF
32222 /* end confdefs.h.  */
32223 #include <sys/types.h>
32224 int
32225 main ()
32226 {
32227 return makedev(0, 0);
32228   ;
32229   return 0;
32230 }
32231 _ACEOF
32232 rm -f conftest.$ac_objext conftest$ac_exeext
32233 if { (ac_try="$ac_link"
32234 case "(($ac_try" in
32235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236   *) ac_try_echo=$ac_try;;
32237 esac
32238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32239 $as_echo "$ac_try_echo") >&5
32240   (eval "$ac_link") 2>conftest.er1
32241   ac_status=$?
32242   grep -v '^ *+' conftest.er1 >conftest.err
32243   rm -f conftest.er1
32244   cat conftest.err >&5
32245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); } && {
32247          test -z "$ac_c_werror_flag" ||
32248          test ! -s conftest.err
32249        } && test -s conftest$ac_exeext && {
32250          test "$cross_compiling" = yes ||
32251          $as_test_x conftest$ac_exeext
32252        }; then
32253   ac_cv_header_sys_types_h_makedev=yes
32254 else
32255   $as_echo "$as_me: failed program was:" >&5
32256 sed 's/^/| /' conftest.$ac_ext >&5
32257
32258         ac_cv_header_sys_types_h_makedev=no
32259 fi
32260
32261 rm -rf conftest.dSYM
32262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32263       conftest$ac_exeext conftest.$ac_ext
32264
32265 fi
32266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32267 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32268
32269 if test $ac_cv_header_sys_types_h_makedev = no; then
32270 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32271   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32272 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32273 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32274   $as_echo_n "(cached) " >&6
32275 fi
32276 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32277 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32278 else
32279   # Is the header compilable?
32280 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32281 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32282 cat >conftest.$ac_ext <<_ACEOF
32283 /* confdefs.h.  */
32284 _ACEOF
32285 cat confdefs.h >>conftest.$ac_ext
32286 cat >>conftest.$ac_ext <<_ACEOF
32287 /* end confdefs.h.  */
32288 $ac_includes_default
32289 #include <sys/mkdev.h>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32298 $as_echo "$ac_try_echo") >&5
32299   (eval "$ac_compile") 2>conftest.er1
32300   ac_status=$?
32301   grep -v '^ *+' conftest.er1 >conftest.err
32302   rm -f conftest.er1
32303   cat conftest.err >&5
32304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); } && {
32306          test -z "$ac_c_werror_flag" ||
32307          test ! -s conftest.err
32308        } && test -s conftest.$ac_objext; then
32309   ac_header_compiler=yes
32310 else
32311   $as_echo "$as_me: failed program was:" >&5
32312 sed 's/^/| /' conftest.$ac_ext >&5
32313
32314         ac_header_compiler=no
32315 fi
32316
32317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32318 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32319 $as_echo "$ac_header_compiler" >&6; }
32320
32321 # Is the header present?
32322 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32323 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32324 cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330 #include <sys/mkdev.h>
32331 _ACEOF
32332 if { (ac_try="$ac_cpp conftest.$ac_ext"
32333 case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32338 $as_echo "$ac_try_echo") >&5
32339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32340   ac_status=$?
32341   grep -v '^ *+' conftest.er1 >conftest.err
32342   rm -f conftest.er1
32343   cat conftest.err >&5
32344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345   (exit $ac_status); } >/dev/null && {
32346          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32347          test ! -s conftest.err
32348        }; then
32349   ac_header_preproc=yes
32350 else
32351   $as_echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32353
32354   ac_header_preproc=no
32355 fi
32356
32357 rm -f conftest.err conftest.$ac_ext
32358 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32359 $as_echo "$ac_header_preproc" >&6; }
32360
32361 # So?  What about this header?
32362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32363   yes:no: )
32364     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32365 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32366     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32367 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32368     ac_header_preproc=yes
32369     ;;
32370   no:yes:* )
32371     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32372 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32373     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
32374 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
32375     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32376 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32377     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
32378 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32379     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32380 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32381     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32382 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32383
32384     ;;
32385 esac
32386 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32387 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32388 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32389   $as_echo_n "(cached) " >&6
32390 else
32391   ac_cv_header_sys_mkdev_h=$ac_header_preproc
32392 fi
32393 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32394 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32395
32396 fi
32397 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32398
32399 cat >>confdefs.h <<\_ACEOF
32400 #define MAJOR_IN_MKDEV 1
32401 _ACEOF
32402
32403 fi
32404
32405
32406
32407   if test $ac_cv_header_sys_mkdev_h = no; then
32408     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32409   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32410 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32411 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32412   $as_echo_n "(cached) " >&6
32413 fi
32414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32415 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32416 else
32417   # Is the header compilable?
32418 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32419 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32420 cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426 $ac_includes_default
32427 #include <sys/sysmacros.h>
32428 _ACEOF
32429 rm -f conftest.$ac_objext
32430 if { (ac_try="$ac_compile"
32431 case "(($ac_try" in
32432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433   *) ac_try_echo=$ac_try;;
32434 esac
32435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32436 $as_echo "$ac_try_echo") >&5
32437   (eval "$ac_compile") 2>conftest.er1
32438   ac_status=$?
32439   grep -v '^ *+' conftest.er1 >conftest.err
32440   rm -f conftest.er1
32441   cat conftest.err >&5
32442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443   (exit $ac_status); } && {
32444          test -z "$ac_c_werror_flag" ||
32445          test ! -s conftest.err
32446        } && test -s conftest.$ac_objext; then
32447   ac_header_compiler=yes
32448 else
32449   $as_echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32451
32452         ac_header_compiler=no
32453 fi
32454
32455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32457 $as_echo "$ac_header_compiler" >&6; }
32458
32459 # Is the header present?
32460 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32461 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32462 cat >conftest.$ac_ext <<_ACEOF
32463 /* confdefs.h.  */
32464 _ACEOF
32465 cat confdefs.h >>conftest.$ac_ext
32466 cat >>conftest.$ac_ext <<_ACEOF
32467 /* end confdefs.h.  */
32468 #include <sys/sysmacros.h>
32469 _ACEOF
32470 if { (ac_try="$ac_cpp conftest.$ac_ext"
32471 case "(($ac_try" in
32472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473   *) ac_try_echo=$ac_try;;
32474 esac
32475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32476 $as_echo "$ac_try_echo") >&5
32477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32478   ac_status=$?
32479   grep -v '^ *+' conftest.er1 >conftest.err
32480   rm -f conftest.er1
32481   cat conftest.err >&5
32482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); } >/dev/null && {
32484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32485          test ! -s conftest.err
32486        }; then
32487   ac_header_preproc=yes
32488 else
32489   $as_echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492   ac_header_preproc=no
32493 fi
32494
32495 rm -f conftest.err conftest.$ac_ext
32496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32497 $as_echo "$ac_header_preproc" >&6; }
32498
32499 # So?  What about this header?
32500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32501   yes:no: )
32502     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32503 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32504     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32505 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32506     ac_header_preproc=yes
32507     ;;
32508   no:yes:* )
32509     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32510 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32511     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
32512 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
32513     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32514 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32515     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
32516 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32517     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32518 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32519     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32520 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32521
32522     ;;
32523 esac
32524 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32525 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32526 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32527   $as_echo_n "(cached) " >&6
32528 else
32529   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32530 fi
32531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32532 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32533
32534 fi
32535 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32536
32537 cat >>confdefs.h <<\_ACEOF
32538 #define MAJOR_IN_SYSMACROS 1
32539 _ACEOF
32540
32541 fi
32542
32543
32544   fi
32545 fi
32546
32547
32548
32549
32550
32551
32552 ac_header_dirent=no
32553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32554   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32555 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32556 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32558   $as_echo_n "(cached) " >&6
32559 else
32560   cat >conftest.$ac_ext <<_ACEOF
32561 /* confdefs.h.  */
32562 _ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h.  */
32566 #include <sys/types.h>
32567 #include <$ac_hdr>
32568
32569 int
32570 main ()
32571 {
32572 if ((DIR *) 0)
32573 return 0;
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest.$ac_objext
32579 if { (ac_try="$ac_compile"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32585 $as_echo "$ac_try_echo") >&5
32586   (eval "$ac_compile") 2>conftest.er1
32587   ac_status=$?
32588   grep -v '^ *+' conftest.er1 >conftest.err
32589   rm -f conftest.er1
32590   cat conftest.err >&5
32591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); } && {
32593          test -z "$ac_c_werror_flag" ||
32594          test ! -s conftest.err
32595        } && test -s conftest.$ac_objext; then
32596   eval "$as_ac_Header=yes"
32597 else
32598   $as_echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601         eval "$as_ac_Header=no"
32602 fi
32603
32604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32605 fi
32606 ac_res=`eval 'as_val=${'$as_ac_Header'}
32607                  $as_echo "$as_val"'`
32608                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32609 $as_echo "$ac_res" >&6; }
32610 as_val=`eval 'as_val=${'$as_ac_Header'}
32611                  $as_echo "$as_val"'`
32612    if test "x$as_val" = x""yes; then
32613   cat >>confdefs.h <<_ACEOF
32614 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32615 _ACEOF
32616
32617 ac_header_dirent=$ac_hdr; break
32618 fi
32619
32620 done
32621 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32622 if test $ac_header_dirent = dirent.h; then
32623   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32624 $as_echo_n "checking for library containing opendir... " >&6; }
32625 if test "${ac_cv_search_opendir+set}" = set; then
32626   $as_echo_n "(cached) " >&6
32627 else
32628   ac_func_search_save_LIBS=$LIBS
32629 cat >conftest.$ac_ext <<_ACEOF
32630 /* confdefs.h.  */
32631 _ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h.  */
32635
32636 /* Override any GCC internal prototype to avoid an error.
32637    Use char because int might match the return type of a GCC
32638    builtin and then its argument prototype would still apply.  */
32639 #ifdef __cplusplus
32640 extern "C"
32641 #endif
32642 char opendir ();
32643 int
32644 main ()
32645 {
32646 return opendir ();
32647   ;
32648   return 0;
32649 }
32650 _ACEOF
32651 for ac_lib in '' dir; do
32652   if test -z "$ac_lib"; then
32653     ac_res="none required"
32654   else
32655     ac_res=-l$ac_lib
32656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32657   fi
32658   rm -f conftest.$ac_objext conftest$ac_exeext
32659 if { (ac_try="$ac_link"
32660 case "(($ac_try" in
32661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32662   *) ac_try_echo=$ac_try;;
32663 esac
32664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32665 $as_echo "$ac_try_echo") >&5
32666   (eval "$ac_link") 2>conftest.er1
32667   ac_status=$?
32668   grep -v '^ *+' conftest.er1 >conftest.err
32669   rm -f conftest.er1
32670   cat conftest.err >&5
32671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672   (exit $ac_status); } && {
32673          test -z "$ac_c_werror_flag" ||
32674          test ! -s conftest.err
32675        } && test -s conftest$ac_exeext && {
32676          test "$cross_compiling" = yes ||
32677          $as_test_x conftest$ac_exeext
32678        }; then
32679   ac_cv_search_opendir=$ac_res
32680 else
32681   $as_echo "$as_me: failed program was:" >&5
32682 sed 's/^/| /' conftest.$ac_ext >&5
32683
32684
32685 fi
32686
32687 rm -rf conftest.dSYM
32688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32689       conftest$ac_exeext
32690   if test "${ac_cv_search_opendir+set}" = set; then
32691   break
32692 fi
32693 done
32694 if test "${ac_cv_search_opendir+set}" = set; then
32695   :
32696 else
32697   ac_cv_search_opendir=no
32698 fi
32699 rm conftest.$ac_ext
32700 LIBS=$ac_func_search_save_LIBS
32701 fi
32702 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32703 $as_echo "$ac_cv_search_opendir" >&6; }
32704 ac_res=$ac_cv_search_opendir
32705 if test "$ac_res" != no; then
32706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32707
32708 fi
32709
32710 else
32711   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32712 $as_echo_n "checking for library containing opendir... " >&6; }
32713 if test "${ac_cv_search_opendir+set}" = set; then
32714   $as_echo_n "(cached) " >&6
32715 else
32716   ac_func_search_save_LIBS=$LIBS
32717 cat >conftest.$ac_ext <<_ACEOF
32718 /* confdefs.h.  */
32719 _ACEOF
32720 cat confdefs.h >>conftest.$ac_ext
32721 cat >>conftest.$ac_ext <<_ACEOF
32722 /* end confdefs.h.  */
32723
32724 /* Override any GCC internal prototype to avoid an error.
32725    Use char because int might match the return type of a GCC
32726    builtin and then its argument prototype would still apply.  */
32727 #ifdef __cplusplus
32728 extern "C"
32729 #endif
32730 char opendir ();
32731 int
32732 main ()
32733 {
32734 return opendir ();
32735   ;
32736   return 0;
32737 }
32738 _ACEOF
32739 for ac_lib in '' x; do
32740   if test -z "$ac_lib"; then
32741     ac_res="none required"
32742   else
32743     ac_res=-l$ac_lib
32744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32745   fi
32746   rm -f conftest.$ac_objext conftest$ac_exeext
32747 if { (ac_try="$ac_link"
32748 case "(($ac_try" in
32749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750   *) ac_try_echo=$ac_try;;
32751 esac
32752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32753 $as_echo "$ac_try_echo") >&5
32754   (eval "$ac_link") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } && {
32761          test -z "$ac_c_werror_flag" ||
32762          test ! -s conftest.err
32763        } && test -s conftest$ac_exeext && {
32764          test "$cross_compiling" = yes ||
32765          $as_test_x conftest$ac_exeext
32766        }; then
32767   ac_cv_search_opendir=$ac_res
32768 else
32769   $as_echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772
32773 fi
32774
32775 rm -rf conftest.dSYM
32776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32777       conftest$ac_exeext
32778   if test "${ac_cv_search_opendir+set}" = set; then
32779   break
32780 fi
32781 done
32782 if test "${ac_cv_search_opendir+set}" = set; then
32783   :
32784 else
32785   ac_cv_search_opendir=no
32786 fi
32787 rm conftest.$ac_ext
32788 LIBS=$ac_func_search_save_LIBS
32789 fi
32790 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32791 $as_echo "$ac_cv_search_opendir" >&6; }
32792 ac_res=$ac_cv_search_opendir
32793 if test "$ac_res" != no; then
32794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32795
32796 fi
32797
32798 fi
32799
32800 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32801 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
32802 if test "${ac_cv_header_stat_broken+set}" = set; then
32803   $as_echo_n "(cached) " >&6
32804 else
32805   cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811 #include <sys/types.h>
32812 #include <sys/stat.h>
32813
32814 #if defined S_ISBLK && defined S_IFDIR
32815 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32816 #endif
32817
32818 #if defined S_ISBLK && defined S_IFCHR
32819 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32820 #endif
32821
32822 #if defined S_ISLNK && defined S_IFREG
32823 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32824 #endif
32825
32826 #if defined S_ISSOCK && defined S_IFREG
32827 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32828 #endif
32829
32830 _ACEOF
32831 rm -f conftest.$ac_objext
32832 if { (ac_try="$ac_compile"
32833 case "(($ac_try" in
32834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835   *) ac_try_echo=$ac_try;;
32836 esac
32837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32838 $as_echo "$ac_try_echo") >&5
32839   (eval "$ac_compile") 2>conftest.er1
32840   ac_status=$?
32841   grep -v '^ *+' conftest.er1 >conftest.err
32842   rm -f conftest.er1
32843   cat conftest.err >&5
32844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); } && {
32846          test -z "$ac_c_werror_flag" ||
32847          test ! -s conftest.err
32848        } && test -s conftest.$ac_objext; then
32849   ac_cv_header_stat_broken=no
32850 else
32851   $as_echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32853
32854         ac_cv_header_stat_broken=yes
32855 fi
32856
32857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32858 fi
32859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32860 $as_echo "$ac_cv_header_stat_broken" >&6; }
32861 if test $ac_cv_header_stat_broken = yes; then
32862
32863 cat >>confdefs.h <<\_ACEOF
32864 #define STAT_MACROS_BROKEN 1
32865 _ACEOF
32866
32867 fi
32868
32869 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32870 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
32871 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32872   $as_echo_n "(cached) " >&6
32873 else
32874   cat >conftest.$ac_ext <<_ACEOF
32875 /* confdefs.h.  */
32876 _ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h.  */
32880 #include <sys/types.h>
32881 #include <sys/wait.h>
32882 #ifndef WEXITSTATUS
32883 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32884 #endif
32885 #ifndef WIFEXITED
32886 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32887 #endif
32888
32889 int
32890 main ()
32891 {
32892   int s;
32893   wait (&s);
32894   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32895   ;
32896   return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext
32900 if { (ac_try="$ac_compile"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32906 $as_echo "$ac_try_echo") >&5
32907   (eval "$ac_compile") 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && {
32914          test -z "$ac_c_werror_flag" ||
32915          test ! -s conftest.err
32916        } && test -s conftest.$ac_objext; then
32917   ac_cv_header_sys_wait_h=yes
32918 else
32919   $as_echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922         ac_cv_header_sys_wait_h=no
32923 fi
32924
32925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32926 fi
32927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32928 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
32929 if test $ac_cv_header_sys_wait_h = yes; then
32930
32931 cat >>confdefs.h <<\_ACEOF
32932 #define HAVE_SYS_WAIT_H 1
32933 _ACEOF
32934
32935 fi
32936
32937 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32938 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
32939 if test "${ac_cv_header_time+set}" = set; then
32940   $as_echo_n "(cached) " >&6
32941 else
32942   cat >conftest.$ac_ext <<_ACEOF
32943 /* confdefs.h.  */
32944 _ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h.  */
32948 #include <sys/types.h>
32949 #include <sys/time.h>
32950 #include <time.h>
32951
32952 int
32953 main ()
32954 {
32955 if ((struct tm *) 0)
32956 return 0;
32957   ;
32958   return 0;
32959 }
32960 _ACEOF
32961 rm -f conftest.$ac_objext
32962 if { (ac_try="$ac_compile"
32963 case "(($ac_try" in
32964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32965   *) ac_try_echo=$ac_try;;
32966 esac
32967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32968 $as_echo "$ac_try_echo") >&5
32969   (eval "$ac_compile") 2>conftest.er1
32970   ac_status=$?
32971   grep -v '^ *+' conftest.er1 >conftest.err
32972   rm -f conftest.er1
32973   cat conftest.err >&5
32974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); } && {
32976          test -z "$ac_c_werror_flag" ||
32977          test ! -s conftest.err
32978        } && test -s conftest.$ac_objext; then
32979   ac_cv_header_time=yes
32980 else
32981   $as_echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32983
32984         ac_cv_header_time=no
32985 fi
32986
32987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32988 fi
32989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32990 $as_echo "$ac_cv_header_time" >&6; }
32991 if test $ac_cv_header_time = yes; then
32992
32993 cat >>confdefs.h <<\_ACEOF
32994 #define TIME_WITH_SYS_TIME 1
32995 _ACEOF
32996
32997 fi
32998
32999 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33000 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33001 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33002   $as_echo_n "(cached) " >&6
33003 else
33004   cat >conftest.$ac_ext <<_ACEOF
33005 /* confdefs.h.  */
33006 _ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h.  */
33010 $ac_includes_default
33011 int
33012 main ()
33013 {
33014 static struct stat ac_aggr;
33015 if (ac_aggr.st_blksize)
33016 return 0;
33017   ;
33018   return 0;
33019 }
33020 _ACEOF
33021 rm -f conftest.$ac_objext
33022 if { (ac_try="$ac_compile"
33023 case "(($ac_try" in
33024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025   *) ac_try_echo=$ac_try;;
33026 esac
33027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33028 $as_echo "$ac_try_echo") >&5
33029   (eval "$ac_compile") 2>conftest.er1
33030   ac_status=$?
33031   grep -v '^ *+' conftest.er1 >conftest.err
33032   rm -f conftest.er1
33033   cat conftest.err >&5
33034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); } && {
33036          test -z "$ac_c_werror_flag" ||
33037          test ! -s conftest.err
33038        } && test -s conftest.$ac_objext; then
33039   ac_cv_member_struct_stat_st_blksize=yes
33040 else
33041   $as_echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33043
33044         cat >conftest.$ac_ext <<_ACEOF
33045 /* confdefs.h.  */
33046 _ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h.  */
33050 $ac_includes_default
33051 int
33052 main ()
33053 {
33054 static struct stat ac_aggr;
33055 if (sizeof ac_aggr.st_blksize)
33056 return 0;
33057   ;
33058   return 0;
33059 }
33060 _ACEOF
33061 rm -f conftest.$ac_objext
33062 if { (ac_try="$ac_compile"
33063 case "(($ac_try" in
33064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065   *) ac_try_echo=$ac_try;;
33066 esac
33067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33068 $as_echo "$ac_try_echo") >&5
33069   (eval "$ac_compile") 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } && {
33076          test -z "$ac_c_werror_flag" ||
33077          test ! -s conftest.err
33078        } && test -s conftest.$ac_objext; then
33079   ac_cv_member_struct_stat_st_blksize=yes
33080 else
33081   $as_echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33083
33084         ac_cv_member_struct_stat_st_blksize=no
33085 fi
33086
33087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33088 fi
33089
33090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33091 fi
33092 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33093 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33094 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33095
33096 cat >>confdefs.h <<_ACEOF
33097 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33098 _ACEOF
33099
33100
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ST_BLKSIZE 1
33103 _ACEOF
33104
33105 fi
33106
33107
33108 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33109 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33110 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33111   $as_echo_n "(cached) " >&6
33112 else
33113   cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 $ac_includes_default
33120 int
33121 main ()
33122 {
33123 static struct stat ac_aggr;
33124 if (ac_aggr.st_blocks)
33125 return 0;
33126   ;
33127   return 0;
33128 }
33129 _ACEOF
33130 rm -f conftest.$ac_objext
33131 if { (ac_try="$ac_compile"
33132 case "(($ac_try" in
33133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134   *) ac_try_echo=$ac_try;;
33135 esac
33136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33137 $as_echo "$ac_try_echo") >&5
33138   (eval "$ac_compile") 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } && {
33145          test -z "$ac_c_werror_flag" ||
33146          test ! -s conftest.err
33147        } && test -s conftest.$ac_objext; then
33148   ac_cv_member_struct_stat_st_blocks=yes
33149 else
33150   $as_echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33152
33153         cat >conftest.$ac_ext <<_ACEOF
33154 /* confdefs.h.  */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h.  */
33159 $ac_includes_default
33160 int
33161 main ()
33162 {
33163 static struct stat ac_aggr;
33164 if (sizeof ac_aggr.st_blocks)
33165 return 0;
33166   ;
33167   return 0;
33168 }
33169 _ACEOF
33170 rm -f conftest.$ac_objext
33171 if { (ac_try="$ac_compile"
33172 case "(($ac_try" in
33173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174   *) ac_try_echo=$ac_try;;
33175 esac
33176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33177 $as_echo "$ac_try_echo") >&5
33178   (eval "$ac_compile") 2>conftest.er1
33179   ac_status=$?
33180   grep -v '^ *+' conftest.er1 >conftest.err
33181   rm -f conftest.er1
33182   cat conftest.err >&5
33183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184   (exit $ac_status); } && {
33185          test -z "$ac_c_werror_flag" ||
33186          test ! -s conftest.err
33187        } && test -s conftest.$ac_objext; then
33188   ac_cv_member_struct_stat_st_blocks=yes
33189 else
33190   $as_echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33192
33193         ac_cv_member_struct_stat_st_blocks=no
33194 fi
33195
33196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33197 fi
33198
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200 fi
33201 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33202 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33203 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33204
33205 cat >>confdefs.h <<_ACEOF
33206 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33207 _ACEOF
33208
33209
33210 cat >>confdefs.h <<\_ACEOF
33211 #define HAVE_ST_BLOCKS 1
33212 _ACEOF
33213
33214 else
33215   case " $LIBOBJS " in
33216   *" fileblocks.$ac_objext "* ) ;;
33217   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33218  ;;
33219 esac
33220
33221 fi
33222
33223
33224 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33225 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33226 if test "${ac_cv_struct_tm+set}" = set; then
33227   $as_echo_n "(cached) " >&6
33228 else
33229   cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h.  */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h.  */
33235 #include <sys/types.h>
33236 #include <time.h>
33237
33238 int
33239 main ()
33240 {
33241 struct tm tm;
33242                                      int *p = &tm.tm_sec;
33243                                      return !p;
33244   ;
33245   return 0;
33246 }
33247 _ACEOF
33248 rm -f conftest.$ac_objext
33249 if { (ac_try="$ac_compile"
33250 case "(($ac_try" in
33251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33252   *) ac_try_echo=$ac_try;;
33253 esac
33254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33255 $as_echo "$ac_try_echo") >&5
33256   (eval "$ac_compile") 2>conftest.er1
33257   ac_status=$?
33258   grep -v '^ *+' conftest.er1 >conftest.err
33259   rm -f conftest.er1
33260   cat conftest.err >&5
33261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262   (exit $ac_status); } && {
33263          test -z "$ac_c_werror_flag" ||
33264          test ! -s conftest.err
33265        } && test -s conftest.$ac_objext; then
33266   ac_cv_struct_tm=time.h
33267 else
33268   $as_echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33270
33271         ac_cv_struct_tm=sys/time.h
33272 fi
33273
33274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33275 fi
33276 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33277 $as_echo "$ac_cv_struct_tm" >&6; }
33278 if test $ac_cv_struct_tm = sys/time.h; then
33279
33280 cat >>confdefs.h <<\_ACEOF
33281 #define TM_IN_SYS_TIME 1
33282 _ACEOF
33283
33284 fi
33285
33286 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33287 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33288 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33289   $as_echo_n "(cached) " >&6
33290 else
33291   cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h.  */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h.  */
33297 #include <sys/types.h>
33298 #include <$ac_cv_struct_tm>
33299
33300
33301 int
33302 main ()
33303 {
33304 static struct tm ac_aggr;
33305 if (ac_aggr.tm_zone)
33306 return 0;
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (ac_try="$ac_compile"
33313 case "(($ac_try" in
33314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315   *) ac_try_echo=$ac_try;;
33316 esac
33317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33318 $as_echo "$ac_try_echo") >&5
33319   (eval "$ac_compile") 2>conftest.er1
33320   ac_status=$?
33321   grep -v '^ *+' conftest.er1 >conftest.err
33322   rm -f conftest.er1
33323   cat conftest.err >&5
33324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); } && {
33326          test -z "$ac_c_werror_flag" ||
33327          test ! -s conftest.err
33328        } && test -s conftest.$ac_objext; then
33329   ac_cv_member_struct_tm_tm_zone=yes
33330 else
33331   $as_echo "$as_me: failed program was:" >&5
33332 sed 's/^/| /' conftest.$ac_ext >&5
33333
33334         cat >conftest.$ac_ext <<_ACEOF
33335 /* confdefs.h.  */
33336 _ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h.  */
33340 #include <sys/types.h>
33341 #include <$ac_cv_struct_tm>
33342
33343
33344 int
33345 main ()
33346 {
33347 static struct tm ac_aggr;
33348 if (sizeof ac_aggr.tm_zone)
33349 return 0;
33350   ;
33351   return 0;
33352 }
33353 _ACEOF
33354 rm -f conftest.$ac_objext
33355 if { (ac_try="$ac_compile"
33356 case "(($ac_try" in
33357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33358   *) ac_try_echo=$ac_try;;
33359 esac
33360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33361 $as_echo "$ac_try_echo") >&5
33362   (eval "$ac_compile") 2>conftest.er1
33363   ac_status=$?
33364   grep -v '^ *+' conftest.er1 >conftest.err
33365   rm -f conftest.er1
33366   cat conftest.err >&5
33367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); } && {
33369          test -z "$ac_c_werror_flag" ||
33370          test ! -s conftest.err
33371        } && test -s conftest.$ac_objext; then
33372   ac_cv_member_struct_tm_tm_zone=yes
33373 else
33374   $as_echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33376
33377         ac_cv_member_struct_tm_tm_zone=no
33378 fi
33379
33380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 fi
33382
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33384 fi
33385 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33386 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33387 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33388
33389 cat >>confdefs.h <<_ACEOF
33390 #define HAVE_STRUCT_TM_TM_ZONE 1
33391 _ACEOF
33392
33393
33394 fi
33395
33396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33397
33398 cat >>confdefs.h <<\_ACEOF
33399 #define HAVE_TM_ZONE 1
33400 _ACEOF
33401
33402 else
33403   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33404 $as_echo_n "checking whether tzname is declared... " >&6; }
33405 if test "${ac_cv_have_decl_tzname+set}" = set; then
33406   $as_echo_n "(cached) " >&6
33407 else
33408   cat >conftest.$ac_ext <<_ACEOF
33409 /* confdefs.h.  */
33410 _ACEOF
33411 cat confdefs.h >>conftest.$ac_ext
33412 cat >>conftest.$ac_ext <<_ACEOF
33413 /* end confdefs.h.  */
33414 #include <time.h>
33415
33416 int
33417 main ()
33418 {
33419 #ifndef tzname
33420   (void) tzname;
33421 #endif
33422
33423   ;
33424   return 0;
33425 }
33426 _ACEOF
33427 rm -f conftest.$ac_objext
33428 if { (ac_try="$ac_compile"
33429 case "(($ac_try" in
33430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431   *) ac_try_echo=$ac_try;;
33432 esac
33433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33434 $as_echo "$ac_try_echo") >&5
33435   (eval "$ac_compile") 2>conftest.er1
33436   ac_status=$?
33437   grep -v '^ *+' conftest.er1 >conftest.err
33438   rm -f conftest.er1
33439   cat conftest.err >&5
33440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441   (exit $ac_status); } && {
33442          test -z "$ac_c_werror_flag" ||
33443          test ! -s conftest.err
33444        } && test -s conftest.$ac_objext; then
33445   ac_cv_have_decl_tzname=yes
33446 else
33447   $as_echo "$as_me: failed program was:" >&5
33448 sed 's/^/| /' conftest.$ac_ext >&5
33449
33450         ac_cv_have_decl_tzname=no
33451 fi
33452
33453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33454 fi
33455 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33456 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33457 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33458
33459 cat >>confdefs.h <<_ACEOF
33460 #define HAVE_DECL_TZNAME 1
33461 _ACEOF
33462
33463
33464 else
33465   cat >>confdefs.h <<_ACEOF
33466 #define HAVE_DECL_TZNAME 0
33467 _ACEOF
33468
33469
33470 fi
33471
33472
33473   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33474 $as_echo_n "checking for tzname... " >&6; }
33475 if test "${ac_cv_var_tzname+set}" = set; then
33476   $as_echo_n "(cached) " >&6
33477 else
33478   cat >conftest.$ac_ext <<_ACEOF
33479 /* confdefs.h.  */
33480 _ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h.  */
33484 #include <time.h>
33485 #if !HAVE_DECL_TZNAME
33486 extern char *tzname[];
33487 #endif
33488
33489 int
33490 main ()
33491 {
33492 return tzname[0][0];
33493   ;
33494   return 0;
33495 }
33496 _ACEOF
33497 rm -f conftest.$ac_objext conftest$ac_exeext
33498 if { (ac_try="$ac_link"
33499 case "(($ac_try" in
33500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33501   *) ac_try_echo=$ac_try;;
33502 esac
33503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33504 $as_echo "$ac_try_echo") >&5
33505   (eval "$ac_link") 2>conftest.er1
33506   ac_status=$?
33507   grep -v '^ *+' conftest.er1 >conftest.err
33508   rm -f conftest.er1
33509   cat conftest.err >&5
33510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511   (exit $ac_status); } && {
33512          test -z "$ac_c_werror_flag" ||
33513          test ! -s conftest.err
33514        } && test -s conftest$ac_exeext && {
33515          test "$cross_compiling" = yes ||
33516          $as_test_x conftest$ac_exeext
33517        }; then
33518   ac_cv_var_tzname=yes
33519 else
33520   $as_echo "$as_me: failed program was:" >&5
33521 sed 's/^/| /' conftest.$ac_ext >&5
33522
33523         ac_cv_var_tzname=no
33524 fi
33525
33526 rm -rf conftest.dSYM
33527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33528       conftest$ac_exeext conftest.$ac_ext
33529 fi
33530 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33531 $as_echo "$ac_cv_var_tzname" >&6; }
33532   if test $ac_cv_var_tzname = yes; then
33533
33534 cat >>confdefs.h <<\_ACEOF
33535 #define HAVE_TZNAME 1
33536 _ACEOF
33537
33538   fi
33539 fi
33540
33541
33542 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33543 $as_echo_n "checking for utime.h... " >&6; }
33544 if test "${ba_cv_header_utime_h+set}" = set; then
33545   $as_echo_n "(cached) " >&6
33546 else
33547
33548        cat >conftest.$ac_ext <<_ACEOF
33549 /* confdefs.h.  */
33550 _ACEOF
33551 cat confdefs.h >>conftest.$ac_ext
33552 cat >>conftest.$ac_ext <<_ACEOF
33553 /* end confdefs.h.  */
33554
33555               #include <sys/types.h>
33556               #include <utime.h>
33557
33558 int
33559 main ()
33560 {
33561
33562               struct utimbuf foo
33563
33564   ;
33565   return 0;
33566 }
33567 _ACEOF
33568 rm -f conftest.$ac_objext
33569 if { (ac_try="$ac_compile"
33570 case "(($ac_try" in
33571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572   *) ac_try_echo=$ac_try;;
33573 esac
33574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33575 $as_echo "$ac_try_echo") >&5
33576   (eval "$ac_compile") 2>conftest.er1
33577   ac_status=$?
33578   grep -v '^ *+' conftest.er1 >conftest.err
33579   rm -f conftest.er1
33580   cat conftest.err >&5
33581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582   (exit $ac_status); } && {
33583          test -z "$ac_c_werror_flag" ||
33584          test ! -s conftest.err
33585        } && test -s conftest.$ac_objext; then
33586
33587               ba_cv_header_utime_h=yes
33588
33589 else
33590   $as_echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33592
33593
33594               ba_cv_header_utime_h=no
33595
33596
33597 fi
33598
33599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33600
33601
33602 fi
33603 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33604 $as_echo "$ba_cv_header_utime_h" >&6; }
33605 test $ba_cv_header_utime_h = yes &&
33606 cat >>confdefs.h <<\_ACEOF
33607 #define HAVE_UTIME_H 1
33608 _ACEOF
33609
33610
33611 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33612 $as_echo_n "checking for socklen_t... " >&6; }
33613 if test "${ba_cv_header_socklen_t+set}" = set; then
33614   $as_echo_n "(cached) " >&6
33615 else
33616
33617        cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623
33624               #include <sys/types.h>
33625               #include <sys/socket.h>
33626
33627 int
33628 main ()
33629 {
33630
33631               socklen_t x
33632
33633   ;
33634   return 0;
33635 }
33636 _ACEOF
33637 rm -f conftest.$ac_objext
33638 if { (ac_try="$ac_compile"
33639 case "(($ac_try" in
33640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33641   *) ac_try_echo=$ac_try;;
33642 esac
33643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33644 $as_echo "$ac_try_echo") >&5
33645   (eval "$ac_compile") 2>conftest.er1
33646   ac_status=$?
33647   grep -v '^ *+' conftest.er1 >conftest.err
33648   rm -f conftest.er1
33649   cat conftest.err >&5
33650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); } && {
33652          test -z "$ac_c_werror_flag" ||
33653          test ! -s conftest.err
33654        } && test -s conftest.$ac_objext; then
33655
33656              ba_cv_header_socklen_t=yes
33657
33658 else
33659   $as_echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33661
33662
33663              ba_cv_header_socklen_t=no
33664
33665
33666 fi
33667
33668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33669
33670
33671 fi
33672 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33673 $as_echo "$ba_cv_header_socklen_t" >&6; }
33674 test $ba_cv_header_socklen_t = yes &&
33675 cat >>confdefs.h <<\_ACEOF
33676 #define HAVE_SOCKLEN_T 1
33677 _ACEOF
33678
33679
33680 ac_ext=cpp
33681 ac_cpp='$CXXCPP $CPPFLAGS'
33682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33685
33686 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33687 $as_echo_n "checking for ioctl_req_t... " >&6; }
33688 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33689   $as_echo_n "(cached) " >&6
33690 else
33691
33692        cat >conftest.$ac_ext <<_ACEOF
33693 /* confdefs.h.  */
33694 _ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h.  */
33698
33699               #include <unistd.h>
33700               #include <sys/types.h>
33701               #include <sys/ioctl.h>
33702
33703 int
33704 main ()
33705 {
33706
33707               int (*d_ioctl)(int fd, unsigned long int request, ...);
33708               d_ioctl = ::ioctl;
33709
33710   ;
33711   return 0;
33712 }
33713 _ACEOF
33714 rm -f conftest.$ac_objext
33715 if { (ac_try="$ac_compile"
33716 case "(($ac_try" in
33717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718   *) ac_try_echo=$ac_try;;
33719 esac
33720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33721 $as_echo "$ac_try_echo") >&5
33722   (eval "$ac_compile") 2>conftest.er1
33723   ac_status=$?
33724   grep -v '^ *+' conftest.er1 >conftest.err
33725   rm -f conftest.er1
33726   cat conftest.err >&5
33727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); } && {
33729          test -z "$ac_cxx_werror_flag" ||
33730          test ! -s conftest.err
33731        } && test -s conftest.$ac_objext; then
33732
33733              ba_cv_header_ioctl_req_t=yes
33734
33735 else
33736   $as_echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33738
33739
33740              ba_cv_header_ioctl_req_t=no
33741
33742
33743 fi
33744
33745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33746
33747
33748 fi
33749 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33750 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33751 test $ba_cv_header_ioctl_req_t = yes &&
33752 cat >>confdefs.h <<\_ACEOF
33753 #define HAVE_IOCTL_ULINT_REQUEST 1
33754 _ACEOF
33755
33756
33757 ac_ext=c
33758 ac_cpp='$CPP $CPPFLAGS'
33759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33762
33763
33764 ac_ext=cpp
33765 ac_cpp='$CXXCPP $CPPFLAGS'
33766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33769
33770 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33771 $as_echo_n "checking for typeof... " >&6; }
33772 if test "${ba_cv_have_typeof+set}" = set; then
33773   $as_echo_n "(cached) " >&6
33774 else
33775
33776        if test "$cross_compiling" = yes; then
33777
33778               ba_cv_have_typeof=no
33779
33780
33781 else
33782   cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h.  */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h.  */
33788
33789               main(){char *a = 0; a = (typeof a)a;}
33790
33791 _ACEOF
33792 rm -f conftest$ac_exeext
33793 if { (ac_try="$ac_link"
33794 case "(($ac_try" in
33795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796   *) ac_try_echo=$ac_try;;
33797 esac
33798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33799 $as_echo "$ac_try_echo") >&5
33800   (eval "$ac_link") 2>&5
33801   ac_status=$?
33802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33804   { (case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33809 $as_echo "$ac_try_echo") >&5
33810   (eval "$ac_try") 2>&5
33811   ac_status=$?
33812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); }; }; then
33814
33815               ba_cv_have_typeof=yes
33816
33817 else
33818   $as_echo "$as_me: program exited with status $ac_status" >&5
33819 $as_echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822 ( exit $ac_status )
33823
33824               ba_cv_have_typeof=no
33825
33826 fi
33827 rm -rf conftest.dSYM
33828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33829 fi
33830
33831
33832
33833
33834 fi
33835 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33836 $as_echo "$ba_cv_have_typeof" >&6; }
33837 test $ba_cv_have_typeof = yes &&
33838 cat >>confdefs.h <<\_ACEOF
33839 #define HAVE_TYPEOF 1
33840 _ACEOF
33841
33842 ac_ext=c
33843 ac_cpp='$CPP $CPPFLAGS'
33844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33847
33848
33849 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33850 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33851 if test "${ac_cv_c_const+set}" = set; then
33852   $as_echo_n "(cached) " >&6
33853 else
33854   cat >conftest.$ac_ext <<_ACEOF
33855 /* confdefs.h.  */
33856 _ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h.  */
33860
33861 int
33862 main ()
33863 {
33864 /* FIXME: Include the comments suggested by Paul. */
33865 #ifndef __cplusplus
33866   /* Ultrix mips cc rejects this.  */
33867   typedef int charset[2];
33868   const charset cs;
33869   /* SunOS 4.1.1 cc rejects this.  */
33870   char const *const *pcpcc;
33871   char **ppc;
33872   /* NEC SVR4.0.2 mips cc rejects this.  */
33873   struct point {int x, y;};
33874   static struct point const zero = {0,0};
33875   /* AIX XL C 1.02.0.0 rejects this.
33876      It does not let you subtract one const X* pointer from another in
33877      an arm of an if-expression whose if-part is not a constant
33878      expression */
33879   const char *g = "string";
33880   pcpcc = &g + (g ? g-g : 0);
33881   /* HPUX 7.0 cc rejects these. */
33882   ++pcpcc;
33883   ppc = (char**) pcpcc;
33884   pcpcc = (char const *const *) ppc;
33885   { /* SCO 3.2v4 cc rejects this.  */
33886     char *t;
33887     char const *s = 0 ? (char *) 0 : (char const *) 0;
33888
33889     *t++ = 0;
33890     if (s) return 0;
33891   }
33892   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33893     int x[] = {25, 17};
33894     const int *foo = &x[0];
33895     ++foo;
33896   }
33897   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33898     typedef const int *iptr;
33899     iptr p = 0;
33900     ++p;
33901   }
33902   { /* AIX XL C 1.02.0.0 rejects this saying
33903        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33904     struct s { int j; const int *ap[3]; };
33905     struct s *b; b->j = 5;
33906   }
33907   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33908     const int foo = 10;
33909     if (!foo) return 0;
33910   }
33911   return !cs[0] && !zero.x;
33912 #endif
33913
33914   ;
33915   return 0;
33916 }
33917 _ACEOF
33918 rm -f conftest.$ac_objext
33919 if { (ac_try="$ac_compile"
33920 case "(($ac_try" in
33921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922   *) ac_try_echo=$ac_try;;
33923 esac
33924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33925 $as_echo "$ac_try_echo") >&5
33926   (eval "$ac_compile") 2>conftest.er1
33927   ac_status=$?
33928   grep -v '^ *+' conftest.er1 >conftest.err
33929   rm -f conftest.er1
33930   cat conftest.err >&5
33931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); } && {
33933          test -z "$ac_c_werror_flag" ||
33934          test ! -s conftest.err
33935        } && test -s conftest.$ac_objext; then
33936   ac_cv_c_const=yes
33937 else
33938   $as_echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.$ac_ext >&5
33940
33941         ac_cv_c_const=no
33942 fi
33943
33944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 fi
33946 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33947 $as_echo "$ac_cv_c_const" >&6; }
33948 if test $ac_cv_c_const = no; then
33949
33950 cat >>confdefs.h <<\_ACEOF
33951 #define const /**/
33952 _ACEOF
33953
33954 fi
33955
33956
33957 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33958 $as_echo_n "checking how to get filesystem type... " >&6; }
33959 fstype=no
33960 # The order of these tests is important.
33961 cat >conftest.$ac_ext <<_ACEOF
33962 /* confdefs.h.  */
33963 _ACEOF
33964 cat confdefs.h >>conftest.$ac_ext
33965 cat >>conftest.$ac_ext <<_ACEOF
33966 /* end confdefs.h.  */
33967
33968        #include <sys/statvfs.h>
33969        #include <sys/fstyp.h>
33970
33971 _ACEOF
33972 if { (ac_try="$ac_cpp conftest.$ac_ext"
33973 case "(($ac_try" in
33974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975   *) ac_try_echo=$ac_try;;
33976 esac
33977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33978 $as_echo "$ac_try_echo") >&5
33979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33980   ac_status=$?
33981   grep -v '^ *+' conftest.er1 >conftest.err
33982   rm -f conftest.er1
33983   cat conftest.err >&5
33984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985   (exit $ac_status); } >/dev/null && {
33986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33987          test ! -s conftest.err
33988        }; then
33989   cat >>confdefs.h <<\_ACEOF
33990 #define FSTYPE_STATVFS 1
33991 _ACEOF
33992  fstype=SVR4
33993
33994 else
33995   $as_echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33997
33998
33999 fi
34000
34001 rm -f conftest.err conftest.$ac_ext
34002 if test $fstype = no; then
34003    cat >conftest.$ac_ext <<_ACEOF
34004 /* confdefs.h.  */
34005 _ACEOF
34006 cat confdefs.h >>conftest.$ac_ext
34007 cat >>conftest.$ac_ext <<_ACEOF
34008 /* end confdefs.h.  */
34009
34010           #include <sys/statfs.h>
34011           #include <sys/fstyp.h>
34012
34013 _ACEOF
34014 if { (ac_try="$ac_cpp conftest.$ac_ext"
34015 case "(($ac_try" in
34016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017   *) ac_try_echo=$ac_try;;
34018 esac
34019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34020 $as_echo "$ac_try_echo") >&5
34021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34022   ac_status=$?
34023   grep -v '^ *+' conftest.er1 >conftest.err
34024   rm -f conftest.er1
34025   cat conftest.err >&5
34026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); } >/dev/null && {
34028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34029          test ! -s conftest.err
34030        }; then
34031   cat >>confdefs.h <<\_ACEOF
34032 #define FSTYPE_USG_STATFS 1
34033 _ACEOF
34034  fstype=SVR3
34035
34036 else
34037   $as_echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34039
34040
34041 fi
34042
34043 rm -f conftest.err conftest.$ac_ext
34044 fi
34045 if test $fstype = no; then
34046    cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h.  */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h.  */
34052
34053           #include <sys/statfs.h>
34054           #include <sys/vmount.h>
34055
34056 _ACEOF
34057 if { (ac_try="$ac_cpp conftest.$ac_ext"
34058 case "(($ac_try" in
34059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060   *) ac_try_echo=$ac_try;;
34061 esac
34062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34063 $as_echo "$ac_try_echo") >&5
34064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34065   ac_status=$?
34066   grep -v '^ *+' conftest.er1 >conftest.err
34067   rm -f conftest.er1
34068   cat conftest.err >&5
34069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); } >/dev/null && {
34071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34072          test ! -s conftest.err
34073        }; then
34074   cat >>confdefs.h <<\_ACEOF
34075 #define FSTYPE_AIX_STATFS 1
34076 _ACEOF
34077  fstype=AIX
34078
34079 else
34080   $as_echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34082
34083
34084 fi
34085
34086 rm -f conftest.err conftest.$ac_ext
34087 fi
34088 if test $fstype = no; then
34089    cat >conftest.$ac_ext <<_ACEOF
34090 /* confdefs.h.  */
34091 _ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h.  */
34095
34096           #include <mntent.h>
34097
34098 _ACEOF
34099 if { (ac_try="$ac_cpp conftest.$ac_ext"
34100 case "(($ac_try" in
34101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102   *) ac_try_echo=$ac_try;;
34103 esac
34104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34105 $as_echo "$ac_try_echo") >&5
34106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34107   ac_status=$?
34108   grep -v '^ *+' conftest.er1 >conftest.err
34109   rm -f conftest.er1
34110   cat conftest.err >&5
34111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); } >/dev/null && {
34113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34114          test ! -s conftest.err
34115        }; then
34116   cat >>confdefs.h <<\_ACEOF
34117 #define FSTYPE_MNTENT 1
34118 _ACEOF
34119  fstype=4.3BSD
34120
34121 else
34122   $as_echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125
34126 fi
34127
34128 rm -f conftest.err conftest.$ac_ext
34129 fi
34130 if test $fstype = no; then
34131    cat >conftest.$ac_ext <<_ACEOF
34132 /* confdefs.h.  */
34133 _ACEOF
34134 cat confdefs.h >>conftest.$ac_ext
34135 cat >>conftest.$ac_ext <<_ACEOF
34136 /* end confdefs.h.  */
34137 #include <sys/mount.h>
34138
34139 _ACEOF
34140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34141   $EGREP "f_type;" >/dev/null 2>&1; then
34142   cat >>confdefs.h <<\_ACEOF
34143 #define FSTYPE_STATFS 1
34144 _ACEOF
34145  fstype=4.4BSD/OSF1
34146 fi
34147 rm -f conftest*
34148
34149 fi
34150 if test $fstype = no; then
34151    cat >conftest.$ac_ext <<_ACEOF
34152 /* confdefs.h.  */
34153 _ACEOF
34154 cat confdefs.h >>conftest.$ac_ext
34155 cat >>conftest.$ac_ext <<_ACEOF
34156 /* end confdefs.h.  */
34157
34158           #include <sys/mount.h>
34159           #include <sys/fs_types.h>
34160
34161 _ACEOF
34162 if { (ac_try="$ac_cpp conftest.$ac_ext"
34163 case "(($ac_try" in
34164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165   *) ac_try_echo=$ac_try;;
34166 esac
34167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34168 $as_echo "$ac_try_echo") >&5
34169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34170   ac_status=$?
34171   grep -v '^ *+' conftest.er1 >conftest.err
34172   rm -f conftest.er1
34173   cat conftest.err >&5
34174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175   (exit $ac_status); } >/dev/null && {
34176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34177          test ! -s conftest.err
34178        }; then
34179   cat >>confdefs.h <<\_ACEOF
34180 #define FSTYPE_GETMNT 1
34181 _ACEOF
34182  fstype=Ultrix
34183
34184 else
34185   $as_echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34187
34188
34189 fi
34190
34191 rm -f conftest.err conftest.$ac_ext
34192 fi
34193 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34194 $as_echo "$fstype" >&6; }
34195
34196 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34197   { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34198 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34199 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34200   $as_echo_n "(cached) " >&6
34201 fi
34202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34203 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34204 else
34205   # Is the header compilable?
34206 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34207 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34208 cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h.  */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h.  */
34214 $ac_includes_default
34215 #include <sys/statvfs.h>
34216 _ACEOF
34217 rm -f conftest.$ac_objext
34218 if { (ac_try="$ac_compile"
34219 case "(($ac_try" in
34220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34221   *) ac_try_echo=$ac_try;;
34222 esac
34223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34224 $as_echo "$ac_try_echo") >&5
34225   (eval "$ac_compile") 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } && {
34232          test -z "$ac_c_werror_flag" ||
34233          test ! -s conftest.err
34234        } && test -s conftest.$ac_objext; then
34235   ac_header_compiler=yes
34236 else
34237   $as_echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34239
34240         ac_header_compiler=no
34241 fi
34242
34243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34244 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34245 $as_echo "$ac_header_compiler" >&6; }
34246
34247 # Is the header present?
34248 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34249 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34250 cat >conftest.$ac_ext <<_ACEOF
34251 /* confdefs.h.  */
34252 _ACEOF
34253 cat confdefs.h >>conftest.$ac_ext
34254 cat >>conftest.$ac_ext <<_ACEOF
34255 /* end confdefs.h.  */
34256 #include <sys/statvfs.h>
34257 _ACEOF
34258 if { (ac_try="$ac_cpp conftest.$ac_ext"
34259 case "(($ac_try" in
34260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34261   *) ac_try_echo=$ac_try;;
34262 esac
34263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34264 $as_echo "$ac_try_echo") >&5
34265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34266   ac_status=$?
34267   grep -v '^ *+' conftest.er1 >conftest.err
34268   rm -f conftest.er1
34269   cat conftest.err >&5
34270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271   (exit $ac_status); } >/dev/null && {
34272          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34273          test ! -s conftest.err
34274        }; then
34275   ac_header_preproc=yes
34276 else
34277   $as_echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34279
34280   ac_header_preproc=no
34281 fi
34282
34283 rm -f conftest.err conftest.$ac_ext
34284 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34285 $as_echo "$ac_header_preproc" >&6; }
34286
34287 # So?  What about this header?
34288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34289   yes:no: )
34290     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34291 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34292     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34293 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34294     ac_header_preproc=yes
34295     ;;
34296   no:yes:* )
34297     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34298 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34299     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
34300 $as_echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
34301     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34302 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34303     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
34304 $as_echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34305     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34306 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34307     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34308 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34309
34310     ;;
34311 esac
34312 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34313 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34314 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34315   $as_echo_n "(cached) " >&6
34316 else
34317   ac_cv_header_sys_statvfs_h=$ac_header_preproc
34318 fi
34319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34320 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34321
34322 fi
34323 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34324
34325 cat >>confdefs.h <<\_ACEOF
34326 #define HAVE_SYS_STATVFS_H 1
34327 _ACEOF
34328
34329 fi
34330
34331
34332
34333 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34334 $as_echo_n "checking return type of signal handlers... " >&6; }
34335 if test "${ac_cv_type_signal+set}" = set; then
34336   $as_echo_n "(cached) " >&6
34337 else
34338   cat >conftest.$ac_ext <<_ACEOF
34339 /* confdefs.h.  */
34340 _ACEOF
34341 cat confdefs.h >>conftest.$ac_ext
34342 cat >>conftest.$ac_ext <<_ACEOF
34343 /* end confdefs.h.  */
34344 #include <sys/types.h>
34345 #include <signal.h>
34346
34347 int
34348 main ()
34349 {
34350 return *(signal (0, 0)) (0) == 1;
34351   ;
34352   return 0;
34353 }
34354 _ACEOF
34355 rm -f conftest.$ac_objext
34356 if { (ac_try="$ac_compile"
34357 case "(($ac_try" in
34358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34359   *) ac_try_echo=$ac_try;;
34360 esac
34361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34362 $as_echo "$ac_try_echo") >&5
34363   (eval "$ac_compile") 2>conftest.er1
34364   ac_status=$?
34365   grep -v '^ *+' conftest.er1 >conftest.err
34366   rm -f conftest.er1
34367   cat conftest.err >&5
34368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369   (exit $ac_status); } && {
34370          test -z "$ac_c_werror_flag" ||
34371          test ! -s conftest.err
34372        } && test -s conftest.$ac_objext; then
34373   ac_cv_type_signal=int
34374 else
34375   $as_echo "$as_me: failed program was:" >&5
34376 sed 's/^/| /' conftest.$ac_ext >&5
34377
34378         ac_cv_type_signal=void
34379 fi
34380
34381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34382 fi
34383 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34384 $as_echo "$ac_cv_type_signal" >&6; }
34385
34386 cat >>confdefs.h <<_ACEOF
34387 #define RETSIGTYPE $ac_cv_type_signal
34388 _ACEOF
34389
34390
34391
34392   { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34393 $as_echo_n "checking for type of signal functions... " >&6; }
34394   if test "${bash_cv_signal_vintage+set}" = set; then
34395   $as_echo_n "(cached) " >&6
34396 else
34397
34398     cat >conftest.$ac_ext <<_ACEOF
34399 /* confdefs.h.  */
34400 _ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h.  */
34404 #include <signal.h>
34405 int
34406 main ()
34407 {
34408
34409       sigset_t ss;
34410       struct sigaction sa;
34411       sigemptyset(&ss); sigsuspend(&ss);
34412       sigaction(SIGINT, &sa, (struct sigaction *) 0);
34413       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34414
34415   ;
34416   return 0;
34417 }
34418 _ACEOF
34419 rm -f conftest.$ac_objext conftest$ac_exeext
34420 if { (ac_try="$ac_link"
34421 case "(($ac_try" in
34422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34423   *) ac_try_echo=$ac_try;;
34424 esac
34425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34426 $as_echo "$ac_try_echo") >&5
34427   (eval "$ac_link") 2>conftest.er1
34428   ac_status=$?
34429   grep -v '^ *+' conftest.er1 >conftest.err
34430   rm -f conftest.er1
34431   cat conftest.err >&5
34432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433   (exit $ac_status); } && {
34434          test -z "$ac_c_werror_flag" ||
34435          test ! -s conftest.err
34436        } && test -s conftest$ac_exeext && {
34437          test "$cross_compiling" = yes ||
34438          $as_test_x conftest$ac_exeext
34439        }; then
34440   bash_cv_signal_vintage="posix"
34441 else
34442   $as_echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34444
34445
34446       cat >conftest.$ac_ext <<_ACEOF
34447 /* confdefs.h.  */
34448 _ACEOF
34449 cat confdefs.h >>conftest.$ac_ext
34450 cat >>conftest.$ac_ext <<_ACEOF
34451 /* end confdefs.h.  */
34452 #include <signal.h>
34453 int
34454 main ()
34455 {
34456
34457           int mask = sigmask(SIGINT);
34458           sigsetmask(mask); sigblock(mask); sigpause(mask);
34459
34460   ;
34461   return 0;
34462 }
34463 _ACEOF
34464 rm -f conftest.$ac_objext conftest$ac_exeext
34465 if { (ac_try="$ac_link"
34466 case "(($ac_try" in
34467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468   *) ac_try_echo=$ac_try;;
34469 esac
34470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34471 $as_echo "$ac_try_echo") >&5
34472   (eval "$ac_link") 2>conftest.er1
34473   ac_status=$?
34474   grep -v '^ *+' conftest.er1 >conftest.err
34475   rm -f conftest.er1
34476   cat conftest.err >&5
34477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); } && {
34479          test -z "$ac_c_werror_flag" ||
34480          test ! -s conftest.err
34481        } && test -s conftest$ac_exeext && {
34482          test "$cross_compiling" = yes ||
34483          $as_test_x conftest$ac_exeext
34484        }; then
34485   bash_cv_signal_vintage="4.2bsd"
34486 else
34487   $as_echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34489
34490
34491         cat >conftest.$ac_ext <<_ACEOF
34492 /* confdefs.h.  */
34493 _ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h.  */
34497
34498           #include <signal.h>
34499           RETSIGTYPE foo() { }
34500 int
34501 main ()
34502 {
34503
34504                   int mask = sigmask(SIGINT);
34505                   sigset(SIGINT, foo); sigrelse(SIGINT);
34506                   sighold(SIGINT); sigpause(SIGINT);
34507
34508   ;
34509   return 0;
34510 }
34511 _ACEOF
34512 rm -f conftest.$ac_objext conftest$ac_exeext
34513 if { (ac_try="$ac_link"
34514 case "(($ac_try" in
34515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516   *) ac_try_echo=$ac_try;;
34517 esac
34518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34519 $as_echo "$ac_try_echo") >&5
34520   (eval "$ac_link") 2>conftest.er1
34521   ac_status=$?
34522   grep -v '^ *+' conftest.er1 >conftest.err
34523   rm -f conftest.er1
34524   cat conftest.err >&5
34525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526   (exit $ac_status); } && {
34527          test -z "$ac_c_werror_flag" ||
34528          test ! -s conftest.err
34529        } && test -s conftest$ac_exeext && {
34530          test "$cross_compiling" = yes ||
34531          $as_test_x conftest$ac_exeext
34532        }; then
34533   bash_cv_signal_vintage="svr3"
34534 else
34535   $as_echo "$as_me: failed program was:" >&5
34536 sed 's/^/| /' conftest.$ac_ext >&5
34537
34538         bash_cv_signal_vintage="v7"
34539
34540 fi
34541
34542 rm -rf conftest.dSYM
34543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34544       conftest$ac_exeext conftest.$ac_ext
34545
34546 fi
34547
34548 rm -rf conftest.dSYM
34549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34550       conftest$ac_exeext conftest.$ac_ext
34551
34552 fi
34553
34554 rm -rf conftest.dSYM
34555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34556       conftest$ac_exeext conftest.$ac_ext
34557
34558 fi
34559
34560   { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34561 $as_echo "$bash_cv_signal_vintage" >&6; }
34562   if test "$bash_cv_signal_vintage" = "posix"; then
34563     cat >>confdefs.h <<\_ACEOF
34564 #define HAVE_POSIX_SIGNALS 1
34565 _ACEOF
34566
34567   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34568     cat >>confdefs.h <<\_ACEOF
34569 #define HAVE_BSD_SIGNALS 1
34570 _ACEOF
34571
34572   elif test "$bash_cv_signal_vintage" = "svr3"; then
34573     cat >>confdefs.h <<\_ACEOF
34574 #define HAVE_USG_SIGHOLD 1
34575 _ACEOF
34576
34577   fi
34578
34579 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34580 $as_echo_n "checking for mode_t... " >&6; }
34581 if test "${ac_cv_type_mode_t+set}" = set; then
34582   $as_echo_n "(cached) " >&6
34583 else
34584   ac_cv_type_mode_t=no
34585 cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591 $ac_includes_default
34592 int
34593 main ()
34594 {
34595 if (sizeof (mode_t))
34596        return 0;
34597   ;
34598   return 0;
34599 }
34600 _ACEOF
34601 rm -f conftest.$ac_objext
34602 if { (ac_try="$ac_compile"
34603 case "(($ac_try" in
34604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34605   *) ac_try_echo=$ac_try;;
34606 esac
34607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34608 $as_echo "$ac_try_echo") >&5
34609   (eval "$ac_compile") 2>conftest.er1
34610   ac_status=$?
34611   grep -v '^ *+' conftest.er1 >conftest.err
34612   rm -f conftest.er1
34613   cat conftest.err >&5
34614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); } && {
34616          test -z "$ac_c_werror_flag" ||
34617          test ! -s conftest.err
34618        } && test -s conftest.$ac_objext; then
34619   cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625 $ac_includes_default
34626 int
34627 main ()
34628 {
34629 if (sizeof ((mode_t)))
34630           return 0;
34631   ;
34632   return 0;
34633 }
34634 _ACEOF
34635 rm -f conftest.$ac_objext
34636 if { (ac_try="$ac_compile"
34637 case "(($ac_try" in
34638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34639   *) ac_try_echo=$ac_try;;
34640 esac
34641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34642 $as_echo "$ac_try_echo") >&5
34643   (eval "$ac_compile") 2>conftest.er1
34644   ac_status=$?
34645   grep -v '^ *+' conftest.er1 >conftest.err
34646   rm -f conftest.er1
34647   cat conftest.err >&5
34648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); } && {
34650          test -z "$ac_c_werror_flag" ||
34651          test ! -s conftest.err
34652        } && test -s conftest.$ac_objext; then
34653   :
34654 else
34655   $as_echo "$as_me: failed program was:" >&5
34656 sed 's/^/| /' conftest.$ac_ext >&5
34657
34658         ac_cv_type_mode_t=yes
34659 fi
34660
34661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34662 else
34663   $as_echo "$as_me: failed program was:" >&5
34664 sed 's/^/| /' conftest.$ac_ext >&5
34665
34666
34667 fi
34668
34669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34670 fi
34671 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34672 $as_echo "$ac_cv_type_mode_t" >&6; }
34673 if test "x$ac_cv_type_mode_t" = x""yes; then
34674   :
34675 else
34676
34677 cat >>confdefs.h <<_ACEOF
34678 #define mode_t int
34679 _ACEOF
34680
34681 fi
34682
34683 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34684 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34685 if test "${ac_cv_type_uid_t+set}" = set; then
34686   $as_echo_n "(cached) " >&6
34687 else
34688   cat >conftest.$ac_ext <<_ACEOF
34689 /* confdefs.h.  */
34690 _ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h.  */
34694 #include <sys/types.h>
34695
34696 _ACEOF
34697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34698   $EGREP "uid_t" >/dev/null 2>&1; then
34699   ac_cv_type_uid_t=yes
34700 else
34701   ac_cv_type_uid_t=no
34702 fi
34703 rm -f conftest*
34704
34705 fi
34706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34707 $as_echo "$ac_cv_type_uid_t" >&6; }
34708 if test $ac_cv_type_uid_t = no; then
34709
34710 cat >>confdefs.h <<\_ACEOF
34711 #define uid_t int
34712 _ACEOF
34713
34714
34715 cat >>confdefs.h <<\_ACEOF
34716 #define gid_t int
34717 _ACEOF
34718
34719 fi
34720
34721 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34722 $as_echo_n "checking for size_t... " >&6; }
34723 if test "${ac_cv_type_size_t+set}" = set; then
34724   $as_echo_n "(cached) " >&6
34725 else
34726   ac_cv_type_size_t=no
34727 cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733 $ac_includes_default
34734 int
34735 main ()
34736 {
34737 if (sizeof (size_t))
34738        return 0;
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext
34744 if { (ac_try="$ac_compile"
34745 case "(($ac_try" in
34746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747   *) ac_try_echo=$ac_try;;
34748 esac
34749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34750 $as_echo "$ac_try_echo") >&5
34751   (eval "$ac_compile") 2>conftest.er1
34752   ac_status=$?
34753   grep -v '^ *+' conftest.er1 >conftest.err
34754   rm -f conftest.er1
34755   cat conftest.err >&5
34756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); } && {
34758          test -z "$ac_c_werror_flag" ||
34759          test ! -s conftest.err
34760        } && test -s conftest.$ac_objext; then
34761   cat >conftest.$ac_ext <<_ACEOF
34762 /* confdefs.h.  */
34763 _ACEOF
34764 cat confdefs.h >>conftest.$ac_ext
34765 cat >>conftest.$ac_ext <<_ACEOF
34766 /* end confdefs.h.  */
34767 $ac_includes_default
34768 int
34769 main ()
34770 {
34771 if (sizeof ((size_t)))
34772           return 0;
34773   ;
34774   return 0;
34775 }
34776 _ACEOF
34777 rm -f conftest.$ac_objext
34778 if { (ac_try="$ac_compile"
34779 case "(($ac_try" in
34780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781   *) ac_try_echo=$ac_try;;
34782 esac
34783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34784 $as_echo "$ac_try_echo") >&5
34785   (eval "$ac_compile") 2>conftest.er1
34786   ac_status=$?
34787   grep -v '^ *+' conftest.er1 >conftest.err
34788   rm -f conftest.er1
34789   cat conftest.err >&5
34790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); } && {
34792          test -z "$ac_c_werror_flag" ||
34793          test ! -s conftest.err
34794        } && test -s conftest.$ac_objext; then
34795   :
34796 else
34797   $as_echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.$ac_ext >&5
34799
34800         ac_cv_type_size_t=yes
34801 fi
34802
34803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34804 else
34805   $as_echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34807
34808
34809 fi
34810
34811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34812 fi
34813 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34814 $as_echo "$ac_cv_type_size_t" >&6; }
34815 if test "x$ac_cv_type_size_t" = x""yes; then
34816   :
34817 else
34818
34819 cat >>confdefs.h <<_ACEOF
34820 #define size_t unsigned int
34821 _ACEOF
34822
34823 fi
34824
34825 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34826 $as_echo_n "checking for pid_t... " >&6; }
34827 if test "${ac_cv_type_pid_t+set}" = set; then
34828   $as_echo_n "(cached) " >&6
34829 else
34830   ac_cv_type_pid_t=no
34831 cat >conftest.$ac_ext <<_ACEOF
34832 /* confdefs.h.  */
34833 _ACEOF
34834 cat confdefs.h >>conftest.$ac_ext
34835 cat >>conftest.$ac_ext <<_ACEOF
34836 /* end confdefs.h.  */
34837 $ac_includes_default
34838 int
34839 main ()
34840 {
34841 if (sizeof (pid_t))
34842        return 0;
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext
34848 if { (ac_try="$ac_compile"
34849 case "(($ac_try" in
34850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851   *) ac_try_echo=$ac_try;;
34852 esac
34853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34854 $as_echo "$ac_try_echo") >&5
34855   (eval "$ac_compile") 2>conftest.er1
34856   ac_status=$?
34857   grep -v '^ *+' conftest.er1 >conftest.err
34858   rm -f conftest.er1
34859   cat conftest.err >&5
34860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); } && {
34862          test -z "$ac_c_werror_flag" ||
34863          test ! -s conftest.err
34864        } && test -s conftest.$ac_objext; then
34865   cat >conftest.$ac_ext <<_ACEOF
34866 /* confdefs.h.  */
34867 _ACEOF
34868 cat confdefs.h >>conftest.$ac_ext
34869 cat >>conftest.$ac_ext <<_ACEOF
34870 /* end confdefs.h.  */
34871 $ac_includes_default
34872 int
34873 main ()
34874 {
34875 if (sizeof ((pid_t)))
34876           return 0;
34877   ;
34878   return 0;
34879 }
34880 _ACEOF
34881 rm -f conftest.$ac_objext
34882 if { (ac_try="$ac_compile"
34883 case "(($ac_try" in
34884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34885   *) ac_try_echo=$ac_try;;
34886 esac
34887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34888 $as_echo "$ac_try_echo") >&5
34889   (eval "$ac_compile") 2>conftest.er1
34890   ac_status=$?
34891   grep -v '^ *+' conftest.er1 >conftest.err
34892   rm -f conftest.er1
34893   cat conftest.err >&5
34894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); } && {
34896          test -z "$ac_c_werror_flag" ||
34897          test ! -s conftest.err
34898        } && test -s conftest.$ac_objext; then
34899   :
34900 else
34901   $as_echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34903
34904         ac_cv_type_pid_t=yes
34905 fi
34906
34907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34908 else
34909   $as_echo "$as_me: failed program was:" >&5
34910 sed 's/^/| /' conftest.$ac_ext >&5
34911
34912
34913 fi
34914
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916 fi
34917 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34918 $as_echo "$ac_cv_type_pid_t" >&6; }
34919 if test "x$ac_cv_type_pid_t" = x""yes; then
34920   :
34921 else
34922
34923 cat >>confdefs.h <<_ACEOF
34924 #define pid_t int
34925 _ACEOF
34926
34927 fi
34928
34929 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34930 $as_echo_n "checking for off_t... " >&6; }
34931 if test "${ac_cv_type_off_t+set}" = set; then
34932   $as_echo_n "(cached) " >&6
34933 else
34934   ac_cv_type_off_t=no
34935 cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h.  */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h.  */
34941 $ac_includes_default
34942 int
34943 main ()
34944 {
34945 if (sizeof (off_t))
34946        return 0;
34947   ;
34948   return 0;
34949 }
34950 _ACEOF
34951 rm -f conftest.$ac_objext
34952 if { (ac_try="$ac_compile"
34953 case "(($ac_try" in
34954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955   *) ac_try_echo=$ac_try;;
34956 esac
34957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34958 $as_echo "$ac_try_echo") >&5
34959   (eval "$ac_compile") 2>conftest.er1
34960   ac_status=$?
34961   grep -v '^ *+' conftest.er1 >conftest.err
34962   rm -f conftest.er1
34963   cat conftest.err >&5
34964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); } && {
34966          test -z "$ac_c_werror_flag" ||
34967          test ! -s conftest.err
34968        } && test -s conftest.$ac_objext; then
34969   cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h.  */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h.  */
34975 $ac_includes_default
34976 int
34977 main ()
34978 {
34979 if (sizeof ((off_t)))
34980           return 0;
34981   ;
34982   return 0;
34983 }
34984 _ACEOF
34985 rm -f conftest.$ac_objext
34986 if { (ac_try="$ac_compile"
34987 case "(($ac_try" in
34988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34989   *) ac_try_echo=$ac_try;;
34990 esac
34991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34992 $as_echo "$ac_try_echo") >&5
34993   (eval "$ac_compile") 2>conftest.er1
34994   ac_status=$?
34995   grep -v '^ *+' conftest.er1 >conftest.err
34996   rm -f conftest.er1
34997   cat conftest.err >&5
34998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); } && {
35000          test -z "$ac_c_werror_flag" ||
35001          test ! -s conftest.err
35002        } && test -s conftest.$ac_objext; then
35003   :
35004 else
35005   $as_echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35007
35008         ac_cv_type_off_t=yes
35009 fi
35010
35011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35012 else
35013   $as_echo "$as_me: failed program was:" >&5
35014 sed 's/^/| /' conftest.$ac_ext >&5
35015
35016
35017 fi
35018
35019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35020 fi
35021 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35022 $as_echo "$ac_cv_type_off_t" >&6; }
35023 if test "x$ac_cv_type_off_t" = x""yes; then
35024   :
35025 else
35026
35027 cat >>confdefs.h <<_ACEOF
35028 #define off_t long int
35029 _ACEOF
35030
35031 fi
35032
35033
35034   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35035 $as_echo_n "checking for intptr_t... " >&6; }
35036 if test "${ac_cv_type_intptr_t+set}" = set; then
35037   $as_echo_n "(cached) " >&6
35038 else
35039   ac_cv_type_intptr_t=no
35040 cat >conftest.$ac_ext <<_ACEOF
35041 /* confdefs.h.  */
35042 _ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h.  */
35046 $ac_includes_default
35047 int
35048 main ()
35049 {
35050 if (sizeof (intptr_t))
35051        return 0;
35052   ;
35053   return 0;
35054 }
35055 _ACEOF
35056 rm -f conftest.$ac_objext
35057 if { (ac_try="$ac_compile"
35058 case "(($ac_try" in
35059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35060   *) ac_try_echo=$ac_try;;
35061 esac
35062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35063 $as_echo "$ac_try_echo") >&5
35064   (eval "$ac_compile") 2>conftest.er1
35065   ac_status=$?
35066   grep -v '^ *+' conftest.er1 >conftest.err
35067   rm -f conftest.er1
35068   cat conftest.err >&5
35069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); } && {
35071          test -z "$ac_c_werror_flag" ||
35072          test ! -s conftest.err
35073        } && test -s conftest.$ac_objext; then
35074   cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080 $ac_includes_default
35081 int
35082 main ()
35083 {
35084 if (sizeof ((intptr_t)))
35085           return 0;
35086   ;
35087   return 0;
35088 }
35089 _ACEOF
35090 rm -f conftest.$ac_objext
35091 if { (ac_try="$ac_compile"
35092 case "(($ac_try" in
35093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35094   *) ac_try_echo=$ac_try;;
35095 esac
35096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35097 $as_echo "$ac_try_echo") >&5
35098   (eval "$ac_compile") 2>conftest.er1
35099   ac_status=$?
35100   grep -v '^ *+' conftest.er1 >conftest.err
35101   rm -f conftest.er1
35102   cat conftest.err >&5
35103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104   (exit $ac_status); } && {
35105          test -z "$ac_c_werror_flag" ||
35106          test ! -s conftest.err
35107        } && test -s conftest.$ac_objext; then
35108   :
35109 else
35110   $as_echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35112
35113         ac_cv_type_intptr_t=yes
35114 fi
35115
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35117 else
35118   $as_echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35120
35121
35122 fi
35123
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35125 fi
35126 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35127 $as_echo "$ac_cv_type_intptr_t" >&6; }
35128 if test "x$ac_cv_type_intptr_t" = x""yes; then
35129
35130 cat >>confdefs.h <<\_ACEOF
35131 #define HAVE_INTPTR_T 1
35132 _ACEOF
35133
35134 else
35135   for ac_type in 'int' 'long int' 'long long int'; do
35136        cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142 $ac_includes_default
35143 int
35144 main ()
35145 {
35146 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35147 test_array [0] = 0
35148
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest.$ac_objext
35154 if { (ac_try="$ac_compile"
35155 case "(($ac_try" in
35156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157   *) ac_try_echo=$ac_try;;
35158 esac
35159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35160 $as_echo "$ac_try_echo") >&5
35161   (eval "$ac_compile") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_c_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest.$ac_objext; then
35171
35172 cat >>confdefs.h <<_ACEOF
35173 #define intptr_t $ac_type
35174 _ACEOF
35175
35176           ac_type=
35177 else
35178   $as_echo "$as_me: failed program was:" >&5
35179 sed 's/^/| /' conftest.$ac_ext >&5
35180
35181
35182 fi
35183
35184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35185        test -z "$ac_type" && break
35186      done
35187 fi
35188
35189
35190
35191   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35192 $as_echo_n "checking for uintptr_t... " >&6; }
35193 if test "${ac_cv_type_uintptr_t+set}" = set; then
35194   $as_echo_n "(cached) " >&6
35195 else
35196   ac_cv_type_uintptr_t=no
35197 cat >conftest.$ac_ext <<_ACEOF
35198 /* confdefs.h.  */
35199 _ACEOF
35200 cat confdefs.h >>conftest.$ac_ext
35201 cat >>conftest.$ac_ext <<_ACEOF
35202 /* end confdefs.h.  */
35203 $ac_includes_default
35204 int
35205 main ()
35206 {
35207 if (sizeof (uintptr_t))
35208        return 0;
35209   ;
35210   return 0;
35211 }
35212 _ACEOF
35213 rm -f conftest.$ac_objext
35214 if { (ac_try="$ac_compile"
35215 case "(($ac_try" in
35216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35217   *) ac_try_echo=$ac_try;;
35218 esac
35219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35220 $as_echo "$ac_try_echo") >&5
35221   (eval "$ac_compile") 2>conftest.er1
35222   ac_status=$?
35223   grep -v '^ *+' conftest.er1 >conftest.err
35224   rm -f conftest.er1
35225   cat conftest.err >&5
35226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227   (exit $ac_status); } && {
35228          test -z "$ac_c_werror_flag" ||
35229          test ! -s conftest.err
35230        } && test -s conftest.$ac_objext; then
35231   cat >conftest.$ac_ext <<_ACEOF
35232 /* confdefs.h.  */
35233 _ACEOF
35234 cat confdefs.h >>conftest.$ac_ext
35235 cat >>conftest.$ac_ext <<_ACEOF
35236 /* end confdefs.h.  */
35237 $ac_includes_default
35238 int
35239 main ()
35240 {
35241 if (sizeof ((uintptr_t)))
35242           return 0;
35243   ;
35244   return 0;
35245 }
35246 _ACEOF
35247 rm -f conftest.$ac_objext
35248 if { (ac_try="$ac_compile"
35249 case "(($ac_try" in
35250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35251   *) ac_try_echo=$ac_try;;
35252 esac
35253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35254 $as_echo "$ac_try_echo") >&5
35255   (eval "$ac_compile") 2>conftest.er1
35256   ac_status=$?
35257   grep -v '^ *+' conftest.er1 >conftest.err
35258   rm -f conftest.er1
35259   cat conftest.err >&5
35260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261   (exit $ac_status); } && {
35262          test -z "$ac_c_werror_flag" ||
35263          test ! -s conftest.err
35264        } && test -s conftest.$ac_objext; then
35265   :
35266 else
35267   $as_echo "$as_me: failed program was:" >&5
35268 sed 's/^/| /' conftest.$ac_ext >&5
35269
35270         ac_cv_type_uintptr_t=yes
35271 fi
35272
35273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35274 else
35275   $as_echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35277
35278
35279 fi
35280
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 fi
35283 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
35284 $as_echo "$ac_cv_type_uintptr_t" >&6; }
35285 if test "x$ac_cv_type_uintptr_t" = x""yes; then
35286
35287 cat >>confdefs.h <<\_ACEOF
35288 #define HAVE_UINTPTR_T 1
35289 _ACEOF
35290
35291 else
35292   for ac_type in 'unsigned int' 'unsigned long int' \
35293         'unsigned long long int'; do
35294        cat >conftest.$ac_ext <<_ACEOF
35295 /* confdefs.h.  */
35296 _ACEOF
35297 cat confdefs.h >>conftest.$ac_ext
35298 cat >>conftest.$ac_ext <<_ACEOF
35299 /* end confdefs.h.  */
35300 $ac_includes_default
35301 int
35302 main ()
35303 {
35304 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35305 test_array [0] = 0
35306
35307   ;
35308   return 0;
35309 }
35310 _ACEOF
35311 rm -f conftest.$ac_objext
35312 if { (ac_try="$ac_compile"
35313 case "(($ac_try" in
35314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315   *) ac_try_echo=$ac_try;;
35316 esac
35317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35318 $as_echo "$ac_try_echo") >&5
35319   (eval "$ac_compile") 2>conftest.er1
35320   ac_status=$?
35321   grep -v '^ *+' conftest.er1 >conftest.err
35322   rm -f conftest.er1
35323   cat conftest.err >&5
35324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325   (exit $ac_status); } && {
35326          test -z "$ac_c_werror_flag" ||
35327          test ! -s conftest.err
35328        } && test -s conftest.$ac_objext; then
35329
35330 cat >>confdefs.h <<_ACEOF
35331 #define uintptr_t $ac_type
35332 _ACEOF
35333
35334           ac_type=
35335 else
35336   $as_echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35338
35339
35340 fi
35341
35342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35343        test -z "$ac_type" && break
35344      done
35345 fi
35346
35347
35348 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
35349 $as_echo_n "checking for ino_t... " >&6; }
35350 if test "${ac_cv_type_ino_t+set}" = set; then
35351   $as_echo_n "(cached) " >&6
35352 else
35353   ac_cv_type_ino_t=no
35354 cat >conftest.$ac_ext <<_ACEOF
35355 /* confdefs.h.  */
35356 _ACEOF
35357 cat confdefs.h >>conftest.$ac_ext
35358 cat >>conftest.$ac_ext <<_ACEOF
35359 /* end confdefs.h.  */
35360 $ac_includes_default
35361 int
35362 main ()
35363 {
35364 if (sizeof (ino_t))
35365        return 0;
35366   ;
35367   return 0;
35368 }
35369 _ACEOF
35370 rm -f conftest.$ac_objext
35371 if { (ac_try="$ac_compile"
35372 case "(($ac_try" in
35373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35374   *) ac_try_echo=$ac_try;;
35375 esac
35376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35377 $as_echo "$ac_try_echo") >&5
35378   (eval "$ac_compile") 2>conftest.er1
35379   ac_status=$?
35380   grep -v '^ *+' conftest.er1 >conftest.err
35381   rm -f conftest.er1
35382   cat conftest.err >&5
35383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384   (exit $ac_status); } && {
35385          test -z "$ac_c_werror_flag" ||
35386          test ! -s conftest.err
35387        } && test -s conftest.$ac_objext; then
35388   cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394 $ac_includes_default
35395 int
35396 main ()
35397 {
35398 if (sizeof ((ino_t)))
35399           return 0;
35400   ;
35401   return 0;
35402 }
35403 _ACEOF
35404 rm -f conftest.$ac_objext
35405 if { (ac_try="$ac_compile"
35406 case "(($ac_try" in
35407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35408   *) ac_try_echo=$ac_try;;
35409 esac
35410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35411 $as_echo "$ac_try_echo") >&5
35412   (eval "$ac_compile") 2>conftest.er1
35413   ac_status=$?
35414   grep -v '^ *+' conftest.er1 >conftest.err
35415   rm -f conftest.er1
35416   cat conftest.err >&5
35417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418   (exit $ac_status); } && {
35419          test -z "$ac_c_werror_flag" ||
35420          test ! -s conftest.err
35421        } && test -s conftest.$ac_objext; then
35422   :
35423 else
35424   $as_echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.$ac_ext >&5
35426
35427         ac_cv_type_ino_t=yes
35428 fi
35429
35430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35431 else
35432   $as_echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35434
35435
35436 fi
35437
35438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35439 fi
35440 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
35441 $as_echo "$ac_cv_type_ino_t" >&6; }
35442 if test "x$ac_cv_type_ino_t" = x""yes; then
35443   :
35444 else
35445
35446 cat >>confdefs.h <<_ACEOF
35447 #define ino_t unsigned long
35448 _ACEOF
35449
35450 fi
35451
35452 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
35453 $as_echo_n "checking for dev_t... " >&6; }
35454 if test "${ac_cv_type_dev_t+set}" = set; then
35455   $as_echo_n "(cached) " >&6
35456 else
35457   ac_cv_type_dev_t=no
35458 cat >conftest.$ac_ext <<_ACEOF
35459 /* confdefs.h.  */
35460 _ACEOF
35461 cat confdefs.h >>conftest.$ac_ext
35462 cat >>conftest.$ac_ext <<_ACEOF
35463 /* end confdefs.h.  */
35464 $ac_includes_default
35465 int
35466 main ()
35467 {
35468 if (sizeof (dev_t))
35469        return 0;
35470   ;
35471   return 0;
35472 }
35473 _ACEOF
35474 rm -f conftest.$ac_objext
35475 if { (ac_try="$ac_compile"
35476 case "(($ac_try" in
35477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35478   *) ac_try_echo=$ac_try;;
35479 esac
35480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35481 $as_echo "$ac_try_echo") >&5
35482   (eval "$ac_compile") 2>conftest.er1
35483   ac_status=$?
35484   grep -v '^ *+' conftest.er1 >conftest.err
35485   rm -f conftest.er1
35486   cat conftest.err >&5
35487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488   (exit $ac_status); } && {
35489          test -z "$ac_c_werror_flag" ||
35490          test ! -s conftest.err
35491        } && test -s conftest.$ac_objext; then
35492   cat >conftest.$ac_ext <<_ACEOF
35493 /* confdefs.h.  */
35494 _ACEOF
35495 cat confdefs.h >>conftest.$ac_ext
35496 cat >>conftest.$ac_ext <<_ACEOF
35497 /* end confdefs.h.  */
35498 $ac_includes_default
35499 int
35500 main ()
35501 {
35502 if (sizeof ((dev_t)))
35503           return 0;
35504   ;
35505   return 0;
35506 }
35507 _ACEOF
35508 rm -f conftest.$ac_objext
35509 if { (ac_try="$ac_compile"
35510 case "(($ac_try" in
35511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35512   *) ac_try_echo=$ac_try;;
35513 esac
35514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35515 $as_echo "$ac_try_echo") >&5
35516   (eval "$ac_compile") 2>conftest.er1
35517   ac_status=$?
35518   grep -v '^ *+' conftest.er1 >conftest.err
35519   rm -f conftest.er1
35520   cat conftest.err >&5
35521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522   (exit $ac_status); } && {
35523          test -z "$ac_c_werror_flag" ||
35524          test ! -s conftest.err
35525        } && test -s conftest.$ac_objext; then
35526   :
35527 else
35528   $as_echo "$as_me: failed program was:" >&5
35529 sed 's/^/| /' conftest.$ac_ext >&5
35530
35531         ac_cv_type_dev_t=yes
35532 fi
35533
35534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35535 else
35536   $as_echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35538
35539
35540 fi
35541
35542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35543 fi
35544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
35545 $as_echo "$ac_cv_type_dev_t" >&6; }
35546 if test "x$ac_cv_type_dev_t" = x""yes; then
35547   :
35548 else
35549
35550 cat >>confdefs.h <<_ACEOF
35551 #define dev_t unsigned long
35552 _ACEOF
35553
35554 fi
35555
35556 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
35557 $as_echo_n "checking for daddr_t... " >&6; }
35558 if test "${ac_cv_type_daddr_t+set}" = set; then
35559   $as_echo_n "(cached) " >&6
35560 else
35561   ac_cv_type_daddr_t=no
35562 cat >conftest.$ac_ext <<_ACEOF
35563 /* confdefs.h.  */
35564 _ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h.  */
35568 $ac_includes_default
35569 int
35570 main ()
35571 {
35572 if (sizeof (daddr_t))
35573        return 0;
35574   ;
35575   return 0;
35576 }
35577 _ACEOF
35578 rm -f conftest.$ac_objext
35579 if { (ac_try="$ac_compile"
35580 case "(($ac_try" in
35581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35582   *) ac_try_echo=$ac_try;;
35583 esac
35584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35585 $as_echo "$ac_try_echo") >&5
35586   (eval "$ac_compile") 2>conftest.er1
35587   ac_status=$?
35588   grep -v '^ *+' conftest.er1 >conftest.err
35589   rm -f conftest.er1
35590   cat conftest.err >&5
35591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592   (exit $ac_status); } && {
35593          test -z "$ac_c_werror_flag" ||
35594          test ! -s conftest.err
35595        } && test -s conftest.$ac_objext; then
35596   cat >conftest.$ac_ext <<_ACEOF
35597 /* confdefs.h.  */
35598 _ACEOF
35599 cat confdefs.h >>conftest.$ac_ext
35600 cat >>conftest.$ac_ext <<_ACEOF
35601 /* end confdefs.h.  */
35602 $ac_includes_default
35603 int
35604 main ()
35605 {
35606 if (sizeof ((daddr_t)))
35607           return 0;
35608   ;
35609   return 0;
35610 }
35611 _ACEOF
35612 rm -f conftest.$ac_objext
35613 if { (ac_try="$ac_compile"
35614 case "(($ac_try" in
35615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35616   *) ac_try_echo=$ac_try;;
35617 esac
35618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35619 $as_echo "$ac_try_echo") >&5
35620   (eval "$ac_compile") 2>conftest.er1
35621   ac_status=$?
35622   grep -v '^ *+' conftest.er1 >conftest.err
35623   rm -f conftest.er1
35624   cat conftest.err >&5
35625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); } && {
35627          test -z "$ac_c_werror_flag" ||
35628          test ! -s conftest.err
35629        } && test -s conftest.$ac_objext; then
35630   :
35631 else
35632   $as_echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35634
35635         ac_cv_type_daddr_t=yes
35636 fi
35637
35638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35639 else
35640   $as_echo "$as_me: failed program was:" >&5
35641 sed 's/^/| /' conftest.$ac_ext >&5
35642
35643
35644 fi
35645
35646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35647 fi
35648 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
35649 $as_echo "$ac_cv_type_daddr_t" >&6; }
35650 if test "x$ac_cv_type_daddr_t" = x""yes; then
35651   :
35652 else
35653
35654 cat >>confdefs.h <<_ACEOF
35655 #define daddr_t long
35656 _ACEOF
35657
35658 fi
35659
35660 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
35661 $as_echo_n "checking for major_t... " >&6; }
35662 if test "${ac_cv_type_major_t+set}" = set; then
35663   $as_echo_n "(cached) " >&6
35664 else
35665   ac_cv_type_major_t=no
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672 $ac_includes_default
35673 int
35674 main ()
35675 {
35676 if (sizeof (major_t))
35677        return 0;
35678   ;
35679   return 0;
35680 }
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (ac_try="$ac_compile"
35684 case "(($ac_try" in
35685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35686   *) ac_try_echo=$ac_try;;
35687 esac
35688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35689 $as_echo "$ac_try_echo") >&5
35690   (eval "$ac_compile") 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } && {
35697          test -z "$ac_c_werror_flag" ||
35698          test ! -s conftest.err
35699        } && test -s conftest.$ac_objext; then
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 int
35708 main ()
35709 {
35710 if (sizeof ((major_t)))
35711           return 0;
35712   ;
35713   return 0;
35714 }
35715 _ACEOF
35716 rm -f conftest.$ac_objext
35717 if { (ac_try="$ac_compile"
35718 case "(($ac_try" in
35719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35720   *) ac_try_echo=$ac_try;;
35721 esac
35722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35723 $as_echo "$ac_try_echo") >&5
35724   (eval "$ac_compile") 2>conftest.er1
35725   ac_status=$?
35726   grep -v '^ *+' conftest.er1 >conftest.err
35727   rm -f conftest.er1
35728   cat conftest.err >&5
35729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730   (exit $ac_status); } && {
35731          test -z "$ac_c_werror_flag" ||
35732          test ! -s conftest.err
35733        } && test -s conftest.$ac_objext; then
35734   :
35735 else
35736   $as_echo "$as_me: failed program was:" >&5
35737 sed 's/^/| /' conftest.$ac_ext >&5
35738
35739         ac_cv_type_major_t=yes
35740 fi
35741
35742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35743 else
35744   $as_echo "$as_me: failed program was:" >&5
35745 sed 's/^/| /' conftest.$ac_ext >&5
35746
35747
35748 fi
35749
35750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35751 fi
35752 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
35753 $as_echo "$ac_cv_type_major_t" >&6; }
35754 if test "x$ac_cv_type_major_t" = x""yes; then
35755   :
35756 else
35757
35758 cat >>confdefs.h <<_ACEOF
35759 #define major_t int
35760 _ACEOF
35761
35762 fi
35763
35764 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
35765 $as_echo_n "checking for minor_t... " >&6; }
35766 if test "${ac_cv_type_minor_t+set}" = set; then
35767   $as_echo_n "(cached) " >&6
35768 else
35769   ac_cv_type_minor_t=no
35770 cat >conftest.$ac_ext <<_ACEOF
35771 /* confdefs.h.  */
35772 _ACEOF
35773 cat confdefs.h >>conftest.$ac_ext
35774 cat >>conftest.$ac_ext <<_ACEOF
35775 /* end confdefs.h.  */
35776 $ac_includes_default
35777 int
35778 main ()
35779 {
35780 if (sizeof (minor_t))
35781        return 0;
35782   ;
35783   return 0;
35784 }
35785 _ACEOF
35786 rm -f conftest.$ac_objext
35787 if { (ac_try="$ac_compile"
35788 case "(($ac_try" in
35789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35790   *) ac_try_echo=$ac_try;;
35791 esac
35792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35793 $as_echo "$ac_try_echo") >&5
35794   (eval "$ac_compile") 2>conftest.er1
35795   ac_status=$?
35796   grep -v '^ *+' conftest.er1 >conftest.err
35797   rm -f conftest.er1
35798   cat conftest.err >&5
35799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800   (exit $ac_status); } && {
35801          test -z "$ac_c_werror_flag" ||
35802          test ! -s conftest.err
35803        } && test -s conftest.$ac_objext; then
35804   cat >conftest.$ac_ext <<_ACEOF
35805 /* confdefs.h.  */
35806 _ACEOF
35807 cat confdefs.h >>conftest.$ac_ext
35808 cat >>conftest.$ac_ext <<_ACEOF
35809 /* end confdefs.h.  */
35810 $ac_includes_default
35811 int
35812 main ()
35813 {
35814 if (sizeof ((minor_t)))
35815           return 0;
35816   ;
35817   return 0;
35818 }
35819 _ACEOF
35820 rm -f conftest.$ac_objext
35821 if { (ac_try="$ac_compile"
35822 case "(($ac_try" in
35823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824   *) ac_try_echo=$ac_try;;
35825 esac
35826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35827 $as_echo "$ac_try_echo") >&5
35828   (eval "$ac_compile") 2>conftest.er1
35829   ac_status=$?
35830   grep -v '^ *+' conftest.er1 >conftest.err
35831   rm -f conftest.er1
35832   cat conftest.err >&5
35833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); } && {
35835          test -z "$ac_c_werror_flag" ||
35836          test ! -s conftest.err
35837        } && test -s conftest.$ac_objext; then
35838   :
35839 else
35840   $as_echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35842
35843         ac_cv_type_minor_t=yes
35844 fi
35845
35846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35847 else
35848   $as_echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35850
35851
35852 fi
35853
35854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35855 fi
35856 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
35857 $as_echo "$ac_cv_type_minor_t" >&6; }
35858 if test "x$ac_cv_type_minor_t" = x""yes; then
35859   :
35860 else
35861
35862 cat >>confdefs.h <<_ACEOF
35863 #define minor_t int
35864 _ACEOF
35865
35866 fi
35867
35868 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35869 $as_echo_n "checking for ssize_t... " >&6; }
35870 if test "${ac_cv_type_ssize_t+set}" = set; then
35871   $as_echo_n "(cached) " >&6
35872 else
35873   ac_cv_type_ssize_t=no
35874 cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880 $ac_includes_default
35881 int
35882 main ()
35883 {
35884 if (sizeof (ssize_t))
35885        return 0;
35886   ;
35887   return 0;
35888 }
35889 _ACEOF
35890 rm -f conftest.$ac_objext
35891 if { (ac_try="$ac_compile"
35892 case "(($ac_try" in
35893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894   *) ac_try_echo=$ac_try;;
35895 esac
35896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35897 $as_echo "$ac_try_echo") >&5
35898   (eval "$ac_compile") 2>conftest.er1
35899   ac_status=$?
35900   grep -v '^ *+' conftest.er1 >conftest.err
35901   rm -f conftest.er1
35902   cat conftest.err >&5
35903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); } && {
35905          test -z "$ac_c_werror_flag" ||
35906          test ! -s conftest.err
35907        } && test -s conftest.$ac_objext; then
35908   cat >conftest.$ac_ext <<_ACEOF
35909 /* confdefs.h.  */
35910 _ACEOF
35911 cat confdefs.h >>conftest.$ac_ext
35912 cat >>conftest.$ac_ext <<_ACEOF
35913 /* end confdefs.h.  */
35914 $ac_includes_default
35915 int
35916 main ()
35917 {
35918 if (sizeof ((ssize_t)))
35919           return 0;
35920   ;
35921   return 0;
35922 }
35923 _ACEOF
35924 rm -f conftest.$ac_objext
35925 if { (ac_try="$ac_compile"
35926 case "(($ac_try" in
35927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928   *) ac_try_echo=$ac_try;;
35929 esac
35930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35931 $as_echo "$ac_try_echo") >&5
35932   (eval "$ac_compile") 2>conftest.er1
35933   ac_status=$?
35934   grep -v '^ *+' conftest.er1 >conftest.err
35935   rm -f conftest.er1
35936   cat conftest.err >&5
35937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); } && {
35939          test -z "$ac_c_werror_flag" ||
35940          test ! -s conftest.err
35941        } && test -s conftest.$ac_objext; then
35942   :
35943 else
35944   $as_echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35946
35947         ac_cv_type_ssize_t=yes
35948 fi
35949
35950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35951 else
35952   $as_echo "$as_me: failed program was:" >&5
35953 sed 's/^/| /' conftest.$ac_ext >&5
35954
35955
35956 fi
35957
35958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35959 fi
35960 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35961 $as_echo "$ac_cv_type_ssize_t" >&6; }
35962 if test "x$ac_cv_type_ssize_t" = x""yes; then
35963   :
35964 else
35965
35966 cat >>confdefs.h <<_ACEOF
35967 #define ssize_t int
35968 _ACEOF
35969
35970 fi
35971
35972 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
35973 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
35974 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
35975   $as_echo_n "(cached) " >&6
35976 else
35977   cat >conftest.$ac_ext <<_ACEOF
35978 /* confdefs.h.  */
35979 _ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h.  */
35983 $ac_includes_default
35984 int
35985 main ()
35986 {
35987 static struct stat ac_aggr;
35988 if (ac_aggr.st_blocks)
35989 return 0;
35990   ;
35991   return 0;
35992 }
35993 _ACEOF
35994 rm -f conftest.$ac_objext
35995 if { (ac_try="$ac_compile"
35996 case "(($ac_try" in
35997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35998   *) ac_try_echo=$ac_try;;
35999 esac
36000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36001 $as_echo "$ac_try_echo") >&5
36002   (eval "$ac_compile") 2>conftest.er1
36003   ac_status=$?
36004   grep -v '^ *+' conftest.er1 >conftest.err
36005   rm -f conftest.er1
36006   cat conftest.err >&5
36007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); } && {
36009          test -z "$ac_c_werror_flag" ||
36010          test ! -s conftest.err
36011        } && test -s conftest.$ac_objext; then
36012   ac_cv_member_struct_stat_st_blocks=yes
36013 else
36014   $as_echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36016
36017         cat >conftest.$ac_ext <<_ACEOF
36018 /* confdefs.h.  */
36019 _ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h.  */
36023 $ac_includes_default
36024 int
36025 main ()
36026 {
36027 static struct stat ac_aggr;
36028 if (sizeof ac_aggr.st_blocks)
36029 return 0;
36030   ;
36031   return 0;
36032 }
36033 _ACEOF
36034 rm -f conftest.$ac_objext
36035 if { (ac_try="$ac_compile"
36036 case "(($ac_try" in
36037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038   *) ac_try_echo=$ac_try;;
36039 esac
36040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36041 $as_echo "$ac_try_echo") >&5
36042   (eval "$ac_compile") 2>conftest.er1
36043   ac_status=$?
36044   grep -v '^ *+' conftest.er1 >conftest.err
36045   rm -f conftest.er1
36046   cat conftest.err >&5
36047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048   (exit $ac_status); } && {
36049          test -z "$ac_c_werror_flag" ||
36050          test ! -s conftest.err
36051        } && test -s conftest.$ac_objext; then
36052   ac_cv_member_struct_stat_st_blocks=yes
36053 else
36054   $as_echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36056
36057         ac_cv_member_struct_stat_st_blocks=no
36058 fi
36059
36060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061 fi
36062
36063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36064 fi
36065 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36066 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36067 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36068
36069 cat >>confdefs.h <<_ACEOF
36070 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36071 _ACEOF
36072
36073
36074 cat >>confdefs.h <<\_ACEOF
36075 #define HAVE_ST_BLOCKS 1
36076 _ACEOF
36077
36078 else
36079   case " $LIBOBJS " in
36080   *" fileblocks.$ac_objext "* ) ;;
36081   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36082  ;;
36083 esac
36084
36085 fi
36086
36087
36088 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36089 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36090 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36091   $as_echo_n "(cached) " >&6
36092 else
36093   cat >conftest.$ac_ext <<_ACEOF
36094 /* confdefs.h.  */
36095 _ACEOF
36096 cat confdefs.h >>conftest.$ac_ext
36097 cat >>conftest.$ac_ext <<_ACEOF
36098 /* end confdefs.h.  */
36099 $ac_includes_default
36100 int
36101 main ()
36102 {
36103 static struct stat ac_aggr;
36104 if (ac_aggr.st_rdev)
36105 return 0;
36106   ;
36107   return 0;
36108 }
36109 _ACEOF
36110 rm -f conftest.$ac_objext
36111 if { (ac_try="$ac_compile"
36112 case "(($ac_try" in
36113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36114   *) ac_try_echo=$ac_try;;
36115 esac
36116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36117 $as_echo "$ac_try_echo") >&5
36118   (eval "$ac_compile") 2>conftest.er1
36119   ac_status=$?
36120   grep -v '^ *+' conftest.er1 >conftest.err
36121   rm -f conftest.er1
36122   cat conftest.err >&5
36123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); } && {
36125          test -z "$ac_c_werror_flag" ||
36126          test ! -s conftest.err
36127        } && test -s conftest.$ac_objext; then
36128   ac_cv_member_struct_stat_st_rdev=yes
36129 else
36130   $as_echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.$ac_ext >&5
36132
36133         cat >conftest.$ac_ext <<_ACEOF
36134 /* confdefs.h.  */
36135 _ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h.  */
36139 $ac_includes_default
36140 int
36141 main ()
36142 {
36143 static struct stat ac_aggr;
36144 if (sizeof ac_aggr.st_rdev)
36145 return 0;
36146   ;
36147   return 0;
36148 }
36149 _ACEOF
36150 rm -f conftest.$ac_objext
36151 if { (ac_try="$ac_compile"
36152 case "(($ac_try" in
36153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154   *) ac_try_echo=$ac_try;;
36155 esac
36156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36157 $as_echo "$ac_try_echo") >&5
36158   (eval "$ac_compile") 2>conftest.er1
36159   ac_status=$?
36160   grep -v '^ *+' conftest.er1 >conftest.err
36161   rm -f conftest.er1
36162   cat conftest.err >&5
36163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164   (exit $ac_status); } && {
36165          test -z "$ac_c_werror_flag" ||
36166          test ! -s conftest.err
36167        } && test -s conftest.$ac_objext; then
36168   ac_cv_member_struct_stat_st_rdev=yes
36169 else
36170   $as_echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36172
36173         ac_cv_member_struct_stat_st_rdev=no
36174 fi
36175
36176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36177 fi
36178
36179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36180 fi
36181 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36182 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36183 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36184
36185 cat >>confdefs.h <<_ACEOF
36186 #define HAVE_STRUCT_STAT_ST_RDEV 1
36187 _ACEOF
36188
36189
36190 cat >>confdefs.h <<\_ACEOF
36191 #define HAVE_ST_RDEV 1
36192 _ACEOF
36193
36194 fi
36195
36196
36197 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36198 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36199 if test "${ac_cv_struct_tm+set}" = set; then
36200   $as_echo_n "(cached) " >&6
36201 else
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 #include <sys/types.h>
36209 #include <time.h>
36210
36211 int
36212 main ()
36213 {
36214 struct tm tm;
36215                                      int *p = &tm.tm_sec;
36216                                      return !p;
36217   ;
36218   return 0;
36219 }
36220 _ACEOF
36221 rm -f conftest.$ac_objext
36222 if { (ac_try="$ac_compile"
36223 case "(($ac_try" in
36224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36225   *) ac_try_echo=$ac_try;;
36226 esac
36227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36228 $as_echo "$ac_try_echo") >&5
36229   (eval "$ac_compile") 2>conftest.er1
36230   ac_status=$?
36231   grep -v '^ *+' conftest.er1 >conftest.err
36232   rm -f conftest.er1
36233   cat conftest.err >&5
36234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); } && {
36236          test -z "$ac_c_werror_flag" ||
36237          test ! -s conftest.err
36238        } && test -s conftest.$ac_objext; then
36239   ac_cv_struct_tm=time.h
36240 else
36241   $as_echo "$as_me: failed program was:" >&5
36242 sed 's/^/| /' conftest.$ac_ext >&5
36243
36244         ac_cv_struct_tm=sys/time.h
36245 fi
36246
36247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36248 fi
36249 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36250 $as_echo "$ac_cv_struct_tm" >&6; }
36251 if test $ac_cv_struct_tm = sys/time.h; then
36252
36253 cat >>confdefs.h <<\_ACEOF
36254 #define TM_IN_SYS_TIME 1
36255 _ACEOF
36256
36257 fi
36258
36259 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
36260 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
36261 if test "${ac_cv_c_const+set}" = set; then
36262   $as_echo_n "(cached) " >&6
36263 else
36264   cat >conftest.$ac_ext <<_ACEOF
36265 /* confdefs.h.  */
36266 _ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h.  */
36270
36271 int
36272 main ()
36273 {
36274 /* FIXME: Include the comments suggested by Paul. */
36275 #ifndef __cplusplus
36276   /* Ultrix mips cc rejects this.  */
36277   typedef int charset[2];
36278   const charset cs;
36279   /* SunOS 4.1.1 cc rejects this.  */
36280   char const *const *pcpcc;
36281   char **ppc;
36282   /* NEC SVR4.0.2 mips cc rejects this.  */
36283   struct point {int x, y;};
36284   static struct point const zero = {0,0};
36285   /* AIX XL C 1.02.0.0 rejects this.
36286      It does not let you subtract one const X* pointer from another in
36287      an arm of an if-expression whose if-part is not a constant
36288      expression */
36289   const char *g = "string";
36290   pcpcc = &g + (g ? g-g : 0);
36291   /* HPUX 7.0 cc rejects these. */
36292   ++pcpcc;
36293   ppc = (char**) pcpcc;
36294   pcpcc = (char const *const *) ppc;
36295   { /* SCO 3.2v4 cc rejects this.  */
36296     char *t;
36297     char const *s = 0 ? (char *) 0 : (char const *) 0;
36298
36299     *t++ = 0;
36300     if (s) return 0;
36301   }
36302   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
36303     int x[] = {25, 17};
36304     const int *foo = &x[0];
36305     ++foo;
36306   }
36307   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
36308     typedef const int *iptr;
36309     iptr p = 0;
36310     ++p;
36311   }
36312   { /* AIX XL C 1.02.0.0 rejects this saying
36313        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
36314     struct s { int j; const int *ap[3]; };
36315     struct s *b; b->j = 5;
36316   }
36317   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
36318     const int foo = 10;
36319     if (!foo) return 0;
36320   }
36321   return !cs[0] && !zero.x;
36322 #endif
36323
36324   ;
36325   return 0;
36326 }
36327 _ACEOF
36328 rm -f conftest.$ac_objext
36329 if { (ac_try="$ac_compile"
36330 case "(($ac_try" in
36331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36332   *) ac_try_echo=$ac_try;;
36333 esac
36334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36335 $as_echo "$ac_try_echo") >&5
36336   (eval "$ac_compile") 2>conftest.er1
36337   ac_status=$?
36338   grep -v '^ *+' conftest.er1 >conftest.err
36339   rm -f conftest.er1
36340   cat conftest.err >&5
36341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342   (exit $ac_status); } && {
36343          test -z "$ac_c_werror_flag" ||
36344          test ! -s conftest.err
36345        } && test -s conftest.$ac_objext; then
36346   ac_cv_c_const=yes
36347 else
36348   $as_echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36350
36351         ac_cv_c_const=no
36352 fi
36353
36354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36355 fi
36356 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
36357 $as_echo "$ac_cv_c_const" >&6; }
36358 if test $ac_cv_c_const = no; then
36359
36360 cat >>confdefs.h <<\_ACEOF
36361 #define const /**/
36362 _ACEOF
36363
36364 fi
36365
36366
36367 # The cast to long int works around a bug in the HP C Compiler
36368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36370 # This bug is HP SR number 8606223364.
36371 { $as_echo "$as_me:$LINENO: checking size of char" >&5
36372 $as_echo_n "checking size of char... " >&6; }
36373 if test "${ac_cv_sizeof_char+set}" = set; then
36374   $as_echo_n "(cached) " >&6
36375 else
36376   if test "$cross_compiling" = yes; then
36377   # Depending upon the size, compute the lo and hi bounds.
36378 cat >conftest.$ac_ext <<_ACEOF
36379 /* confdefs.h.  */
36380 _ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h.  */
36384 $ac_includes_default
36385 int
36386 main ()
36387 {
36388 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
36389 test_array [0] = 0
36390
36391   ;
36392   return 0;
36393 }
36394 _ACEOF
36395 rm -f conftest.$ac_objext
36396 if { (ac_try="$ac_compile"
36397 case "(($ac_try" in
36398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36399   *) ac_try_echo=$ac_try;;
36400 esac
36401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36402 $as_echo "$ac_try_echo") >&5
36403   (eval "$ac_compile") 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } && {
36410          test -z "$ac_c_werror_flag" ||
36411          test ! -s conftest.err
36412        } && test -s conftest.$ac_objext; then
36413   ac_lo=0 ac_mid=0
36414   while :; do
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 int
36423 main ()
36424 {
36425 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36426 test_array [0] = 0
36427
36428   ;
36429   return 0;
36430 }
36431 _ACEOF
36432 rm -f conftest.$ac_objext
36433 if { (ac_try="$ac_compile"
36434 case "(($ac_try" in
36435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36436   *) ac_try_echo=$ac_try;;
36437 esac
36438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36439 $as_echo "$ac_try_echo") >&5
36440   (eval "$ac_compile") 2>conftest.er1
36441   ac_status=$?
36442   grep -v '^ *+' conftest.er1 >conftest.err
36443   rm -f conftest.er1
36444   cat conftest.err >&5
36445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); } && {
36447          test -z "$ac_c_werror_flag" ||
36448          test ! -s conftest.err
36449        } && test -s conftest.$ac_objext; then
36450   ac_hi=$ac_mid; break
36451 else
36452   $as_echo "$as_me: failed program was:" >&5
36453 sed 's/^/| /' conftest.$ac_ext >&5
36454
36455         ac_lo=`expr $ac_mid + 1`
36456                         if test $ac_lo -le $ac_mid; then
36457                           ac_lo= ac_hi=
36458                           break
36459                         fi
36460                         ac_mid=`expr 2 '*' $ac_mid + 1`
36461 fi
36462
36463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36464   done
36465 else
36466   $as_echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36468
36469         cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h.  */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h.  */
36475 $ac_includes_default
36476 int
36477 main ()
36478 {
36479 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36480 test_array [0] = 0
36481
36482   ;
36483   return 0;
36484 }
36485 _ACEOF
36486 rm -f conftest.$ac_objext
36487 if { (ac_try="$ac_compile"
36488 case "(($ac_try" in
36489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36490   *) ac_try_echo=$ac_try;;
36491 esac
36492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36493 $as_echo "$ac_try_echo") >&5
36494   (eval "$ac_compile") 2>conftest.er1
36495   ac_status=$?
36496   grep -v '^ *+' conftest.er1 >conftest.err
36497   rm -f conftest.er1
36498   cat conftest.err >&5
36499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); } && {
36501          test -z "$ac_c_werror_flag" ||
36502          test ! -s conftest.err
36503        } && test -s conftest.$ac_objext; then
36504   ac_hi=-1 ac_mid=-1
36505   while :; do
36506     cat >conftest.$ac_ext <<_ACEOF
36507 /* confdefs.h.  */
36508 _ACEOF
36509 cat confdefs.h >>conftest.$ac_ext
36510 cat >>conftest.$ac_ext <<_ACEOF
36511 /* end confdefs.h.  */
36512 $ac_includes_default
36513 int
36514 main ()
36515 {
36516 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36517 test_array [0] = 0
36518
36519   ;
36520   return 0;
36521 }
36522 _ACEOF
36523 rm -f conftest.$ac_objext
36524 if { (ac_try="$ac_compile"
36525 case "(($ac_try" in
36526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36527   *) ac_try_echo=$ac_try;;
36528 esac
36529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36530 $as_echo "$ac_try_echo") >&5
36531   (eval "$ac_compile") 2>conftest.er1
36532   ac_status=$?
36533   grep -v '^ *+' conftest.er1 >conftest.err
36534   rm -f conftest.er1
36535   cat conftest.err >&5
36536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537   (exit $ac_status); } && {
36538          test -z "$ac_c_werror_flag" ||
36539          test ! -s conftest.err
36540        } && test -s conftest.$ac_objext; then
36541   ac_lo=$ac_mid; break
36542 else
36543   $as_echo "$as_me: failed program was:" >&5
36544 sed 's/^/| /' conftest.$ac_ext >&5
36545
36546         ac_hi=`expr '(' $ac_mid ')' - 1`
36547                         if test $ac_mid -le $ac_hi; then
36548                           ac_lo= ac_hi=
36549                           break
36550                         fi
36551                         ac_mid=`expr 2 '*' $ac_mid`
36552 fi
36553
36554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36555   done
36556 else
36557   $as_echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36559
36560         ac_lo= ac_hi=
36561 fi
36562
36563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36564 fi
36565
36566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36567 # Binary search between lo and hi bounds.
36568 while test "x$ac_lo" != "x$ac_hi"; do
36569   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
36578 main ()
36579 {
36580 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36581 test_array [0] = 0
36582
36583   ;
36584   return 0;
36585 }
36586 _ACEOF
36587 rm -f conftest.$ac_objext
36588 if { (ac_try="$ac_compile"
36589 case "(($ac_try" in
36590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36591   *) ac_try_echo=$ac_try;;
36592 esac
36593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36594 $as_echo "$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   $as_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_hi=$ac_mid
36606 else
36607   $as_echo "$as_me: failed program was:" >&5
36608 sed 's/^/| /' conftest.$ac_ext >&5
36609
36610         ac_lo=`expr '(' $ac_mid ')' + 1`
36611 fi
36612
36613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36614 done
36615 case $ac_lo in
36616 ?*) ac_cv_sizeof_char=$ac_lo;;
36617 '') if test "$ac_cv_type_char" = yes; then
36618      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36620 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36621 See \`config.log' for more details." >&5
36622 $as_echo "$as_me: error: cannot compute sizeof (char)
36623 See \`config.log' for more details." >&2;}
36624    { (exit 77); exit 77; }; }; }
36625    else
36626      ac_cv_sizeof_char=0
36627    fi ;;
36628 esac
36629 else
36630   cat >conftest.$ac_ext <<_ACEOF
36631 /* confdefs.h.  */
36632 _ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h.  */
36636 $ac_includes_default
36637 static long int longval () { return (long int) (sizeof (char)); }
36638 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36639 #include <stdio.h>
36640 #include <stdlib.h>
36641 int
36642 main ()
36643 {
36644
36645   FILE *f = fopen ("conftest.val", "w");
36646   if (! f)
36647     return 1;
36648   if (((long int) (sizeof (char))) < 0)
36649     {
36650       long int i = longval ();
36651       if (i != ((long int) (sizeof (char))))
36652         return 1;
36653       fprintf (f, "%ld", i);
36654     }
36655   else
36656     {
36657       unsigned long int i = ulongval ();
36658       if (i != ((long int) (sizeof (char))))
36659         return 1;
36660       fprintf (f, "%lu", i);
36661     }
36662   /* Do not output a trailing newline, as this causes \r\n confusion
36663      on some platforms.  */
36664   return ferror (f) || fclose (f) != 0;
36665
36666   ;
36667   return 0;
36668 }
36669 _ACEOF
36670 rm -f conftest$ac_exeext
36671 if { (ac_try="$ac_link"
36672 case "(($ac_try" in
36673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36674   *) ac_try_echo=$ac_try;;
36675 esac
36676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36677 $as_echo "$ac_try_echo") >&5
36678   (eval "$ac_link") 2>&5
36679   ac_status=$?
36680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36682   { (case "(($ac_try" in
36683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36684   *) ac_try_echo=$ac_try;;
36685 esac
36686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36687 $as_echo "$ac_try_echo") >&5
36688   (eval "$ac_try") 2>&5
36689   ac_status=$?
36690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691   (exit $ac_status); }; }; then
36692   ac_cv_sizeof_char=`cat conftest.val`
36693 else
36694   $as_echo "$as_me: program exited with status $ac_status" >&5
36695 $as_echo "$as_me: failed program was:" >&5
36696 sed 's/^/| /' conftest.$ac_ext >&5
36697
36698 ( exit $ac_status )
36699 if test "$ac_cv_type_char" = yes; then
36700      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36702 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36703 See \`config.log' for more details." >&5
36704 $as_echo "$as_me: error: cannot compute sizeof (char)
36705 See \`config.log' for more details." >&2;}
36706    { (exit 77); exit 77; }; }; }
36707    else
36708      ac_cv_sizeof_char=0
36709    fi
36710 fi
36711 rm -rf conftest.dSYM
36712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36713 fi
36714 rm -f conftest.val
36715 fi
36716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
36717 $as_echo "$ac_cv_sizeof_char" >&6; }
36718
36719
36720
36721 cat >>confdefs.h <<_ACEOF
36722 #define SIZEOF_CHAR $ac_cv_sizeof_char
36723 _ACEOF
36724
36725
36726 # The cast to long int works around a bug in the HP C Compiler
36727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36729 # This bug is HP SR number 8606223364.
36730 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
36731 $as_echo_n "checking size of short int... " >&6; }
36732 if test "${ac_cv_sizeof_short_int+set}" = set; then
36733   $as_echo_n "(cached) " >&6
36734 else
36735   if test "$cross_compiling" = yes; then
36736   # Depending upon the size, compute the lo and hi bounds.
36737 cat >conftest.$ac_ext <<_ACEOF
36738 /* confdefs.h.  */
36739 _ACEOF
36740 cat confdefs.h >>conftest.$ac_ext
36741 cat >>conftest.$ac_ext <<_ACEOF
36742 /* end confdefs.h.  */
36743 $ac_includes_default
36744 int
36745 main ()
36746 {
36747 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
36748 test_array [0] = 0
36749
36750   ;
36751   return 0;
36752 }
36753 _ACEOF
36754 rm -f conftest.$ac_objext
36755 if { (ac_try="$ac_compile"
36756 case "(($ac_try" in
36757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36758   *) ac_try_echo=$ac_try;;
36759 esac
36760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36761 $as_echo "$ac_try_echo") >&5
36762   (eval "$ac_compile") 2>conftest.er1
36763   ac_status=$?
36764   grep -v '^ *+' conftest.er1 >conftest.err
36765   rm -f conftest.er1
36766   cat conftest.err >&5
36767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); } && {
36769          test -z "$ac_c_werror_flag" ||
36770          test ! -s conftest.err
36771        } && test -s conftest.$ac_objext; then
36772   ac_lo=0 ac_mid=0
36773   while :; do
36774     cat >conftest.$ac_ext <<_ACEOF
36775 /* confdefs.h.  */
36776 _ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h.  */
36780 $ac_includes_default
36781 int
36782 main ()
36783 {
36784 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36785 test_array [0] = 0
36786
36787   ;
36788   return 0;
36789 }
36790 _ACEOF
36791 rm -f conftest.$ac_objext
36792 if { (ac_try="$ac_compile"
36793 case "(($ac_try" in
36794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36795   *) ac_try_echo=$ac_try;;
36796 esac
36797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36798 $as_echo "$ac_try_echo") >&5
36799   (eval "$ac_compile") 2>conftest.er1
36800   ac_status=$?
36801   grep -v '^ *+' conftest.er1 >conftest.err
36802   rm -f conftest.er1
36803   cat conftest.err >&5
36804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); } && {
36806          test -z "$ac_c_werror_flag" ||
36807          test ! -s conftest.err
36808        } && test -s conftest.$ac_objext; then
36809   ac_hi=$ac_mid; break
36810 else
36811   $as_echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36813
36814         ac_lo=`expr $ac_mid + 1`
36815                         if test $ac_lo -le $ac_mid; then
36816                           ac_lo= ac_hi=
36817                           break
36818                         fi
36819                         ac_mid=`expr 2 '*' $ac_mid + 1`
36820 fi
36821
36822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36823   done
36824 else
36825   $as_echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36827
36828         cat >conftest.$ac_ext <<_ACEOF
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834 $ac_includes_default
36835 int
36836 main ()
36837 {
36838 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
36839 test_array [0] = 0
36840
36841   ;
36842   return 0;
36843 }
36844 _ACEOF
36845 rm -f conftest.$ac_objext
36846 if { (ac_try="$ac_compile"
36847 case "(($ac_try" in
36848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36849   *) ac_try_echo=$ac_try;;
36850 esac
36851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36852 $as_echo "$ac_try_echo") >&5
36853   (eval "$ac_compile") 2>conftest.er1
36854   ac_status=$?
36855   grep -v '^ *+' conftest.er1 >conftest.err
36856   rm -f conftest.er1
36857   cat conftest.err >&5
36858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859   (exit $ac_status); } && {
36860          test -z "$ac_c_werror_flag" ||
36861          test ! -s conftest.err
36862        } && test -s conftest.$ac_objext; then
36863   ac_hi=-1 ac_mid=-1
36864   while :; do
36865     cat >conftest.$ac_ext <<_ACEOF
36866 /* confdefs.h.  */
36867 _ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h.  */
36871 $ac_includes_default
36872 int
36873 main ()
36874 {
36875 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
36876 test_array [0] = 0
36877
36878   ;
36879   return 0;
36880 }
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (ac_try="$ac_compile"
36884 case "(($ac_try" in
36885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886   *) ac_try_echo=$ac_try;;
36887 esac
36888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36889 $as_echo "$ac_try_echo") >&5
36890   (eval "$ac_compile") 2>conftest.er1
36891   ac_status=$?
36892   grep -v '^ *+' conftest.er1 >conftest.err
36893   rm -f conftest.er1
36894   cat conftest.err >&5
36895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896   (exit $ac_status); } && {
36897          test -z "$ac_c_werror_flag" ||
36898          test ! -s conftest.err
36899        } && test -s conftest.$ac_objext; then
36900   ac_lo=$ac_mid; break
36901 else
36902   $as_echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905         ac_hi=`expr '(' $ac_mid ')' - 1`
36906                         if test $ac_mid -le $ac_hi; then
36907                           ac_lo= ac_hi=
36908                           break
36909                         fi
36910                         ac_mid=`expr 2 '*' $ac_mid`
36911 fi
36912
36913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36914   done
36915 else
36916   $as_echo "$as_me: failed program was:" >&5
36917 sed 's/^/| /' conftest.$ac_ext >&5
36918
36919         ac_lo= ac_hi=
36920 fi
36921
36922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36923 fi
36924
36925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36926 # Binary search between lo and hi bounds.
36927 while test "x$ac_lo" != "x$ac_hi"; do
36928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36929   cat >conftest.$ac_ext <<_ACEOF
36930 /* confdefs.h.  */
36931 _ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h.  */
36935 $ac_includes_default
36936 int
36937 main ()
36938 {
36939 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36940 test_array [0] = 0
36941
36942   ;
36943   return 0;
36944 }
36945 _ACEOF
36946 rm -f conftest.$ac_objext
36947 if { (ac_try="$ac_compile"
36948 case "(($ac_try" in
36949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36950   *) ac_try_echo=$ac_try;;
36951 esac
36952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36953 $as_echo "$ac_try_echo") >&5
36954   (eval "$ac_compile") 2>conftest.er1
36955   ac_status=$?
36956   grep -v '^ *+' conftest.er1 >conftest.err
36957   rm -f conftest.er1
36958   cat conftest.err >&5
36959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960   (exit $ac_status); } && {
36961          test -z "$ac_c_werror_flag" ||
36962          test ! -s conftest.err
36963        } && test -s conftest.$ac_objext; then
36964   ac_hi=$ac_mid
36965 else
36966   $as_echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36968
36969         ac_lo=`expr '(' $ac_mid ')' + 1`
36970 fi
36971
36972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36973 done
36974 case $ac_lo in
36975 ?*) ac_cv_sizeof_short_int=$ac_lo;;
36976 '') if test "$ac_cv_type_short_int" = yes; then
36977      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36979 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
36980 See \`config.log' for more details." >&5
36981 $as_echo "$as_me: error: cannot compute sizeof (short int)
36982 See \`config.log' for more details." >&2;}
36983    { (exit 77); exit 77; }; }; }
36984    else
36985      ac_cv_sizeof_short_int=0
36986    fi ;;
36987 esac
36988 else
36989   cat >conftest.$ac_ext <<_ACEOF
36990 /* confdefs.h.  */
36991 _ACEOF
36992 cat confdefs.h >>conftest.$ac_ext
36993 cat >>conftest.$ac_ext <<_ACEOF
36994 /* end confdefs.h.  */
36995 $ac_includes_default
36996 static long int longval () { return (long int) (sizeof (short int)); }
36997 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
36998 #include <stdio.h>
36999 #include <stdlib.h>
37000 int
37001 main ()
37002 {
37003
37004   FILE *f = fopen ("conftest.val", "w");
37005   if (! f)
37006     return 1;
37007   if (((long int) (sizeof (short int))) < 0)
37008     {
37009       long int i = longval ();
37010       if (i != ((long int) (sizeof (short int))))
37011         return 1;
37012       fprintf (f, "%ld", i);
37013     }
37014   else
37015     {
37016       unsigned long int i = ulongval ();
37017       if (i != ((long int) (sizeof (short int))))
37018         return 1;
37019       fprintf (f, "%lu", i);
37020     }
37021   /* Do not output a trailing newline, as this causes \r\n confusion
37022      on some platforms.  */
37023   return ferror (f) || fclose (f) != 0;
37024
37025   ;
37026   return 0;
37027 }
37028 _ACEOF
37029 rm -f conftest$ac_exeext
37030 if { (ac_try="$ac_link"
37031 case "(($ac_try" in
37032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37033   *) ac_try_echo=$ac_try;;
37034 esac
37035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37036 $as_echo "$ac_try_echo") >&5
37037   (eval "$ac_link") 2>&5
37038   ac_status=$?
37039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37041   { (case "(($ac_try" in
37042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37043   *) ac_try_echo=$ac_try;;
37044 esac
37045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37046 $as_echo "$ac_try_echo") >&5
37047   (eval "$ac_try") 2>&5
37048   ac_status=$?
37049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050   (exit $ac_status); }; }; then
37051   ac_cv_sizeof_short_int=`cat conftest.val`
37052 else
37053   $as_echo "$as_me: program exited with status $ac_status" >&5
37054 $as_echo "$as_me: failed program was:" >&5
37055 sed 's/^/| /' conftest.$ac_ext >&5
37056
37057 ( exit $ac_status )
37058 if test "$ac_cv_type_short_int" = yes; then
37059      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37061 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37062 See \`config.log' for more details." >&5
37063 $as_echo "$as_me: error: cannot compute sizeof (short int)
37064 See \`config.log' for more details." >&2;}
37065    { (exit 77); exit 77; }; }; }
37066    else
37067      ac_cv_sizeof_short_int=0
37068    fi
37069 fi
37070 rm -rf conftest.dSYM
37071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37072 fi
37073 rm -f conftest.val
37074 fi
37075 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37076 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37077
37078
37079
37080 cat >>confdefs.h <<_ACEOF
37081 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37082 _ACEOF
37083
37084
37085 # The cast to long int works around a bug in the HP C Compiler
37086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37088 # This bug is HP SR number 8606223364.
37089 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37090 $as_echo_n "checking size of int... " >&6; }
37091 if test "${ac_cv_sizeof_int+set}" = set; then
37092   $as_echo_n "(cached) " >&6
37093 else
37094   if test "$cross_compiling" = yes; then
37095   # Depending upon the size, compute the lo and hi bounds.
37096 cat >conftest.$ac_ext <<_ACEOF
37097 /* confdefs.h.  */
37098 _ACEOF
37099 cat confdefs.h >>conftest.$ac_ext
37100 cat >>conftest.$ac_ext <<_ACEOF
37101 /* end confdefs.h.  */
37102 $ac_includes_default
37103 int
37104 main ()
37105 {
37106 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37107 test_array [0] = 0
37108
37109   ;
37110   return 0;
37111 }
37112 _ACEOF
37113 rm -f conftest.$ac_objext
37114 if { (ac_try="$ac_compile"
37115 case "(($ac_try" in
37116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37117   *) ac_try_echo=$ac_try;;
37118 esac
37119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37120 $as_echo "$ac_try_echo") >&5
37121   (eval "$ac_compile") 2>conftest.er1
37122   ac_status=$?
37123   grep -v '^ *+' conftest.er1 >conftest.err
37124   rm -f conftest.er1
37125   cat conftest.err >&5
37126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); } && {
37128          test -z "$ac_c_werror_flag" ||
37129          test ! -s conftest.err
37130        } && test -s conftest.$ac_objext; then
37131   ac_lo=0 ac_mid=0
37132   while :; do
37133     cat >conftest.$ac_ext <<_ACEOF
37134 /* confdefs.h.  */
37135 _ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h.  */
37139 $ac_includes_default
37140 int
37141 main ()
37142 {
37143 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37144 test_array [0] = 0
37145
37146   ;
37147   return 0;
37148 }
37149 _ACEOF
37150 rm -f conftest.$ac_objext
37151 if { (ac_try="$ac_compile"
37152 case "(($ac_try" in
37153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37154   *) ac_try_echo=$ac_try;;
37155 esac
37156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37157 $as_echo "$ac_try_echo") >&5
37158   (eval "$ac_compile") 2>conftest.er1
37159   ac_status=$?
37160   grep -v '^ *+' conftest.er1 >conftest.err
37161   rm -f conftest.er1
37162   cat conftest.err >&5
37163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164   (exit $ac_status); } && {
37165          test -z "$ac_c_werror_flag" ||
37166          test ! -s conftest.err
37167        } && test -s conftest.$ac_objext; then
37168   ac_hi=$ac_mid; break
37169 else
37170   $as_echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37172
37173         ac_lo=`expr $ac_mid + 1`
37174                         if test $ac_lo -le $ac_mid; then
37175                           ac_lo= ac_hi=
37176                           break
37177                         fi
37178                         ac_mid=`expr 2 '*' $ac_mid + 1`
37179 fi
37180
37181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37182   done
37183 else
37184   $as_echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37186
37187         cat >conftest.$ac_ext <<_ACEOF
37188 /* confdefs.h.  */
37189 _ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h.  */
37193 $ac_includes_default
37194 int
37195 main ()
37196 {
37197 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37198 test_array [0] = 0
37199
37200   ;
37201   return 0;
37202 }
37203 _ACEOF
37204 rm -f conftest.$ac_objext
37205 if { (ac_try="$ac_compile"
37206 case "(($ac_try" in
37207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37208   *) ac_try_echo=$ac_try;;
37209 esac
37210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37211 $as_echo "$ac_try_echo") >&5
37212   (eval "$ac_compile") 2>conftest.er1
37213   ac_status=$?
37214   grep -v '^ *+' conftest.er1 >conftest.err
37215   rm -f conftest.er1
37216   cat conftest.err >&5
37217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); } && {
37219          test -z "$ac_c_werror_flag" ||
37220          test ! -s conftest.err
37221        } && test -s conftest.$ac_objext; then
37222   ac_hi=-1 ac_mid=-1
37223   while :; do
37224     cat >conftest.$ac_ext <<_ACEOF
37225 /* confdefs.h.  */
37226 _ACEOF
37227 cat confdefs.h >>conftest.$ac_ext
37228 cat >>conftest.$ac_ext <<_ACEOF
37229 /* end confdefs.h.  */
37230 $ac_includes_default
37231 int
37232 main ()
37233 {
37234 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
37235 test_array [0] = 0
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37248 $as_echo "$ac_try_echo") >&5
37249   (eval "$ac_compile") 2>conftest.er1
37250   ac_status=$?
37251   grep -v '^ *+' conftest.er1 >conftest.err
37252   rm -f conftest.er1
37253   cat conftest.err >&5
37254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); } && {
37256          test -z "$ac_c_werror_flag" ||
37257          test ! -s conftest.err
37258        } && test -s conftest.$ac_objext; then
37259   ac_lo=$ac_mid; break
37260 else
37261   $as_echo "$as_me: failed program was:" >&5
37262 sed 's/^/| /' conftest.$ac_ext >&5
37263
37264         ac_hi=`expr '(' $ac_mid ')' - 1`
37265                         if test $ac_mid -le $ac_hi; then
37266                           ac_lo= ac_hi=
37267                           break
37268                         fi
37269                         ac_mid=`expr 2 '*' $ac_mid`
37270 fi
37271
37272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37273   done
37274 else
37275   $as_echo "$as_me: failed program was:" >&5
37276 sed 's/^/| /' conftest.$ac_ext >&5
37277
37278         ac_lo= ac_hi=
37279 fi
37280
37281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37282 fi
37283
37284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37285 # Binary search between lo and hi bounds.
37286 while test "x$ac_lo" != "x$ac_hi"; do
37287   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37288   cat >conftest.$ac_ext <<_ACEOF
37289 /* confdefs.h.  */
37290 _ACEOF
37291 cat confdefs.h >>conftest.$ac_ext
37292 cat >>conftest.$ac_ext <<_ACEOF
37293 /* end confdefs.h.  */
37294 $ac_includes_default
37295 int
37296 main ()
37297 {
37298 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37299 test_array [0] = 0
37300
37301   ;
37302   return 0;
37303 }
37304 _ACEOF
37305 rm -f conftest.$ac_objext
37306 if { (ac_try="$ac_compile"
37307 case "(($ac_try" in
37308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37309   *) ac_try_echo=$ac_try;;
37310 esac
37311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37312 $as_echo "$ac_try_echo") >&5
37313   (eval "$ac_compile") 2>conftest.er1
37314   ac_status=$?
37315   grep -v '^ *+' conftest.er1 >conftest.err
37316   rm -f conftest.er1
37317   cat conftest.err >&5
37318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319   (exit $ac_status); } && {
37320          test -z "$ac_c_werror_flag" ||
37321          test ! -s conftest.err
37322        } && test -s conftest.$ac_objext; then
37323   ac_hi=$ac_mid
37324 else
37325   $as_echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37327
37328         ac_lo=`expr '(' $ac_mid ')' + 1`
37329 fi
37330
37331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37332 done
37333 case $ac_lo in
37334 ?*) ac_cv_sizeof_int=$ac_lo;;
37335 '') if test "$ac_cv_type_int" = yes; then
37336      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37338 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37339 See \`config.log' for more details." >&5
37340 $as_echo "$as_me: error: cannot compute sizeof (int)
37341 See \`config.log' for more details." >&2;}
37342    { (exit 77); exit 77; }; }; }
37343    else
37344      ac_cv_sizeof_int=0
37345    fi ;;
37346 esac
37347 else
37348   cat >conftest.$ac_ext <<_ACEOF
37349 /* confdefs.h.  */
37350 _ACEOF
37351 cat confdefs.h >>conftest.$ac_ext
37352 cat >>conftest.$ac_ext <<_ACEOF
37353 /* end confdefs.h.  */
37354 $ac_includes_default
37355 static long int longval () { return (long int) (sizeof (int)); }
37356 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
37357 #include <stdio.h>
37358 #include <stdlib.h>
37359 int
37360 main ()
37361 {
37362
37363   FILE *f = fopen ("conftest.val", "w");
37364   if (! f)
37365     return 1;
37366   if (((long int) (sizeof (int))) < 0)
37367     {
37368       long int i = longval ();
37369       if (i != ((long int) (sizeof (int))))
37370         return 1;
37371       fprintf (f, "%ld", i);
37372     }
37373   else
37374     {
37375       unsigned long int i = ulongval ();
37376       if (i != ((long int) (sizeof (int))))
37377         return 1;
37378       fprintf (f, "%lu", i);
37379     }
37380   /* Do not output a trailing newline, as this causes \r\n confusion
37381      on some platforms.  */
37382   return ferror (f) || fclose (f) != 0;
37383
37384   ;
37385   return 0;
37386 }
37387 _ACEOF
37388 rm -f conftest$ac_exeext
37389 if { (ac_try="$ac_link"
37390 case "(($ac_try" in
37391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37392   *) ac_try_echo=$ac_try;;
37393 esac
37394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37395 $as_echo "$ac_try_echo") >&5
37396   (eval "$ac_link") 2>&5
37397   ac_status=$?
37398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37400   { (case "(($ac_try" in
37401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37402   *) ac_try_echo=$ac_try;;
37403 esac
37404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37405 $as_echo "$ac_try_echo") >&5
37406   (eval "$ac_try") 2>&5
37407   ac_status=$?
37408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409   (exit $ac_status); }; }; then
37410   ac_cv_sizeof_int=`cat conftest.val`
37411 else
37412   $as_echo "$as_me: program exited with status $ac_status" >&5
37413 $as_echo "$as_me: failed program was:" >&5
37414 sed 's/^/| /' conftest.$ac_ext >&5
37415
37416 ( exit $ac_status )
37417 if test "$ac_cv_type_int" = yes; then
37418      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37420 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37421 See \`config.log' for more details." >&5
37422 $as_echo "$as_me: error: cannot compute sizeof (int)
37423 See \`config.log' for more details." >&2;}
37424    { (exit 77); exit 77; }; }; }
37425    else
37426      ac_cv_sizeof_int=0
37427    fi
37428 fi
37429 rm -rf conftest.dSYM
37430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37431 fi
37432 rm -f conftest.val
37433 fi
37434 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
37435 $as_echo "$ac_cv_sizeof_int" >&6; }
37436
37437
37438
37439 cat >>confdefs.h <<_ACEOF
37440 #define SIZEOF_INT $ac_cv_sizeof_int
37441 _ACEOF
37442
37443
37444 # The cast to long int works around a bug in the HP C Compiler
37445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37447 # This bug is HP SR number 8606223364.
37448 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
37449 $as_echo_n "checking size of long int... " >&6; }
37450 if test "${ac_cv_sizeof_long_int+set}" = set; then
37451   $as_echo_n "(cached) " >&6
37452 else
37453   if test "$cross_compiling" = yes; then
37454   # Depending upon the size, compute the lo and hi bounds.
37455 cat >conftest.$ac_ext <<_ACEOF
37456 /* confdefs.h.  */
37457 _ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h.  */
37461 $ac_includes_default
37462 int
37463 main ()
37464 {
37465 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
37466 test_array [0] = 0
37467
37468   ;
37469   return 0;
37470 }
37471 _ACEOF
37472 rm -f conftest.$ac_objext
37473 if { (ac_try="$ac_compile"
37474 case "(($ac_try" in
37475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37476   *) ac_try_echo=$ac_try;;
37477 esac
37478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37479 $as_echo "$ac_try_echo") >&5
37480   (eval "$ac_compile") 2>conftest.er1
37481   ac_status=$?
37482   grep -v '^ *+' conftest.er1 >conftest.err
37483   rm -f conftest.er1
37484   cat conftest.err >&5
37485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486   (exit $ac_status); } && {
37487          test -z "$ac_c_werror_flag" ||
37488          test ! -s conftest.err
37489        } && test -s conftest.$ac_objext; then
37490   ac_lo=0 ac_mid=0
37491   while :; do
37492     cat >conftest.$ac_ext <<_ACEOF
37493 /* confdefs.h.  */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h.  */
37498 $ac_includes_default
37499 int
37500 main ()
37501 {
37502 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37503 test_array [0] = 0
37504
37505   ;
37506   return 0;
37507 }
37508 _ACEOF
37509 rm -f conftest.$ac_objext
37510 if { (ac_try="$ac_compile"
37511 case "(($ac_try" in
37512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37513   *) ac_try_echo=$ac_try;;
37514 esac
37515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37516 $as_echo "$ac_try_echo") >&5
37517   (eval "$ac_compile") 2>conftest.er1
37518   ac_status=$?
37519   grep -v '^ *+' conftest.er1 >conftest.err
37520   rm -f conftest.er1
37521   cat conftest.err >&5
37522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37523   (exit $ac_status); } && {
37524          test -z "$ac_c_werror_flag" ||
37525          test ! -s conftest.err
37526        } && test -s conftest.$ac_objext; then
37527   ac_hi=$ac_mid; break
37528 else
37529   $as_echo "$as_me: failed program was:" >&5
37530 sed 's/^/| /' conftest.$ac_ext >&5
37531
37532         ac_lo=`expr $ac_mid + 1`
37533                         if test $ac_lo -le $ac_mid; then
37534                           ac_lo= ac_hi=
37535                           break
37536                         fi
37537                         ac_mid=`expr 2 '*' $ac_mid + 1`
37538 fi
37539
37540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37541   done
37542 else
37543   $as_echo "$as_me: failed program was:" >&5
37544 sed 's/^/| /' conftest.$ac_ext >&5
37545
37546         cat >conftest.$ac_ext <<_ACEOF
37547 /* confdefs.h.  */
37548 _ACEOF
37549 cat confdefs.h >>conftest.$ac_ext
37550 cat >>conftest.$ac_ext <<_ACEOF
37551 /* end confdefs.h.  */
37552 $ac_includes_default
37553 int
37554 main ()
37555 {
37556 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
37557 test_array [0] = 0
37558
37559   ;
37560   return 0;
37561 }
37562 _ACEOF
37563 rm -f conftest.$ac_objext
37564 if { (ac_try="$ac_compile"
37565 case "(($ac_try" in
37566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37567   *) ac_try_echo=$ac_try;;
37568 esac
37569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37570 $as_echo "$ac_try_echo") >&5
37571   (eval "$ac_compile") 2>conftest.er1
37572   ac_status=$?
37573   grep -v '^ *+' conftest.er1 >conftest.err
37574   rm -f conftest.er1
37575   cat conftest.err >&5
37576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577   (exit $ac_status); } && {
37578          test -z "$ac_c_werror_flag" ||
37579          test ! -s conftest.err
37580        } && test -s conftest.$ac_objext; then
37581   ac_hi=-1 ac_mid=-1
37582   while :; do
37583     cat >conftest.$ac_ext <<_ACEOF
37584 /* confdefs.h.  */
37585 _ACEOF
37586 cat confdefs.h >>conftest.$ac_ext
37587 cat >>conftest.$ac_ext <<_ACEOF
37588 /* end confdefs.h.  */
37589 $ac_includes_default
37590 int
37591 main ()
37592 {
37593 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
37594 test_array [0] = 0
37595
37596   ;
37597   return 0;
37598 }
37599 _ACEOF
37600 rm -f conftest.$ac_objext
37601 if { (ac_try="$ac_compile"
37602 case "(($ac_try" in
37603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37604   *) ac_try_echo=$ac_try;;
37605 esac
37606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37607 $as_echo "$ac_try_echo") >&5
37608   (eval "$ac_compile") 2>conftest.er1
37609   ac_status=$?
37610   grep -v '^ *+' conftest.er1 >conftest.err
37611   rm -f conftest.er1
37612   cat conftest.err >&5
37613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); } && {
37615          test -z "$ac_c_werror_flag" ||
37616          test ! -s conftest.err
37617        } && test -s conftest.$ac_objext; then
37618   ac_lo=$ac_mid; break
37619 else
37620   $as_echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37622
37623         ac_hi=`expr '(' $ac_mid ')' - 1`
37624                         if test $ac_mid -le $ac_hi; then
37625                           ac_lo= ac_hi=
37626                           break
37627                         fi
37628                         ac_mid=`expr 2 '*' $ac_mid`
37629 fi
37630
37631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37632   done
37633 else
37634   $as_echo "$as_me: failed program was:" >&5
37635 sed 's/^/| /' conftest.$ac_ext >&5
37636
37637         ac_lo= ac_hi=
37638 fi
37639
37640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37641 fi
37642
37643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37644 # Binary search between lo and hi bounds.
37645 while test "x$ac_lo" != "x$ac_hi"; do
37646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37647   cat >conftest.$ac_ext <<_ACEOF
37648 /* confdefs.h.  */
37649 _ACEOF
37650 cat confdefs.h >>conftest.$ac_ext
37651 cat >>conftest.$ac_ext <<_ACEOF
37652 /* end confdefs.h.  */
37653 $ac_includes_default
37654 int
37655 main ()
37656 {
37657 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37658 test_array [0] = 0
37659
37660   ;
37661   return 0;
37662 }
37663 _ACEOF
37664 rm -f conftest.$ac_objext
37665 if { (ac_try="$ac_compile"
37666 case "(($ac_try" in
37667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37668   *) ac_try_echo=$ac_try;;
37669 esac
37670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37671 $as_echo "$ac_try_echo") >&5
37672   (eval "$ac_compile") 2>conftest.er1
37673   ac_status=$?
37674   grep -v '^ *+' conftest.er1 >conftest.err
37675   rm -f conftest.er1
37676   cat conftest.err >&5
37677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); } && {
37679          test -z "$ac_c_werror_flag" ||
37680          test ! -s conftest.err
37681        } && test -s conftest.$ac_objext; then
37682   ac_hi=$ac_mid
37683 else
37684   $as_echo "$as_me: failed program was:" >&5
37685 sed 's/^/| /' conftest.$ac_ext >&5
37686
37687         ac_lo=`expr '(' $ac_mid ')' + 1`
37688 fi
37689
37690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37691 done
37692 case $ac_lo in
37693 ?*) ac_cv_sizeof_long_int=$ac_lo;;
37694 '') if test "$ac_cv_type_long_int" = yes; then
37695      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37697 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37698 See \`config.log' for more details." >&5
37699 $as_echo "$as_me: error: cannot compute sizeof (long int)
37700 See \`config.log' for more details." >&2;}
37701    { (exit 77); exit 77; }; }; }
37702    else
37703      ac_cv_sizeof_long_int=0
37704    fi ;;
37705 esac
37706 else
37707   cat >conftest.$ac_ext <<_ACEOF
37708 /* confdefs.h.  */
37709 _ACEOF
37710 cat confdefs.h >>conftest.$ac_ext
37711 cat >>conftest.$ac_ext <<_ACEOF
37712 /* end confdefs.h.  */
37713 $ac_includes_default
37714 static long int longval () { return (long int) (sizeof (long int)); }
37715 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
37716 #include <stdio.h>
37717 #include <stdlib.h>
37718 int
37719 main ()
37720 {
37721
37722   FILE *f = fopen ("conftest.val", "w");
37723   if (! f)
37724     return 1;
37725   if (((long int) (sizeof (long int))) < 0)
37726     {
37727       long int i = longval ();
37728       if (i != ((long int) (sizeof (long int))))
37729         return 1;
37730       fprintf (f, "%ld", i);
37731     }
37732   else
37733     {
37734       unsigned long int i = ulongval ();
37735       if (i != ((long int) (sizeof (long int))))
37736         return 1;
37737       fprintf (f, "%lu", i);
37738     }
37739   /* Do not output a trailing newline, as this causes \r\n confusion
37740      on some platforms.  */
37741   return ferror (f) || fclose (f) != 0;
37742
37743   ;
37744   return 0;
37745 }
37746 _ACEOF
37747 rm -f conftest$ac_exeext
37748 if { (ac_try="$ac_link"
37749 case "(($ac_try" in
37750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37751   *) ac_try_echo=$ac_try;;
37752 esac
37753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37754 $as_echo "$ac_try_echo") >&5
37755   (eval "$ac_link") 2>&5
37756   ac_status=$?
37757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37759   { (case "(($ac_try" in
37760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37761   *) ac_try_echo=$ac_try;;
37762 esac
37763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37764 $as_echo "$ac_try_echo") >&5
37765   (eval "$ac_try") 2>&5
37766   ac_status=$?
37767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768   (exit $ac_status); }; }; then
37769   ac_cv_sizeof_long_int=`cat conftest.val`
37770 else
37771   $as_echo "$as_me: program exited with status $ac_status" >&5
37772 $as_echo "$as_me: failed program was:" >&5
37773 sed 's/^/| /' conftest.$ac_ext >&5
37774
37775 ( exit $ac_status )
37776 if test "$ac_cv_type_long_int" = yes; then
37777      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37779 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37780 See \`config.log' for more details." >&5
37781 $as_echo "$as_me: error: cannot compute sizeof (long int)
37782 See \`config.log' for more details." >&2;}
37783    { (exit 77); exit 77; }; }; }
37784    else
37785      ac_cv_sizeof_long_int=0
37786    fi
37787 fi
37788 rm -rf conftest.dSYM
37789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37790 fi
37791 rm -f conftest.val
37792 fi
37793 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
37794 $as_echo "$ac_cv_sizeof_long_int" >&6; }
37795
37796
37797
37798 cat >>confdefs.h <<_ACEOF
37799 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
37800 _ACEOF
37801
37802
37803 # The cast to long int works around a bug in the HP C Compiler
37804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37806 # This bug is HP SR number 8606223364.
37807 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
37808 $as_echo_n "checking size of long long int... " >&6; }
37809 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
37810   $as_echo_n "(cached) " >&6
37811 else
37812   if test "$cross_compiling" = yes; then
37813   # Depending upon the size, compute the lo and hi bounds.
37814 cat >conftest.$ac_ext <<_ACEOF
37815 /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820 $ac_includes_default
37821 int
37822 main ()
37823 {
37824 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
37825 test_array [0] = 0
37826
37827   ;
37828   return 0;
37829 }
37830 _ACEOF
37831 rm -f conftest.$ac_objext
37832 if { (ac_try="$ac_compile"
37833 case "(($ac_try" in
37834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37835   *) ac_try_echo=$ac_try;;
37836 esac
37837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37838 $as_echo "$ac_try_echo") >&5
37839   (eval "$ac_compile") 2>conftest.er1
37840   ac_status=$?
37841   grep -v '^ *+' conftest.er1 >conftest.err
37842   rm -f conftest.er1
37843   cat conftest.err >&5
37844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845   (exit $ac_status); } && {
37846          test -z "$ac_c_werror_flag" ||
37847          test ! -s conftest.err
37848        } && test -s conftest.$ac_objext; then
37849   ac_lo=0 ac_mid=0
37850   while :; do
37851     cat >conftest.$ac_ext <<_ACEOF
37852 /* confdefs.h.  */
37853 _ACEOF
37854 cat confdefs.h >>conftest.$ac_ext
37855 cat >>conftest.$ac_ext <<_ACEOF
37856 /* end confdefs.h.  */
37857 $ac_includes_default
37858 int
37859 main ()
37860 {
37861 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
37862 test_array [0] = 0
37863
37864   ;
37865   return 0;
37866 }
37867 _ACEOF
37868 rm -f conftest.$ac_objext
37869 if { (ac_try="$ac_compile"
37870 case "(($ac_try" in
37871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37872   *) ac_try_echo=$ac_try;;
37873 esac
37874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37875 $as_echo "$ac_try_echo") >&5
37876   (eval "$ac_compile") 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } && {
37883          test -z "$ac_c_werror_flag" ||
37884          test ! -s conftest.err
37885        } && test -s conftest.$ac_objext; then
37886   ac_hi=$ac_mid; break
37887 else
37888   $as_echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.$ac_ext >&5
37890
37891         ac_lo=`expr $ac_mid + 1`
37892                         if test $ac_lo -le $ac_mid; then
37893                           ac_lo= ac_hi=
37894                           break
37895                         fi
37896                         ac_mid=`expr 2 '*' $ac_mid + 1`
37897 fi
37898
37899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37900   done
37901 else
37902   $as_echo "$as_me: failed program was:" >&5
37903 sed 's/^/| /' conftest.$ac_ext >&5
37904
37905         cat >conftest.$ac_ext <<_ACEOF
37906 /* confdefs.h.  */
37907 _ACEOF
37908 cat confdefs.h >>conftest.$ac_ext
37909 cat >>conftest.$ac_ext <<_ACEOF
37910 /* end confdefs.h.  */
37911 $ac_includes_default
37912 int
37913 main ()
37914 {
37915 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
37916 test_array [0] = 0
37917
37918   ;
37919   return 0;
37920 }
37921 _ACEOF
37922 rm -f conftest.$ac_objext
37923 if { (ac_try="$ac_compile"
37924 case "(($ac_try" in
37925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37926   *) ac_try_echo=$ac_try;;
37927 esac
37928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37929 $as_echo "$ac_try_echo") >&5
37930   (eval "$ac_compile") 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } && {
37937          test -z "$ac_c_werror_flag" ||
37938          test ! -s conftest.err
37939        } && test -s conftest.$ac_objext; then
37940   ac_hi=-1 ac_mid=-1
37941   while :; do
37942     cat >conftest.$ac_ext <<_ACEOF
37943 /* confdefs.h.  */
37944 _ACEOF
37945 cat confdefs.h >>conftest.$ac_ext
37946 cat >>conftest.$ac_ext <<_ACEOF
37947 /* end confdefs.h.  */
37948 $ac_includes_default
37949 int
37950 main ()
37951 {
37952 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
37953 test_array [0] = 0
37954
37955   ;
37956   return 0;
37957 }
37958 _ACEOF
37959 rm -f conftest.$ac_objext
37960 if { (ac_try="$ac_compile"
37961 case "(($ac_try" in
37962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37963   *) ac_try_echo=$ac_try;;
37964 esac
37965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37966 $as_echo "$ac_try_echo") >&5
37967   (eval "$ac_compile") 2>conftest.er1
37968   ac_status=$?
37969   grep -v '^ *+' conftest.er1 >conftest.err
37970   rm -f conftest.er1
37971   cat conftest.err >&5
37972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973   (exit $ac_status); } && {
37974          test -z "$ac_c_werror_flag" ||
37975          test ! -s conftest.err
37976        } && test -s conftest.$ac_objext; then
37977   ac_lo=$ac_mid; break
37978 else
37979   $as_echo "$as_me: failed program was:" >&5
37980 sed 's/^/| /' conftest.$ac_ext >&5
37981
37982         ac_hi=`expr '(' $ac_mid ')' - 1`
37983                         if test $ac_mid -le $ac_hi; then
37984                           ac_lo= ac_hi=
37985                           break
37986                         fi
37987                         ac_mid=`expr 2 '*' $ac_mid`
37988 fi
37989
37990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37991   done
37992 else
37993   $as_echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37995
37996         ac_lo= ac_hi=
37997 fi
37998
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38000 fi
38001
38002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38003 # Binary search between lo and hi bounds.
38004 while test "x$ac_lo" != "x$ac_hi"; do
38005   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38006   cat >conftest.$ac_ext <<_ACEOF
38007 /* confdefs.h.  */
38008 _ACEOF
38009 cat confdefs.h >>conftest.$ac_ext
38010 cat >>conftest.$ac_ext <<_ACEOF
38011 /* end confdefs.h.  */
38012 $ac_includes_default
38013 int
38014 main ()
38015 {
38016 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38017 test_array [0] = 0
38018
38019   ;
38020   return 0;
38021 }
38022 _ACEOF
38023 rm -f conftest.$ac_objext
38024 if { (ac_try="$ac_compile"
38025 case "(($ac_try" in
38026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38027   *) ac_try_echo=$ac_try;;
38028 esac
38029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38030 $as_echo "$ac_try_echo") >&5
38031   (eval "$ac_compile") 2>conftest.er1
38032   ac_status=$?
38033   grep -v '^ *+' conftest.er1 >conftest.err
38034   rm -f conftest.er1
38035   cat conftest.err >&5
38036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037   (exit $ac_status); } && {
38038          test -z "$ac_c_werror_flag" ||
38039          test ! -s conftest.err
38040        } && test -s conftest.$ac_objext; then
38041   ac_hi=$ac_mid
38042 else
38043   $as_echo "$as_me: failed program was:" >&5
38044 sed 's/^/| /' conftest.$ac_ext >&5
38045
38046         ac_lo=`expr '(' $ac_mid ')' + 1`
38047 fi
38048
38049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38050 done
38051 case $ac_lo in
38052 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38053 '') if test "$ac_cv_type_long_long_int" = yes; then
38054      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38056 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38057 See \`config.log' for more details." >&5
38058 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38059 See \`config.log' for more details." >&2;}
38060    { (exit 77); exit 77; }; }; }
38061    else
38062      ac_cv_sizeof_long_long_int=0
38063    fi ;;
38064 esac
38065 else
38066   cat >conftest.$ac_ext <<_ACEOF
38067 /* confdefs.h.  */
38068 _ACEOF
38069 cat confdefs.h >>conftest.$ac_ext
38070 cat >>conftest.$ac_ext <<_ACEOF
38071 /* end confdefs.h.  */
38072 $ac_includes_default
38073 static long int longval () { return (long int) (sizeof (long long int)); }
38074 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38075 #include <stdio.h>
38076 #include <stdlib.h>
38077 int
38078 main ()
38079 {
38080
38081   FILE *f = fopen ("conftest.val", "w");
38082   if (! f)
38083     return 1;
38084   if (((long int) (sizeof (long long int))) < 0)
38085     {
38086       long int i = longval ();
38087       if (i != ((long int) (sizeof (long long int))))
38088         return 1;
38089       fprintf (f, "%ld", i);
38090     }
38091   else
38092     {
38093       unsigned long int i = ulongval ();
38094       if (i != ((long int) (sizeof (long long int))))
38095         return 1;
38096       fprintf (f, "%lu", i);
38097     }
38098   /* Do not output a trailing newline, as this causes \r\n confusion
38099      on some platforms.  */
38100   return ferror (f) || fclose (f) != 0;
38101
38102   ;
38103   return 0;
38104 }
38105 _ACEOF
38106 rm -f conftest$ac_exeext
38107 if { (ac_try="$ac_link"
38108 case "(($ac_try" in
38109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38110   *) ac_try_echo=$ac_try;;
38111 esac
38112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38113 $as_echo "$ac_try_echo") >&5
38114   (eval "$ac_link") 2>&5
38115   ac_status=$?
38116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38118   { (case "(($ac_try" in
38119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120   *) ac_try_echo=$ac_try;;
38121 esac
38122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38123 $as_echo "$ac_try_echo") >&5
38124   (eval "$ac_try") 2>&5
38125   ac_status=$?
38126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127   (exit $ac_status); }; }; then
38128   ac_cv_sizeof_long_long_int=`cat conftest.val`
38129 else
38130   $as_echo "$as_me: program exited with status $ac_status" >&5
38131 $as_echo "$as_me: failed program was:" >&5
38132 sed 's/^/| /' conftest.$ac_ext >&5
38133
38134 ( exit $ac_status )
38135 if test "$ac_cv_type_long_long_int" = yes; then
38136      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38138 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38139 See \`config.log' for more details." >&5
38140 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38141 See \`config.log' for more details." >&2;}
38142    { (exit 77); exit 77; }; }; }
38143    else
38144      ac_cv_sizeof_long_long_int=0
38145    fi
38146 fi
38147 rm -rf conftest.dSYM
38148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38149 fi
38150 rm -f conftest.val
38151 fi
38152 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38153 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38154
38155
38156
38157 cat >>confdefs.h <<_ACEOF
38158 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38159 _ACEOF
38160
38161
38162 # The cast to long int works around a bug in the HP C Compiler
38163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38165 # This bug is HP SR number 8606223364.
38166 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38167 $as_echo_n "checking size of int *... " >&6; }
38168 if test "${ac_cv_sizeof_int_p+set}" = set; then
38169   $as_echo_n "(cached) " >&6
38170 else
38171   if test "$cross_compiling" = yes; then
38172   # Depending upon the size, compute the lo and hi bounds.
38173 cat >conftest.$ac_ext <<_ACEOF
38174 /* confdefs.h.  */
38175 _ACEOF
38176 cat confdefs.h >>conftest.$ac_ext
38177 cat >>conftest.$ac_ext <<_ACEOF
38178 /* end confdefs.h.  */
38179 $ac_includes_default
38180 int
38181 main ()
38182 {
38183 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38184 test_array [0] = 0
38185
38186   ;
38187   return 0;
38188 }
38189 _ACEOF
38190 rm -f conftest.$ac_objext
38191 if { (ac_try="$ac_compile"
38192 case "(($ac_try" in
38193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38194   *) ac_try_echo=$ac_try;;
38195 esac
38196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38197 $as_echo "$ac_try_echo") >&5
38198   (eval "$ac_compile") 2>conftest.er1
38199   ac_status=$?
38200   grep -v '^ *+' conftest.er1 >conftest.err
38201   rm -f conftest.er1
38202   cat conftest.err >&5
38203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38204   (exit $ac_status); } && {
38205          test -z "$ac_c_werror_flag" ||
38206          test ! -s conftest.err
38207        } && test -s conftest.$ac_objext; then
38208   ac_lo=0 ac_mid=0
38209   while :; do
38210     cat >conftest.$ac_ext <<_ACEOF
38211 /* confdefs.h.  */
38212 _ACEOF
38213 cat confdefs.h >>conftest.$ac_ext
38214 cat >>conftest.$ac_ext <<_ACEOF
38215 /* end confdefs.h.  */
38216 $ac_includes_default
38217 int
38218 main ()
38219 {
38220 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38221 test_array [0] = 0
38222
38223   ;
38224   return 0;
38225 }
38226 _ACEOF
38227 rm -f conftest.$ac_objext
38228 if { (ac_try="$ac_compile"
38229 case "(($ac_try" in
38230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38231   *) ac_try_echo=$ac_try;;
38232 esac
38233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38234 $as_echo "$ac_try_echo") >&5
38235   (eval "$ac_compile") 2>conftest.er1
38236   ac_status=$?
38237   grep -v '^ *+' conftest.er1 >conftest.err
38238   rm -f conftest.er1
38239   cat conftest.err >&5
38240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241   (exit $ac_status); } && {
38242          test -z "$ac_c_werror_flag" ||
38243          test ! -s conftest.err
38244        } && test -s conftest.$ac_objext; then
38245   ac_hi=$ac_mid; break
38246 else
38247   $as_echo "$as_me: failed program was:" >&5
38248 sed 's/^/| /' conftest.$ac_ext >&5
38249
38250         ac_lo=`expr $ac_mid + 1`
38251                         if test $ac_lo -le $ac_mid; then
38252                           ac_lo= ac_hi=
38253                           break
38254                         fi
38255                         ac_mid=`expr 2 '*' $ac_mid + 1`
38256 fi
38257
38258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38259   done
38260 else
38261   $as_echo "$as_me: failed program was:" >&5
38262 sed 's/^/| /' conftest.$ac_ext >&5
38263
38264         cat >conftest.$ac_ext <<_ACEOF
38265 /* confdefs.h.  */
38266 _ACEOF
38267 cat confdefs.h >>conftest.$ac_ext
38268 cat >>conftest.$ac_ext <<_ACEOF
38269 /* end confdefs.h.  */
38270 $ac_includes_default
38271 int
38272 main ()
38273 {
38274 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
38275 test_array [0] = 0
38276
38277   ;
38278   return 0;
38279 }
38280 _ACEOF
38281 rm -f conftest.$ac_objext
38282 if { (ac_try="$ac_compile"
38283 case "(($ac_try" in
38284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285   *) ac_try_echo=$ac_try;;
38286 esac
38287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38288 $as_echo "$ac_try_echo") >&5
38289   (eval "$ac_compile") 2>conftest.er1
38290   ac_status=$?
38291   grep -v '^ *+' conftest.er1 >conftest.err
38292   rm -f conftest.er1
38293   cat conftest.err >&5
38294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295   (exit $ac_status); } && {
38296          test -z "$ac_c_werror_flag" ||
38297          test ! -s conftest.err
38298        } && test -s conftest.$ac_objext; then
38299   ac_hi=-1 ac_mid=-1
38300   while :; do
38301     cat >conftest.$ac_ext <<_ACEOF
38302 /* confdefs.h.  */
38303 _ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h.  */
38307 $ac_includes_default
38308 int
38309 main ()
38310 {
38311 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
38312 test_array [0] = 0
38313
38314   ;
38315   return 0;
38316 }
38317 _ACEOF
38318 rm -f conftest.$ac_objext
38319 if { (ac_try="$ac_compile"
38320 case "(($ac_try" in
38321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38322   *) ac_try_echo=$ac_try;;
38323 esac
38324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38325 $as_echo "$ac_try_echo") >&5
38326   (eval "$ac_compile") 2>conftest.er1
38327   ac_status=$?
38328   grep -v '^ *+' conftest.er1 >conftest.err
38329   rm -f conftest.er1
38330   cat conftest.err >&5
38331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332   (exit $ac_status); } && {
38333          test -z "$ac_c_werror_flag" ||
38334          test ! -s conftest.err
38335        } && test -s conftest.$ac_objext; then
38336   ac_lo=$ac_mid; break
38337 else
38338   $as_echo "$as_me: failed program was:" >&5
38339 sed 's/^/| /' conftest.$ac_ext >&5
38340
38341         ac_hi=`expr '(' $ac_mid ')' - 1`
38342                         if test $ac_mid -le $ac_hi; then
38343                           ac_lo= ac_hi=
38344                           break
38345                         fi
38346                         ac_mid=`expr 2 '*' $ac_mid`
38347 fi
38348
38349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38350   done
38351 else
38352   $as_echo "$as_me: failed program was:" >&5
38353 sed 's/^/| /' conftest.$ac_ext >&5
38354
38355         ac_lo= ac_hi=
38356 fi
38357
38358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38359 fi
38360
38361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38362 # Binary search between lo and hi bounds.
38363 while test "x$ac_lo" != "x$ac_hi"; do
38364   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38365   cat >conftest.$ac_ext <<_ACEOF
38366 /* confdefs.h.  */
38367 _ACEOF
38368 cat confdefs.h >>conftest.$ac_ext
38369 cat >>conftest.$ac_ext <<_ACEOF
38370 /* end confdefs.h.  */
38371 $ac_includes_default
38372 int
38373 main ()
38374 {
38375 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38376 test_array [0] = 0
38377
38378   ;
38379   return 0;
38380 }
38381 _ACEOF
38382 rm -f conftest.$ac_objext
38383 if { (ac_try="$ac_compile"
38384 case "(($ac_try" in
38385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38386   *) ac_try_echo=$ac_try;;
38387 esac
38388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38389 $as_echo "$ac_try_echo") >&5
38390   (eval "$ac_compile") 2>conftest.er1
38391   ac_status=$?
38392   grep -v '^ *+' conftest.er1 >conftest.err
38393   rm -f conftest.er1
38394   cat conftest.err >&5
38395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396   (exit $ac_status); } && {
38397          test -z "$ac_c_werror_flag" ||
38398          test ! -s conftest.err
38399        } && test -s conftest.$ac_objext; then
38400   ac_hi=$ac_mid
38401 else
38402   $as_echo "$as_me: failed program was:" >&5
38403 sed 's/^/| /' conftest.$ac_ext >&5
38404
38405         ac_lo=`expr '(' $ac_mid ')' + 1`
38406 fi
38407
38408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38409 done
38410 case $ac_lo in
38411 ?*) ac_cv_sizeof_int_p=$ac_lo;;
38412 '') if test "$ac_cv_type_int_p" = yes; then
38413      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38415 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38416 See \`config.log' for more details." >&5
38417 $as_echo "$as_me: error: cannot compute sizeof (int *)
38418 See \`config.log' for more details." >&2;}
38419    { (exit 77); exit 77; }; }; }
38420    else
38421      ac_cv_sizeof_int_p=0
38422    fi ;;
38423 esac
38424 else
38425   cat >conftest.$ac_ext <<_ACEOF
38426 /* confdefs.h.  */
38427 _ACEOF
38428 cat confdefs.h >>conftest.$ac_ext
38429 cat >>conftest.$ac_ext <<_ACEOF
38430 /* end confdefs.h.  */
38431 $ac_includes_default
38432 static long int longval () { return (long int) (sizeof (int *)); }
38433 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
38434 #include <stdio.h>
38435 #include <stdlib.h>
38436 int
38437 main ()
38438 {
38439
38440   FILE *f = fopen ("conftest.val", "w");
38441   if (! f)
38442     return 1;
38443   if (((long int) (sizeof (int *))) < 0)
38444     {
38445       long int i = longval ();
38446       if (i != ((long int) (sizeof (int *))))
38447         return 1;
38448       fprintf (f, "%ld", i);
38449     }
38450   else
38451     {
38452       unsigned long int i = ulongval ();
38453       if (i != ((long int) (sizeof (int *))))
38454         return 1;
38455       fprintf (f, "%lu", i);
38456     }
38457   /* Do not output a trailing newline, as this causes \r\n confusion
38458      on some platforms.  */
38459   return ferror (f) || fclose (f) != 0;
38460
38461   ;
38462   return 0;
38463 }
38464 _ACEOF
38465 rm -f conftest$ac_exeext
38466 if { (ac_try="$ac_link"
38467 case "(($ac_try" in
38468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38469   *) ac_try_echo=$ac_try;;
38470 esac
38471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38472 $as_echo "$ac_try_echo") >&5
38473   (eval "$ac_link") 2>&5
38474   ac_status=$?
38475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38477   { (case "(($ac_try" in
38478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38479   *) ac_try_echo=$ac_try;;
38480 esac
38481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38482 $as_echo "$ac_try_echo") >&5
38483   (eval "$ac_try") 2>&5
38484   ac_status=$?
38485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); }; }; then
38487   ac_cv_sizeof_int_p=`cat conftest.val`
38488 else
38489   $as_echo "$as_me: program exited with status $ac_status" >&5
38490 $as_echo "$as_me: failed program was:" >&5
38491 sed 's/^/| /' conftest.$ac_ext >&5
38492
38493 ( exit $ac_status )
38494 if test "$ac_cv_type_int_p" = yes; then
38495      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38497 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38498 See \`config.log' for more details." >&5
38499 $as_echo "$as_me: error: cannot compute sizeof (int *)
38500 See \`config.log' for more details." >&2;}
38501    { (exit 77); exit 77; }; }; }
38502    else
38503      ac_cv_sizeof_int_p=0
38504    fi
38505 fi
38506 rm -rf conftest.dSYM
38507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38508 fi
38509 rm -f conftest.val
38510 fi
38511 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
38512 $as_echo "$ac_cv_sizeof_int_p" >&6; }
38513
38514
38515
38516 cat >>confdefs.h <<_ACEOF
38517 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
38518 _ACEOF
38519
38520
38521
38522 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
38523 $as_echo_n "checking for u_int type... " >&6; }
38524 if test "${ac_cv_have_u_int+set}" = set; then
38525   $as_echo_n "(cached) " >&6
38526 else
38527
38528        cat >conftest.$ac_ext <<_ACEOF
38529 /* confdefs.h.  */
38530 _ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h.  */
38534
38535               #include <sys/types.h>
38536
38537 int
38538 main ()
38539 {
38540
38541               u_int a; a = 1;
38542
38543   ;
38544   return 0;
38545 }
38546 _ACEOF
38547 rm -f conftest.$ac_objext
38548 if { (ac_try="$ac_compile"
38549 case "(($ac_try" in
38550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38551   *) ac_try_echo=$ac_try;;
38552 esac
38553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38554 $as_echo "$ac_try_echo") >&5
38555   (eval "$ac_compile") 2>conftest.er1
38556   ac_status=$?
38557   grep -v '^ *+' conftest.er1 >conftest.err
38558   rm -f conftest.er1
38559   cat conftest.err >&5
38560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561   (exit $ac_status); } && {
38562          test -z "$ac_c_werror_flag" ||
38563          test ! -s conftest.err
38564        } && test -s conftest.$ac_objext; then
38565
38566               ac_cv_have_u_int="yes"
38567
38568 else
38569   $as_echo "$as_me: failed program was:" >&5
38570 sed 's/^/| /' conftest.$ac_ext >&5
38571
38572
38573               ac_cv_have_u_int="no"
38574
38575
38576 fi
38577
38578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38579
38580
38581 fi
38582 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
38583 $as_echo "$ac_cv_have_u_int" >&6; }
38584 if test "x$ac_cv_have_u_int" = "xyes" ; then
38585    cat >>confdefs.h <<\_ACEOF
38586 #define HAVE_U_INT 1
38587 _ACEOF
38588
38589    have_u_int=1
38590 fi
38591
38592 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
38593 $as_echo_n "checking for intmax_t type... " >&6; }
38594 if test "${ac_cv_have_intmax_t+set}" = set; then
38595   $as_echo_n "(cached) " >&6
38596 else
38597
38598        cat >conftest.$ac_ext <<_ACEOF
38599 /* confdefs.h.  */
38600 _ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h.  */
38604
38605               #include <sys/types.h>
38606
38607 int
38608 main ()
38609 {
38610
38611               intmax_t a; a = 1;
38612
38613   ;
38614   return 0;
38615 }
38616 _ACEOF
38617 rm -f conftest.$ac_objext
38618 if { (ac_try="$ac_compile"
38619 case "(($ac_try" in
38620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621   *) ac_try_echo=$ac_try;;
38622 esac
38623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38624 $as_echo "$ac_try_echo") >&5
38625   (eval "$ac_compile") 2>conftest.er1
38626   ac_status=$?
38627   grep -v '^ *+' conftest.er1 >conftest.err
38628   rm -f conftest.er1
38629   cat conftest.err >&5
38630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); } && {
38632          test -z "$ac_c_werror_flag" ||
38633          test ! -s conftest.err
38634        } && test -s conftest.$ac_objext; then
38635
38636               ac_cv_have_intmax_t="yes"
38637
38638 else
38639   $as_echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642
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
38650                      #include <stdint.h>
38651
38652 int
38653 main ()
38654 {
38655
38656                      intmax_t a; a = 1;
38657
38658   ;
38659   return 0;
38660 }
38661 _ACEOF
38662 rm -f conftest.$ac_objext
38663 if { (ac_try="$ac_compile"
38664 case "(($ac_try" in
38665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38666   *) ac_try_echo=$ac_try;;
38667 esac
38668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38669 $as_echo "$ac_try_echo") >&5
38670   (eval "$ac_compile") 2>conftest.er1
38671   ac_status=$?
38672   grep -v '^ *+' conftest.er1 >conftest.err
38673   rm -f conftest.er1
38674   cat conftest.err >&5
38675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676   (exit $ac_status); } && {
38677          test -z "$ac_c_werror_flag" ||
38678          test ! -s conftest.err
38679        } && test -s conftest.$ac_objext; then
38680
38681                      ac_cv_have_intmax_t="yes"
38682
38683 else
38684   $as_echo "$as_me: failed program was:" >&5
38685 sed 's/^/| /' conftest.$ac_ext >&5
38686
38687
38688                      ac_cv_have_intmax_t="no"
38689
38690
38691 fi
38692
38693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38694
38695
38696 fi
38697
38698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38699
38700
38701 fi
38702 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
38703 $as_echo "$ac_cv_have_intmax_t" >&6; }
38704 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
38705    cat >>confdefs.h <<\_ACEOF
38706 #define HAVE_INTMAX_T 1
38707 _ACEOF
38708
38709    have_intmax_t=1
38710 fi
38711
38712 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
38713 $as_echo_n "checking for u_intmax_t type... " >&6; }
38714 if test "${ac_cv_have_u_intmax_t+set}" = set; then
38715   $as_echo_n "(cached) " >&6
38716 else
38717
38718        cat >conftest.$ac_ext <<_ACEOF
38719 /* confdefs.h.  */
38720 _ACEOF
38721 cat confdefs.h >>conftest.$ac_ext
38722 cat >>conftest.$ac_ext <<_ACEOF
38723 /* end confdefs.h.  */
38724
38725               #include <sys/types.h>
38726
38727 int
38728 main ()
38729 {
38730
38731               u_intmax_t a; a = 1;
38732
38733   ;
38734   return 0;
38735 }
38736 _ACEOF
38737 rm -f conftest.$ac_objext
38738 if { (ac_try="$ac_compile"
38739 case "(($ac_try" in
38740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38741   *) ac_try_echo=$ac_try;;
38742 esac
38743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38744 $as_echo "$ac_try_echo") >&5
38745   (eval "$ac_compile") 2>conftest.er1
38746   ac_status=$?
38747   grep -v '^ *+' conftest.er1 >conftest.err
38748   rm -f conftest.er1
38749   cat conftest.err >&5
38750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751   (exit $ac_status); } && {
38752          test -z "$ac_c_werror_flag" ||
38753          test ! -s conftest.err
38754        } && test -s conftest.$ac_objext; then
38755
38756               ac_cv_have_u_intmax_t="yes"
38757
38758 else
38759   $as_echo "$as_me: failed program was:" >&5
38760 sed 's/^/| /' conftest.$ac_ext >&5
38761
38762
38763               cat >conftest.$ac_ext <<_ACEOF
38764 /* confdefs.h.  */
38765 _ACEOF
38766 cat confdefs.h >>conftest.$ac_ext
38767 cat >>conftest.$ac_ext <<_ACEOF
38768 /* end confdefs.h.  */
38769
38770                      #include <stdint.h>
38771
38772 int
38773 main ()
38774 {
38775
38776                     u_intmax_t a; a = 1;
38777
38778   ;
38779   return 0;
38780 }
38781 _ACEOF
38782 rm -f conftest.$ac_objext
38783 if { (ac_try="$ac_compile"
38784 case "(($ac_try" in
38785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38786   *) ac_try_echo=$ac_try;;
38787 esac
38788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38789 $as_echo "$ac_try_echo") >&5
38790   (eval "$ac_compile") 2>conftest.er1
38791   ac_status=$?
38792   grep -v '^ *+' conftest.er1 >conftest.err
38793   rm -f conftest.er1
38794   cat conftest.err >&5
38795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796   (exit $ac_status); } && {
38797          test -z "$ac_c_werror_flag" ||
38798          test ! -s conftest.err
38799        } && test -s conftest.$ac_objext; then
38800
38801                     ac_cv_have_u_intmax_t="yes"
38802
38803 else
38804   $as_echo "$as_me: failed program was:" >&5
38805 sed 's/^/| /' conftest.$ac_ext >&5
38806
38807
38808                     ac_cv_have_u_intmax_t="no"
38809
38810
38811 fi
38812
38813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38814
38815
38816 fi
38817
38818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38819
38820
38821 fi
38822 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38823 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
38824 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38825    cat >>confdefs.h <<\_ACEOF
38826 #define HAVE_U_INTMAX_T 1
38827 _ACEOF
38828
38829    have_u_intmax_t=1
38830 fi
38831
38832 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
38833 $as_echo_n "checking for intXX_t types... " >&6; }
38834 if test "${ac_cv_have_intxx_t+set}" = set; then
38835   $as_echo_n "(cached) " >&6
38836 else
38837
38838        cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844
38845               #include <sys/types.h>
38846
38847 int
38848 main ()
38849 {
38850
38851               int8_t a; int16_t b; int32_t c; a = b = c = 1;
38852
38853   ;
38854   return 0;
38855 }
38856 _ACEOF
38857 rm -f conftest.$ac_objext
38858 if { (ac_try="$ac_compile"
38859 case "(($ac_try" in
38860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38861   *) ac_try_echo=$ac_try;;
38862 esac
38863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38864 $as_echo "$ac_try_echo") >&5
38865   (eval "$ac_compile") 2>conftest.er1
38866   ac_status=$?
38867   grep -v '^ *+' conftest.er1 >conftest.err
38868   rm -f conftest.er1
38869   cat conftest.err >&5
38870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871   (exit $ac_status); } && {
38872          test -z "$ac_c_werror_flag" ||
38873          test ! -s conftest.err
38874        } && test -s conftest.$ac_objext; then
38875
38876               ac_cv_have_intxx_t="yes"
38877
38878 else
38879   $as_echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38881
38882
38883               ac_cv_have_intxx_t="no"
38884
38885
38886 fi
38887
38888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38889
38890
38891 fi
38892 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38893 $as_echo "$ac_cv_have_intxx_t" >&6; }
38894 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38895    cat >>confdefs.h <<\_ACEOF
38896 #define HAVE_INTXX_T 1
38897 _ACEOF
38898
38899    have_intxx_t=1
38900 fi
38901
38902 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
38903 $as_echo_n "checking for int64_t type... " >&6; }
38904 if test "${ac_cv_have_int64_t+set}" = set; then
38905   $as_echo_n "(cached) " >&6
38906 else
38907
38908        cat >conftest.$ac_ext <<_ACEOF
38909 /* confdefs.h.  */
38910 _ACEOF
38911 cat confdefs.h >>conftest.$ac_ext
38912 cat >>conftest.$ac_ext <<_ACEOF
38913 /* end confdefs.h.  */
38914
38915               #include <sys/types.h>
38916
38917 int
38918 main ()
38919 {
38920
38921               int64_t a; a = 1;
38922
38923   ;
38924   return 0;
38925 }
38926 _ACEOF
38927 rm -f conftest.$ac_objext
38928 if { (ac_try="$ac_compile"
38929 case "(($ac_try" in
38930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38931   *) ac_try_echo=$ac_try;;
38932 esac
38933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38934 $as_echo "$ac_try_echo") >&5
38935   (eval "$ac_compile") 2>conftest.er1
38936   ac_status=$?
38937   grep -v '^ *+' conftest.er1 >conftest.err
38938   rm -f conftest.er1
38939   cat conftest.err >&5
38940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941   (exit $ac_status); } && {
38942          test -z "$ac_c_werror_flag" ||
38943          test ! -s conftest.err
38944        } && test -s conftest.$ac_objext; then
38945
38946               ac_cv_have_int64_t="yes"
38947
38948 else
38949   $as_echo "$as_me: failed program was:" >&5
38950 sed 's/^/| /' conftest.$ac_ext >&5
38951
38952
38953               ac_cv_have_int64_t="no"
38954
38955
38956 fi
38957
38958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38959
38960
38961 fi
38962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
38963 $as_echo "$ac_cv_have_int64_t" >&6; }
38964 if test "x$ac_cv_have_int64_t" = "xyes" ; then
38965    cat >>confdefs.h <<\_ACEOF
38966 #define HAVE_INT64_T 1
38967 _ACEOF
38968
38969    have_int64_t=1
38970 fi
38971
38972 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
38973 $as_echo_n "checking for u_intXX_t types... " >&6; }
38974 if test "${ac_cv_have_u_intxx_t+set}" = set; then
38975   $as_echo_n "(cached) " >&6
38976 else
38977
38978        cat >conftest.$ac_ext <<_ACEOF
38979 /* confdefs.h.  */
38980 _ACEOF
38981 cat confdefs.h >>conftest.$ac_ext
38982 cat >>conftest.$ac_ext <<_ACEOF
38983 /* end confdefs.h.  */
38984
38985               #include <sys/types.h>
38986
38987 int
38988 main ()
38989 {
38990
38991               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
38992
38993   ;
38994   return 0;
38995 }
38996 _ACEOF
38997 rm -f conftest.$ac_objext
38998 if { (ac_try="$ac_compile"
38999 case "(($ac_try" in
39000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39001   *) ac_try_echo=$ac_try;;
39002 esac
39003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39004 $as_echo "$ac_try_echo") >&5
39005   (eval "$ac_compile") 2>conftest.er1
39006   ac_status=$?
39007   grep -v '^ *+' conftest.er1 >conftest.err
39008   rm -f conftest.er1
39009   cat conftest.err >&5
39010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011   (exit $ac_status); } && {
39012          test -z "$ac_c_werror_flag" ||
39013          test ! -s conftest.err
39014        } && test -s conftest.$ac_objext; then
39015
39016              ac_cv_have_u_intxx_t="yes"
39017
39018 else
39019   $as_echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39021
39022
39023              ac_cv_have_u_intxx_t="no"
39024
39025
39026 fi
39027
39028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39029
39030
39031 fi
39032 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39033 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39034 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39035    cat >>confdefs.h <<\_ACEOF
39036 #define HAVE_U_INTXX_T 1
39037 _ACEOF
39038
39039    have_u_intxx_t=1
39040 fi
39041
39042 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39043 $as_echo_n "checking for u_int64_t types... " >&6; }
39044 if test "${ac_cv_have_u_int64_t+set}" = set; then
39045   $as_echo_n "(cached) " >&6
39046 else
39047
39048        cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054
39055               #include <sys/types.h>
39056
39057 int
39058 main ()
39059 {
39060
39061               u_int64_t a; a = 1;
39062
39063   ;
39064   return 0;
39065 }
39066 _ACEOF
39067 rm -f conftest.$ac_objext
39068 if { (ac_try="$ac_compile"
39069 case "(($ac_try" in
39070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39071   *) ac_try_echo=$ac_try;;
39072 esac
39073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39074 $as_echo "$ac_try_echo") >&5
39075   (eval "$ac_compile") 2>conftest.er1
39076   ac_status=$?
39077   grep -v '^ *+' conftest.er1 >conftest.err
39078   rm -f conftest.er1
39079   cat conftest.err >&5
39080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081   (exit $ac_status); } && {
39082          test -z "$ac_c_werror_flag" ||
39083          test ! -s conftest.err
39084        } && test -s conftest.$ac_objext; then
39085
39086              ac_cv_have_u_int64_t="yes"
39087
39088 else
39089   $as_echo "$as_me: failed program was:" >&5
39090 sed 's/^/| /' conftest.$ac_ext >&5
39091
39092
39093              ac_cv_have_u_int64_t="no"
39094
39095
39096 fi
39097
39098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39099
39100
39101 fi
39102 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39103 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39104 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39105    cat >>confdefs.h <<\_ACEOF
39106 #define HAVE_U_INT64_T 1
39107 _ACEOF
39108
39109    have_u_int64_t=1
39110 fi
39111
39112 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39113     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39114 then
39115    { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39116 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39117    cat >conftest.$ac_ext <<_ACEOF
39118 /* confdefs.h.  */
39119 _ACEOF
39120 cat confdefs.h >>conftest.$ac_ext
39121 cat >>conftest.$ac_ext <<_ACEOF
39122 /* end confdefs.h.  */
39123
39124           #include <sys/bitypes.h>
39125
39126 int
39127 main ()
39128 {
39129
39130           int8_t a; int16_t b; int32_t c;
39131           u_int8_t e; u_int16_t f; u_int32_t g;
39132           a = b = c = e = f = g = 1;
39133
39134   ;
39135   return 0;
39136 }
39137 _ACEOF
39138 rm -f conftest.$ac_objext
39139 if { (ac_try="$ac_compile"
39140 case "(($ac_try" in
39141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39142   *) ac_try_echo=$ac_try;;
39143 esac
39144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39145 $as_echo "$ac_try_echo") >&5
39146   (eval "$ac_compile") 2>conftest.er1
39147   ac_status=$?
39148   grep -v '^ *+' conftest.er1 >conftest.err
39149   rm -f conftest.er1
39150   cat conftest.err >&5
39151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152   (exit $ac_status); } && {
39153          test -z "$ac_c_werror_flag" ||
39154          test ! -s conftest.err
39155        } && test -s conftest.$ac_objext; then
39156
39157           cat >>confdefs.h <<\_ACEOF
39158 #define HAVE_U_INTXX_T 1
39159 _ACEOF
39160
39161           cat >>confdefs.h <<\_ACEOF
39162 #define HAVE_INTXX_T 1
39163 _ACEOF
39164
39165           cat >>confdefs.h <<\_ACEOF
39166 #define HAVE_SYS_BITYPES_H 1
39167 _ACEOF
39168
39169           { $as_echo "$as_me:$LINENO: result: yes" >&5
39170 $as_echo "yes" >&6; }
39171
39172 else
39173   $as_echo "$as_me: failed program was:" >&5
39174 sed 's/^/| /' conftest.$ac_ext >&5
39175
39176
39177           { $as_echo "$as_me:$LINENO: result: no" >&5
39178 $as_echo "no" >&6; }
39179
39180
39181 fi
39182
39183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39184 fi
39185
39186 if test -z "$have_u_intxx_t" ; then
39187    { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39188 $as_echo_n "checking for uintXX_t types... " >&6; }
39189 if test "${ac_cv_have_uintxx_t+set}" = set; then
39190   $as_echo_n "(cached) " >&6
39191 else
39192
39193           cat >conftest.$ac_ext <<_ACEOF
39194 /* confdefs.h.  */
39195 _ACEOF
39196 cat confdefs.h >>conftest.$ac_ext
39197 cat >>conftest.$ac_ext <<_ACEOF
39198 /* end confdefs.h.  */
39199
39200                  #include <sys/types.h>
39201
39202 int
39203 main ()
39204 {
39205
39206                  uint8_t a; uint16_t b;
39207                  uint32_t c; a = b = c = 1;
39208
39209   ;
39210   return 0;
39211 }
39212 _ACEOF
39213 rm -f conftest.$ac_objext
39214 if { (ac_try="$ac_compile"
39215 case "(($ac_try" in
39216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39217   *) ac_try_echo=$ac_try;;
39218 esac
39219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39220 $as_echo "$ac_try_echo") >&5
39221   (eval "$ac_compile") 2>conftest.er1
39222   ac_status=$?
39223   grep -v '^ *+' conftest.er1 >conftest.err
39224   rm -f conftest.er1
39225   cat conftest.err >&5
39226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227   (exit $ac_status); } && {
39228          test -z "$ac_c_werror_flag" ||
39229          test ! -s conftest.err
39230        } && test -s conftest.$ac_objext; then
39231
39232                 ac_cv_have_uintxx_t="yes"
39233
39234 else
39235   $as_echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238
39239                 ac_cv_have_uintxx_t="no"
39240
39241
39242 fi
39243
39244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39245
39246
39247 fi
39248 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
39249 $as_echo "$ac_cv_have_uintxx_t" >&6; }
39250    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
39251       cat >>confdefs.h <<\_ACEOF
39252 #define HAVE_UINTXX_T 1
39253 _ACEOF
39254
39255    fi
39256 fi
39257
39258 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
39259     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39260 then
39261    { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
39262 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
39263    cat >conftest.$ac_ext <<_ACEOF
39264 /* confdefs.h.  */
39265 _ACEOF
39266 cat confdefs.h >>conftest.$ac_ext
39267 cat >>conftest.$ac_ext <<_ACEOF
39268 /* end confdefs.h.  */
39269
39270           #include <sys/bitypes.h>
39271
39272 int
39273 main ()
39274 {
39275
39276           int64_t a; u_int64_t b;
39277           a = b = 1;
39278
39279   ;
39280   return 0;
39281 }
39282 _ACEOF
39283 rm -f conftest.$ac_objext
39284 if { (ac_try="$ac_compile"
39285 case "(($ac_try" in
39286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39287   *) ac_try_echo=$ac_try;;
39288 esac
39289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39290 $as_echo "$ac_try_echo") >&5
39291   (eval "$ac_compile") 2>conftest.er1
39292   ac_status=$?
39293   grep -v '^ *+' conftest.er1 >conftest.err
39294   rm -f conftest.er1
39295   cat conftest.err >&5
39296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297   (exit $ac_status); } && {
39298          test -z "$ac_c_werror_flag" ||
39299          test ! -s conftest.err
39300        } && test -s conftest.$ac_objext; then
39301
39302           cat >>confdefs.h <<\_ACEOF
39303 #define HAVE_U_INT64_T 1
39304 _ACEOF
39305
39306           cat >>confdefs.h <<\_ACEOF
39307 #define HAVE_INT64_T 1
39308 _ACEOF
39309
39310           { $as_echo "$as_me:$LINENO: result: yes" >&5
39311 $as_echo "yes" >&6; }
39312
39313 else
39314   $as_echo "$as_me: failed program was:" >&5
39315 sed 's/^/| /' conftest.$ac_ext >&5
39316
39317
39318           { $as_echo "$as_me:$LINENO: result: no" >&5
39319 $as_echo "no" >&6; }
39320
39321
39322 fi
39323
39324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39325 fi
39326
39327 if (test -z "$have_uintxx_t" && \
39328     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39329 then
39330    { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
39331 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
39332    cat >conftest.$ac_ext <<_ACEOF
39333 /* confdefs.h.  */
39334 _ACEOF
39335 cat confdefs.h >>conftest.$ac_ext
39336 cat >>conftest.$ac_ext <<_ACEOF
39337 /* end confdefs.h.  */
39338
39339           #include <sys/bitypes.h>
39340
39341 int
39342 main ()
39343 {
39344
39345           uint8_t a; uint16_t b;
39346           uint32_t c; a = b = c = 1;
39347
39348   ;
39349   return 0;
39350 }
39351 _ACEOF
39352 rm -f conftest.$ac_objext
39353 if { (ac_try="$ac_compile"
39354 case "(($ac_try" in
39355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39356   *) ac_try_echo=$ac_try;;
39357 esac
39358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39359 $as_echo "$ac_try_echo") >&5
39360   (eval "$ac_compile") 2>conftest.er1
39361   ac_status=$?
39362   grep -v '^ *+' conftest.er1 >conftest.err
39363   rm -f conftest.er1
39364   cat conftest.err >&5
39365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366   (exit $ac_status); } && {
39367          test -z "$ac_c_werror_flag" ||
39368          test ! -s conftest.err
39369        } && test -s conftest.$ac_objext; then
39370
39371           cat >>confdefs.h <<\_ACEOF
39372 #define HAVE_UINTXX_T 1
39373 _ACEOF
39374
39375           { $as_echo "$as_me:$LINENO: result: yes" >&5
39376 $as_echo "yes" >&6; }
39377
39378 else
39379   $as_echo "$as_me: failed program was:" >&5
39380 sed 's/^/| /' conftest.$ac_ext >&5
39381
39382
39383           { $as_echo "$as_me:$LINENO: result: no" >&5
39384 $as_echo "no" >&6; }
39385
39386
39387 fi
39388
39389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39390 fi
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405 for ac_func in \
39406    fork \
39407    getcwd \
39408    gethostname \
39409    getpid \
39410    gettimeofday \
39411    setpgid \
39412    setpgrp \
39413    setsid \
39414    signal \
39415    strerror \
39416    strncmp \
39417    strncpy \
39418    vfprintf \
39419
39420 do
39421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39423 $as_echo_n "checking for $ac_func... " >&6; }
39424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39425   $as_echo_n "(cached) " >&6
39426 else
39427   cat >conftest.$ac_ext <<_ACEOF
39428 /* confdefs.h.  */
39429 _ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h.  */
39433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39435 #define $ac_func innocuous_$ac_func
39436
39437 /* System header to define __stub macros and hopefully few prototypes,
39438     which can conflict with char $ac_func (); below.
39439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39440     <limits.h> exists even on freestanding compilers.  */
39441
39442 #ifdef __STDC__
39443 # include <limits.h>
39444 #else
39445 # include <assert.h>
39446 #endif
39447
39448 #undef $ac_func
39449
39450 /* Override any GCC internal prototype to avoid an error.
39451    Use char because int might match the return type of a GCC
39452    builtin and then its argument prototype would still apply.  */
39453 #ifdef __cplusplus
39454 extern "C"
39455 #endif
39456 char $ac_func ();
39457 /* The GNU C library defines this for functions which it implements
39458     to always fail with ENOSYS.  Some functions are actually named
39459     something starting with __ and the normal name is an alias.  */
39460 #if defined __stub_$ac_func || defined __stub___$ac_func
39461 choke me
39462 #endif
39463
39464 int
39465 main ()
39466 {
39467 return $ac_func ();
39468   ;
39469   return 0;
39470 }
39471 _ACEOF
39472 rm -f conftest.$ac_objext conftest$ac_exeext
39473 if { (ac_try="$ac_link"
39474 case "(($ac_try" in
39475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39476   *) ac_try_echo=$ac_try;;
39477 esac
39478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39479 $as_echo "$ac_try_echo") >&5
39480   (eval "$ac_link") 2>conftest.er1
39481   ac_status=$?
39482   grep -v '^ *+' conftest.er1 >conftest.err
39483   rm -f conftest.er1
39484   cat conftest.err >&5
39485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486   (exit $ac_status); } && {
39487          test -z "$ac_c_werror_flag" ||
39488          test ! -s conftest.err
39489        } && test -s conftest$ac_exeext && {
39490          test "$cross_compiling" = yes ||
39491          $as_test_x conftest$ac_exeext
39492        }; then
39493   eval "$as_ac_var=yes"
39494 else
39495   $as_echo "$as_me: failed program was:" >&5
39496 sed 's/^/| /' conftest.$ac_ext >&5
39497
39498         eval "$as_ac_var=no"
39499 fi
39500
39501 rm -rf conftest.dSYM
39502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39503       conftest$ac_exeext conftest.$ac_ext
39504 fi
39505 ac_res=`eval 'as_val=${'$as_ac_var'}
39506                  $as_echo "$as_val"'`
39507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39508 $as_echo "$ac_res" >&6; }
39509 as_val=`eval 'as_val=${'$as_ac_var'}
39510                  $as_echo "$as_val"'`
39511    if test "x$as_val" = x""yes; then
39512   cat >>confdefs.h <<_ACEOF
39513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39514 _ACEOF
39515
39516 else
39517   echo 'configure: cannot find needed function.'; exit 1
39518
39519 fi
39520 done
39521
39522
39523
39524 for ac_func in fchdir
39525 do
39526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39528 $as_echo_n "checking for $ac_func... " >&6; }
39529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39530   $as_echo_n "(cached) " >&6
39531 else
39532   cat >conftest.$ac_ext <<_ACEOF
39533 /* confdefs.h.  */
39534 _ACEOF
39535 cat confdefs.h >>conftest.$ac_ext
39536 cat >>conftest.$ac_ext <<_ACEOF
39537 /* end confdefs.h.  */
39538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39540 #define $ac_func innocuous_$ac_func
39541
39542 /* System header to define __stub macros and hopefully few prototypes,
39543     which can conflict with char $ac_func (); below.
39544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39545     <limits.h> exists even on freestanding compilers.  */
39546
39547 #ifdef __STDC__
39548 # include <limits.h>
39549 #else
39550 # include <assert.h>
39551 #endif
39552
39553 #undef $ac_func
39554
39555 /* Override any GCC internal prototype to avoid an error.
39556    Use char because int might match the return type of a GCC
39557    builtin and then its argument prototype would still apply.  */
39558 #ifdef __cplusplus
39559 extern "C"
39560 #endif
39561 char $ac_func ();
39562 /* The GNU C library defines this for functions which it implements
39563     to always fail with ENOSYS.  Some functions are actually named
39564     something starting with __ and the normal name is an alias.  */
39565 #if defined __stub_$ac_func || defined __stub___$ac_func
39566 choke me
39567 #endif
39568
39569 int
39570 main ()
39571 {
39572 return $ac_func ();
39573   ;
39574   return 0;
39575 }
39576 _ACEOF
39577 rm -f conftest.$ac_objext conftest$ac_exeext
39578 if { (ac_try="$ac_link"
39579 case "(($ac_try" in
39580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39581   *) ac_try_echo=$ac_try;;
39582 esac
39583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39584 $as_echo "$ac_try_echo") >&5
39585   (eval "$ac_link") 2>conftest.er1
39586   ac_status=$?
39587   grep -v '^ *+' conftest.er1 >conftest.err
39588   rm -f conftest.er1
39589   cat conftest.err >&5
39590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591   (exit $ac_status); } && {
39592          test -z "$ac_c_werror_flag" ||
39593          test ! -s conftest.err
39594        } && test -s conftest$ac_exeext && {
39595          test "$cross_compiling" = yes ||
39596          $as_test_x conftest$ac_exeext
39597        }; then
39598   eval "$as_ac_var=yes"
39599 else
39600   $as_echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39602
39603         eval "$as_ac_var=no"
39604 fi
39605
39606 rm -rf conftest.dSYM
39607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39608       conftest$ac_exeext conftest.$ac_ext
39609 fi
39610 ac_res=`eval 'as_val=${'$as_ac_var'}
39611                  $as_echo "$as_val"'`
39612                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39613 $as_echo "$ac_res" >&6; }
39614 as_val=`eval 'as_val=${'$as_ac_var'}
39615                  $as_echo "$as_val"'`
39616    if test "x$as_val" = x""yes; then
39617   cat >>confdefs.h <<_ACEOF
39618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39619 _ACEOF
39620  cat >>confdefs.h <<\_ACEOF
39621 #define HAVE_FCHDIR 1
39622 _ACEOF
39623
39624 fi
39625 done
39626
39627
39628 for ac_func in strtoll
39629 do
39630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39632 $as_echo_n "checking for $ac_func... " >&6; }
39633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39634   $as_echo_n "(cached) " >&6
39635 else
39636   cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39644 #define $ac_func innocuous_$ac_func
39645
39646 /* System header to define __stub macros and hopefully few prototypes,
39647     which can conflict with char $ac_func (); below.
39648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39649     <limits.h> exists even on freestanding compilers.  */
39650
39651 #ifdef __STDC__
39652 # include <limits.h>
39653 #else
39654 # include <assert.h>
39655 #endif
39656
39657 #undef $ac_func
39658
39659 /* Override any GCC internal prototype to avoid an error.
39660    Use char because int might match the return type of a GCC
39661    builtin and then its argument prototype would still apply.  */
39662 #ifdef __cplusplus
39663 extern "C"
39664 #endif
39665 char $ac_func ();
39666 /* The GNU C library defines this for functions which it implements
39667     to always fail with ENOSYS.  Some functions are actually named
39668     something starting with __ and the normal name is an alias.  */
39669 #if defined __stub_$ac_func || defined __stub___$ac_func
39670 choke me
39671 #endif
39672
39673 int
39674 main ()
39675 {
39676 return $ac_func ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39688 $as_echo "$ac_try_echo") >&5
39689   (eval "$ac_link") 2>conftest.er1
39690   ac_status=$?
39691   grep -v '^ *+' conftest.er1 >conftest.err
39692   rm -f conftest.er1
39693   cat conftest.err >&5
39694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); } && {
39696          test -z "$ac_c_werror_flag" ||
39697          test ! -s conftest.err
39698        } && test -s conftest$ac_exeext && {
39699          test "$cross_compiling" = yes ||
39700          $as_test_x conftest$ac_exeext
39701        }; then
39702   eval "$as_ac_var=yes"
39703 else
39704   $as_echo "$as_me: failed program was:" >&5
39705 sed 's/^/| /' conftest.$ac_ext >&5
39706
39707         eval "$as_ac_var=no"
39708 fi
39709
39710 rm -rf conftest.dSYM
39711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39712       conftest$ac_exeext conftest.$ac_ext
39713 fi
39714 ac_res=`eval 'as_val=${'$as_ac_var'}
39715                  $as_echo "$as_val"'`
39716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39717 $as_echo "$ac_res" >&6; }
39718 as_val=`eval 'as_val=${'$as_ac_var'}
39719                  $as_echo "$as_val"'`
39720    if test "x$as_val" = x""yes; then
39721   cat >>confdefs.h <<_ACEOF
39722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39723 _ACEOF
39724  cat >>confdefs.h <<\_ACEOF
39725 #define HAVE_STRTOLL 1
39726 _ACEOF
39727
39728 fi
39729 done
39730
39731
39732 for ac_func in posix_fadvise
39733 do
39734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39736 $as_echo_n "checking for $ac_func... " >&6; }
39737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39738   $as_echo_n "(cached) " >&6
39739 else
39740   cat >conftest.$ac_ext <<_ACEOF
39741 /* confdefs.h.  */
39742 _ACEOF
39743 cat confdefs.h >>conftest.$ac_ext
39744 cat >>conftest.$ac_ext <<_ACEOF
39745 /* end confdefs.h.  */
39746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39748 #define $ac_func innocuous_$ac_func
39749
39750 /* System header to define __stub macros and hopefully few prototypes,
39751     which can conflict with char $ac_func (); below.
39752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39753     <limits.h> exists even on freestanding compilers.  */
39754
39755 #ifdef __STDC__
39756 # include <limits.h>
39757 #else
39758 # include <assert.h>
39759 #endif
39760
39761 #undef $ac_func
39762
39763 /* Override any GCC internal prototype to avoid an error.
39764    Use char because int might match the return type of a GCC
39765    builtin and then its argument prototype would still apply.  */
39766 #ifdef __cplusplus
39767 extern "C"
39768 #endif
39769 char $ac_func ();
39770 /* The GNU C library defines this for functions which it implements
39771     to always fail with ENOSYS.  Some functions are actually named
39772     something starting with __ and the normal name is an alias.  */
39773 #if defined __stub_$ac_func || defined __stub___$ac_func
39774 choke me
39775 #endif
39776
39777 int
39778 main ()
39779 {
39780 return $ac_func ();
39781   ;
39782   return 0;
39783 }
39784 _ACEOF
39785 rm -f conftest.$ac_objext conftest$ac_exeext
39786 if { (ac_try="$ac_link"
39787 case "(($ac_try" in
39788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39789   *) ac_try_echo=$ac_try;;
39790 esac
39791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39792 $as_echo "$ac_try_echo") >&5
39793   (eval "$ac_link") 2>conftest.er1
39794   ac_status=$?
39795   grep -v '^ *+' conftest.er1 >conftest.err
39796   rm -f conftest.er1
39797   cat conftest.err >&5
39798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799   (exit $ac_status); } && {
39800          test -z "$ac_c_werror_flag" ||
39801          test ! -s conftest.err
39802        } && test -s conftest$ac_exeext && {
39803          test "$cross_compiling" = yes ||
39804          $as_test_x conftest$ac_exeext
39805        }; then
39806   eval "$as_ac_var=yes"
39807 else
39808   $as_echo "$as_me: failed program was:" >&5
39809 sed 's/^/| /' conftest.$ac_ext >&5
39810
39811         eval "$as_ac_var=no"
39812 fi
39813
39814 rm -rf conftest.dSYM
39815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39816       conftest$ac_exeext conftest.$ac_ext
39817 fi
39818 ac_res=`eval 'as_val=${'$as_ac_var'}
39819                  $as_echo "$as_val"'`
39820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39821 $as_echo "$ac_res" >&6; }
39822 as_val=`eval 'as_val=${'$as_ac_var'}
39823                  $as_echo "$as_val"'`
39824    if test "x$as_val" = x""yes; then
39825   cat >>confdefs.h <<_ACEOF
39826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39827 _ACEOF
39828
39829 fi
39830 done
39831
39832
39833 for ac_func in fdatasync
39834 do
39835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39837 $as_echo_n "checking for $ac_func... " >&6; }
39838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39839   $as_echo_n "(cached) " >&6
39840 else
39841   cat >conftest.$ac_ext <<_ACEOF
39842 /* confdefs.h.  */
39843 _ACEOF
39844 cat confdefs.h >>conftest.$ac_ext
39845 cat >>conftest.$ac_ext <<_ACEOF
39846 /* end confdefs.h.  */
39847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39849 #define $ac_func innocuous_$ac_func
39850
39851 /* System header to define __stub macros and hopefully few prototypes,
39852     which can conflict with char $ac_func (); below.
39853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39854     <limits.h> exists even on freestanding compilers.  */
39855
39856 #ifdef __STDC__
39857 # include <limits.h>
39858 #else
39859 # include <assert.h>
39860 #endif
39861
39862 #undef $ac_func
39863
39864 /* Override any GCC internal prototype to avoid an error.
39865    Use char because int might match the return type of a GCC
39866    builtin and then its argument prototype would still apply.  */
39867 #ifdef __cplusplus
39868 extern "C"
39869 #endif
39870 char $ac_func ();
39871 /* The GNU C library defines this for functions which it implements
39872     to always fail with ENOSYS.  Some functions are actually named
39873     something starting with __ and the normal name is an alias.  */
39874 #if defined __stub_$ac_func || defined __stub___$ac_func
39875 choke me
39876 #endif
39877
39878 int
39879 main ()
39880 {
39881 return $ac_func ();
39882   ;
39883   return 0;
39884 }
39885 _ACEOF
39886 rm -f conftest.$ac_objext conftest$ac_exeext
39887 if { (ac_try="$ac_link"
39888 case "(($ac_try" in
39889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39890   *) ac_try_echo=$ac_try;;
39891 esac
39892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39893 $as_echo "$ac_try_echo") >&5
39894   (eval "$ac_link") 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } && {
39901          test -z "$ac_c_werror_flag" ||
39902          test ! -s conftest.err
39903        } && test -s conftest$ac_exeext && {
39904          test "$cross_compiling" = yes ||
39905          $as_test_x conftest$ac_exeext
39906        }; then
39907   eval "$as_ac_var=yes"
39908 else
39909   $as_echo "$as_me: failed program was:" >&5
39910 sed 's/^/| /' conftest.$ac_ext >&5
39911
39912         eval "$as_ac_var=no"
39913 fi
39914
39915 rm -rf conftest.dSYM
39916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39917       conftest$ac_exeext conftest.$ac_ext
39918 fi
39919 ac_res=`eval 'as_val=${'$as_ac_var'}
39920                  $as_echo "$as_val"'`
39921                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39922 $as_echo "$ac_res" >&6; }
39923 as_val=`eval 'as_val=${'$as_ac_var'}
39924                  $as_echo "$as_val"'`
39925    if test "x$as_val" = x""yes; then
39926   cat >>confdefs.h <<_ACEOF
39927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39928 _ACEOF
39929
39930 fi
39931 done
39932
39933
39934
39935 for ac_func in chflags
39936 do
39937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39939 $as_echo_n "checking for $ac_func... " >&6; }
39940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39941   $as_echo_n "(cached) " >&6
39942 else
39943   cat >conftest.$ac_ext <<_ACEOF
39944 /* confdefs.h.  */
39945 _ACEOF
39946 cat confdefs.h >>conftest.$ac_ext
39947 cat >>conftest.$ac_ext <<_ACEOF
39948 /* end confdefs.h.  */
39949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39951 #define $ac_func innocuous_$ac_func
39952
39953 /* System header to define __stub macros and hopefully few prototypes,
39954     which can conflict with char $ac_func (); below.
39955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39956     <limits.h> exists even on freestanding compilers.  */
39957
39958 #ifdef __STDC__
39959 # include <limits.h>
39960 #else
39961 # include <assert.h>
39962 #endif
39963
39964 #undef $ac_func
39965
39966 /* Override any GCC internal prototype to avoid an error.
39967    Use char because int might match the return type of a GCC
39968    builtin and then its argument prototype would still apply.  */
39969 #ifdef __cplusplus
39970 extern "C"
39971 #endif
39972 char $ac_func ();
39973 /* The GNU C library defines this for functions which it implements
39974     to always fail with ENOSYS.  Some functions are actually named
39975     something starting with __ and the normal name is an alias.  */
39976 #if defined __stub_$ac_func || defined __stub___$ac_func
39977 choke me
39978 #endif
39979
39980 int
39981 main ()
39982 {
39983 return $ac_func ();
39984   ;
39985   return 0;
39986 }
39987 _ACEOF
39988 rm -f conftest.$ac_objext conftest$ac_exeext
39989 if { (ac_try="$ac_link"
39990 case "(($ac_try" in
39991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39992   *) ac_try_echo=$ac_try;;
39993 esac
39994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39995 $as_echo "$ac_try_echo") >&5
39996   (eval "$ac_link") 2>conftest.er1
39997   ac_status=$?
39998   grep -v '^ *+' conftest.er1 >conftest.err
39999   rm -f conftest.er1
40000   cat conftest.err >&5
40001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002   (exit $ac_status); } && {
40003          test -z "$ac_c_werror_flag" ||
40004          test ! -s conftest.err
40005        } && test -s conftest$ac_exeext && {
40006          test "$cross_compiling" = yes ||
40007          $as_test_x conftest$ac_exeext
40008        }; then
40009   eval "$as_ac_var=yes"
40010 else
40011   $as_echo "$as_me: failed program was:" >&5
40012 sed 's/^/| /' conftest.$ac_ext >&5
40013
40014         eval "$as_ac_var=no"
40015 fi
40016
40017 rm -rf conftest.dSYM
40018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40019       conftest$ac_exeext conftest.$ac_ext
40020 fi
40021 ac_res=`eval 'as_val=${'$as_ac_var'}
40022                  $as_echo "$as_val"'`
40023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40024 $as_echo "$ac_res" >&6; }
40025 as_val=`eval 'as_val=${'$as_ac_var'}
40026                  $as_echo "$as_val"'`
40027    if test "x$as_val" = x""yes; then
40028   cat >>confdefs.h <<_ACEOF
40029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40030 _ACEOF
40031
40032 fi
40033 done
40034
40035
40036
40037
40038
40039
40040 for ac_func in snprintf vsnprintf gethostid fseeko
40041 do
40042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40044 $as_echo_n "checking for $ac_func... " >&6; }
40045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40046   $as_echo_n "(cached) " >&6
40047 else
40048   cat >conftest.$ac_ext <<_ACEOF
40049 /* confdefs.h.  */
40050 _ACEOF
40051 cat confdefs.h >>conftest.$ac_ext
40052 cat >>conftest.$ac_ext <<_ACEOF
40053 /* end confdefs.h.  */
40054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40056 #define $ac_func innocuous_$ac_func
40057
40058 /* System header to define __stub macros and hopefully few prototypes,
40059     which can conflict with char $ac_func (); below.
40060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40061     <limits.h> exists even on freestanding compilers.  */
40062
40063 #ifdef __STDC__
40064 # include <limits.h>
40065 #else
40066 # include <assert.h>
40067 #endif
40068
40069 #undef $ac_func
40070
40071 /* Override any GCC internal prototype to avoid an error.
40072    Use char because int might match the return type of a GCC
40073    builtin and then its argument prototype would still apply.  */
40074 #ifdef __cplusplus
40075 extern "C"
40076 #endif
40077 char $ac_func ();
40078 /* The GNU C library defines this for functions which it implements
40079     to always fail with ENOSYS.  Some functions are actually named
40080     something starting with __ and the normal name is an alias.  */
40081 #if defined __stub_$ac_func || defined __stub___$ac_func
40082 choke me
40083 #endif
40084
40085 int
40086 main ()
40087 {
40088 return $ac_func ();
40089   ;
40090   return 0;
40091 }
40092 _ACEOF
40093 rm -f conftest.$ac_objext conftest$ac_exeext
40094 if { (ac_try="$ac_link"
40095 case "(($ac_try" in
40096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40097   *) ac_try_echo=$ac_try;;
40098 esac
40099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40100 $as_echo "$ac_try_echo") >&5
40101   (eval "$ac_link") 2>conftest.er1
40102   ac_status=$?
40103   grep -v '^ *+' conftest.er1 >conftest.err
40104   rm -f conftest.er1
40105   cat conftest.err >&5
40106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107   (exit $ac_status); } && {
40108          test -z "$ac_c_werror_flag" ||
40109          test ! -s conftest.err
40110        } && test -s conftest$ac_exeext && {
40111          test "$cross_compiling" = yes ||
40112          $as_test_x conftest$ac_exeext
40113        }; then
40114   eval "$as_ac_var=yes"
40115 else
40116   $as_echo "$as_me: failed program was:" >&5
40117 sed 's/^/| /' conftest.$ac_ext >&5
40118
40119         eval "$as_ac_var=no"
40120 fi
40121
40122 rm -rf conftest.dSYM
40123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40124       conftest$ac_exeext conftest.$ac_ext
40125 fi
40126 ac_res=`eval 'as_val=${'$as_ac_var'}
40127                  $as_echo "$as_val"'`
40128                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40129 $as_echo "$ac_res" >&6; }
40130 as_val=`eval 'as_val=${'$as_ac_var'}
40131                  $as_echo "$as_val"'`
40132    if test "x$as_val" = x""yes; then
40133   cat >>confdefs.h <<_ACEOF
40134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40135 _ACEOF
40136
40137 fi
40138 done
40139
40140
40141 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
40142 $as_echo_n "checking for va_copy... " >&6; }
40143 if test "${ba_cv_va_copy+set}" = set; then
40144   $as_echo_n "(cached) " >&6
40145 else
40146
40147        cat >conftest.$ac_ext <<_ACEOF
40148 /* confdefs.h.  */
40149 _ACEOF
40150 cat confdefs.h >>conftest.$ac_ext
40151 cat >>conftest.$ac_ext <<_ACEOF
40152 /* end confdefs.h.  */
40153
40154               #include <stdarg.h>
40155               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
40156               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
40157
40158 int
40159 main ()
40160 {
40161
40162               call_use_va_copy(1,2,3)
40163
40164   ;
40165   return 0;
40166 }
40167 _ACEOF
40168 rm -f conftest.$ac_objext conftest$ac_exeext
40169 if { (ac_try="$ac_link"
40170 case "(($ac_try" in
40171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40172   *) ac_try_echo=$ac_try;;
40173 esac
40174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40175 $as_echo "$ac_try_echo") >&5
40176   (eval "$ac_link") 2>conftest.er1
40177   ac_status=$?
40178   grep -v '^ *+' conftest.er1 >conftest.err
40179   rm -f conftest.er1
40180   cat conftest.err >&5
40181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182   (exit $ac_status); } && {
40183          test -z "$ac_c_werror_flag" ||
40184          test ! -s conftest.err
40185        } && test -s conftest$ac_exeext && {
40186          test "$cross_compiling" = yes ||
40187          $as_test_x conftest$ac_exeext
40188        }; then
40189
40190               ba_cv_va_copy=yes,
40191
40192 else
40193   $as_echo "$as_me: failed program was:" >&5
40194 sed 's/^/| /' conftest.$ac_ext >&5
40195
40196
40197               ba_cv_va_copy=no
40198
40199
40200 fi
40201
40202 rm -rf conftest.dSYM
40203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40204       conftest$ac_exeext conftest.$ac_ext
40205
40206
40207 fi
40208 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
40209 $as_echo "$ba_cv_va_copy" >&6; }
40210 test $ba_cv_va_copy = yes &&
40211 cat >>confdefs.h <<\_ACEOF
40212 #define HAVE_VA_COPY 1
40213 _ACEOF
40214
40215
40216
40217
40218
40219
40220 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
40221 do
40222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40224 $as_echo_n "checking for $ac_func... " >&6; }
40225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40226   $as_echo_n "(cached) " >&6
40227 else
40228   cat >conftest.$ac_ext <<_ACEOF
40229 /* confdefs.h.  */
40230 _ACEOF
40231 cat confdefs.h >>conftest.$ac_ext
40232 cat >>conftest.$ac_ext <<_ACEOF
40233 /* end confdefs.h.  */
40234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40236 #define $ac_func innocuous_$ac_func
40237
40238 /* System header to define __stub macros and hopefully few prototypes,
40239     which can conflict with char $ac_func (); below.
40240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40241     <limits.h> exists even on freestanding compilers.  */
40242
40243 #ifdef __STDC__
40244 # include <limits.h>
40245 #else
40246 # include <assert.h>
40247 #endif
40248
40249 #undef $ac_func
40250
40251 /* Override any GCC internal prototype to avoid an error.
40252    Use char because int might match the return type of a GCC
40253    builtin and then its argument prototype would still apply.  */
40254 #ifdef __cplusplus
40255 extern "C"
40256 #endif
40257 char $ac_func ();
40258 /* The GNU C library defines this for functions which it implements
40259     to always fail with ENOSYS.  Some functions are actually named
40260     something starting with __ and the normal name is an alias.  */
40261 #if defined __stub_$ac_func || defined __stub___$ac_func
40262 choke me
40263 #endif
40264
40265 int
40266 main ()
40267 {
40268 return $ac_func ();
40269   ;
40270   return 0;
40271 }
40272 _ACEOF
40273 rm -f conftest.$ac_objext conftest$ac_exeext
40274 if { (ac_try="$ac_link"
40275 case "(($ac_try" in
40276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40277   *) ac_try_echo=$ac_try;;
40278 esac
40279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40280 $as_echo "$ac_try_echo") >&5
40281   (eval "$ac_link") 2>conftest.er1
40282   ac_status=$?
40283   grep -v '^ *+' conftest.er1 >conftest.err
40284   rm -f conftest.er1
40285   cat conftest.err >&5
40286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287   (exit $ac_status); } && {
40288          test -z "$ac_c_werror_flag" ||
40289          test ! -s conftest.err
40290        } && test -s conftest$ac_exeext && {
40291          test "$cross_compiling" = yes ||
40292          $as_test_x conftest$ac_exeext
40293        }; then
40294   eval "$as_ac_var=yes"
40295 else
40296   $as_echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40298
40299         eval "$as_ac_var=no"
40300 fi
40301
40302 rm -rf conftest.dSYM
40303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40304       conftest$ac_exeext conftest.$ac_ext
40305 fi
40306 ac_res=`eval 'as_val=${'$as_ac_var'}
40307                  $as_echo "$as_val"'`
40308                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40309 $as_echo "$ac_res" >&6; }
40310 as_val=`eval 'as_val=${'$as_ac_var'}
40311                  $as_echo "$as_val"'`
40312    if test "x$as_val" = x""yes; then
40313   cat >>confdefs.h <<_ACEOF
40314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40315 _ACEOF
40316
40317 fi
40318 done
40319
40320
40321 # If resolver functions are not in libc check for -lnsl or -lresolv.
40322 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
40323 $as_echo_n "checking for gethostbyname_r... " >&6; }
40324 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
40325   $as_echo_n "(cached) " >&6
40326 else
40327   cat >conftest.$ac_ext <<_ACEOF
40328 /* confdefs.h.  */
40329 _ACEOF
40330 cat confdefs.h >>conftest.$ac_ext
40331 cat >>conftest.$ac_ext <<_ACEOF
40332 /* end confdefs.h.  */
40333 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
40334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40335 #define gethostbyname_r innocuous_gethostbyname_r
40336
40337 /* System header to define __stub macros and hopefully few prototypes,
40338     which can conflict with char gethostbyname_r (); below.
40339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40340     <limits.h> exists even on freestanding compilers.  */
40341
40342 #ifdef __STDC__
40343 # include <limits.h>
40344 #else
40345 # include <assert.h>
40346 #endif
40347
40348 #undef gethostbyname_r
40349
40350 /* Override any GCC internal prototype to avoid an error.
40351    Use char because int might match the return type of a GCC
40352    builtin and then its argument prototype would still apply.  */
40353 #ifdef __cplusplus
40354 extern "C"
40355 #endif
40356 char gethostbyname_r ();
40357 /* The GNU C library defines this for functions which it implements
40358     to always fail with ENOSYS.  Some functions are actually named
40359     something starting with __ and the normal name is an alias.  */
40360 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
40361 choke me
40362 #endif
40363
40364 int
40365 main ()
40366 {
40367 return gethostbyname_r ();
40368   ;
40369   return 0;
40370 }
40371 _ACEOF
40372 rm -f conftest.$ac_objext conftest$ac_exeext
40373 if { (ac_try="$ac_link"
40374 case "(($ac_try" in
40375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40376   *) ac_try_echo=$ac_try;;
40377 esac
40378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40379 $as_echo "$ac_try_echo") >&5
40380   (eval "$ac_link") 2>conftest.er1
40381   ac_status=$?
40382   grep -v '^ *+' conftest.er1 >conftest.err
40383   rm -f conftest.er1
40384   cat conftest.err >&5
40385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386   (exit $ac_status); } && {
40387          test -z "$ac_c_werror_flag" ||
40388          test ! -s conftest.err
40389        } && test -s conftest$ac_exeext && {
40390          test "$cross_compiling" = yes ||
40391          $as_test_x conftest$ac_exeext
40392        }; then
40393   ac_cv_func_gethostbyname_r=yes
40394 else
40395   $as_echo "$as_me: failed program was:" >&5
40396 sed 's/^/| /' conftest.$ac_ext >&5
40397
40398         ac_cv_func_gethostbyname_r=no
40399 fi
40400
40401 rm -rf conftest.dSYM
40402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40403       conftest$ac_exeext conftest.$ac_ext
40404 fi
40405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
40406 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
40407 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
40408   { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
40409 $as_echo "using libc's resolver" >&6; }
40410 else
40411
40412 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
40413 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
40414 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
40415   $as_echo_n "(cached) " >&6
40416 else
40417   ac_check_lib_save_LIBS=$LIBS
40418 LIBS="-lnsl  $LIBS"
40419 cat >conftest.$ac_ext <<_ACEOF
40420 /* confdefs.h.  */
40421 _ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h.  */
40425
40426 /* Override any GCC internal prototype to avoid an error.
40427    Use char because int might match the return type of a GCC
40428    builtin and then its argument prototype would still apply.  */
40429 #ifdef __cplusplus
40430 extern "C"
40431 #endif
40432 char gethostbyname_r ();
40433 int
40434 main ()
40435 {
40436 return gethostbyname_r ();
40437   ;
40438   return 0;
40439 }
40440 _ACEOF
40441 rm -f conftest.$ac_objext conftest$ac_exeext
40442 if { (ac_try="$ac_link"
40443 case "(($ac_try" in
40444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40445   *) ac_try_echo=$ac_try;;
40446 esac
40447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40448 $as_echo "$ac_try_echo") >&5
40449   (eval "$ac_link") 2>conftest.er1
40450   ac_status=$?
40451   grep -v '^ *+' conftest.er1 >conftest.err
40452   rm -f conftest.er1
40453   cat conftest.err >&5
40454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455   (exit $ac_status); } && {
40456          test -z "$ac_c_werror_flag" ||
40457          test ! -s conftest.err
40458        } && test -s conftest$ac_exeext && {
40459          test "$cross_compiling" = yes ||
40460          $as_test_x conftest$ac_exeext
40461        }; then
40462   ac_cv_lib_nsl_gethostbyname_r=yes
40463 else
40464   $as_echo "$as_me: failed program was:" >&5
40465 sed 's/^/| /' conftest.$ac_ext >&5
40466
40467         ac_cv_lib_nsl_gethostbyname_r=no
40468 fi
40469
40470 rm -rf conftest.dSYM
40471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40472       conftest$ac_exeext conftest.$ac_ext
40473 LIBS=$ac_check_lib_save_LIBS
40474 fi
40475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
40476 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
40477 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
40478   cat >>confdefs.h <<_ACEOF
40479 #define HAVE_LIBNSL 1
40480 _ACEOF
40481
40482   LIBS="-lnsl $LIBS"
40483
40484 fi
40485
40486
40487 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
40488 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
40489 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
40490   $as_echo_n "(cached) " >&6
40491 else
40492   ac_check_lib_save_LIBS=$LIBS
40493 LIBS="-lresolv  $LIBS"
40494 cat >conftest.$ac_ext <<_ACEOF
40495 /* confdefs.h.  */
40496 _ACEOF
40497 cat confdefs.h >>conftest.$ac_ext
40498 cat >>conftest.$ac_ext <<_ACEOF
40499 /* end confdefs.h.  */
40500
40501 /* Override any GCC internal prototype to avoid an error.
40502    Use char because int might match the return type of a GCC
40503    builtin and then its argument prototype would still apply.  */
40504 #ifdef __cplusplus
40505 extern "C"
40506 #endif
40507 char gethostbyname_r ();
40508 int
40509 main ()
40510 {
40511 return gethostbyname_r ();
40512   ;
40513   return 0;
40514 }
40515 _ACEOF
40516 rm -f conftest.$ac_objext conftest$ac_exeext
40517 if { (ac_try="$ac_link"
40518 case "(($ac_try" in
40519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40520   *) ac_try_echo=$ac_try;;
40521 esac
40522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40523 $as_echo "$ac_try_echo") >&5
40524   (eval "$ac_link") 2>conftest.er1
40525   ac_status=$?
40526   grep -v '^ *+' conftest.er1 >conftest.err
40527   rm -f conftest.er1
40528   cat conftest.err >&5
40529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530   (exit $ac_status); } && {
40531          test -z "$ac_c_werror_flag" ||
40532          test ! -s conftest.err
40533        } && test -s conftest$ac_exeext && {
40534          test "$cross_compiling" = yes ||
40535          $as_test_x conftest$ac_exeext
40536        }; then
40537   ac_cv_lib_resolv_gethostbyname_r=yes
40538 else
40539   $as_echo "$as_me: failed program was:" >&5
40540 sed 's/^/| /' conftest.$ac_ext >&5
40541
40542         ac_cv_lib_resolv_gethostbyname_r=no
40543 fi
40544
40545 rm -rf conftest.dSYM
40546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40547       conftest$ac_exeext conftest.$ac_ext
40548 LIBS=$ac_check_lib_save_LIBS
40549 fi
40550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
40551 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
40552 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
40553   cat >>confdefs.h <<_ACEOF
40554 #define HAVE_LIBRESOLV 1
40555 _ACEOF
40556
40557   LIBS="-lresolv $LIBS"
40558
40559 fi
40560
40561 fi
40562
40563
40564
40565 for ac_func in inet_pton
40566 do
40567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40569 $as_echo_n "checking for $ac_func... " >&6; }
40570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40571   $as_echo_n "(cached) " >&6
40572 else
40573   cat >conftest.$ac_ext <<_ACEOF
40574 /* confdefs.h.  */
40575 _ACEOF
40576 cat confdefs.h >>conftest.$ac_ext
40577 cat >>conftest.$ac_ext <<_ACEOF
40578 /* end confdefs.h.  */
40579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40581 #define $ac_func innocuous_$ac_func
40582
40583 /* System header to define __stub macros and hopefully few prototypes,
40584     which can conflict with char $ac_func (); below.
40585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40586     <limits.h> exists even on freestanding compilers.  */
40587
40588 #ifdef __STDC__
40589 # include <limits.h>
40590 #else
40591 # include <assert.h>
40592 #endif
40593
40594 #undef $ac_func
40595
40596 /* Override any GCC internal prototype to avoid an error.
40597    Use char because int might match the return type of a GCC
40598    builtin and then its argument prototype would still apply.  */
40599 #ifdef __cplusplus
40600 extern "C"
40601 #endif
40602 char $ac_func ();
40603 /* The GNU C library defines this for functions which it implements
40604     to always fail with ENOSYS.  Some functions are actually named
40605     something starting with __ and the normal name is an alias.  */
40606 #if defined __stub_$ac_func || defined __stub___$ac_func
40607 choke me
40608 #endif
40609
40610 int
40611 main ()
40612 {
40613 return $ac_func ();
40614   ;
40615   return 0;
40616 }
40617 _ACEOF
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (ac_try="$ac_link"
40620 case "(($ac_try" in
40621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40622   *) ac_try_echo=$ac_try;;
40623 esac
40624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40625 $as_echo "$ac_try_echo") >&5
40626   (eval "$ac_link") 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } && {
40633          test -z "$ac_c_werror_flag" ||
40634          test ! -s conftest.err
40635        } && test -s conftest$ac_exeext && {
40636          test "$cross_compiling" = yes ||
40637          $as_test_x conftest$ac_exeext
40638        }; then
40639   eval "$as_ac_var=yes"
40640 else
40641   $as_echo "$as_me: failed program was:" >&5
40642 sed 's/^/| /' conftest.$ac_ext >&5
40643
40644         eval "$as_ac_var=no"
40645 fi
40646
40647 rm -rf conftest.dSYM
40648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40649       conftest$ac_exeext conftest.$ac_ext
40650 fi
40651 ac_res=`eval 'as_val=${'$as_ac_var'}
40652                  $as_echo "$as_val"'`
40653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40654 $as_echo "$ac_res" >&6; }
40655 as_val=`eval 'as_val=${'$as_ac_var'}
40656                  $as_echo "$as_val"'`
40657    if test "x$as_val" = x""yes; then
40658   cat >>confdefs.h <<_ACEOF
40659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40660 _ACEOF
40661  cat >>confdefs.h <<\_ACEOF
40662 #define HAVE_INET_PTON 1
40663 _ACEOF
40664
40665 fi
40666 done
40667
40668
40669 for ac_func in inet_ntop
40670 do
40671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40673 $as_echo_n "checking for $ac_func... " >&6; }
40674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40675   $as_echo_n "(cached) " >&6
40676 else
40677   cat >conftest.$ac_ext <<_ACEOF
40678 /* confdefs.h.  */
40679 _ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h.  */
40683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40685 #define $ac_func innocuous_$ac_func
40686
40687 /* System header to define __stub macros and hopefully few prototypes,
40688     which can conflict with char $ac_func (); below.
40689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40690     <limits.h> exists even on freestanding compilers.  */
40691
40692 #ifdef __STDC__
40693 # include <limits.h>
40694 #else
40695 # include <assert.h>
40696 #endif
40697
40698 #undef $ac_func
40699
40700 /* Override any GCC internal prototype to avoid an error.
40701    Use char because int might match the return type of a GCC
40702    builtin and then its argument prototype would still apply.  */
40703 #ifdef __cplusplus
40704 extern "C"
40705 #endif
40706 char $ac_func ();
40707 /* The GNU C library defines this for functions which it implements
40708     to always fail with ENOSYS.  Some functions are actually named
40709     something starting with __ and the normal name is an alias.  */
40710 #if defined __stub_$ac_func || defined __stub___$ac_func
40711 choke me
40712 #endif
40713
40714 int
40715 main ()
40716 {
40717 return $ac_func ();
40718   ;
40719   return 0;
40720 }
40721 _ACEOF
40722 rm -f conftest.$ac_objext conftest$ac_exeext
40723 if { (ac_try="$ac_link"
40724 case "(($ac_try" in
40725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40726   *) ac_try_echo=$ac_try;;
40727 esac
40728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40729 $as_echo "$ac_try_echo") >&5
40730   (eval "$ac_link") 2>conftest.er1
40731   ac_status=$?
40732   grep -v '^ *+' conftest.er1 >conftest.err
40733   rm -f conftest.er1
40734   cat conftest.err >&5
40735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736   (exit $ac_status); } && {
40737          test -z "$ac_c_werror_flag" ||
40738          test ! -s conftest.err
40739        } && test -s conftest$ac_exeext && {
40740          test "$cross_compiling" = yes ||
40741          $as_test_x conftest$ac_exeext
40742        }; then
40743   eval "$as_ac_var=yes"
40744 else
40745   $as_echo "$as_me: failed program was:" >&5
40746 sed 's/^/| /' conftest.$ac_ext >&5
40747
40748         eval "$as_ac_var=no"
40749 fi
40750
40751 rm -rf conftest.dSYM
40752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40753       conftest$ac_exeext conftest.$ac_ext
40754 fi
40755 ac_res=`eval 'as_val=${'$as_ac_var'}
40756                  $as_echo "$as_val"'`
40757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40758 $as_echo "$ac_res" >&6; }
40759 as_val=`eval 'as_val=${'$as_ac_var'}
40760                  $as_echo "$as_val"'`
40761    if test "x$as_val" = x""yes; then
40762   cat >>confdefs.h <<_ACEOF
40763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40764 _ACEOF
40765  cat >>confdefs.h <<\_ACEOF
40766 #define HAVE_INET_NTOP 1
40767 _ACEOF
40768
40769 fi
40770 done
40771
40772
40773 for ac_func in gethostbyname2
40774 do
40775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40777 $as_echo_n "checking for $ac_func... " >&6; }
40778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40779   $as_echo_n "(cached) " >&6
40780 else
40781   cat >conftest.$ac_ext <<_ACEOF
40782 /* confdefs.h.  */
40783 _ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h.  */
40787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40789 #define $ac_func innocuous_$ac_func
40790
40791 /* System header to define __stub macros and hopefully few prototypes,
40792     which can conflict with char $ac_func (); below.
40793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40794     <limits.h> exists even on freestanding compilers.  */
40795
40796 #ifdef __STDC__
40797 # include <limits.h>
40798 #else
40799 # include <assert.h>
40800 #endif
40801
40802 #undef $ac_func
40803
40804 /* Override any GCC internal prototype to avoid an error.
40805    Use char because int might match the return type of a GCC
40806    builtin and then its argument prototype would still apply.  */
40807 #ifdef __cplusplus
40808 extern "C"
40809 #endif
40810 char $ac_func ();
40811 /* The GNU C library defines this for functions which it implements
40812     to always fail with ENOSYS.  Some functions are actually named
40813     something starting with __ and the normal name is an alias.  */
40814 #if defined __stub_$ac_func || defined __stub___$ac_func
40815 choke me
40816 #endif
40817
40818 int
40819 main ()
40820 {
40821 return $ac_func ();
40822   ;
40823   return 0;
40824 }
40825 _ACEOF
40826 rm -f conftest.$ac_objext conftest$ac_exeext
40827 if { (ac_try="$ac_link"
40828 case "(($ac_try" in
40829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830   *) ac_try_echo=$ac_try;;
40831 esac
40832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40833 $as_echo "$ac_try_echo") >&5
40834   (eval "$ac_link") 2>conftest.er1
40835   ac_status=$?
40836   grep -v '^ *+' conftest.er1 >conftest.err
40837   rm -f conftest.er1
40838   cat conftest.err >&5
40839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840   (exit $ac_status); } && {
40841          test -z "$ac_c_werror_flag" ||
40842          test ! -s conftest.err
40843        } && test -s conftest$ac_exeext && {
40844          test "$cross_compiling" = yes ||
40845          $as_test_x conftest$ac_exeext
40846        }; then
40847   eval "$as_ac_var=yes"
40848 else
40849   $as_echo "$as_me: failed program was:" >&5
40850 sed 's/^/| /' conftest.$ac_ext >&5
40851
40852         eval "$as_ac_var=no"
40853 fi
40854
40855 rm -rf conftest.dSYM
40856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40857       conftest$ac_exeext conftest.$ac_ext
40858 fi
40859 ac_res=`eval 'as_val=${'$as_ac_var'}
40860                  $as_echo "$as_val"'`
40861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40862 $as_echo "$ac_res" >&6; }
40863 as_val=`eval 'as_val=${'$as_ac_var'}
40864                  $as_echo "$as_val"'`
40865    if test "x$as_val" = x""yes; then
40866   cat >>confdefs.h <<_ACEOF
40867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40868 _ACEOF
40869  cat >>confdefs.h <<\_ACEOF
40870 #define HAVE_GETHOSTBYNAME2 1
40871 _ACEOF
40872
40873 fi
40874 done
40875
40876
40877 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
40878 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
40879 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40880   $as_echo_n "(cached) " >&6
40881 else
40882
40883        cat >conftest.$ac_ext <<_ACEOF
40884 /* confdefs.h.  */
40885 _ACEOF
40886 cat confdefs.h >>conftest.$ac_ext
40887 cat >>conftest.$ac_ext <<_ACEOF
40888 /* end confdefs.h.  */
40889
40890               #include <sys/socket.h>
40891
40892 int
40893 main ()
40894 {
40895
40896               struct sockaddr s; s.sa_len;
40897
40898   ;
40899   return 0;
40900 }
40901 _ACEOF
40902 rm -f conftest.$ac_objext
40903 if { (ac_try="$ac_compile"
40904 case "(($ac_try" in
40905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40906   *) ac_try_echo=$ac_try;;
40907 esac
40908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40909 $as_echo "$ac_try_echo") >&5
40910   (eval "$ac_compile") 2>conftest.er1
40911   ac_status=$?
40912   grep -v '^ *+' conftest.er1 >conftest.err
40913   rm -f conftest.er1
40914   cat conftest.err >&5
40915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40916   (exit $ac_status); } && {
40917          test -z "$ac_c_werror_flag" ||
40918          test ! -s conftest.err
40919        } && test -s conftest.$ac_objext; then
40920
40921              ac_cv_struct_sockaddr_sa_len=yes
40922
40923 else
40924   $as_echo "$as_me: failed program was:" >&5
40925 sed 's/^/| /' conftest.$ac_ext >&5
40926
40927         ac_cv_struct_sockaddr_sa_len=no
40928
40929
40930 fi
40931
40932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40933
40934
40935 fi
40936 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40937 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
40938
40939 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40940
40941 cat >>confdefs.h <<\_ACEOF
40942 #define HAVE_SA_LEN 1
40943 _ACEOF
40944
40945 fi
40946
40947
40948 for ac_func in strftime
40949 do
40950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40952 $as_echo_n "checking for $ac_func... " >&6; }
40953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40954   $as_echo_n "(cached) " >&6
40955 else
40956   cat >conftest.$ac_ext <<_ACEOF
40957 /* confdefs.h.  */
40958 _ACEOF
40959 cat confdefs.h >>conftest.$ac_ext
40960 cat >>conftest.$ac_ext <<_ACEOF
40961 /* end confdefs.h.  */
40962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40964 #define $ac_func innocuous_$ac_func
40965
40966 /* System header to define __stub macros and hopefully few prototypes,
40967     which can conflict with char $ac_func (); below.
40968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40969     <limits.h> exists even on freestanding compilers.  */
40970
40971 #ifdef __STDC__
40972 # include <limits.h>
40973 #else
40974 # include <assert.h>
40975 #endif
40976
40977 #undef $ac_func
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 $ac_func ();
40986 /* The GNU C library defines this for functions which it implements
40987     to always fail with ENOSYS.  Some functions are actually named
40988     something starting with __ and the normal name is an alias.  */
40989 #if defined __stub_$ac_func || defined __stub___$ac_func
40990 choke me
40991 #endif
40992
40993 int
40994 main ()
40995 {
40996 return $ac_func ();
40997   ;
40998   return 0;
40999 }
41000 _ACEOF
41001 rm -f conftest.$ac_objext conftest$ac_exeext
41002 if { (ac_try="$ac_link"
41003 case "(($ac_try" in
41004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41005   *) ac_try_echo=$ac_try;;
41006 esac
41007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41008 $as_echo "$ac_try_echo") >&5
41009   (eval "$ac_link") 2>conftest.er1
41010   ac_status=$?
41011   grep -v '^ *+' conftest.er1 >conftest.err
41012   rm -f conftest.er1
41013   cat conftest.err >&5
41014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015   (exit $ac_status); } && {
41016          test -z "$ac_c_werror_flag" ||
41017          test ! -s conftest.err
41018        } && test -s conftest$ac_exeext && {
41019          test "$cross_compiling" = yes ||
41020          $as_test_x conftest$ac_exeext
41021        }; then
41022   eval "$as_ac_var=yes"
41023 else
41024   $as_echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41026
41027         eval "$as_ac_var=no"
41028 fi
41029
41030 rm -rf conftest.dSYM
41031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41032       conftest$ac_exeext conftest.$ac_ext
41033 fi
41034 ac_res=`eval 'as_val=${'$as_ac_var'}
41035                  $as_echo "$as_val"'`
41036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41037 $as_echo "$ac_res" >&6; }
41038 as_val=`eval 'as_val=${'$as_ac_var'}
41039                  $as_echo "$as_val"'`
41040    if test "x$as_val" = x""yes; then
41041   cat >>confdefs.h <<_ACEOF
41042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41043 _ACEOF
41044
41045 else
41046   # strftime is in -lintl on SCO UNIX.
41047 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41048 $as_echo_n "checking for strftime in -lintl... " >&6; }
41049 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41050   $as_echo_n "(cached) " >&6
41051 else
41052   ac_check_lib_save_LIBS=$LIBS
41053 LIBS="-lintl  $LIBS"
41054 cat >conftest.$ac_ext <<_ACEOF
41055 /* confdefs.h.  */
41056 _ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h.  */
41060
41061 /* Override any GCC internal prototype to avoid an error.
41062    Use char because int might match the return type of a GCC
41063    builtin and then its argument prototype would still apply.  */
41064 #ifdef __cplusplus
41065 extern "C"
41066 #endif
41067 char strftime ();
41068 int
41069 main ()
41070 {
41071 return strftime ();
41072   ;
41073   return 0;
41074 }
41075 _ACEOF
41076 rm -f conftest.$ac_objext conftest$ac_exeext
41077 if { (ac_try="$ac_link"
41078 case "(($ac_try" in
41079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080   *) ac_try_echo=$ac_try;;
41081 esac
41082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41083 $as_echo "$ac_try_echo") >&5
41084   (eval "$ac_link") 2>conftest.er1
41085   ac_status=$?
41086   grep -v '^ *+' conftest.er1 >conftest.err
41087   rm -f conftest.er1
41088   cat conftest.err >&5
41089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090   (exit $ac_status); } && {
41091          test -z "$ac_c_werror_flag" ||
41092          test ! -s conftest.err
41093        } && test -s conftest$ac_exeext && {
41094          test "$cross_compiling" = yes ||
41095          $as_test_x conftest$ac_exeext
41096        }; then
41097   ac_cv_lib_intl_strftime=yes
41098 else
41099   $as_echo "$as_me: failed program was:" >&5
41100 sed 's/^/| /' conftest.$ac_ext >&5
41101
41102         ac_cv_lib_intl_strftime=no
41103 fi
41104
41105 rm -rf conftest.dSYM
41106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41107       conftest$ac_exeext conftest.$ac_ext
41108 LIBS=$ac_check_lib_save_LIBS
41109 fi
41110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41111 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
41112 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
41113   cat >>confdefs.h <<\_ACEOF
41114 #define HAVE_STRFTIME 1
41115 _ACEOF
41116
41117 LIBS="-lintl $LIBS"
41118 fi
41119
41120 fi
41121 done
41122
41123
41124 for ac_func in vprintf
41125 do
41126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41127 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41128 $as_echo_n "checking for $ac_func... " >&6; }
41129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41130   $as_echo_n "(cached) " >&6
41131 else
41132   cat >conftest.$ac_ext <<_ACEOF
41133 /* confdefs.h.  */
41134 _ACEOF
41135 cat confdefs.h >>conftest.$ac_ext
41136 cat >>conftest.$ac_ext <<_ACEOF
41137 /* end confdefs.h.  */
41138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41140 #define $ac_func innocuous_$ac_func
41141
41142 /* System header to define __stub macros and hopefully few prototypes,
41143     which can conflict with char $ac_func (); below.
41144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41145     <limits.h> exists even on freestanding compilers.  */
41146
41147 #ifdef __STDC__
41148 # include <limits.h>
41149 #else
41150 # include <assert.h>
41151 #endif
41152
41153 #undef $ac_func
41154
41155 /* Override any GCC internal prototype to avoid an error.
41156    Use char because int might match the return type of a GCC
41157    builtin and then its argument prototype would still apply.  */
41158 #ifdef __cplusplus
41159 extern "C"
41160 #endif
41161 char $ac_func ();
41162 /* The GNU C library defines this for functions which it implements
41163     to always fail with ENOSYS.  Some functions are actually named
41164     something starting with __ and the normal name is an alias.  */
41165 #if defined __stub_$ac_func || defined __stub___$ac_func
41166 choke me
41167 #endif
41168
41169 int
41170 main ()
41171 {
41172 return $ac_func ();
41173   ;
41174   return 0;
41175 }
41176 _ACEOF
41177 rm -f conftest.$ac_objext conftest$ac_exeext
41178 if { (ac_try="$ac_link"
41179 case "(($ac_try" in
41180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41181   *) ac_try_echo=$ac_try;;
41182 esac
41183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41184 $as_echo "$ac_try_echo") >&5
41185   (eval "$ac_link") 2>conftest.er1
41186   ac_status=$?
41187   grep -v '^ *+' conftest.er1 >conftest.err
41188   rm -f conftest.er1
41189   cat conftest.err >&5
41190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191   (exit $ac_status); } && {
41192          test -z "$ac_c_werror_flag" ||
41193          test ! -s conftest.err
41194        } && test -s conftest$ac_exeext && {
41195          test "$cross_compiling" = yes ||
41196          $as_test_x conftest$ac_exeext
41197        }; then
41198   eval "$as_ac_var=yes"
41199 else
41200   $as_echo "$as_me: failed program was:" >&5
41201 sed 's/^/| /' conftest.$ac_ext >&5
41202
41203         eval "$as_ac_var=no"
41204 fi
41205
41206 rm -rf conftest.dSYM
41207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41208       conftest$ac_exeext conftest.$ac_ext
41209 fi
41210 ac_res=`eval 'as_val=${'$as_ac_var'}
41211                  $as_echo "$as_val"'`
41212                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41213 $as_echo "$ac_res" >&6; }
41214 as_val=`eval 'as_val=${'$as_ac_var'}
41215                  $as_echo "$as_val"'`
41216    if test "x$as_val" = x""yes; then
41217   cat >>confdefs.h <<_ACEOF
41218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41219 _ACEOF
41220
41221 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
41222 $as_echo_n "checking for _doprnt... " >&6; }
41223 if test "${ac_cv_func__doprnt+set}" = set; then
41224   $as_echo_n "(cached) " >&6
41225 else
41226   cat >conftest.$ac_ext <<_ACEOF
41227 /* confdefs.h.  */
41228 _ACEOF
41229 cat confdefs.h >>conftest.$ac_ext
41230 cat >>conftest.$ac_ext <<_ACEOF
41231 /* end confdefs.h.  */
41232 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41234 #define _doprnt innocuous__doprnt
41235
41236 /* System header to define __stub macros and hopefully few prototypes,
41237     which can conflict with char _doprnt (); below.
41238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41239     <limits.h> exists even on freestanding compilers.  */
41240
41241 #ifdef __STDC__
41242 # include <limits.h>
41243 #else
41244 # include <assert.h>
41245 #endif
41246
41247 #undef _doprnt
41248
41249 /* Override any GCC internal prototype to avoid an error.
41250    Use char because int might match the return type of a GCC
41251    builtin and then its argument prototype would still apply.  */
41252 #ifdef __cplusplus
41253 extern "C"
41254 #endif
41255 char _doprnt ();
41256 /* The GNU C library defines this for functions which it implements
41257     to always fail with ENOSYS.  Some functions are actually named
41258     something starting with __ and the normal name is an alias.  */
41259 #if defined __stub__doprnt || defined __stub____doprnt
41260 choke me
41261 #endif
41262
41263 int
41264 main ()
41265 {
41266 return _doprnt ();
41267   ;
41268   return 0;
41269 }
41270 _ACEOF
41271 rm -f conftest.$ac_objext conftest$ac_exeext
41272 if { (ac_try="$ac_link"
41273 case "(($ac_try" in
41274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41275   *) ac_try_echo=$ac_try;;
41276 esac
41277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41278 $as_echo "$ac_try_echo") >&5
41279   (eval "$ac_link") 2>conftest.er1
41280   ac_status=$?
41281   grep -v '^ *+' conftest.er1 >conftest.err
41282   rm -f conftest.er1
41283   cat conftest.err >&5
41284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41285   (exit $ac_status); } && {
41286          test -z "$ac_c_werror_flag" ||
41287          test ! -s conftest.err
41288        } && test -s conftest$ac_exeext && {
41289          test "$cross_compiling" = yes ||
41290          $as_test_x conftest$ac_exeext
41291        }; then
41292   ac_cv_func__doprnt=yes
41293 else
41294   $as_echo "$as_me: failed program was:" >&5
41295 sed 's/^/| /' conftest.$ac_ext >&5
41296
41297         ac_cv_func__doprnt=no
41298 fi
41299
41300 rm -rf conftest.dSYM
41301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41302       conftest$ac_exeext conftest.$ac_ext
41303 fi
41304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41305 $as_echo "$ac_cv_func__doprnt" >&6; }
41306 if test "x$ac_cv_func__doprnt" = x""yes; then
41307
41308 cat >>confdefs.h <<\_ACEOF
41309 #define HAVE_DOPRNT 1
41310 _ACEOF
41311
41312 fi
41313
41314 fi
41315 done
41316
41317
41318 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
41319 # for constant arguments.  Useless!
41320 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
41321 $as_echo_n "checking for working alloca.h... " >&6; }
41322 if test "${ac_cv_working_alloca_h+set}" = set; then
41323   $as_echo_n "(cached) " >&6
41324 else
41325   cat >conftest.$ac_ext <<_ACEOF
41326 /* confdefs.h.  */
41327 _ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h.  */
41331 #include <alloca.h>
41332 int
41333 main ()
41334 {
41335 char *p = (char *) alloca (2 * sizeof (int));
41336                           if (p) return 0;
41337   ;
41338   return 0;
41339 }
41340 _ACEOF
41341 rm -f conftest.$ac_objext conftest$ac_exeext
41342 if { (ac_try="$ac_link"
41343 case "(($ac_try" in
41344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41345   *) ac_try_echo=$ac_try;;
41346 esac
41347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41348 $as_echo "$ac_try_echo") >&5
41349   (eval "$ac_link") 2>conftest.er1
41350   ac_status=$?
41351   grep -v '^ *+' conftest.er1 >conftest.err
41352   rm -f conftest.er1
41353   cat conftest.err >&5
41354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355   (exit $ac_status); } && {
41356          test -z "$ac_c_werror_flag" ||
41357          test ! -s conftest.err
41358        } && test -s conftest$ac_exeext && {
41359          test "$cross_compiling" = yes ||
41360          $as_test_x conftest$ac_exeext
41361        }; then
41362   ac_cv_working_alloca_h=yes
41363 else
41364   $as_echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367         ac_cv_working_alloca_h=no
41368 fi
41369
41370 rm -rf conftest.dSYM
41371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41372       conftest$ac_exeext conftest.$ac_ext
41373 fi
41374 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
41375 $as_echo "$ac_cv_working_alloca_h" >&6; }
41376 if test $ac_cv_working_alloca_h = yes; then
41377
41378 cat >>confdefs.h <<\_ACEOF
41379 #define HAVE_ALLOCA_H 1
41380 _ACEOF
41381
41382 fi
41383
41384 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
41385 $as_echo_n "checking for alloca... " >&6; }
41386 if test "${ac_cv_func_alloca_works+set}" = set; then
41387   $as_echo_n "(cached) " >&6
41388 else
41389   cat >conftest.$ac_ext <<_ACEOF
41390 /* confdefs.h.  */
41391 _ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h.  */
41395 #ifdef __GNUC__
41396 # define alloca __builtin_alloca
41397 #else
41398 # ifdef _MSC_VER
41399 #  include <malloc.h>
41400 #  define alloca _alloca
41401 # else
41402 #  ifdef HAVE_ALLOCA_H
41403 #   include <alloca.h>
41404 #  else
41405 #   ifdef _AIX
41406  #pragma alloca
41407 #   else
41408 #    ifndef alloca /* predefined by HP cc +Olibcalls */
41409 char *alloca ();
41410 #    endif
41411 #   endif
41412 #  endif
41413 # endif
41414 #endif
41415
41416 int
41417 main ()
41418 {
41419 char *p = (char *) alloca (1);
41420                                     if (p) return 0;
41421   ;
41422   return 0;
41423 }
41424 _ACEOF
41425 rm -f conftest.$ac_objext conftest$ac_exeext
41426 if { (ac_try="$ac_link"
41427 case "(($ac_try" in
41428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41429   *) ac_try_echo=$ac_try;;
41430 esac
41431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41432 $as_echo "$ac_try_echo") >&5
41433   (eval "$ac_link") 2>conftest.er1
41434   ac_status=$?
41435   grep -v '^ *+' conftest.er1 >conftest.err
41436   rm -f conftest.er1
41437   cat conftest.err >&5
41438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439   (exit $ac_status); } && {
41440          test -z "$ac_c_werror_flag" ||
41441          test ! -s conftest.err
41442        } && test -s conftest$ac_exeext && {
41443          test "$cross_compiling" = yes ||
41444          $as_test_x conftest$ac_exeext
41445        }; then
41446   ac_cv_func_alloca_works=yes
41447 else
41448   $as_echo "$as_me: failed program was:" >&5
41449 sed 's/^/| /' conftest.$ac_ext >&5
41450
41451         ac_cv_func_alloca_works=no
41452 fi
41453
41454 rm -rf conftest.dSYM
41455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41456       conftest$ac_exeext conftest.$ac_ext
41457 fi
41458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
41459 $as_echo "$ac_cv_func_alloca_works" >&6; }
41460
41461 if test $ac_cv_func_alloca_works = yes; then
41462
41463 cat >>confdefs.h <<\_ACEOF
41464 #define HAVE_ALLOCA 1
41465 _ACEOF
41466
41467 else
41468   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
41469 # that cause trouble.  Some versions do not even contain alloca or
41470 # contain a buggy version.  If you still want to use their alloca,
41471 # use ar to extract alloca.o from them instead of compiling alloca.c.
41472
41473 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
41474
41475 cat >>confdefs.h <<\_ACEOF
41476 #define C_ALLOCA 1
41477 _ACEOF
41478
41479
41480 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
41481 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
41482 if test "${ac_cv_os_cray+set}" = set; then
41483   $as_echo_n "(cached) " >&6
41484 else
41485   cat >conftest.$ac_ext <<_ACEOF
41486 /* confdefs.h.  */
41487 _ACEOF
41488 cat confdefs.h >>conftest.$ac_ext
41489 cat >>conftest.$ac_ext <<_ACEOF
41490 /* end confdefs.h.  */
41491 #if defined CRAY && ! defined CRAY2
41492 webecray
41493 #else
41494 wenotbecray
41495 #endif
41496
41497 _ACEOF
41498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41499   $EGREP "webecray" >/dev/null 2>&1; then
41500   ac_cv_os_cray=yes
41501 else
41502   ac_cv_os_cray=no
41503 fi
41504 rm -f conftest*
41505
41506 fi
41507 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
41508 $as_echo "$ac_cv_os_cray" >&6; }
41509 if test $ac_cv_os_cray = yes; then
41510   for ac_func in _getb67 GETB67 getb67; do
41511     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41513 $as_echo_n "checking for $ac_func... " >&6; }
41514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41515   $as_echo_n "(cached) " >&6
41516 else
41517   cat >conftest.$ac_ext <<_ACEOF
41518 /* confdefs.h.  */
41519 _ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h.  */
41523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41525 #define $ac_func innocuous_$ac_func
41526
41527 /* System header to define __stub macros and hopefully few prototypes,
41528     which can conflict with char $ac_func (); below.
41529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41530     <limits.h> exists even on freestanding compilers.  */
41531
41532 #ifdef __STDC__
41533 # include <limits.h>
41534 #else
41535 # include <assert.h>
41536 #endif
41537
41538 #undef $ac_func
41539
41540 /* Override any GCC internal prototype to avoid an error.
41541    Use char because int might match the return type of a GCC
41542    builtin and then its argument prototype would still apply.  */
41543 #ifdef __cplusplus
41544 extern "C"
41545 #endif
41546 char $ac_func ();
41547 /* The GNU C library defines this for functions which it implements
41548     to always fail with ENOSYS.  Some functions are actually named
41549     something starting with __ and the normal name is an alias.  */
41550 #if defined __stub_$ac_func || defined __stub___$ac_func
41551 choke me
41552 #endif
41553
41554 int
41555 main ()
41556 {
41557 return $ac_func ();
41558   ;
41559   return 0;
41560 }
41561 _ACEOF
41562 rm -f conftest.$ac_objext conftest$ac_exeext
41563 if { (ac_try="$ac_link"
41564 case "(($ac_try" in
41565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41566   *) ac_try_echo=$ac_try;;
41567 esac
41568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41569 $as_echo "$ac_try_echo") >&5
41570   (eval "$ac_link") 2>conftest.er1
41571   ac_status=$?
41572   grep -v '^ *+' conftest.er1 >conftest.err
41573   rm -f conftest.er1
41574   cat conftest.err >&5
41575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41576   (exit $ac_status); } && {
41577          test -z "$ac_c_werror_flag" ||
41578          test ! -s conftest.err
41579        } && test -s conftest$ac_exeext && {
41580          test "$cross_compiling" = yes ||
41581          $as_test_x conftest$ac_exeext
41582        }; then
41583   eval "$as_ac_var=yes"
41584 else
41585   $as_echo "$as_me: failed program was:" >&5
41586 sed 's/^/| /' conftest.$ac_ext >&5
41587
41588         eval "$as_ac_var=no"
41589 fi
41590
41591 rm -rf conftest.dSYM
41592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41593       conftest$ac_exeext conftest.$ac_ext
41594 fi
41595 ac_res=`eval 'as_val=${'$as_ac_var'}
41596                  $as_echo "$as_val"'`
41597                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41598 $as_echo "$ac_res" >&6; }
41599 as_val=`eval 'as_val=${'$as_ac_var'}
41600                  $as_echo "$as_val"'`
41601    if test "x$as_val" = x""yes; then
41602
41603 cat >>confdefs.h <<_ACEOF
41604 #define CRAY_STACKSEG_END $ac_func
41605 _ACEOF
41606
41607     break
41608 fi
41609
41610   done
41611 fi
41612
41613 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
41614 $as_echo_n "checking stack direction for C alloca... " >&6; }
41615 if test "${ac_cv_c_stack_direction+set}" = set; then
41616   $as_echo_n "(cached) " >&6
41617 else
41618   if test "$cross_compiling" = yes; then
41619   ac_cv_c_stack_direction=0
41620 else
41621   cat >conftest.$ac_ext <<_ACEOF
41622 /* confdefs.h.  */
41623 _ACEOF
41624 cat confdefs.h >>conftest.$ac_ext
41625 cat >>conftest.$ac_ext <<_ACEOF
41626 /* end confdefs.h.  */
41627 $ac_includes_default
41628 int
41629 find_stack_direction ()
41630 {
41631   static char *addr = 0;
41632   auto char dummy;
41633   if (addr == 0)
41634     {
41635       addr = &dummy;
41636       return find_stack_direction ();
41637     }
41638   else
41639     return (&dummy > addr) ? 1 : -1;
41640 }
41641
41642 int
41643 main ()
41644 {
41645   return find_stack_direction () < 0;
41646 }
41647 _ACEOF
41648 rm -f conftest$ac_exeext
41649 if { (ac_try="$ac_link"
41650 case "(($ac_try" in
41651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41652   *) ac_try_echo=$ac_try;;
41653 esac
41654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41655 $as_echo "$ac_try_echo") >&5
41656   (eval "$ac_link") 2>&5
41657   ac_status=$?
41658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41660   { (case "(($ac_try" in
41661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41662   *) ac_try_echo=$ac_try;;
41663 esac
41664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41665 $as_echo "$ac_try_echo") >&5
41666   (eval "$ac_try") 2>&5
41667   ac_status=$?
41668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669   (exit $ac_status); }; }; then
41670   ac_cv_c_stack_direction=1
41671 else
41672   $as_echo "$as_me: program exited with status $ac_status" >&5
41673 $as_echo "$as_me: failed program was:" >&5
41674 sed 's/^/| /' conftest.$ac_ext >&5
41675
41676 ( exit $ac_status )
41677 ac_cv_c_stack_direction=-1
41678 fi
41679 rm -rf conftest.dSYM
41680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41681 fi
41682
41683
41684 fi
41685 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
41686 $as_echo "$ac_cv_c_stack_direction" >&6; }
41687
41688 cat >>confdefs.h <<_ACEOF
41689 #define STACK_DIRECTION $ac_cv_c_stack_direction
41690 _ACEOF
41691
41692
41693 fi
41694
41695 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
41696 # -lseq on Dynix/PTX, -lgen on Unixware.
41697 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
41698 $as_echo_n "checking for library containing getmntent... " >&6; }
41699 if test "${ac_cv_search_getmntent+set}" = set; then
41700   $as_echo_n "(cached) " >&6
41701 else
41702   ac_func_search_save_LIBS=$LIBS
41703 cat >conftest.$ac_ext <<_ACEOF
41704 /* confdefs.h.  */
41705 _ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h.  */
41709
41710 /* Override any GCC internal prototype to avoid an error.
41711    Use char because int might match the return type of a GCC
41712    builtin and then its argument prototype would still apply.  */
41713 #ifdef __cplusplus
41714 extern "C"
41715 #endif
41716 char getmntent ();
41717 int
41718 main ()
41719 {
41720 return getmntent ();
41721   ;
41722   return 0;
41723 }
41724 _ACEOF
41725 for ac_lib in '' sun seq gen; do
41726   if test -z "$ac_lib"; then
41727     ac_res="none required"
41728   else
41729     ac_res=-l$ac_lib
41730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41731   fi
41732   rm -f conftest.$ac_objext conftest$ac_exeext
41733 if { (ac_try="$ac_link"
41734 case "(($ac_try" in
41735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41736   *) ac_try_echo=$ac_try;;
41737 esac
41738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41739 $as_echo "$ac_try_echo") >&5
41740   (eval "$ac_link") 2>conftest.er1
41741   ac_status=$?
41742   grep -v '^ *+' conftest.er1 >conftest.err
41743   rm -f conftest.er1
41744   cat conftest.err >&5
41745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41746   (exit $ac_status); } && {
41747          test -z "$ac_c_werror_flag" ||
41748          test ! -s conftest.err
41749        } && test -s conftest$ac_exeext && {
41750          test "$cross_compiling" = yes ||
41751          $as_test_x conftest$ac_exeext
41752        }; then
41753   ac_cv_search_getmntent=$ac_res
41754 else
41755   $as_echo "$as_me: failed program was:" >&5
41756 sed 's/^/| /' conftest.$ac_ext >&5
41757
41758
41759 fi
41760
41761 rm -rf conftest.dSYM
41762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41763       conftest$ac_exeext
41764   if test "${ac_cv_search_getmntent+set}" = set; then
41765   break
41766 fi
41767 done
41768 if test "${ac_cv_search_getmntent+set}" = set; then
41769   :
41770 else
41771   ac_cv_search_getmntent=no
41772 fi
41773 rm conftest.$ac_ext
41774 LIBS=$ac_func_search_save_LIBS
41775 fi
41776 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
41777 $as_echo "$ac_cv_search_getmntent" >&6; }
41778 ac_res=$ac_cv_search_getmntent
41779 if test "$ac_res" != no; then
41780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41781   ac_cv_func_getmntent=yes
41782
41783 cat >>confdefs.h <<\_ACEOF
41784 #define HAVE_GETMNTENT 1
41785 _ACEOF
41786
41787 else
41788   ac_cv_func_getmntent=no
41789 fi
41790
41791
41792
41793 for ac_func in getmntinfo
41794 do
41795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41797 $as_echo_n "checking for $ac_func... " >&6; }
41798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41799   $as_echo_n "(cached) " >&6
41800 else
41801   cat >conftest.$ac_ext <<_ACEOF
41802 /* confdefs.h.  */
41803 _ACEOF
41804 cat confdefs.h >>conftest.$ac_ext
41805 cat >>conftest.$ac_ext <<_ACEOF
41806 /* end confdefs.h.  */
41807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41809 #define $ac_func innocuous_$ac_func
41810
41811 /* System header to define __stub macros and hopefully few prototypes,
41812     which can conflict with char $ac_func (); below.
41813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41814     <limits.h> exists even on freestanding compilers.  */
41815
41816 #ifdef __STDC__
41817 # include <limits.h>
41818 #else
41819 # include <assert.h>
41820 #endif
41821
41822 #undef $ac_func
41823
41824 /* Override any GCC internal prototype to avoid an error.
41825    Use char because int might match the return type of a GCC
41826    builtin and then its argument prototype would still apply.  */
41827 #ifdef __cplusplus
41828 extern "C"
41829 #endif
41830 char $ac_func ();
41831 /* The GNU C library defines this for functions which it implements
41832     to always fail with ENOSYS.  Some functions are actually named
41833     something starting with __ and the normal name is an alias.  */
41834 #if defined __stub_$ac_func || defined __stub___$ac_func
41835 choke me
41836 #endif
41837
41838 int
41839 main ()
41840 {
41841 return $ac_func ();
41842   ;
41843   return 0;
41844 }
41845 _ACEOF
41846 rm -f conftest.$ac_objext conftest$ac_exeext
41847 if { (ac_try="$ac_link"
41848 case "(($ac_try" in
41849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41850   *) ac_try_echo=$ac_try;;
41851 esac
41852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41853 $as_echo "$ac_try_echo") >&5
41854   (eval "$ac_link") 2>conftest.er1
41855   ac_status=$?
41856   grep -v '^ *+' conftest.er1 >conftest.err
41857   rm -f conftest.er1
41858   cat conftest.err >&5
41859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860   (exit $ac_status); } && {
41861          test -z "$ac_c_werror_flag" ||
41862          test ! -s conftest.err
41863        } && test -s conftest$ac_exeext && {
41864          test "$cross_compiling" = yes ||
41865          $as_test_x conftest$ac_exeext
41866        }; then
41867   eval "$as_ac_var=yes"
41868 else
41869   $as_echo "$as_me: failed program was:" >&5
41870 sed 's/^/| /' conftest.$ac_ext >&5
41871
41872         eval "$as_ac_var=no"
41873 fi
41874
41875 rm -rf conftest.dSYM
41876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41877       conftest$ac_exeext conftest.$ac_ext
41878 fi
41879 ac_res=`eval 'as_val=${'$as_ac_var'}
41880                  $as_echo "$as_val"'`
41881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41882 $as_echo "$ac_res" >&6; }
41883 as_val=`eval 'as_val=${'$as_ac_var'}
41884                  $as_echo "$as_val"'`
41885    if test "x$as_val" = x""yes; then
41886   cat >>confdefs.h <<_ACEOF
41887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41888 _ACEOF
41889  cat >>confdefs.h <<\_ACEOF
41890 #define HAVE_GETMNTINFO 1
41891 _ACEOF
41892
41893 fi
41894 done
41895
41896 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
41897 $as_echo_n "checking whether closedir returns void... " >&6; }
41898 if test "${ac_cv_func_closedir_void+set}" = set; then
41899   $as_echo_n "(cached) " >&6
41900 else
41901   if test "$cross_compiling" = yes; then
41902   ac_cv_func_closedir_void=yes
41903 else
41904   cat >conftest.$ac_ext <<_ACEOF
41905 /* confdefs.h.  */
41906 _ACEOF
41907 cat confdefs.h >>conftest.$ac_ext
41908 cat >>conftest.$ac_ext <<_ACEOF
41909 /* end confdefs.h.  */
41910 $ac_includes_default
41911 #include <$ac_header_dirent>
41912 #ifndef __cplusplus
41913 int closedir ();
41914 #endif
41915
41916 int
41917 main ()
41918 {
41919 return closedir (opendir (".")) != 0;
41920   ;
41921   return 0;
41922 }
41923 _ACEOF
41924 rm -f conftest$ac_exeext
41925 if { (ac_try="$ac_link"
41926 case "(($ac_try" in
41927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41928   *) ac_try_echo=$ac_try;;
41929 esac
41930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41931 $as_echo "$ac_try_echo") >&5
41932   (eval "$ac_link") 2>&5
41933   ac_status=$?
41934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41936   { (case "(($ac_try" in
41937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41938   *) ac_try_echo=$ac_try;;
41939 esac
41940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41941 $as_echo "$ac_try_echo") >&5
41942   (eval "$ac_try") 2>&5
41943   ac_status=$?
41944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41945   (exit $ac_status); }; }; then
41946   ac_cv_func_closedir_void=no
41947 else
41948   $as_echo "$as_me: program exited with status $ac_status" >&5
41949 $as_echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41951
41952 ( exit $ac_status )
41953 ac_cv_func_closedir_void=yes
41954 fi
41955 rm -rf conftest.dSYM
41956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41957 fi
41958
41959
41960 fi
41961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
41962 $as_echo "$ac_cv_func_closedir_void" >&6; }
41963 if test $ac_cv_func_closedir_void = yes; then
41964
41965 cat >>confdefs.h <<\_ACEOF
41966 #define CLOSEDIR_VOID 1
41967 _ACEOF
41968
41969 fi
41970
41971 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
41972 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
41973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
41974   $as_echo_n "(cached) " >&6
41975 else
41976   if test "$cross_compiling" = yes; then
41977   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
41978 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
41979    { (exit 1); exit 1; }; }
41980 else
41981   cat >conftest.$ac_ext <<_ACEOF
41982 /* confdefs.h.  */
41983 _ACEOF
41984 cat confdefs.h >>conftest.$ac_ext
41985 cat >>conftest.$ac_ext <<_ACEOF
41986 /* end confdefs.h.  */
41987 $ac_includes_default
41988 int
41989 main ()
41990 {
41991 /* If this system has a BSD-style setpgrp which takes arguments,
41992   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
41993   exit successfully. */
41994   return setpgrp (1,1) != -1;
41995   ;
41996   return 0;
41997 }
41998 _ACEOF
41999 rm -f conftest$ac_exeext
42000 if { (ac_try="$ac_link"
42001 case "(($ac_try" in
42002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42003   *) ac_try_echo=$ac_try;;
42004 esac
42005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42006 $as_echo "$ac_try_echo") >&5
42007   (eval "$ac_link") 2>&5
42008   ac_status=$?
42009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42011   { (case "(($ac_try" in
42012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42013   *) ac_try_echo=$ac_try;;
42014 esac
42015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42016 $as_echo "$ac_try_echo") >&5
42017   (eval "$ac_try") 2>&5
42018   ac_status=$?
42019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020   (exit $ac_status); }; }; then
42021   ac_cv_func_setpgrp_void=no
42022 else
42023   $as_echo "$as_me: program exited with status $ac_status" >&5
42024 $as_echo "$as_me: failed program was:" >&5
42025 sed 's/^/| /' conftest.$ac_ext >&5
42026
42027 ( exit $ac_status )
42028 ac_cv_func_setpgrp_void=yes
42029 fi
42030 rm -rf conftest.dSYM
42031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42032 fi
42033
42034
42035 fi
42036 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42037 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42038 if test $ac_cv_func_setpgrp_void = yes; then
42039
42040 cat >>confdefs.h <<\_ACEOF
42041 #define SETPGRP_VOID 1
42042 _ACEOF
42043
42044 fi
42045             # AC_FUNC_FNMATCH    dnl use local version
42046
42047 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
42048 $as_echo_n "checking for gettext in -lintl... " >&6; }
42049 if test "${ac_cv_lib_intl_gettext+set}" = set; then
42050   $as_echo_n "(cached) " >&6
42051 else
42052   ac_check_lib_save_LIBS=$LIBS
42053 LIBS="-lintl  $LIBS"
42054 cat >conftest.$ac_ext <<_ACEOF
42055 /* confdefs.h.  */
42056 _ACEOF
42057 cat confdefs.h >>conftest.$ac_ext
42058 cat >>conftest.$ac_ext <<_ACEOF
42059 /* end confdefs.h.  */
42060
42061 /* Override any GCC internal prototype to avoid an error.
42062    Use char because int might match the return type of a GCC
42063    builtin and then its argument prototype would still apply.  */
42064 #ifdef __cplusplus
42065 extern "C"
42066 #endif
42067 char gettext ();
42068 int
42069 main ()
42070 {
42071 return gettext ();
42072   ;
42073   return 0;
42074 }
42075 _ACEOF
42076 rm -f conftest.$ac_objext conftest$ac_exeext
42077 if { (ac_try="$ac_link"
42078 case "(($ac_try" in
42079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42080   *) ac_try_echo=$ac_try;;
42081 esac
42082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42083 $as_echo "$ac_try_echo") >&5
42084   (eval "$ac_link") 2>conftest.er1
42085   ac_status=$?
42086   grep -v '^ *+' conftest.er1 >conftest.err
42087   rm -f conftest.er1
42088   cat conftest.err >&5
42089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090   (exit $ac_status); } && {
42091          test -z "$ac_c_werror_flag" ||
42092          test ! -s conftest.err
42093        } && test -s conftest$ac_exeext && {
42094          test "$cross_compiling" = yes ||
42095          $as_test_x conftest$ac_exeext
42096        }; then
42097   ac_cv_lib_intl_gettext=yes
42098 else
42099   $as_echo "$as_me: failed program was:" >&5
42100 sed 's/^/| /' conftest.$ac_ext >&5
42101
42102         ac_cv_lib_intl_gettext=no
42103 fi
42104
42105 rm -rf conftest.dSYM
42106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42107       conftest$ac_exeext conftest.$ac_ext
42108 LIBS=$ac_check_lib_save_LIBS
42109 fi
42110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
42111 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
42112 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
42113   LIBS="$LIBS -lintl"
42114 fi
42115
42116
42117
42118 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
42119 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
42120 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
42121   $as_echo_n "(cached) " >&6
42122 else
42123   ac_check_lib_save_LIBS=$LIBS
42124 LIBS="-lsun  $LIBS"
42125 cat >conftest.$ac_ext <<_ACEOF
42126 /* confdefs.h.  */
42127 _ACEOF
42128 cat confdefs.h >>conftest.$ac_ext
42129 cat >>conftest.$ac_ext <<_ACEOF
42130 /* end confdefs.h.  */
42131
42132 /* Override any GCC internal prototype to avoid an error.
42133    Use char because int might match the return type of a GCC
42134    builtin and then its argument prototype would still apply.  */
42135 #ifdef __cplusplus
42136 extern "C"
42137 #endif
42138 char getpwnam ();
42139 int
42140 main ()
42141 {
42142 return getpwnam ();
42143   ;
42144   return 0;
42145 }
42146 _ACEOF
42147 rm -f conftest.$ac_objext conftest$ac_exeext
42148 if { (ac_try="$ac_link"
42149 case "(($ac_try" in
42150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42151   *) ac_try_echo=$ac_try;;
42152 esac
42153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42154 $as_echo "$ac_try_echo") >&5
42155   (eval "$ac_link") 2>conftest.er1
42156   ac_status=$?
42157   grep -v '^ *+' conftest.er1 >conftest.err
42158   rm -f conftest.er1
42159   cat conftest.err >&5
42160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161   (exit $ac_status); } && {
42162          test -z "$ac_c_werror_flag" ||
42163          test ! -s conftest.err
42164        } && test -s conftest$ac_exeext && {
42165          test "$cross_compiling" = yes ||
42166          $as_test_x conftest$ac_exeext
42167        }; then
42168   ac_cv_lib_sun_getpwnam=yes
42169 else
42170   $as_echo "$as_me: failed program was:" >&5
42171 sed 's/^/| /' conftest.$ac_ext >&5
42172
42173         ac_cv_lib_sun_getpwnam=no
42174 fi
42175
42176 rm -rf conftest.dSYM
42177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42178       conftest$ac_exeext conftest.$ac_ext
42179 LIBS=$ac_check_lib_save_LIBS
42180 fi
42181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
42182 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
42183 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
42184   cat >>confdefs.h <<_ACEOF
42185 #define HAVE_LIBSUN 1
42186 _ACEOF
42187
42188   LIBS="-lsun $LIBS"
42189
42190 fi
42191
42192
42193
42194 for ac_header in zlib.h
42195 do
42196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42198   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42199 $as_echo_n "checking for $ac_header... " >&6; }
42200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42201   $as_echo_n "(cached) " >&6
42202 fi
42203 ac_res=`eval 'as_val=${'$as_ac_Header'}
42204                  $as_echo "$as_val"'`
42205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42206 $as_echo "$ac_res" >&6; }
42207 else
42208   # Is the header compilable?
42209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42210 $as_echo_n "checking $ac_header usability... " >&6; }
42211 cat >conftest.$ac_ext <<_ACEOF
42212 /* confdefs.h.  */
42213 _ACEOF
42214 cat confdefs.h >>conftest.$ac_ext
42215 cat >>conftest.$ac_ext <<_ACEOF
42216 /* end confdefs.h.  */
42217 $ac_includes_default
42218 #include <$ac_header>
42219 _ACEOF
42220 rm -f conftest.$ac_objext
42221 if { (ac_try="$ac_compile"
42222 case "(($ac_try" in
42223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42224   *) ac_try_echo=$ac_try;;
42225 esac
42226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42227 $as_echo "$ac_try_echo") >&5
42228   (eval "$ac_compile") 2>conftest.er1
42229   ac_status=$?
42230   grep -v '^ *+' conftest.er1 >conftest.err
42231   rm -f conftest.er1
42232   cat conftest.err >&5
42233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42234   (exit $ac_status); } && {
42235          test -z "$ac_c_werror_flag" ||
42236          test ! -s conftest.err
42237        } && test -s conftest.$ac_objext; then
42238   ac_header_compiler=yes
42239 else
42240   $as_echo "$as_me: failed program was:" >&5
42241 sed 's/^/| /' conftest.$ac_ext >&5
42242
42243         ac_header_compiler=no
42244 fi
42245
42246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42248 $as_echo "$ac_header_compiler" >&6; }
42249
42250 # Is the header present?
42251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42252 $as_echo_n "checking $ac_header presence... " >&6; }
42253 cat >conftest.$ac_ext <<_ACEOF
42254 /* confdefs.h.  */
42255 _ACEOF
42256 cat confdefs.h >>conftest.$ac_ext
42257 cat >>conftest.$ac_ext <<_ACEOF
42258 /* end confdefs.h.  */
42259 #include <$ac_header>
42260 _ACEOF
42261 if { (ac_try="$ac_cpp conftest.$ac_ext"
42262 case "(($ac_try" in
42263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42264   *) ac_try_echo=$ac_try;;
42265 esac
42266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42267 $as_echo "$ac_try_echo") >&5
42268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42269   ac_status=$?
42270   grep -v '^ *+' conftest.er1 >conftest.err
42271   rm -f conftest.er1
42272   cat conftest.err >&5
42273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274   (exit $ac_status); } >/dev/null && {
42275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42276          test ! -s conftest.err
42277        }; then
42278   ac_header_preproc=yes
42279 else
42280   $as_echo "$as_me: failed program was:" >&5
42281 sed 's/^/| /' conftest.$ac_ext >&5
42282
42283   ac_header_preproc=no
42284 fi
42285
42286 rm -f conftest.err conftest.$ac_ext
42287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42288 $as_echo "$ac_header_preproc" >&6; }
42289
42290 # So?  What about this header?
42291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42292   yes:no: )
42293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42297     ac_header_preproc=yes
42298     ;;
42299   no:yes:* )
42300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42303 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42307 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42312
42313     ;;
42314 esac
42315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42316 $as_echo_n "checking for $ac_header... " >&6; }
42317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42318   $as_echo_n "(cached) " >&6
42319 else
42320   eval "$as_ac_Header=\$ac_header_preproc"
42321 fi
42322 ac_res=`eval 'as_val=${'$as_ac_Header'}
42323                  $as_echo "$as_val"'`
42324                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42325 $as_echo "$ac_res" >&6; }
42326
42327 fi
42328 as_val=`eval 'as_val=${'$as_ac_Header'}
42329                  $as_echo "$as_val"'`
42330    if test "x$as_val" = x""yes; then
42331   cat >>confdefs.h <<_ACEOF
42332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42333 _ACEOF
42334
42335 fi
42336
42337 done
42338
42339 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
42340 $as_echo_n "checking for deflate in -lz... " >&6; }
42341 if test "${ac_cv_lib_z_deflate+set}" = set; then
42342   $as_echo_n "(cached) " >&6
42343 else
42344   ac_check_lib_save_LIBS=$LIBS
42345 LIBS="-lz  $LIBS"
42346 cat >conftest.$ac_ext <<_ACEOF
42347 /* confdefs.h.  */
42348 _ACEOF
42349 cat confdefs.h >>conftest.$ac_ext
42350 cat >>conftest.$ac_ext <<_ACEOF
42351 /* end confdefs.h.  */
42352
42353 /* Override any GCC internal prototype to avoid an error.
42354    Use char because int might match the return type of a GCC
42355    builtin and then its argument prototype would still apply.  */
42356 #ifdef __cplusplus
42357 extern "C"
42358 #endif
42359 char deflate ();
42360 int
42361 main ()
42362 {
42363 return deflate ();
42364   ;
42365   return 0;
42366 }
42367 _ACEOF
42368 rm -f conftest.$ac_objext conftest$ac_exeext
42369 if { (ac_try="$ac_link"
42370 case "(($ac_try" in
42371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42372   *) ac_try_echo=$ac_try;;
42373 esac
42374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42375 $as_echo "$ac_try_echo") >&5
42376   (eval "$ac_link") 2>conftest.er1
42377   ac_status=$?
42378   grep -v '^ *+' conftest.er1 >conftest.err
42379   rm -f conftest.er1
42380   cat conftest.err >&5
42381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382   (exit $ac_status); } && {
42383          test -z "$ac_c_werror_flag" ||
42384          test ! -s conftest.err
42385        } && test -s conftest$ac_exeext && {
42386          test "$cross_compiling" = yes ||
42387          $as_test_x conftest$ac_exeext
42388        }; then
42389   ac_cv_lib_z_deflate=yes
42390 else
42391   $as_echo "$as_me: failed program was:" >&5
42392 sed 's/^/| /' conftest.$ac_ext >&5
42393
42394         ac_cv_lib_z_deflate=no
42395 fi
42396
42397 rm -rf conftest.dSYM
42398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42399       conftest$ac_exeext conftest.$ac_ext
42400 LIBS=$ac_check_lib_save_LIBS
42401 fi
42402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
42403 $as_echo "$ac_cv_lib_z_deflate" >&6; }
42404 if test "x$ac_cv_lib_z_deflate" = x""yes; then
42405   ZLIBS="-lz"
42406 fi
42407
42408 have_zlib=no
42409 if test x$ZLIBS = x-lz; then
42410    cat >>confdefs.h <<\_ACEOF
42411 #define HAVE_LIBZ 1
42412 _ACEOF
42413
42414    have_zlib=yes
42415 fi
42416
42417
42418 AFS_CFLAGS=""
42419 AFS_LIBS=""
42420 support_afs=auto
42421 # Check whether --enable-afs was given.
42422 if test "${enable_afs+set}" = set; then
42423   enableval=$enable_afs;
42424        if test x$enableval = xyes; then
42425           support_afs=yes
42426        elif test x$enableval = xno; then
42427           support_afs=no
42428        fi
42429
42430
42431 fi
42432
42433
42434 have_afs=no
42435 if test x$support_afs = xyes -o x$support_afs = xauto; then
42436
42437 # Check whether --with-afsdir was given.
42438 if test "${with_afsdir+set}" = set; then
42439   withval=$with_afsdir; with_afsdir=$withval
42440
42441 fi
42442
42443
42444             if test x$with_afsdir = x; then
42445       for root in /usr /usr/local; do
42446          if test -d ${root}/include/afs/ ; then
42447             with_afsdir=${root}
42448             break
42449          fi
42450       done
42451    fi
42452
42453    AFS_CFLAGS="-I${with_afsdir}/include"
42454
42455    saved_CFLAGS="${CFLAGS}"
42456    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
42457
42458
42459 for ac_header in afs/stds.h
42460 do
42461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42463   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42464 $as_echo_n "checking for $ac_header... " >&6; }
42465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42466   $as_echo_n "(cached) " >&6
42467 fi
42468 ac_res=`eval 'as_val=${'$as_ac_Header'}
42469                  $as_echo "$as_val"'`
42470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42471 $as_echo "$ac_res" >&6; }
42472 else
42473   # Is the header compilable?
42474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42475 $as_echo_n "checking $ac_header usability... " >&6; }
42476 cat >conftest.$ac_ext <<_ACEOF
42477 /* confdefs.h.  */
42478 _ACEOF
42479 cat confdefs.h >>conftest.$ac_ext
42480 cat >>conftest.$ac_ext <<_ACEOF
42481 /* end confdefs.h.  */
42482 $ac_includes_default
42483 #include <$ac_header>
42484 _ACEOF
42485 rm -f conftest.$ac_objext
42486 if { (ac_try="$ac_compile"
42487 case "(($ac_try" in
42488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42489   *) ac_try_echo=$ac_try;;
42490 esac
42491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42492 $as_echo "$ac_try_echo") >&5
42493   (eval "$ac_compile") 2>conftest.er1
42494   ac_status=$?
42495   grep -v '^ *+' conftest.er1 >conftest.err
42496   rm -f conftest.er1
42497   cat conftest.err >&5
42498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499   (exit $ac_status); } && {
42500          test -z "$ac_c_werror_flag" ||
42501          test ! -s conftest.err
42502        } && test -s conftest.$ac_objext; then
42503   ac_header_compiler=yes
42504 else
42505   $as_echo "$as_me: failed program was:" >&5
42506 sed 's/^/| /' conftest.$ac_ext >&5
42507
42508         ac_header_compiler=no
42509 fi
42510
42511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42513 $as_echo "$ac_header_compiler" >&6; }
42514
42515 # Is the header present?
42516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42517 $as_echo_n "checking $ac_header presence... " >&6; }
42518 cat >conftest.$ac_ext <<_ACEOF
42519 /* confdefs.h.  */
42520 _ACEOF
42521 cat confdefs.h >>conftest.$ac_ext
42522 cat >>conftest.$ac_ext <<_ACEOF
42523 /* end confdefs.h.  */
42524 #include <$ac_header>
42525 _ACEOF
42526 if { (ac_try="$ac_cpp conftest.$ac_ext"
42527 case "(($ac_try" in
42528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42529   *) ac_try_echo=$ac_try;;
42530 esac
42531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42532 $as_echo "$ac_try_echo") >&5
42533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42534   ac_status=$?
42535   grep -v '^ *+' conftest.er1 >conftest.err
42536   rm -f conftest.er1
42537   cat conftest.err >&5
42538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42539   (exit $ac_status); } >/dev/null && {
42540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42541          test ! -s conftest.err
42542        }; then
42543   ac_header_preproc=yes
42544 else
42545   $as_echo "$as_me: failed program was:" >&5
42546 sed 's/^/| /' conftest.$ac_ext >&5
42547
42548   ac_header_preproc=no
42549 fi
42550
42551 rm -f conftest.err conftest.$ac_ext
42552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42553 $as_echo "$ac_header_preproc" >&6; }
42554
42555 # So?  What about this header?
42556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42557   yes:no: )
42558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42562     ac_header_preproc=yes
42563     ;;
42564   no:yes:* )
42565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42567     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42568 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42569     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42571     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42572 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42573     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42575     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42577
42578     ;;
42579 esac
42580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42581 $as_echo_n "checking for $ac_header... " >&6; }
42582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42583   $as_echo_n "(cached) " >&6
42584 else
42585   eval "$as_ac_Header=\$ac_header_preproc"
42586 fi
42587 ac_res=`eval 'as_val=${'$as_ac_Header'}
42588                  $as_echo "$as_val"'`
42589                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42590 $as_echo "$ac_res" >&6; }
42591
42592 fi
42593 as_val=`eval 'as_val=${'$as_ac_Header'}
42594                  $as_echo "$as_val"'`
42595    if test "x$as_val" = x""yes; then
42596   cat >>confdefs.h <<_ACEOF
42597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42598 _ACEOF
42599
42600 fi
42601
42602 done
42603
42604
42605    CFLAGS="${saved_CFLAGS}"
42606
42607             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
42608    do
42609       for arch_type in .a .so
42610       do
42611          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
42612          pkg=$?
42613          if test $pkg = 0; then
42614             have_afs=yes
42615             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
42616             break
42617          fi
42618       done
42619    done
42620
42621    if test x$support_afs = xyes -a $have_afs != yes; then
42622       { { $as_echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
42623   please either load the afs libraries or rerun configure without --enable-afs" >&5
42624 $as_echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
42625   please either load the afs libraries or rerun configure without --enable-afs" >&2;}
42626    { (exit 1); exit 1; }; }
42627    else
42628       if test $have_afs = yes; then
42629
42630 cat >>confdefs.h <<\_ACEOF
42631 #define HAVE_AFS 1
42632 _ACEOF
42633
42634
42635 cat >>confdefs.h <<\_ACEOF
42636 #define HAVE_AFS_ACL 1
42637 _ACEOF
42638
42639       fi
42640    fi
42641 fi
42642
42643
42644
42645
42646 support_acl=auto
42647 # Check whether --enable-acl was given.
42648 if test "${enable_acl+set}" = set; then
42649   enableval=$enable_acl;
42650        if test x$enableval = xyes; then
42651           support_acl=yes
42652        elif test x$enableval = xno; then
42653           support_acl=no
42654        fi
42655
42656
42657 fi
42658
42659
42660 have_acl=no
42661 have_extended_acl=no
42662 if test x$support_acl = xyes -o x$support_acl = xauto; then
42663    if test "${ac_cv_header_sys_acl_h+set}" = set; then
42664   { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42665 $as_echo_n "checking for sys/acl.h... " >&6; }
42666 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42667   $as_echo_n "(cached) " >&6
42668 fi
42669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42670 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42671 else
42672   # Is the header compilable?
42673 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
42674 $as_echo_n "checking sys/acl.h usability... " >&6; }
42675 cat >conftest.$ac_ext <<_ACEOF
42676 /* confdefs.h.  */
42677 _ACEOF
42678 cat confdefs.h >>conftest.$ac_ext
42679 cat >>conftest.$ac_ext <<_ACEOF
42680 /* end confdefs.h.  */
42681 $ac_includes_default
42682 #include <sys/acl.h>
42683 _ACEOF
42684 rm -f conftest.$ac_objext
42685 if { (ac_try="$ac_compile"
42686 case "(($ac_try" in
42687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42688   *) ac_try_echo=$ac_try;;
42689 esac
42690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42691 $as_echo "$ac_try_echo") >&5
42692   (eval "$ac_compile") 2>conftest.er1
42693   ac_status=$?
42694   grep -v '^ *+' conftest.er1 >conftest.err
42695   rm -f conftest.er1
42696   cat conftest.err >&5
42697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698   (exit $ac_status); } && {
42699          test -z "$ac_c_werror_flag" ||
42700          test ! -s conftest.err
42701        } && test -s conftest.$ac_objext; then
42702   ac_header_compiler=yes
42703 else
42704   $as_echo "$as_me: failed program was:" >&5
42705 sed 's/^/| /' conftest.$ac_ext >&5
42706
42707         ac_header_compiler=no
42708 fi
42709
42710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42712 $as_echo "$ac_header_compiler" >&6; }
42713
42714 # Is the header present?
42715 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
42716 $as_echo_n "checking sys/acl.h presence... " >&6; }
42717 cat >conftest.$ac_ext <<_ACEOF
42718 /* confdefs.h.  */
42719 _ACEOF
42720 cat confdefs.h >>conftest.$ac_ext
42721 cat >>conftest.$ac_ext <<_ACEOF
42722 /* end confdefs.h.  */
42723 #include <sys/acl.h>
42724 _ACEOF
42725 if { (ac_try="$ac_cpp conftest.$ac_ext"
42726 case "(($ac_try" in
42727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42728   *) ac_try_echo=$ac_try;;
42729 esac
42730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42731 $as_echo "$ac_try_echo") >&5
42732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42733   ac_status=$?
42734   grep -v '^ *+' conftest.er1 >conftest.err
42735   rm -f conftest.er1
42736   cat conftest.err >&5
42737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738   (exit $ac_status); } >/dev/null && {
42739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42740          test ! -s conftest.err
42741        }; then
42742   ac_header_preproc=yes
42743 else
42744   $as_echo "$as_me: failed program was:" >&5
42745 sed 's/^/| /' conftest.$ac_ext >&5
42746
42747   ac_header_preproc=no
42748 fi
42749
42750 rm -f conftest.err conftest.$ac_ext
42751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42752 $as_echo "$ac_header_preproc" >&6; }
42753
42754 # So?  What about this header?
42755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42756   yes:no: )
42757     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42758 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42759     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
42760 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
42761     ac_header_preproc=yes
42762     ;;
42763   no:yes:* )
42764     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
42765 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
42766     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
42767 $as_echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
42768     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
42769 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
42770     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
42771 $as_echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42772     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
42773 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
42774     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
42775 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
42776
42777     ;;
42778 esac
42779 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42780 $as_echo_n "checking for sys/acl.h... " >&6; }
42781 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42782   $as_echo_n "(cached) " >&6
42783 else
42784   ac_cv_header_sys_acl_h=$ac_header_preproc
42785 fi
42786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42787 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42788
42789 fi
42790 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
42791
42792 cat >>confdefs.h <<\_ACEOF
42793 #define HAVE_SYS_ACL_H 1
42794 _ACEOF
42795
42796 fi
42797
42798
42799    { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
42800 $as_echo_n "checking for acl_get_file... " >&6; }
42801 if test "${ac_cv_func_acl_get_file+set}" = set; then
42802   $as_echo_n "(cached) " >&6
42803 else
42804   cat >conftest.$ac_ext <<_ACEOF
42805 /* confdefs.h.  */
42806 _ACEOF
42807 cat confdefs.h >>conftest.$ac_ext
42808 cat >>conftest.$ac_ext <<_ACEOF
42809 /* end confdefs.h.  */
42810 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
42811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42812 #define acl_get_file innocuous_acl_get_file
42813
42814 /* System header to define __stub macros and hopefully few prototypes,
42815     which can conflict with char acl_get_file (); below.
42816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42817     <limits.h> exists even on freestanding compilers.  */
42818
42819 #ifdef __STDC__
42820 # include <limits.h>
42821 #else
42822 # include <assert.h>
42823 #endif
42824
42825 #undef acl_get_file
42826
42827 /* Override any GCC internal prototype to avoid an error.
42828    Use char because int might match the return type of a GCC
42829    builtin and then its argument prototype would still apply.  */
42830 #ifdef __cplusplus
42831 extern "C"
42832 #endif
42833 char acl_get_file ();
42834 /* The GNU C library defines this for functions which it implements
42835     to always fail with ENOSYS.  Some functions are actually named
42836     something starting with __ and the normal name is an alias.  */
42837 #if defined __stub_acl_get_file || defined __stub___acl_get_file
42838 choke me
42839 #endif
42840
42841 int
42842 main ()
42843 {
42844 return acl_get_file ();
42845   ;
42846   return 0;
42847 }
42848 _ACEOF
42849 rm -f conftest.$ac_objext conftest$ac_exeext
42850 if { (ac_try="$ac_link"
42851 case "(($ac_try" in
42852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42853   *) ac_try_echo=$ac_try;;
42854 esac
42855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42856 $as_echo "$ac_try_echo") >&5
42857   (eval "$ac_link") 2>conftest.er1
42858   ac_status=$?
42859   grep -v '^ *+' conftest.er1 >conftest.err
42860   rm -f conftest.er1
42861   cat conftest.err >&5
42862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863   (exit $ac_status); } && {
42864          test -z "$ac_c_werror_flag" ||
42865          test ! -s conftest.err
42866        } && test -s conftest$ac_exeext && {
42867          test "$cross_compiling" = yes ||
42868          $as_test_x conftest$ac_exeext
42869        }; then
42870   ac_cv_func_acl_get_file=yes
42871 else
42872   $as_echo "$as_me: failed program was:" >&5
42873 sed 's/^/| /' conftest.$ac_ext >&5
42874
42875         ac_cv_func_acl_get_file=no
42876 fi
42877
42878 rm -rf conftest.dSYM
42879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42880       conftest$ac_exeext conftest.$ac_ext
42881 fi
42882 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
42883 $as_echo "$ac_cv_func_acl_get_file" >&6; }
42884 if test "x$ac_cv_func_acl_get_file" = x""yes; then
42885
42886           have_acl=yes
42887
42888 else
42889
42890           { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
42891 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
42892 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
42893   $as_echo_n "(cached) " >&6
42894 else
42895   ac_check_lib_save_LIBS=$LIBS
42896 LIBS="-lacl  $LIBS"
42897 cat >conftest.$ac_ext <<_ACEOF
42898 /* confdefs.h.  */
42899 _ACEOF
42900 cat confdefs.h >>conftest.$ac_ext
42901 cat >>conftest.$ac_ext <<_ACEOF
42902 /* end confdefs.h.  */
42903
42904 /* Override any GCC internal prototype to avoid an error.
42905    Use char because int might match the return type of a GCC
42906    builtin and then its argument prototype would still apply.  */
42907 #ifdef __cplusplus
42908 extern "C"
42909 #endif
42910 char acl_get_file ();
42911 int
42912 main ()
42913 {
42914 return acl_get_file ();
42915   ;
42916   return 0;
42917 }
42918 _ACEOF
42919 rm -f conftest.$ac_objext conftest$ac_exeext
42920 if { (ac_try="$ac_link"
42921 case "(($ac_try" in
42922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42923   *) ac_try_echo=$ac_try;;
42924 esac
42925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42926 $as_echo "$ac_try_echo") >&5
42927   (eval "$ac_link") 2>conftest.er1
42928   ac_status=$?
42929   grep -v '^ *+' conftest.er1 >conftest.err
42930   rm -f conftest.er1
42931   cat conftest.err >&5
42932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42933   (exit $ac_status); } && {
42934          test -z "$ac_c_werror_flag" ||
42935          test ! -s conftest.err
42936        } && test -s conftest$ac_exeext && {
42937          test "$cross_compiling" = yes ||
42938          $as_test_x conftest$ac_exeext
42939        }; then
42940   ac_cv_lib_acl_acl_get_file=yes
42941 else
42942   $as_echo "$as_me: failed program was:" >&5
42943 sed 's/^/| /' conftest.$ac_ext >&5
42944
42945         ac_cv_lib_acl_acl_get_file=no
42946 fi
42947
42948 rm -rf conftest.dSYM
42949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42950       conftest$ac_exeext conftest.$ac_ext
42951 LIBS=$ac_check_lib_save_LIBS
42952 fi
42953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
42954 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
42955 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
42956
42957                  have_acl=yes;
42958                  if test $have_afs = yes; then
42959                                                                             if test -d /usr/lib64/; then
42960                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
42961                     else
42962                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
42963                     fi
42964                  else
42965                     FDLIBS="-lacl $FDLIBS"
42966                  fi
42967
42968 else
42969
42970                  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
42971 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
42972 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42973   $as_echo_n "(cached) " >&6
42974 else
42975   ac_check_lib_save_LIBS=$LIBS
42976 LIBS="-lpacl  $LIBS"
42977 cat >conftest.$ac_ext <<_ACEOF
42978 /* confdefs.h.  */
42979 _ACEOF
42980 cat confdefs.h >>conftest.$ac_ext
42981 cat >>conftest.$ac_ext <<_ACEOF
42982 /* end confdefs.h.  */
42983
42984 /* Override any GCC internal prototype to avoid an error.
42985    Use char because int might match the return type of a GCC
42986    builtin and then its argument prototype would still apply.  */
42987 #ifdef __cplusplus
42988 extern "C"
42989 #endif
42990 char acl_get_file ();
42991 int
42992 main ()
42993 {
42994 return acl_get_file ();
42995   ;
42996   return 0;
42997 }
42998 _ACEOF
42999 rm -f conftest.$ac_objext conftest$ac_exeext
43000 if { (ac_try="$ac_link"
43001 case "(($ac_try" in
43002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43003   *) ac_try_echo=$ac_try;;
43004 esac
43005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43006 $as_echo "$ac_try_echo") >&5
43007   (eval "$ac_link") 2>conftest.er1
43008   ac_status=$?
43009   grep -v '^ *+' conftest.er1 >conftest.err
43010   rm -f conftest.er1
43011   cat conftest.err >&5
43012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013   (exit $ac_status); } && {
43014          test -z "$ac_c_werror_flag" ||
43015          test ! -s conftest.err
43016        } && test -s conftest$ac_exeext && {
43017          test "$cross_compiling" = yes ||
43018          $as_test_x conftest$ac_exeext
43019        }; then
43020   ac_cv_lib_pacl_acl_get_file=yes
43021 else
43022   $as_echo "$as_me: failed program was:" >&5
43023 sed 's/^/| /' conftest.$ac_ext >&5
43024
43025         ac_cv_lib_pacl_acl_get_file=no
43026 fi
43027
43028 rm -rf conftest.dSYM
43029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43030       conftest$ac_exeext conftest.$ac_ext
43031 LIBS=$ac_check_lib_save_LIBS
43032 fi
43033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
43034 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
43035 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
43036
43037                         have_acl=yes;
43038                         FDLIBS="-lpacl $FDLIBS"
43039
43040 else
43041
43042                         { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
43043 $as_echo_n "checking for acltotext in -lsec... " >&6; }
43044 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
43045   $as_echo_n "(cached) " >&6
43046 else
43047   ac_check_lib_save_LIBS=$LIBS
43048 LIBS="-lsec  $LIBS"
43049 cat >conftest.$ac_ext <<_ACEOF
43050 /* confdefs.h.  */
43051 _ACEOF
43052 cat confdefs.h >>conftest.$ac_ext
43053 cat >>conftest.$ac_ext <<_ACEOF
43054 /* end confdefs.h.  */
43055
43056 /* Override any GCC internal prototype to avoid an error.
43057    Use char because int might match the return type of a GCC
43058    builtin and then its argument prototype would still apply.  */
43059 #ifdef __cplusplus
43060 extern "C"
43061 #endif
43062 char acltotext ();
43063 int
43064 main ()
43065 {
43066 return acltotext ();
43067   ;
43068   return 0;
43069 }
43070 _ACEOF
43071 rm -f conftest.$ac_objext conftest$ac_exeext
43072 if { (ac_try="$ac_link"
43073 case "(($ac_try" in
43074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43075   *) ac_try_echo=$ac_try;;
43076 esac
43077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43078 $as_echo "$ac_try_echo") >&5
43079   (eval "$ac_link") 2>conftest.er1
43080   ac_status=$?
43081   grep -v '^ *+' conftest.er1 >conftest.err
43082   rm -f conftest.er1
43083   cat conftest.err >&5
43084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085   (exit $ac_status); } && {
43086          test -z "$ac_c_werror_flag" ||
43087          test ! -s conftest.err
43088        } && test -s conftest$ac_exeext && {
43089          test "$cross_compiling" = yes ||
43090          $as_test_x conftest$ac_exeext
43091        }; then
43092   ac_cv_lib_sec_acltotext=yes
43093 else
43094   $as_echo "$as_me: failed program was:" >&5
43095 sed 's/^/| /' conftest.$ac_ext >&5
43096
43097         ac_cv_lib_sec_acltotext=no
43098 fi
43099
43100 rm -rf conftest.dSYM
43101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43102       conftest$ac_exeext conftest.$ac_ext
43103 LIBS=$ac_check_lib_save_LIBS
43104 fi
43105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
43106 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
43107 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
43108
43109                                have_acl=yes;
43110                                FDLIBS="-lsec $FDLIBS"
43111
43112                                { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
43113 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
43114 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
43115   $as_echo_n "(cached) " >&6
43116 else
43117   ac_check_lib_save_LIBS=$LIBS
43118 LIBS="-lsec  $LIBS"
43119 cat >conftest.$ac_ext <<_ACEOF
43120 /* confdefs.h.  */
43121 _ACEOF
43122 cat confdefs.h >>conftest.$ac_ext
43123 cat >>conftest.$ac_ext <<_ACEOF
43124 /* end confdefs.h.  */
43125
43126 /* Override any GCC internal prototype to avoid an error.
43127    Use char because int might match the return type of a GCC
43128    builtin and then its argument prototype would still apply.  */
43129 #ifdef __cplusplus
43130 extern "C"
43131 #endif
43132 char acl_totext ();
43133 int
43134 main ()
43135 {
43136 return acl_totext ();
43137   ;
43138   return 0;
43139 }
43140 _ACEOF
43141 rm -f conftest.$ac_objext conftest$ac_exeext
43142 if { (ac_try="$ac_link"
43143 case "(($ac_try" in
43144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43145   *) ac_try_echo=$ac_try;;
43146 esac
43147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43148 $as_echo "$ac_try_echo") >&5
43149   (eval "$ac_link") 2>conftest.er1
43150   ac_status=$?
43151   grep -v '^ *+' conftest.er1 >conftest.err
43152   rm -f conftest.er1
43153   cat conftest.err >&5
43154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43155   (exit $ac_status); } && {
43156          test -z "$ac_c_werror_flag" ||
43157          test ! -s conftest.err
43158        } && test -s conftest$ac_exeext && {
43159          test "$cross_compiling" = yes ||
43160          $as_test_x conftest$ac_exeext
43161        }; then
43162   ac_cv_lib_sec_acl_totext=yes
43163 else
43164   $as_echo "$as_me: failed program was:" >&5
43165 sed 's/^/| /' conftest.$ac_ext >&5
43166
43167         ac_cv_lib_sec_acl_totext=no
43168 fi
43169
43170 rm -rf conftest.dSYM
43171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43172       conftest$ac_exeext conftest.$ac_ext
43173 LIBS=$ac_check_lib_save_LIBS
43174 fi
43175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
43176 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
43177 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
43178
43179                                       have_extended_acl=yes
43180
43181
43182 fi
43183
43184
43185
43186 fi
43187
43188
43189
43190 fi
43191
43192
43193
43194 fi
43195
43196
43197
43198 fi
43199
43200
43201    if test x$support_acl = xyes -a $have_acl != yes; then
43202       { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
43203   please either load the acl libraries or rerun configure without --enable-acl" >&5
43204 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
43205   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
43206    { (exit 1); exit 1; }; }
43207    else
43208       if test $have_acl = yes; then
43209
43210 cat >>confdefs.h <<\_ACEOF
43211 #define HAVE_ACL 1
43212 _ACEOF
43213
43214       fi
43215
43216       if test $have_extended_acl = yes; then
43217
43218 cat >>confdefs.h <<\_ACEOF
43219 #define HAVE_EXTENDED_ACL 1
43220 _ACEOF
43221
43222       fi
43223    fi
43224 fi
43225
43226 support_xattr=auto
43227 # Check whether --enable-xattr was given.
43228 if test "${enable_xattr+set}" = set; then
43229   enableval=$enable_xattr;
43230        if test x$enableval = xyes; then
43231           support_xattr=yes
43232        elif test x$enableval = xno; then
43233           support_xattr=no
43234        fi
43235
43236
43237 fi
43238
43239
43240 have_xattr=no
43241 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
43242             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43243   { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43244 $as_echo_n "checking for sys/extattr.h... " >&6; }
43245 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43246   $as_echo_n "(cached) " >&6
43247 fi
43248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43249 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43250 else
43251   # Is the header compilable?
43252 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
43253 $as_echo_n "checking sys/extattr.h usability... " >&6; }
43254 cat >conftest.$ac_ext <<_ACEOF
43255 /* confdefs.h.  */
43256 _ACEOF
43257 cat confdefs.h >>conftest.$ac_ext
43258 cat >>conftest.$ac_ext <<_ACEOF
43259 /* end confdefs.h.  */
43260 $ac_includes_default
43261 #include <sys/extattr.h>
43262 _ACEOF
43263 rm -f conftest.$ac_objext
43264 if { (ac_try="$ac_compile"
43265 case "(($ac_try" in
43266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43267   *) ac_try_echo=$ac_try;;
43268 esac
43269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43270 $as_echo "$ac_try_echo") >&5
43271   (eval "$ac_compile") 2>conftest.er1
43272   ac_status=$?
43273   grep -v '^ *+' conftest.er1 >conftest.err
43274   rm -f conftest.er1
43275   cat conftest.err >&5
43276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277   (exit $ac_status); } && {
43278          test -z "$ac_c_werror_flag" ||
43279          test ! -s conftest.err
43280        } && test -s conftest.$ac_objext; then
43281   ac_header_compiler=yes
43282 else
43283   $as_echo "$as_me: failed program was:" >&5
43284 sed 's/^/| /' conftest.$ac_ext >&5
43285
43286         ac_header_compiler=no
43287 fi
43288
43289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43291 $as_echo "$ac_header_compiler" >&6; }
43292
43293 # Is the header present?
43294 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
43295 $as_echo_n "checking sys/extattr.h presence... " >&6; }
43296 cat >conftest.$ac_ext <<_ACEOF
43297 /* confdefs.h.  */
43298 _ACEOF
43299 cat confdefs.h >>conftest.$ac_ext
43300 cat >>conftest.$ac_ext <<_ACEOF
43301 /* end confdefs.h.  */
43302 #include <sys/extattr.h>
43303 _ACEOF
43304 if { (ac_try="$ac_cpp conftest.$ac_ext"
43305 case "(($ac_try" in
43306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43307   *) ac_try_echo=$ac_try;;
43308 esac
43309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43310 $as_echo "$ac_try_echo") >&5
43311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43312   ac_status=$?
43313   grep -v '^ *+' conftest.er1 >conftest.err
43314   rm -f conftest.er1
43315   cat conftest.err >&5
43316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317   (exit $ac_status); } >/dev/null && {
43318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43319          test ! -s conftest.err
43320        }; then
43321   ac_header_preproc=yes
43322 else
43323   $as_echo "$as_me: failed program was:" >&5
43324 sed 's/^/| /' conftest.$ac_ext >&5
43325
43326   ac_header_preproc=no
43327 fi
43328
43329 rm -f conftest.err conftest.$ac_ext
43330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43331 $as_echo "$ac_header_preproc" >&6; }
43332
43333 # So?  What about this header?
43334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43335   yes:no: )
43336     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43337 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43338     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
43339 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
43340     ac_header_preproc=yes
43341     ;;
43342   no:yes:* )
43343     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
43344 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
43345     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
43346 $as_echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
43347     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
43348 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
43349     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43350 $as_echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43351     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
43352 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
43353     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
43354 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
43355
43356     ;;
43357 esac
43358 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43359 $as_echo_n "checking for sys/extattr.h... " >&6; }
43360 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43361   $as_echo_n "(cached) " >&6
43362 else
43363   ac_cv_header_sys_extattr_h=$ac_header_preproc
43364 fi
43365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43366 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43367
43368 fi
43369 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
43370
43371 cat >>confdefs.h <<\_ACEOF
43372 #define HAVE_SYS_EXTATTR_H 1
43373 _ACEOF
43374
43375 fi
43376
43377
43378    if test "${ac_cv_header_libutil_h+set}" = set; then
43379   { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43380 $as_echo_n "checking for libutil.h... " >&6; }
43381 if test "${ac_cv_header_libutil_h+set}" = set; then
43382   $as_echo_n "(cached) " >&6
43383 fi
43384 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43385 $as_echo "$ac_cv_header_libutil_h" >&6; }
43386 else
43387   # Is the header compilable?
43388 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
43389 $as_echo_n "checking libutil.h usability... " >&6; }
43390 cat >conftest.$ac_ext <<_ACEOF
43391 /* confdefs.h.  */
43392 _ACEOF
43393 cat confdefs.h >>conftest.$ac_ext
43394 cat >>conftest.$ac_ext <<_ACEOF
43395 /* end confdefs.h.  */
43396 $ac_includes_default
43397 #include <libutil.h>
43398 _ACEOF
43399 rm -f conftest.$ac_objext
43400 if { (ac_try="$ac_compile"
43401 case "(($ac_try" in
43402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43403   *) ac_try_echo=$ac_try;;
43404 esac
43405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43406 $as_echo "$ac_try_echo") >&5
43407   (eval "$ac_compile") 2>conftest.er1
43408   ac_status=$?
43409   grep -v '^ *+' conftest.er1 >conftest.err
43410   rm -f conftest.er1
43411   cat conftest.err >&5
43412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413   (exit $ac_status); } && {
43414          test -z "$ac_c_werror_flag" ||
43415          test ! -s conftest.err
43416        } && test -s conftest.$ac_objext; then
43417   ac_header_compiler=yes
43418 else
43419   $as_echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43421
43422         ac_header_compiler=no
43423 fi
43424
43425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43427 $as_echo "$ac_header_compiler" >&6; }
43428
43429 # Is the header present?
43430 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
43431 $as_echo_n "checking libutil.h presence... " >&6; }
43432 cat >conftest.$ac_ext <<_ACEOF
43433 /* confdefs.h.  */
43434 _ACEOF
43435 cat confdefs.h >>conftest.$ac_ext
43436 cat >>conftest.$ac_ext <<_ACEOF
43437 /* end confdefs.h.  */
43438 #include <libutil.h>
43439 _ACEOF
43440 if { (ac_try="$ac_cpp conftest.$ac_ext"
43441 case "(($ac_try" in
43442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43443   *) ac_try_echo=$ac_try;;
43444 esac
43445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43446 $as_echo "$ac_try_echo") >&5
43447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43448   ac_status=$?
43449   grep -v '^ *+' conftest.er1 >conftest.err
43450   rm -f conftest.er1
43451   cat conftest.err >&5
43452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43453   (exit $ac_status); } >/dev/null && {
43454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43455          test ! -s conftest.err
43456        }; then
43457   ac_header_preproc=yes
43458 else
43459   $as_echo "$as_me: failed program was:" >&5
43460 sed 's/^/| /' conftest.$ac_ext >&5
43461
43462   ac_header_preproc=no
43463 fi
43464
43465 rm -f conftest.err conftest.$ac_ext
43466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43467 $as_echo "$ac_header_preproc" >&6; }
43468
43469 # So?  What about this header?
43470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43471   yes:no: )
43472     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
43473 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43474     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
43475 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
43476     ac_header_preproc=yes
43477     ;;
43478   no:yes:* )
43479     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
43480 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
43481     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
43482 $as_echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
43483     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
43484 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
43485     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
43486 $as_echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43487     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
43488 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
43489     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
43490 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
43491
43492     ;;
43493 esac
43494 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43495 $as_echo_n "checking for libutil.h... " >&6; }
43496 if test "${ac_cv_header_libutil_h+set}" = set; then
43497   $as_echo_n "(cached) " >&6
43498 else
43499   ac_cv_header_libutil_h=$ac_header_preproc
43500 fi
43501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43502 $as_echo "$ac_cv_header_libutil_h" >&6; }
43503
43504 fi
43505 if test "x$ac_cv_header_libutil_h" = x""yes; then
43506
43507 cat >>confdefs.h <<\_ACEOF
43508 #define HAVE_LIBUTIL_H 1
43509 _ACEOF
43510
43511 fi
43512
43513
43514
43515
43516
43517 for ac_func in extattr_get_link extattr_set_link extattr_list_link
43518 do
43519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43520 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43521 $as_echo_n "checking for $ac_func... " >&6; }
43522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43523   $as_echo_n "(cached) " >&6
43524 else
43525   cat >conftest.$ac_ext <<_ACEOF
43526 /* confdefs.h.  */
43527 _ACEOF
43528 cat confdefs.h >>conftest.$ac_ext
43529 cat >>conftest.$ac_ext <<_ACEOF
43530 /* end confdefs.h.  */
43531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43533 #define $ac_func innocuous_$ac_func
43534
43535 /* System header to define __stub macros and hopefully few prototypes,
43536     which can conflict with char $ac_func (); below.
43537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43538     <limits.h> exists even on freestanding compilers.  */
43539
43540 #ifdef __STDC__
43541 # include <limits.h>
43542 #else
43543 # include <assert.h>
43544 #endif
43545
43546 #undef $ac_func
43547
43548 /* Override any GCC internal prototype to avoid an error.
43549    Use char because int might match the return type of a GCC
43550    builtin and then its argument prototype would still apply.  */
43551 #ifdef __cplusplus
43552 extern "C"
43553 #endif
43554 char $ac_func ();
43555 /* The GNU C library defines this for functions which it implements
43556     to always fail with ENOSYS.  Some functions are actually named
43557     something starting with __ and the normal name is an alias.  */
43558 #if defined __stub_$ac_func || defined __stub___$ac_func
43559 choke me
43560 #endif
43561
43562 int
43563 main ()
43564 {
43565 return $ac_func ();
43566   ;
43567   return 0;
43568 }
43569 _ACEOF
43570 rm -f conftest.$ac_objext conftest$ac_exeext
43571 if { (ac_try="$ac_link"
43572 case "(($ac_try" in
43573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43574   *) ac_try_echo=$ac_try;;
43575 esac
43576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43577 $as_echo "$ac_try_echo") >&5
43578   (eval "$ac_link") 2>conftest.er1
43579   ac_status=$?
43580   grep -v '^ *+' conftest.er1 >conftest.err
43581   rm -f conftest.er1
43582   cat conftest.err >&5
43583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43584   (exit $ac_status); } && {
43585          test -z "$ac_c_werror_flag" ||
43586          test ! -s conftest.err
43587        } && test -s conftest$ac_exeext && {
43588          test "$cross_compiling" = yes ||
43589          $as_test_x conftest$ac_exeext
43590        }; then
43591   eval "$as_ac_var=yes"
43592 else
43593   $as_echo "$as_me: failed program was:" >&5
43594 sed 's/^/| /' conftest.$ac_ext >&5
43595
43596         eval "$as_ac_var=no"
43597 fi
43598
43599 rm -rf conftest.dSYM
43600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43601       conftest$ac_exeext conftest.$ac_ext
43602 fi
43603 ac_res=`eval 'as_val=${'$as_ac_var'}
43604                  $as_echo "$as_val"'`
43605                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43606 $as_echo "$ac_res" >&6; }
43607 as_val=`eval 'as_val=${'$as_ac_var'}
43608                  $as_echo "$as_val"'`
43609    if test "x$as_val" = x""yes; then
43610   cat >>confdefs.h <<_ACEOF
43611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43612 _ACEOF
43613
43614           have_xattr=yes
43615
43616 cat >>confdefs.h <<\_ACEOF
43617 #define HAVE_EXTATTR_GET_LINK 1
43618 _ACEOF
43619
43620
43621 cat >>confdefs.h <<\_ACEOF
43622 #define HAVE_EXTATTR_SET_LINK 1
43623 _ACEOF
43624
43625
43626 cat >>confdefs.h <<\_ACEOF
43627 #define HAVE_EXTATTR_LIST_LINK 1
43628 _ACEOF
43629
43630
43631
43632 fi
43633 done
43634
43635
43636    if test $have_xattr = no; then
43637
43638
43639
43640 for ac_func in extattr_get_file extattr_set_file extattr_list_file
43641 do
43642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43644 $as_echo_n "checking for $ac_func... " >&6; }
43645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43646   $as_echo_n "(cached) " >&6
43647 else
43648   cat >conftest.$ac_ext <<_ACEOF
43649 /* confdefs.h.  */
43650 _ACEOF
43651 cat confdefs.h >>conftest.$ac_ext
43652 cat >>conftest.$ac_ext <<_ACEOF
43653 /* end confdefs.h.  */
43654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43656 #define $ac_func innocuous_$ac_func
43657
43658 /* System header to define __stub macros and hopefully few prototypes,
43659     which can conflict with char $ac_func (); below.
43660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43661     <limits.h> exists even on freestanding compilers.  */
43662
43663 #ifdef __STDC__
43664 # include <limits.h>
43665 #else
43666 # include <assert.h>
43667 #endif
43668
43669 #undef $ac_func
43670
43671 /* Override any GCC internal prototype to avoid an error.
43672    Use char because int might match the return type of a GCC
43673    builtin and then its argument prototype would still apply.  */
43674 #ifdef __cplusplus
43675 extern "C"
43676 #endif
43677 char $ac_func ();
43678 /* The GNU C library defines this for functions which it implements
43679     to always fail with ENOSYS.  Some functions are actually named
43680     something starting with __ and the normal name is an alias.  */
43681 #if defined __stub_$ac_func || defined __stub___$ac_func
43682 choke me
43683 #endif
43684
43685 int
43686 main ()
43687 {
43688 return $ac_func ();
43689   ;
43690   return 0;
43691 }
43692 _ACEOF
43693 rm -f conftest.$ac_objext conftest$ac_exeext
43694 if { (ac_try="$ac_link"
43695 case "(($ac_try" in
43696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43697   *) ac_try_echo=$ac_try;;
43698 esac
43699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43700 $as_echo "$ac_try_echo") >&5
43701   (eval "$ac_link") 2>conftest.er1
43702   ac_status=$?
43703   grep -v '^ *+' conftest.er1 >conftest.err
43704   rm -f conftest.er1
43705   cat conftest.err >&5
43706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43707   (exit $ac_status); } && {
43708          test -z "$ac_c_werror_flag" ||
43709          test ! -s conftest.err
43710        } && test -s conftest$ac_exeext && {
43711          test "$cross_compiling" = yes ||
43712          $as_test_x conftest$ac_exeext
43713        }; then
43714   eval "$as_ac_var=yes"
43715 else
43716   $as_echo "$as_me: failed program was:" >&5
43717 sed 's/^/| /' conftest.$ac_ext >&5
43718
43719         eval "$as_ac_var=no"
43720 fi
43721
43722 rm -rf conftest.dSYM
43723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43724       conftest$ac_exeext conftest.$ac_ext
43725 fi
43726 ac_res=`eval 'as_val=${'$as_ac_var'}
43727                  $as_echo "$as_val"'`
43728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43729 $as_echo "$ac_res" >&6; }
43730 as_val=`eval 'as_val=${'$as_ac_var'}
43731                  $as_echo "$as_val"'`
43732    if test "x$as_val" = x""yes; then
43733   cat >>confdefs.h <<_ACEOF
43734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43735 _ACEOF
43736
43737              have_xattr=yes
43738
43739 cat >>confdefs.h <<\_ACEOF
43740 #define HAVE_EXTATTR_GET_FILE 1
43741 _ACEOF
43742
43743
43744 cat >>confdefs.h <<\_ACEOF
43745 #define HAVE_EXTATTR_SET_FILE 1
43746 _ACEOF
43747
43748
43749 cat >>confdefs.h <<\_ACEOF
43750 #define HAVE_EXTATTR_LIST_FILE 1
43751 _ACEOF
43752
43753
43754
43755 fi
43756 done
43757
43758    fi
43759
43760    if test $have_xattr = yes; then
43761       have_extattr_string_in_libc=no
43762
43763
43764 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
43765 do
43766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43768 $as_echo_n "checking for $ac_func... " >&6; }
43769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43770   $as_echo_n "(cached) " >&6
43771 else
43772   cat >conftest.$ac_ext <<_ACEOF
43773 /* confdefs.h.  */
43774 _ACEOF
43775 cat confdefs.h >>conftest.$ac_ext
43776 cat >>conftest.$ac_ext <<_ACEOF
43777 /* end confdefs.h.  */
43778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43780 #define $ac_func innocuous_$ac_func
43781
43782 /* System header to define __stub macros and hopefully few prototypes,
43783     which can conflict with char $ac_func (); below.
43784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43785     <limits.h> exists even on freestanding compilers.  */
43786
43787 #ifdef __STDC__
43788 # include <limits.h>
43789 #else
43790 # include <assert.h>
43791 #endif
43792
43793 #undef $ac_func
43794
43795 /* Override any GCC internal prototype to avoid an error.
43796    Use char because int might match the return type of a GCC
43797    builtin and then its argument prototype would still apply.  */
43798 #ifdef __cplusplus
43799 extern "C"
43800 #endif
43801 char $ac_func ();
43802 /* The GNU C library defines this for functions which it implements
43803     to always fail with ENOSYS.  Some functions are actually named
43804     something starting with __ and the normal name is an alias.  */
43805 #if defined __stub_$ac_func || defined __stub___$ac_func
43806 choke me
43807 #endif
43808
43809 int
43810 main ()
43811 {
43812 return $ac_func ();
43813   ;
43814   return 0;
43815 }
43816 _ACEOF
43817 rm -f conftest.$ac_objext conftest$ac_exeext
43818 if { (ac_try="$ac_link"
43819 case "(($ac_try" in
43820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43821   *) ac_try_echo=$ac_try;;
43822 esac
43823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43824 $as_echo "$ac_try_echo") >&5
43825   (eval "$ac_link") 2>conftest.er1
43826   ac_status=$?
43827   grep -v '^ *+' conftest.er1 >conftest.err
43828   rm -f conftest.er1
43829   cat conftest.err >&5
43830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831   (exit $ac_status); } && {
43832          test -z "$ac_c_werror_flag" ||
43833          test ! -s conftest.err
43834        } && test -s conftest$ac_exeext && {
43835          test "$cross_compiling" = yes ||
43836          $as_test_x conftest$ac_exeext
43837        }; then
43838   eval "$as_ac_var=yes"
43839 else
43840   $as_echo "$as_me: failed program was:" >&5
43841 sed 's/^/| /' conftest.$ac_ext >&5
43842
43843         eval "$as_ac_var=no"
43844 fi
43845
43846 rm -rf conftest.dSYM
43847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43848       conftest$ac_exeext conftest.$ac_ext
43849 fi
43850 ac_res=`eval 'as_val=${'$as_ac_var'}
43851                  $as_echo "$as_val"'`
43852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43853 $as_echo "$ac_res" >&6; }
43854 as_val=`eval 'as_val=${'$as_ac_var'}
43855                  $as_echo "$as_val"'`
43856    if test "x$as_val" = x""yes; then
43857   cat >>confdefs.h <<_ACEOF
43858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43859 _ACEOF
43860
43861              have_extattr_string_in_libc=yes
43862
43863 cat >>confdefs.h <<\_ACEOF
43864 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43865 _ACEOF
43866
43867
43868 cat >>confdefs.h <<\_ACEOF
43869 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43870 _ACEOF
43871
43872
43873
43874 fi
43875 done
43876
43877
43878                         if test $have_extattr_string_in_libc = no; then
43879          { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
43880 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
43881 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
43882   $as_echo_n "(cached) " >&6
43883 else
43884   ac_check_lib_save_LIBS=$LIBS
43885 LIBS="-lutil  $LIBS"
43886 cat >conftest.$ac_ext <<_ACEOF
43887 /* confdefs.h.  */
43888 _ACEOF
43889 cat confdefs.h >>conftest.$ac_ext
43890 cat >>conftest.$ac_ext <<_ACEOF
43891 /* end confdefs.h.  */
43892
43893 /* Override any GCC internal prototype to avoid an error.
43894    Use char because int might match the return type of a GCC
43895    builtin and then its argument prototype would still apply.  */
43896 #ifdef __cplusplus
43897 extern "C"
43898 #endif
43899 char extattr_namespace_to_string extattr_string_to_namespace ();
43900 int
43901 main ()
43902 {
43903 return extattr_namespace_to_string extattr_string_to_namespace ();
43904   ;
43905   return 0;
43906 }
43907 _ACEOF
43908 rm -f conftest.$ac_objext conftest$ac_exeext
43909 if { (ac_try="$ac_link"
43910 case "(($ac_try" in
43911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43912   *) ac_try_echo=$ac_try;;
43913 esac
43914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43915 $as_echo "$ac_try_echo") >&5
43916   (eval "$ac_link") 2>conftest.er1
43917   ac_status=$?
43918   grep -v '^ *+' conftest.er1 >conftest.err
43919   rm -f conftest.er1
43920   cat conftest.err >&5
43921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922   (exit $ac_status); } && {
43923          test -z "$ac_c_werror_flag" ||
43924          test ! -s conftest.err
43925        } && test -s conftest$ac_exeext && {
43926          test "$cross_compiling" = yes ||
43927          $as_test_x conftest$ac_exeext
43928        }; then
43929   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
43930 else
43931   $as_echo "$as_me: failed program was:" >&5
43932 sed 's/^/| /' conftest.$ac_ext >&5
43933
43934         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
43935 fi
43936
43937 rm -rf conftest.dSYM
43938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43939       conftest$ac_exeext conftest.$ac_ext
43940 LIBS=$ac_check_lib_save_LIBS
43941 fi
43942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
43943 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
43944 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
43945
43946
43947 cat >>confdefs.h <<\_ACEOF
43948 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43949 _ACEOF
43950
43951
43952 cat >>confdefs.h <<\_ACEOF
43953 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43954 _ACEOF
43955
43956                 FDLIBS="-lutil $FDLIBS"
43957
43958
43959 fi
43960
43961       fi
43962    fi
43963
43964             if test $have_xattr = no; then
43965       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43966   { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43967 $as_echo_n "checking for sys/xattr.h... " >&6; }
43968 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43969   $as_echo_n "(cached) " >&6
43970 fi
43971 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43972 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43973 else
43974   # Is the header compilable?
43975 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
43976 $as_echo_n "checking sys/xattr.h usability... " >&6; }
43977 cat >conftest.$ac_ext <<_ACEOF
43978 /* confdefs.h.  */
43979 _ACEOF
43980 cat confdefs.h >>conftest.$ac_ext
43981 cat >>conftest.$ac_ext <<_ACEOF
43982 /* end confdefs.h.  */
43983 $ac_includes_default
43984 #include <sys/xattr.h>
43985 _ACEOF
43986 rm -f conftest.$ac_objext
43987 if { (ac_try="$ac_compile"
43988 case "(($ac_try" in
43989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43990   *) ac_try_echo=$ac_try;;
43991 esac
43992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43993 $as_echo "$ac_try_echo") >&5
43994   (eval "$ac_compile") 2>conftest.er1
43995   ac_status=$?
43996   grep -v '^ *+' conftest.er1 >conftest.err
43997   rm -f conftest.er1
43998   cat conftest.err >&5
43999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44000   (exit $ac_status); } && {
44001          test -z "$ac_c_werror_flag" ||
44002          test ! -s conftest.err
44003        } && test -s conftest.$ac_objext; then
44004   ac_header_compiler=yes
44005 else
44006   $as_echo "$as_me: failed program was:" >&5
44007 sed 's/^/| /' conftest.$ac_ext >&5
44008
44009         ac_header_compiler=no
44010 fi
44011
44012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44014 $as_echo "$ac_header_compiler" >&6; }
44015
44016 # Is the header present?
44017 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
44018 $as_echo_n "checking sys/xattr.h presence... " >&6; }
44019 cat >conftest.$ac_ext <<_ACEOF
44020 /* confdefs.h.  */
44021 _ACEOF
44022 cat confdefs.h >>conftest.$ac_ext
44023 cat >>conftest.$ac_ext <<_ACEOF
44024 /* end confdefs.h.  */
44025 #include <sys/xattr.h>
44026 _ACEOF
44027 if { (ac_try="$ac_cpp conftest.$ac_ext"
44028 case "(($ac_try" in
44029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44030   *) ac_try_echo=$ac_try;;
44031 esac
44032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44033 $as_echo "$ac_try_echo") >&5
44034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44035   ac_status=$?
44036   grep -v '^ *+' conftest.er1 >conftest.err
44037   rm -f conftest.er1
44038   cat conftest.err >&5
44039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040   (exit $ac_status); } >/dev/null && {
44041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44042          test ! -s conftest.err
44043        }; then
44044   ac_header_preproc=yes
44045 else
44046   $as_echo "$as_me: failed program was:" >&5
44047 sed 's/^/| /' conftest.$ac_ext >&5
44048
44049   ac_header_preproc=no
44050 fi
44051
44052 rm -f conftest.err conftest.$ac_ext
44053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44054 $as_echo "$ac_header_preproc" >&6; }
44055
44056 # So?  What about this header?
44057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44058   yes:no: )
44059     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44060 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44061     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
44062 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
44063     ac_header_preproc=yes
44064     ;;
44065   no:yes:* )
44066     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
44067 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
44068     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
44069 $as_echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
44070     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
44071 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
44072     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
44073 $as_echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44074     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
44075 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
44076     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
44077 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
44078
44079     ;;
44080 esac
44081 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
44082 $as_echo_n "checking for sys/xattr.h... " >&6; }
44083 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
44084   $as_echo_n "(cached) " >&6
44085 else
44086   ac_cv_header_sys_xattr_h=$ac_header_preproc
44087 fi
44088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
44089 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
44090
44091 fi
44092 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
44093
44094 cat >>confdefs.h <<\_ACEOF
44095 #define HAVE_SYS_XATTR_H 1
44096 _ACEOF
44097
44098 fi
44099
44100
44101
44102
44103
44104 for ac_func in llistxattr lgetxattr lsetxattr
44105 do
44106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44108 $as_echo_n "checking for $ac_func... " >&6; }
44109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44110   $as_echo_n "(cached) " >&6
44111 else
44112   cat >conftest.$ac_ext <<_ACEOF
44113 /* confdefs.h.  */
44114 _ACEOF
44115 cat confdefs.h >>conftest.$ac_ext
44116 cat >>conftest.$ac_ext <<_ACEOF
44117 /* end confdefs.h.  */
44118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44120 #define $ac_func innocuous_$ac_func
44121
44122 /* System header to define __stub macros and hopefully few prototypes,
44123     which can conflict with char $ac_func (); below.
44124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44125     <limits.h> exists even on freestanding compilers.  */
44126
44127 #ifdef __STDC__
44128 # include <limits.h>
44129 #else
44130 # include <assert.h>
44131 #endif
44132
44133 #undef $ac_func
44134
44135 /* Override any GCC internal prototype to avoid an error.
44136    Use char because int might match the return type of a GCC
44137    builtin and then its argument prototype would still apply.  */
44138 #ifdef __cplusplus
44139 extern "C"
44140 #endif
44141 char $ac_func ();
44142 /* The GNU C library defines this for functions which it implements
44143     to always fail with ENOSYS.  Some functions are actually named
44144     something starting with __ and the normal name is an alias.  */
44145 #if defined __stub_$ac_func || defined __stub___$ac_func
44146 choke me
44147 #endif
44148
44149 int
44150 main ()
44151 {
44152 return $ac_func ();
44153   ;
44154   return 0;
44155 }
44156 _ACEOF
44157 rm -f conftest.$ac_objext conftest$ac_exeext
44158 if { (ac_try="$ac_link"
44159 case "(($ac_try" in
44160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44161   *) ac_try_echo=$ac_try;;
44162 esac
44163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44164 $as_echo "$ac_try_echo") >&5
44165   (eval "$ac_link") 2>conftest.er1
44166   ac_status=$?
44167   grep -v '^ *+' conftest.er1 >conftest.err
44168   rm -f conftest.er1
44169   cat conftest.err >&5
44170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171   (exit $ac_status); } && {
44172          test -z "$ac_c_werror_flag" ||
44173          test ! -s conftest.err
44174        } && test -s conftest$ac_exeext && {
44175          test "$cross_compiling" = yes ||
44176          $as_test_x conftest$ac_exeext
44177        }; then
44178   eval "$as_ac_var=yes"
44179 else
44180   $as_echo "$as_me: failed program was:" >&5
44181 sed 's/^/| /' conftest.$ac_ext >&5
44182
44183         eval "$as_ac_var=no"
44184 fi
44185
44186 rm -rf conftest.dSYM
44187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44188       conftest$ac_exeext conftest.$ac_ext
44189 fi
44190 ac_res=`eval 'as_val=${'$as_ac_var'}
44191                  $as_echo "$as_val"'`
44192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44193 $as_echo "$ac_res" >&6; }
44194 as_val=`eval 'as_val=${'$as_ac_var'}
44195                  $as_echo "$as_val"'`
44196    if test "x$as_val" = x""yes; then
44197   cat >>confdefs.h <<_ACEOF
44198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44199 _ACEOF
44200
44201              have_xattr=yes
44202
44203 cat >>confdefs.h <<\_ACEOF
44204 #define HAVE_LLISTXATTR 1
44205 _ACEOF
44206
44207
44208 cat >>confdefs.h <<\_ACEOF
44209 #define HAVE_LGETXATTR 1
44210 _ACEOF
44211
44212
44213 cat >>confdefs.h <<\_ACEOF
44214 #define HAVE_LSETXATTR 1
44215 _ACEOF
44216
44217
44218
44219 fi
44220 done
44221
44222
44223       if test $have_xattr = no; then
44224
44225
44226
44227 for ac_func in listxattr getxattr setxattr
44228 do
44229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44231 $as_echo_n "checking for $ac_func... " >&6; }
44232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44233   $as_echo_n "(cached) " >&6
44234 else
44235   cat >conftest.$ac_ext <<_ACEOF
44236 /* confdefs.h.  */
44237 _ACEOF
44238 cat confdefs.h >>conftest.$ac_ext
44239 cat >>conftest.$ac_ext <<_ACEOF
44240 /* end confdefs.h.  */
44241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44243 #define $ac_func innocuous_$ac_func
44244
44245 /* System header to define __stub macros and hopefully few prototypes,
44246     which can conflict with char $ac_func (); below.
44247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44248     <limits.h> exists even on freestanding compilers.  */
44249
44250 #ifdef __STDC__
44251 # include <limits.h>
44252 #else
44253 # include <assert.h>
44254 #endif
44255
44256 #undef $ac_func
44257
44258 /* Override any GCC internal prototype to avoid an error.
44259    Use char because int might match the return type of a GCC
44260    builtin and then its argument prototype would still apply.  */
44261 #ifdef __cplusplus
44262 extern "C"
44263 #endif
44264 char $ac_func ();
44265 /* The GNU C library defines this for functions which it implements
44266     to always fail with ENOSYS.  Some functions are actually named
44267     something starting with __ and the normal name is an alias.  */
44268 #if defined __stub_$ac_func || defined __stub___$ac_func
44269 choke me
44270 #endif
44271
44272 int
44273 main ()
44274 {
44275 return $ac_func ();
44276   ;
44277   return 0;
44278 }
44279 _ACEOF
44280 rm -f conftest.$ac_objext conftest$ac_exeext
44281 if { (ac_try="$ac_link"
44282 case "(($ac_try" in
44283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44284   *) ac_try_echo=$ac_try;;
44285 esac
44286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44287 $as_echo "$ac_try_echo") >&5
44288   (eval "$ac_link") 2>conftest.er1
44289   ac_status=$?
44290   grep -v '^ *+' conftest.er1 >conftest.err
44291   rm -f conftest.er1
44292   cat conftest.err >&5
44293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294   (exit $ac_status); } && {
44295          test -z "$ac_c_werror_flag" ||
44296          test ! -s conftest.err
44297        } && test -s conftest$ac_exeext && {
44298          test "$cross_compiling" = yes ||
44299          $as_test_x conftest$ac_exeext
44300        }; then
44301   eval "$as_ac_var=yes"
44302 else
44303   $as_echo "$as_me: failed program was:" >&5
44304 sed 's/^/| /' conftest.$ac_ext >&5
44305
44306         eval "$as_ac_var=no"
44307 fi
44308
44309 rm -rf conftest.dSYM
44310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44311       conftest$ac_exeext conftest.$ac_ext
44312 fi
44313 ac_res=`eval 'as_val=${'$as_ac_var'}
44314                  $as_echo "$as_val"'`
44315                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44316 $as_echo "$ac_res" >&6; }
44317 as_val=`eval 'as_val=${'$as_ac_var'}
44318                  $as_echo "$as_val"'`
44319    if test "x$as_val" = x""yes; then
44320   cat >>confdefs.h <<_ACEOF
44321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44322 _ACEOF
44323
44324                 have_xattr=yes
44325
44326 cat >>confdefs.h <<\_ACEOF
44327 #define HAVE_LISTXATTR 1
44328 _ACEOF
44329
44330
44331 cat >>confdefs.h <<\_ACEOF
44332 #define HAVE_GETXATTR 1
44333 _ACEOF
44334
44335
44336 cat >>confdefs.h <<\_ACEOF
44337 #define HAVE_SETXATTR 1
44338 _ACEOF
44339
44340
44341
44342 fi
44343 done
44344
44345       fi
44346    fi
44347
44348             if test $have_xattr = no; then
44349       if test "${ac_cv_header_sys_attr_h+set}" = set; then
44350   { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44351 $as_echo_n "checking for sys/attr.h... " >&6; }
44352 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44353   $as_echo_n "(cached) " >&6
44354 fi
44355 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44356 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44357 else
44358   # Is the header compilable?
44359 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
44360 $as_echo_n "checking sys/attr.h usability... " >&6; }
44361 cat >conftest.$ac_ext <<_ACEOF
44362 /* confdefs.h.  */
44363 _ACEOF
44364 cat confdefs.h >>conftest.$ac_ext
44365 cat >>conftest.$ac_ext <<_ACEOF
44366 /* end confdefs.h.  */
44367 $ac_includes_default
44368 #include <sys/attr.h>
44369 _ACEOF
44370 rm -f conftest.$ac_objext
44371 if { (ac_try="$ac_compile"
44372 case "(($ac_try" in
44373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44374   *) ac_try_echo=$ac_try;;
44375 esac
44376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44377 $as_echo "$ac_try_echo") >&5
44378   (eval "$ac_compile") 2>conftest.er1
44379   ac_status=$?
44380   grep -v '^ *+' conftest.er1 >conftest.err
44381   rm -f conftest.er1
44382   cat conftest.err >&5
44383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384   (exit $ac_status); } && {
44385          test -z "$ac_c_werror_flag" ||
44386          test ! -s conftest.err
44387        } && test -s conftest.$ac_objext; then
44388   ac_header_compiler=yes
44389 else
44390   $as_echo "$as_me: failed program was:" >&5
44391 sed 's/^/| /' conftest.$ac_ext >&5
44392
44393         ac_header_compiler=no
44394 fi
44395
44396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44397 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44398 $as_echo "$ac_header_compiler" >&6; }
44399
44400 # Is the header present?
44401 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
44402 $as_echo_n "checking sys/attr.h presence... " >&6; }
44403 cat >conftest.$ac_ext <<_ACEOF
44404 /* confdefs.h.  */
44405 _ACEOF
44406 cat confdefs.h >>conftest.$ac_ext
44407 cat >>conftest.$ac_ext <<_ACEOF
44408 /* end confdefs.h.  */
44409 #include <sys/attr.h>
44410 _ACEOF
44411 if { (ac_try="$ac_cpp conftest.$ac_ext"
44412 case "(($ac_try" in
44413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44414   *) ac_try_echo=$ac_try;;
44415 esac
44416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44417 $as_echo "$ac_try_echo") >&5
44418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44419   ac_status=$?
44420   grep -v '^ *+' conftest.er1 >conftest.err
44421   rm -f conftest.er1
44422   cat conftest.err >&5
44423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44424   (exit $ac_status); } >/dev/null && {
44425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44426          test ! -s conftest.err
44427        }; then
44428   ac_header_preproc=yes
44429 else
44430   $as_echo "$as_me: failed program was:" >&5
44431 sed 's/^/| /' conftest.$ac_ext >&5
44432
44433   ac_header_preproc=no
44434 fi
44435
44436 rm -f conftest.err conftest.$ac_ext
44437 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44438 $as_echo "$ac_header_preproc" >&6; }
44439
44440 # So?  What about this header?
44441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44442   yes:no: )
44443     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44444 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44445     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
44446 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
44447     ac_header_preproc=yes
44448     ;;
44449   no:yes:* )
44450     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
44451 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
44452     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
44453 $as_echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
44454     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
44455 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
44456     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44457 $as_echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44458     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
44459 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
44460     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
44461 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
44462
44463     ;;
44464 esac
44465 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44466 $as_echo_n "checking for sys/attr.h... " >&6; }
44467 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44468   $as_echo_n "(cached) " >&6
44469 else
44470   ac_cv_header_sys_attr_h=$ac_header_preproc
44471 fi
44472 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44473 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44474
44475 fi
44476 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
44477
44478 cat >>confdefs.h <<\_ACEOF
44479 #define HAVE_SYS_ATTR_H 1
44480 _ACEOF
44481
44482 fi
44483
44484
44485       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44486   { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44487 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44488 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44489   $as_echo_n "(cached) " >&6
44490 fi
44491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44492 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44493 else
44494   # Is the header compilable?
44495 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
44496 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
44497 cat >conftest.$ac_ext <<_ACEOF
44498 /* confdefs.h.  */
44499 _ACEOF
44500 cat confdefs.h >>conftest.$ac_ext
44501 cat >>conftest.$ac_ext <<_ACEOF
44502 /* end confdefs.h.  */
44503 $ac_includes_default
44504 #include <sys/nvpair.h>
44505 _ACEOF
44506 rm -f conftest.$ac_objext
44507 if { (ac_try="$ac_compile"
44508 case "(($ac_try" in
44509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44510   *) ac_try_echo=$ac_try;;
44511 esac
44512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44513 $as_echo "$ac_try_echo") >&5
44514   (eval "$ac_compile") 2>conftest.er1
44515   ac_status=$?
44516   grep -v '^ *+' conftest.er1 >conftest.err
44517   rm -f conftest.er1
44518   cat conftest.err >&5
44519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44520   (exit $ac_status); } && {
44521          test -z "$ac_c_werror_flag" ||
44522          test ! -s conftest.err
44523        } && test -s conftest.$ac_objext; then
44524   ac_header_compiler=yes
44525 else
44526   $as_echo "$as_me: failed program was:" >&5
44527 sed 's/^/| /' conftest.$ac_ext >&5
44528
44529         ac_header_compiler=no
44530 fi
44531
44532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44533 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44534 $as_echo "$ac_header_compiler" >&6; }
44535
44536 # Is the header present?
44537 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
44538 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
44539 cat >conftest.$ac_ext <<_ACEOF
44540 /* confdefs.h.  */
44541 _ACEOF
44542 cat confdefs.h >>conftest.$ac_ext
44543 cat >>conftest.$ac_ext <<_ACEOF
44544 /* end confdefs.h.  */
44545 #include <sys/nvpair.h>
44546 _ACEOF
44547 if { (ac_try="$ac_cpp conftest.$ac_ext"
44548 case "(($ac_try" in
44549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44550   *) ac_try_echo=$ac_try;;
44551 esac
44552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44553 $as_echo "$ac_try_echo") >&5
44554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44555   ac_status=$?
44556   grep -v '^ *+' conftest.er1 >conftest.err
44557   rm -f conftest.er1
44558   cat conftest.err >&5
44559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560   (exit $ac_status); } >/dev/null && {
44561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44562          test ! -s conftest.err
44563        }; then
44564   ac_header_preproc=yes
44565 else
44566   $as_echo "$as_me: failed program was:" >&5
44567 sed 's/^/| /' conftest.$ac_ext >&5
44568
44569   ac_header_preproc=no
44570 fi
44571
44572 rm -f conftest.err conftest.$ac_ext
44573 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44574 $as_echo "$ac_header_preproc" >&6; }
44575
44576 # So?  What about this header?
44577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44578   yes:no: )
44579     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
44580 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44581     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
44582 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
44583     ac_header_preproc=yes
44584     ;;
44585   no:yes:* )
44586     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
44587 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
44588     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
44589 $as_echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
44590     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
44591 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
44592     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
44593 $as_echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44594     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
44595 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
44596     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
44597 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
44598
44599     ;;
44600 esac
44601 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44602 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44603 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44604   $as_echo_n "(cached) " >&6
44605 else
44606   ac_cv_header_sys_nvpair_h=$ac_header_preproc
44607 fi
44608 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44609 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44610
44611 fi
44612 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
44613
44614 cat >>confdefs.h <<\_ACEOF
44615 #define HAVE_SYS_NVPAIR_H 1
44616 _ACEOF
44617
44618 fi
44619
44620
44621       if test "${ac_cv_header_attr_h+set}" = set; then
44622   { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44623 $as_echo_n "checking for attr.h... " >&6; }
44624 if test "${ac_cv_header_attr_h+set}" = set; then
44625   $as_echo_n "(cached) " >&6
44626 fi
44627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44628 $as_echo "$ac_cv_header_attr_h" >&6; }
44629 else
44630   # Is the header compilable?
44631 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
44632 $as_echo_n "checking attr.h usability... " >&6; }
44633 cat >conftest.$ac_ext <<_ACEOF
44634 /* confdefs.h.  */
44635 _ACEOF
44636 cat confdefs.h >>conftest.$ac_ext
44637 cat >>conftest.$ac_ext <<_ACEOF
44638 /* end confdefs.h.  */
44639 $ac_includes_default
44640 #include <attr.h>
44641 _ACEOF
44642 rm -f conftest.$ac_objext
44643 if { (ac_try="$ac_compile"
44644 case "(($ac_try" in
44645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44646   *) ac_try_echo=$ac_try;;
44647 esac
44648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44649 $as_echo "$ac_try_echo") >&5
44650   (eval "$ac_compile") 2>conftest.er1
44651   ac_status=$?
44652   grep -v '^ *+' conftest.er1 >conftest.err
44653   rm -f conftest.er1
44654   cat conftest.err >&5
44655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44656   (exit $ac_status); } && {
44657          test -z "$ac_c_werror_flag" ||
44658          test ! -s conftest.err
44659        } && test -s conftest.$ac_objext; then
44660   ac_header_compiler=yes
44661 else
44662   $as_echo "$as_me: failed program was:" >&5
44663 sed 's/^/| /' conftest.$ac_ext >&5
44664
44665         ac_header_compiler=no
44666 fi
44667
44668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44670 $as_echo "$ac_header_compiler" >&6; }
44671
44672 # Is the header present?
44673 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
44674 $as_echo_n "checking attr.h presence... " >&6; }
44675 cat >conftest.$ac_ext <<_ACEOF
44676 /* confdefs.h.  */
44677 _ACEOF
44678 cat confdefs.h >>conftest.$ac_ext
44679 cat >>conftest.$ac_ext <<_ACEOF
44680 /* end confdefs.h.  */
44681 #include <attr.h>
44682 _ACEOF
44683 if { (ac_try="$ac_cpp conftest.$ac_ext"
44684 case "(($ac_try" in
44685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44686   *) ac_try_echo=$ac_try;;
44687 esac
44688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44689 $as_echo "$ac_try_echo") >&5
44690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44691   ac_status=$?
44692   grep -v '^ *+' conftest.er1 >conftest.err
44693   rm -f conftest.er1
44694   cat conftest.err >&5
44695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696   (exit $ac_status); } >/dev/null && {
44697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44698          test ! -s conftest.err
44699        }; then
44700   ac_header_preproc=yes
44701 else
44702   $as_echo "$as_me: failed program was:" >&5
44703 sed 's/^/| /' conftest.$ac_ext >&5
44704
44705   ac_header_preproc=no
44706 fi
44707
44708 rm -f conftest.err conftest.$ac_ext
44709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44710 $as_echo "$ac_header_preproc" >&6; }
44711
44712 # So?  What about this header?
44713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44714   yes:no: )
44715     { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44716 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44717     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
44718 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
44719     ac_header_preproc=yes
44720     ;;
44721   no:yes:* )
44722     { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
44723 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
44724     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
44725 $as_echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
44726     { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
44727 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
44728     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44729 $as_echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44730     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
44731 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
44732     { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
44733 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
44734
44735     ;;
44736 esac
44737 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44738 $as_echo_n "checking for attr.h... " >&6; }
44739 if test "${ac_cv_header_attr_h+set}" = set; then
44740   $as_echo_n "(cached) " >&6
44741 else
44742   ac_cv_header_attr_h=$ac_header_preproc
44743 fi
44744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44745 $as_echo "$ac_cv_header_attr_h" >&6; }
44746
44747 fi
44748 if test "x$ac_cv_header_attr_h" = x""yes; then
44749
44750 cat >>confdefs.h <<\_ACEOF
44751 #define HAVE_ATTR_H 1
44752 _ACEOF
44753
44754 fi
44755
44756
44757
44758
44759
44760
44761
44762
44763 for ac_func in openat fstatat unlinkat fchownat futimesat
44764 do
44765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44767 $as_echo_n "checking for $ac_func... " >&6; }
44768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44769   $as_echo_n "(cached) " >&6
44770 else
44771   cat >conftest.$ac_ext <<_ACEOF
44772 /* confdefs.h.  */
44773 _ACEOF
44774 cat confdefs.h >>conftest.$ac_ext
44775 cat >>conftest.$ac_ext <<_ACEOF
44776 /* end confdefs.h.  */
44777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44779 #define $ac_func innocuous_$ac_func
44780
44781 /* System header to define __stub macros and hopefully few prototypes,
44782     which can conflict with char $ac_func (); below.
44783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44784     <limits.h> exists even on freestanding compilers.  */
44785
44786 #ifdef __STDC__
44787 # include <limits.h>
44788 #else
44789 # include <assert.h>
44790 #endif
44791
44792 #undef $ac_func
44793
44794 /* Override any GCC internal prototype to avoid an error.
44795    Use char because int might match the return type of a GCC
44796    builtin and then its argument prototype would still apply.  */
44797 #ifdef __cplusplus
44798 extern "C"
44799 #endif
44800 char $ac_func ();
44801 /* The GNU C library defines this for functions which it implements
44802     to always fail with ENOSYS.  Some functions are actually named
44803     something starting with __ and the normal name is an alias.  */
44804 #if defined __stub_$ac_func || defined __stub___$ac_func
44805 choke me
44806 #endif
44807
44808 int
44809 main ()
44810 {
44811 return $ac_func ();
44812   ;
44813   return 0;
44814 }
44815 _ACEOF
44816 rm -f conftest.$ac_objext conftest$ac_exeext
44817 if { (ac_try="$ac_link"
44818 case "(($ac_try" in
44819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44820   *) ac_try_echo=$ac_try;;
44821 esac
44822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44823 $as_echo "$ac_try_echo") >&5
44824   (eval "$ac_link") 2>conftest.er1
44825   ac_status=$?
44826   grep -v '^ *+' conftest.er1 >conftest.err
44827   rm -f conftest.er1
44828   cat conftest.err >&5
44829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830   (exit $ac_status); } && {
44831          test -z "$ac_c_werror_flag" ||
44832          test ! -s conftest.err
44833        } && test -s conftest$ac_exeext && {
44834          test "$cross_compiling" = yes ||
44835          $as_test_x conftest$ac_exeext
44836        }; then
44837   eval "$as_ac_var=yes"
44838 else
44839   $as_echo "$as_me: failed program was:" >&5
44840 sed 's/^/| /' conftest.$ac_ext >&5
44841
44842         eval "$as_ac_var=no"
44843 fi
44844
44845 rm -rf conftest.dSYM
44846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44847       conftest$ac_exeext conftest.$ac_ext
44848 fi
44849 ac_res=`eval 'as_val=${'$as_ac_var'}
44850                  $as_echo "$as_val"'`
44851                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44852 $as_echo "$ac_res" >&6; }
44853 as_val=`eval 'as_val=${'$as_ac_var'}
44854                  $as_echo "$as_val"'`
44855    if test "x$as_val" = x""yes; then
44856   cat >>confdefs.h <<_ACEOF
44857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44858 _ACEOF
44859
44860              have_xattr=yes
44861
44862 cat >>confdefs.h <<\_ACEOF
44863 #define HAVE_OPENAT 1
44864 _ACEOF
44865
44866
44867 cat >>confdefs.h <<\_ACEOF
44868 #define HAVE_FSTATAT 1
44869 _ACEOF
44870
44871
44872 cat >>confdefs.h <<\_ACEOF
44873 #define HAVE_UNLINKAT 1
44874 _ACEOF
44875
44876
44877 cat >>confdefs.h <<\_ACEOF
44878 #define HAVE_FCHOWNAT 1
44879 _ACEOF
44880
44881
44882 cat >>confdefs.h <<\_ACEOF
44883 #define HAVE_FUTIMESAT 1
44884 _ACEOF
44885
44886
44887
44888 fi
44889 done
44890
44891
44892       if test $have_xattr = yes; then
44893          { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
44894 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
44895 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
44896   $as_echo_n "(cached) " >&6
44897 else
44898   ac_check_lib_save_LIBS=$LIBS
44899 LIBS="-lnvpair  $LIBS"
44900 cat >conftest.$ac_ext <<_ACEOF
44901 /* confdefs.h.  */
44902 _ACEOF
44903 cat confdefs.h >>conftest.$ac_ext
44904 cat >>conftest.$ac_ext <<_ACEOF
44905 /* end confdefs.h.  */
44906
44907 /* Override any GCC internal prototype to avoid an error.
44908    Use char because int might match the return type of a GCC
44909    builtin and then its argument prototype would still apply.  */
44910 #ifdef __cplusplus
44911 extern "C"
44912 #endif
44913 char nvlist_next_nvpair ();
44914 int
44915 main ()
44916 {
44917 return nvlist_next_nvpair ();
44918   ;
44919   return 0;
44920 }
44921 _ACEOF
44922 rm -f conftest.$ac_objext conftest$ac_exeext
44923 if { (ac_try="$ac_link"
44924 case "(($ac_try" in
44925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44926   *) ac_try_echo=$ac_try;;
44927 esac
44928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44929 $as_echo "$ac_try_echo") >&5
44930   (eval "$ac_link") 2>conftest.er1
44931   ac_status=$?
44932   grep -v '^ *+' conftest.er1 >conftest.err
44933   rm -f conftest.er1
44934   cat conftest.err >&5
44935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44936   (exit $ac_status); } && {
44937          test -z "$ac_c_werror_flag" ||
44938          test ! -s conftest.err
44939        } && test -s conftest$ac_exeext && {
44940          test "$cross_compiling" = yes ||
44941          $as_test_x conftest$ac_exeext
44942        }; then
44943   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
44944 else
44945   $as_echo "$as_me: failed program was:" >&5
44946 sed 's/^/| /' conftest.$ac_ext >&5
44947
44948         ac_cv_lib_nvpair_nvlist_next_nvpair=no
44949 fi
44950
44951 rm -rf conftest.dSYM
44952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44953       conftest$ac_exeext conftest.$ac_ext
44954 LIBS=$ac_check_lib_save_LIBS
44955 fi
44956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
44957 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
44958 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
44959
44960
44961 cat >>confdefs.h <<\_ACEOF
44962 #define HAVE_NVLIST_NEXT_NVPAIR 1
44963 _ACEOF
44964
44965                 FDLIBS="-lnvpair $FDLIBS"
44966
44967
44968 fi
44969
44970       fi
44971    fi
44972
44973    if test x$support_xattr = xyes -a $have_xattr != yes; then
44974       { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
44975   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
44976 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
44977   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
44978    { (exit 1); exit 1; }; }
44979    else
44980       if test $have_xattr = yes; then
44981
44982 cat >>confdefs.h <<\_ACEOF
44983 #define HAVE_XATTR 1
44984 _ACEOF
44985
44986       fi
44987    fi
44988 fi
44989
44990 PTHREAD_LIB=""
44991 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
44992 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44993 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
44994   $as_echo_n "(cached) " >&6
44995 else
44996   ac_check_lib_save_LIBS=$LIBS
44997 LIBS="-lpthread  $LIBS"
44998 cat >conftest.$ac_ext <<_ACEOF
44999 /* confdefs.h.  */
45000 _ACEOF
45001 cat confdefs.h >>conftest.$ac_ext
45002 cat >>conftest.$ac_ext <<_ACEOF
45003 /* end confdefs.h.  */
45004
45005 /* Override any GCC internal prototype to avoid an error.
45006    Use char because int might match the return type of a GCC
45007    builtin and then its argument prototype would still apply.  */
45008 #ifdef __cplusplus
45009 extern "C"
45010 #endif
45011 char pthread_create ();
45012 int
45013 main ()
45014 {
45015 return pthread_create ();
45016   ;
45017   return 0;
45018 }
45019 _ACEOF
45020 rm -f conftest.$ac_objext conftest$ac_exeext
45021 if { (ac_try="$ac_link"
45022 case "(($ac_try" in
45023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45024   *) ac_try_echo=$ac_try;;
45025 esac
45026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45027 $as_echo "$ac_try_echo") >&5
45028   (eval "$ac_link") 2>conftest.er1
45029   ac_status=$?
45030   grep -v '^ *+' conftest.er1 >conftest.err
45031   rm -f conftest.er1
45032   cat conftest.err >&5
45033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45034   (exit $ac_status); } && {
45035          test -z "$ac_c_werror_flag" ||
45036          test ! -s conftest.err
45037        } && test -s conftest$ac_exeext && {
45038          test "$cross_compiling" = yes ||
45039          $as_test_x conftest$ac_exeext
45040        }; then
45041   ac_cv_lib_pthread_pthread_create=yes
45042 else
45043   $as_echo "$as_me: failed program was:" >&5
45044 sed 's/^/| /' conftest.$ac_ext >&5
45045
45046         ac_cv_lib_pthread_pthread_create=no
45047 fi
45048
45049 rm -rf conftest.dSYM
45050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45051       conftest$ac_exeext conftest.$ac_ext
45052 LIBS=$ac_check_lib_save_LIBS
45053 fi
45054 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
45055 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
45056 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
45057   PTHREAD_LIB="-lpthread"
45058 else
45059
45060        { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
45061 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
45062 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
45063   $as_echo_n "(cached) " >&6
45064 else
45065   ac_check_lib_save_LIBS=$LIBS
45066 LIBS="-lpthreads  $LIBS"
45067 cat >conftest.$ac_ext <<_ACEOF
45068 /* confdefs.h.  */
45069 _ACEOF
45070 cat confdefs.h >>conftest.$ac_ext
45071 cat >>conftest.$ac_ext <<_ACEOF
45072 /* end confdefs.h.  */
45073
45074 /* Override any GCC internal prototype to avoid an error.
45075    Use char because int might match the return type of a GCC
45076    builtin and then its argument prototype would still apply.  */
45077 #ifdef __cplusplus
45078 extern "C"
45079 #endif
45080 char pthread_create ();
45081 int
45082 main ()
45083 {
45084 return pthread_create ();
45085   ;
45086   return 0;
45087 }
45088 _ACEOF
45089 rm -f conftest.$ac_objext conftest$ac_exeext
45090 if { (ac_try="$ac_link"
45091 case "(($ac_try" in
45092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45093   *) ac_try_echo=$ac_try;;
45094 esac
45095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45096 $as_echo "$ac_try_echo") >&5
45097   (eval "$ac_link") 2>conftest.er1
45098   ac_status=$?
45099   grep -v '^ *+' conftest.er1 >conftest.err
45100   rm -f conftest.er1
45101   cat conftest.err >&5
45102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45103   (exit $ac_status); } && {
45104          test -z "$ac_c_werror_flag" ||
45105          test ! -s conftest.err
45106        } && test -s conftest$ac_exeext && {
45107          test "$cross_compiling" = yes ||
45108          $as_test_x conftest$ac_exeext
45109        }; then
45110   ac_cv_lib_pthreads_pthread_create=yes
45111 else
45112   $as_echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45114
45115         ac_cv_lib_pthreads_pthread_create=no
45116 fi
45117
45118 rm -rf conftest.dSYM
45119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45120       conftest$ac_exeext conftest.$ac_ext
45121 LIBS=$ac_check_lib_save_LIBS
45122 fi
45123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
45124 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
45125 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
45126   PTHREAD_LIB="-lpthreads"
45127 else
45128
45129               { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
45130 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
45131 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
45132   $as_echo_n "(cached) " >&6
45133 else
45134   ac_check_lib_save_LIBS=$LIBS
45135 LIBS="-lc_r  $LIBS"
45136 cat >conftest.$ac_ext <<_ACEOF
45137 /* confdefs.h.  */
45138 _ACEOF
45139 cat confdefs.h >>conftest.$ac_ext
45140 cat >>conftest.$ac_ext <<_ACEOF
45141 /* end confdefs.h.  */
45142
45143 /* Override any GCC internal prototype to avoid an error.
45144    Use char because int might match the return type of a GCC
45145    builtin and then its argument prototype would still apply.  */
45146 #ifdef __cplusplus
45147 extern "C"
45148 #endif
45149 char pthread_create ();
45150 int
45151 main ()
45152 {
45153 return pthread_create ();
45154   ;
45155   return 0;
45156 }
45157 _ACEOF
45158 rm -f conftest.$ac_objext conftest$ac_exeext
45159 if { (ac_try="$ac_link"
45160 case "(($ac_try" in
45161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45162   *) ac_try_echo=$ac_try;;
45163 esac
45164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45165 $as_echo "$ac_try_echo") >&5
45166   (eval "$ac_link") 2>conftest.er1
45167   ac_status=$?
45168   grep -v '^ *+' conftest.er1 >conftest.err
45169   rm -f conftest.er1
45170   cat conftest.err >&5
45171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45172   (exit $ac_status); } && {
45173          test -z "$ac_c_werror_flag" ||
45174          test ! -s conftest.err
45175        } && test -s conftest$ac_exeext && {
45176          test "$cross_compiling" = yes ||
45177          $as_test_x conftest$ac_exeext
45178        }; then
45179   ac_cv_lib_c_r_pthread_create=yes
45180 else
45181   $as_echo "$as_me: failed program was:" >&5
45182 sed 's/^/| /' conftest.$ac_ext >&5
45183
45184         ac_cv_lib_c_r_pthread_create=no
45185 fi
45186
45187 rm -rf conftest.dSYM
45188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45189       conftest$ac_exeext conftest.$ac_ext
45190 LIBS=$ac_check_lib_save_LIBS
45191 fi
45192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
45193 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
45194 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
45195   PTHREAD_LIB="-lc_r"
45196 else
45197
45198                      { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
45199 $as_echo_n "checking for pthread_create... " >&6; }
45200 if test "${ac_cv_func_pthread_create+set}" = set; then
45201   $as_echo_n "(cached) " >&6
45202 else
45203   cat >conftest.$ac_ext <<_ACEOF
45204 /* confdefs.h.  */
45205 _ACEOF
45206 cat confdefs.h >>conftest.$ac_ext
45207 cat >>conftest.$ac_ext <<_ACEOF
45208 /* end confdefs.h.  */
45209 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
45210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45211 #define pthread_create innocuous_pthread_create
45212
45213 /* System header to define __stub macros and hopefully few prototypes,
45214     which can conflict with char pthread_create (); below.
45215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45216     <limits.h> exists even on freestanding compilers.  */
45217
45218 #ifdef __STDC__
45219 # include <limits.h>
45220 #else
45221 # include <assert.h>
45222 #endif
45223
45224 #undef pthread_create
45225
45226 /* Override any GCC internal prototype to avoid an error.
45227    Use char because int might match the return type of a GCC
45228    builtin and then its argument prototype would still apply.  */
45229 #ifdef __cplusplus
45230 extern "C"
45231 #endif
45232 char pthread_create ();
45233 /* The GNU C library defines this for functions which it implements
45234     to always fail with ENOSYS.  Some functions are actually named
45235     something starting with __ and the normal name is an alias.  */
45236 #if defined __stub_pthread_create || defined __stub___pthread_create
45237 choke me
45238 #endif
45239
45240 int
45241 main ()
45242 {
45243 return pthread_create ();
45244   ;
45245   return 0;
45246 }
45247 _ACEOF
45248 rm -f conftest.$ac_objext conftest$ac_exeext
45249 if { (ac_try="$ac_link"
45250 case "(($ac_try" in
45251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45252   *) ac_try_echo=$ac_try;;
45253 esac
45254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45255 $as_echo "$ac_try_echo") >&5
45256   (eval "$ac_link") 2>conftest.er1
45257   ac_status=$?
45258   grep -v '^ *+' conftest.er1 >conftest.err
45259   rm -f conftest.er1
45260   cat conftest.err >&5
45261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45262   (exit $ac_status); } && {
45263          test -z "$ac_c_werror_flag" ||
45264          test ! -s conftest.err
45265        } && test -s conftest$ac_exeext && {
45266          test "$cross_compiling" = yes ||
45267          $as_test_x conftest$ac_exeext
45268        }; then
45269   ac_cv_func_pthread_create=yes
45270 else
45271   $as_echo "$as_me: failed program was:" >&5
45272 sed 's/^/| /' conftest.$ac_ext >&5
45273
45274         ac_cv_func_pthread_create=no
45275 fi
45276
45277 rm -rf conftest.dSYM
45278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45279       conftest$ac_exeext conftest.$ac_ext
45280 fi
45281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
45282 $as_echo "$ac_cv_func_pthread_create" >&6; }
45283
45284
45285
45286 fi
45287
45288
45289
45290 fi
45291
45292
45293
45294 fi
45295
45296
45297
45298
45299 for ac_header in sys/prctl.h sys/capability.h
45300 do
45301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45303   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45304 $as_echo_n "checking for $ac_header... " >&6; }
45305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45306   $as_echo_n "(cached) " >&6
45307 fi
45308 ac_res=`eval 'as_val=${'$as_ac_Header'}
45309                  $as_echo "$as_val"'`
45310                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45311 $as_echo "$ac_res" >&6; }
45312 else
45313   # Is the header compilable?
45314 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45315 $as_echo_n "checking $ac_header usability... " >&6; }
45316 cat >conftest.$ac_ext <<_ACEOF
45317 /* confdefs.h.  */
45318 _ACEOF
45319 cat confdefs.h >>conftest.$ac_ext
45320 cat >>conftest.$ac_ext <<_ACEOF
45321 /* end confdefs.h.  */
45322 $ac_includes_default
45323 #include <$ac_header>
45324 _ACEOF
45325 rm -f conftest.$ac_objext
45326 if { (ac_try="$ac_compile"
45327 case "(($ac_try" in
45328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45329   *) ac_try_echo=$ac_try;;
45330 esac
45331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45332 $as_echo "$ac_try_echo") >&5
45333   (eval "$ac_compile") 2>conftest.er1
45334   ac_status=$?
45335   grep -v '^ *+' conftest.er1 >conftest.err
45336   rm -f conftest.er1
45337   cat conftest.err >&5
45338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339   (exit $ac_status); } && {
45340          test -z "$ac_c_werror_flag" ||
45341          test ! -s conftest.err
45342        } && test -s conftest.$ac_objext; then
45343   ac_header_compiler=yes
45344 else
45345   $as_echo "$as_me: failed program was:" >&5
45346 sed 's/^/| /' conftest.$ac_ext >&5
45347
45348         ac_header_compiler=no
45349 fi
45350
45351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45352 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45353 $as_echo "$ac_header_compiler" >&6; }
45354
45355 # Is the header present?
45356 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45357 $as_echo_n "checking $ac_header presence... " >&6; }
45358 cat >conftest.$ac_ext <<_ACEOF
45359 /* confdefs.h.  */
45360 _ACEOF
45361 cat confdefs.h >>conftest.$ac_ext
45362 cat >>conftest.$ac_ext <<_ACEOF
45363 /* end confdefs.h.  */
45364 #include <$ac_header>
45365 _ACEOF
45366 if { (ac_try="$ac_cpp conftest.$ac_ext"
45367 case "(($ac_try" in
45368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45369   *) ac_try_echo=$ac_try;;
45370 esac
45371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45372 $as_echo "$ac_try_echo") >&5
45373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45374   ac_status=$?
45375   grep -v '^ *+' conftest.er1 >conftest.err
45376   rm -f conftest.er1
45377   cat conftest.err >&5
45378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45379   (exit $ac_status); } >/dev/null && {
45380          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45381          test ! -s conftest.err
45382        }; then
45383   ac_header_preproc=yes
45384 else
45385   $as_echo "$as_me: failed program was:" >&5
45386 sed 's/^/| /' conftest.$ac_ext >&5
45387
45388   ac_header_preproc=no
45389 fi
45390
45391 rm -f conftest.err conftest.$ac_ext
45392 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45393 $as_echo "$ac_header_preproc" >&6; }
45394
45395 # So?  What about this header?
45396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45397   yes:no: )
45398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45399 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45402     ac_header_preproc=yes
45403     ;;
45404   no:yes:* )
45405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45406 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45407     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45408 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45409     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45410 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45412 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45416 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45417
45418     ;;
45419 esac
45420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45421 $as_echo_n "checking for $ac_header... " >&6; }
45422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45423   $as_echo_n "(cached) " >&6
45424 else
45425   eval "$as_ac_Header=\$ac_header_preproc"
45426 fi
45427 ac_res=`eval 'as_val=${'$as_ac_Header'}
45428                  $as_echo "$as_val"'`
45429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45430 $as_echo "$ac_res" >&6; }
45431
45432 fi
45433 as_val=`eval 'as_val=${'$as_ac_Header'}
45434                  $as_echo "$as_val"'`
45435    if test "x$as_val" = x""yes; then
45436   cat >>confdefs.h <<_ACEOF
45437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45438 _ACEOF
45439
45440 fi
45441
45442 done
45443
45444
45445
45446 for ac_func in prctl setreuid
45447 do
45448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45450 $as_echo_n "checking for $ac_func... " >&6; }
45451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45452   $as_echo_n "(cached) " >&6
45453 else
45454   cat >conftest.$ac_ext <<_ACEOF
45455 /* confdefs.h.  */
45456 _ACEOF
45457 cat confdefs.h >>conftest.$ac_ext
45458 cat >>conftest.$ac_ext <<_ACEOF
45459 /* end confdefs.h.  */
45460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45462 #define $ac_func innocuous_$ac_func
45463
45464 /* System header to define __stub macros and hopefully few prototypes,
45465     which can conflict with char $ac_func (); below.
45466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45467     <limits.h> exists even on freestanding compilers.  */
45468
45469 #ifdef __STDC__
45470 # include <limits.h>
45471 #else
45472 # include <assert.h>
45473 #endif
45474
45475 #undef $ac_func
45476
45477 /* Override any GCC internal prototype to avoid an error.
45478    Use char because int might match the return type of a GCC
45479    builtin and then its argument prototype would still apply.  */
45480 #ifdef __cplusplus
45481 extern "C"
45482 #endif
45483 char $ac_func ();
45484 /* The GNU C library defines this for functions which it implements
45485     to always fail with ENOSYS.  Some functions are actually named
45486     something starting with __ and the normal name is an alias.  */
45487 #if defined __stub_$ac_func || defined __stub___$ac_func
45488 choke me
45489 #endif
45490
45491 int
45492 main ()
45493 {
45494 return $ac_func ();
45495   ;
45496   return 0;
45497 }
45498 _ACEOF
45499 rm -f conftest.$ac_objext conftest$ac_exeext
45500 if { (ac_try="$ac_link"
45501 case "(($ac_try" in
45502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45503   *) ac_try_echo=$ac_try;;
45504 esac
45505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45506 $as_echo "$ac_try_echo") >&5
45507   (eval "$ac_link") 2>conftest.er1
45508   ac_status=$?
45509   grep -v '^ *+' conftest.er1 >conftest.err
45510   rm -f conftest.er1
45511   cat conftest.err >&5
45512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45513   (exit $ac_status); } && {
45514          test -z "$ac_c_werror_flag" ||
45515          test ! -s conftest.err
45516        } && test -s conftest$ac_exeext && {
45517          test "$cross_compiling" = yes ||
45518          $as_test_x conftest$ac_exeext
45519        }; then
45520   eval "$as_ac_var=yes"
45521 else
45522   $as_echo "$as_me: failed program was:" >&5
45523 sed 's/^/| /' conftest.$ac_ext >&5
45524
45525         eval "$as_ac_var=no"
45526 fi
45527
45528 rm -rf conftest.dSYM
45529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45530       conftest$ac_exeext conftest.$ac_ext
45531 fi
45532 ac_res=`eval 'as_val=${'$as_ac_var'}
45533                  $as_echo "$as_val"'`
45534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45535 $as_echo "$ac_res" >&6; }
45536 as_val=`eval 'as_val=${'$as_ac_var'}
45537                  $as_echo "$as_val"'`
45538    if test "x$as_val" = x""yes; then
45539   cat >>confdefs.h <<_ACEOF
45540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45541 _ACEOF
45542
45543 fi
45544 done
45545
45546 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
45547 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
45548 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
45549   $as_echo_n "(cached) " >&6
45550 else
45551   ac_check_lib_save_LIBS=$LIBS
45552 LIBS="-lcap  $LIBS"
45553 cat >conftest.$ac_ext <<_ACEOF
45554 /* confdefs.h.  */
45555 _ACEOF
45556 cat confdefs.h >>conftest.$ac_ext
45557 cat >>conftest.$ac_ext <<_ACEOF
45558 /* end confdefs.h.  */
45559
45560 /* Override any GCC internal prototype to avoid an error.
45561    Use char because int might match the return type of a GCC
45562    builtin and then its argument prototype would still apply.  */
45563 #ifdef __cplusplus
45564 extern "C"
45565 #endif
45566 char cap_set_proc ();
45567 int
45568 main ()
45569 {
45570 return cap_set_proc ();
45571   ;
45572   return 0;
45573 }
45574 _ACEOF
45575 rm -f conftest.$ac_objext conftest$ac_exeext
45576 if { (ac_try="$ac_link"
45577 case "(($ac_try" in
45578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45579   *) ac_try_echo=$ac_try;;
45580 esac
45581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45582 $as_echo "$ac_try_echo") >&5
45583   (eval "$ac_link") 2>conftest.er1
45584   ac_status=$?
45585   grep -v '^ *+' conftest.er1 >conftest.err
45586   rm -f conftest.er1
45587   cat conftest.err >&5
45588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589   (exit $ac_status); } && {
45590          test -z "$ac_c_werror_flag" ||
45591          test ! -s conftest.err
45592        } && test -s conftest$ac_exeext && {
45593          test "$cross_compiling" = yes ||
45594          $as_test_x conftest$ac_exeext
45595        }; then
45596   ac_cv_lib_cap_cap_set_proc=yes
45597 else
45598   $as_echo "$as_me: failed program was:" >&5
45599 sed 's/^/| /' conftest.$ac_ext >&5
45600
45601         ac_cv_lib_cap_cap_set_proc=no
45602 fi
45603
45604 rm -rf conftest.dSYM
45605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45606       conftest$ac_exeext conftest.$ac_ext
45607 LIBS=$ac_check_lib_save_LIBS
45608 fi
45609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
45610 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
45611 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
45612   CAP_LIBS="-lcap"
45613 else
45614   CAP_LIBS=
45615 fi
45616
45617 if test x$CAP_LIBS = x-lcap; then
45618
45619 cat >>confdefs.h <<\_ACEOF
45620 #define HAVE_LIBCAP 1
45621 _ACEOF
45622
45623 fi
45624
45625
45626
45627 cat >>confdefs.h <<\_ACEOF
45628 #define FDLIBS 1
45629 _ACEOF
45630
45631
45632 CFLAGS=${CFLAGS--O}
45633
45634 if test x$have_gcc = xyes ; then
45635    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45636    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45637 fi
45638 LDFLAGS=${LDFLAGS--O}
45639 DB_LIBS="${SQL_LFLAGS}"
45640 CPPFLAGS="$CPPFLAGS"
45641 CFLAGS="$CFLAGS"
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658 OBJLIST=
45659
45660
45661 lld="lld"
45662 llu="llu"
45663
45664 WCFLAGS=
45665 WLDFLAGS=
45666
45667 PFILES="platforms/Makefile"
45668 PSCMD="ps -e"
45669 WIN32=
45670 MACOSX=
45671
45672 hostname=`uname -n | cut -d '.' -f 1`
45673 if test x${hostname} = x ; then
45674    hostname="localhost"
45675 fi
45676 ping -c 1 $hostname 2>/dev/null 1>/dev/null
45677 if test ! $? = 0; then
45678   hostname="localhost"
45679 fi
45680
45681 case "$DISTNAME" in
45682 aix)
45683    DISTVER=`uname -r`
45684    PSCMD="ps -e -o pid,comm"
45685    PFILES="${PFILES} \
45686       platforms/aix/Makefile"
45687    TAPEDRIVE="/dev/rmt0.1"
45688   ;;
45689 alpha)
45690    DISTVER=`uname -r`
45691    PTHREAD_LIB="-lpthread -lexc"
45692    if test "${CC}" = "gcc" ; then
45693       lld="lld"
45694       llu="llu"
45695    else
45696       lld="ld"
45697       llu="lu"
45698    fi
45699    TAPEDRIVE="/dev/nrmt0"
45700   ;;
45701 bsdi)
45702    DISTVER=`uname -a |awk '{print $3}'`
45703    TAPEDRIVE="/dev/nrmt0"
45704    PTHREAD_LIB="-pthread"
45705    CFLAGS="${CFLAGS} -pthread"
45706    PSCMD="ps -ax -o pid,command"
45707    lld="qd"
45708    llu="qu"
45709    PFILES="${PFILES} \
45710        platforms/bsdi/Makefile \
45711        platforms/bsdi/bacula-fd \
45712        platforms/bsdi/bacula-sd \
45713        platforms/bsdi/bacula-dir"
45714    largefile_support="yes"
45715   ;;
45716 cygwin)
45717    DISTVER=`uname -a |awk '{print $3}'`
45718    TAPEDRIVE="/dev/nrst0"
45719    WIN32=win32
45720    WCFLAGS="-mwindows"
45721    WLDFLAGS="-mwindows"
45722   ;;
45723 darwin)
45724    DISTVER=`uname -r`
45725    TAPEDRIVE="/dev/nst0"
45726    PSCMD="ps -e -o pid,command"
45727    MACOSX=macosx
45728    PFILES="${PFILES} \
45729       platforms/darwin/Makefile"
45730   ;;
45731 osx)
45732    DISTVER=`uname -r`
45733    TAPEDRIVE="/dev/nst0"
45734    PSCMD="ps -e -o pid,command"
45735    MACOSX=macosx
45736    PFILES="${PFILES} \
45737       platforms/osx/Makefile"
45738   ;;
45739 debian)
45740    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
45741       DISTNAME="ubuntu"
45742    fi
45743    DISTVER=`cat /etc/debian_version`
45744    if test -f /etc/lsb-release ; then
45745       . /etc/lsb-release
45746       if test "x$DISTRIB_ID" != "x" ; then
45747          DISTNAME=$DISTRIB_ID
45748       fi
45749       if test "x$DISTRIB_RELEASE" != "x" ; then
45750          DISTVER=$DISTRIB_RELEASE
45751       fi
45752    fi
45753    if test "$DISTNAME" = "Ubuntu" ; then
45754       DISTNAME="ubuntu"
45755    fi
45756    TAPEDRIVE="/dev/nst0"
45757    PSCMD="ps -e -o pid,command"
45758    if test "$DISTNAME" = "ubuntu" ; then
45759       PFILES="${PFILES} \
45760          platforms/ubuntu/Makefile \
45761          platforms/ubuntu/bacula-fd \
45762          platforms/ubuntu/bacula-sd \
45763          platforms/ubuntu/bacula-dir"
45764    else
45765       PFILES="${PFILES} \
45766          platforms/debian/Makefile \
45767          platforms/debian/bacula-fd \
45768          platforms/debian/bacula-sd \
45769          platforms/debian/bacula-dir"
45770    fi
45771   ;;
45772 freebsd)
45773    DISTVER=`uname -a |awk '{print $3}'`
45774    VER=`echo $DISTVER | cut -c 1`
45775    if test x$VER = x4 ; then
45776       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
45777       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
45778    fi
45779    lld="qd"
45780    llu="qu"
45781    TAPEDRIVE="/dev/nrsa0"
45782    PSCMD="ps -ax -o pid,command"
45783    PFILES="${PFILES} \
45784        platforms/freebsd/Makefile \
45785        platforms/freebsd/bacula-fd \
45786        platforms/freebsd/bacula-sd \
45787        platforms/freebsd/bacula-dir"
45788    largefile_support="yes"
45789   ;;
45790 hpux)
45791    PSCMD="UNIX95=1; ps -e -o pid,comm"
45792    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
45793    DISTVER=`uname -r`
45794    TAPEDRIVE="/dev/rmt/0hnb"
45795    PTHREAD_LIB="-lpthread"
45796    cat >>confdefs.h <<\_ACEOF
45797 #define _INCLUDE_LONGLONG 1
45798 _ACEOF
45799
45800   ;;
45801 irix)
45802    DISTVER=`uname -r`
45803    TAPEDRIVE="/dev/rmt/0cbn"
45804    PSCMD="ps -e -o pid,comm"
45805    PFILES="${PFILES} \
45806        platforms/irix/Makefile \
45807        platforms/irix/bacula-fd \
45808        platforms/irix/bacula-sd \
45809        platforms/irix/bacula-dir"
45810   ;;
45811 netbsd)
45812    DISTVER=`uname -a |awk '{print $3}'`
45813    lld="qd"
45814    llu="qu"
45815    TAPEDRIVE="/dev/nrst0"
45816    PSCMD="ps -ax -o pid,command"
45817    PTHREAD_LIB="-pthread"
45818    CFLAGS="${CFLAGS} -pthread"
45819   ;;
45820 openbsd)
45821    DISTVER=`uname -a |awk '{print $3}'`
45822    lld="qd"
45823    llu="qu"
45824    TAPEDRIVE="/dev/nrst0"
45825    PSCMD="ps -ax -o pid,command"
45826    PTHREAD_LIB="-pthread"
45827    CFLAGS="${CFLAGS} -pthread"
45828    PFILES="${PFILES} \
45829        platforms/openbsd/Makefile \
45830        platforms/openbsd/bacula-fd \
45831        platforms/openbsd/bacula-sd \
45832        platforms/openbsd/bacula-dir"
45833   ;;
45834 redhat)
45835    if test -f /etc/whitebox-release ; then
45836       f=/etc/whitebox-release
45837    else
45838       f=/etc/redhat-release
45839    fi
45840    if test `cat $f | grep release |\
45841          cut -f 3 -d ' '`x = "Enterprise"x ; then
45842       DISTVER="Enterprise "`cat $f | grep release |\
45843           cut -f 6 -d ' '`
45844    else
45845        DISTVER=`cat /etc/redhat-release | grep release |\
45846            cut -f 5 -d ' '`
45847    fi
45848    TAPEDRIVE="/dev/nst0"
45849    PSCMD="ps -e -o pid,command"
45850    PFILES="${PFILES} \
45851        platforms/redhat/Makefile \
45852        platforms/redhat/bacula-fd \
45853        platforms/redhat/bacula-sd \
45854        platforms/redhat/bacula-dir
45855        "
45856   ;;
45857 mandrake)
45858    DISTVER=`cat /etc/mandrake-release | grep release |\
45859       cut -f 5 -d ' '`
45860    TAPEDRIVE="/dev/nst0"
45861    PSCMD="ps -e -o pid,command"
45862    PFILES="${PFILES} \
45863        platforms/mandrake/Makefile \
45864        platforms/mandrake/bacula-fd \
45865        platforms/mandrake/bacula-sd \
45866        platforms/mandrake/bacula-dir \
45867        "
45868   ;;
45869 gentoo)
45870    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
45871    TAPEDRIVE="/dev/nst0"
45872    PSCMD="ps -e -o pid,command"
45873    PFILES="${PFILES} \
45874        platforms/gentoo/Makefile \
45875     platforms/gentoo/bacula-init \
45876        platforms/gentoo/bacula-fd \
45877        platforms/gentoo/bacula-sd \
45878        platforms/gentoo/bacula-dir"
45879   ;;
45880 slackware)
45881    DISTVER=`cat /etc/slackware-version`
45882    TAPEDRIVE="/dev/nst0"
45883    PSCMD="ps -e -o pid,command"
45884    PFILES="${PFILES} \
45885        platforms/slackware/Makefile \
45886        platforms/slackware/rc.bacula-fd \
45887        platforms/slackware/rc.bacula-sd \
45888        platforms/slackware/rc.bacula-dir\
45889        platforms/slackware/functions.bacula"
45890   ;;
45891 solaris)
45892    DISTVER=`uname -r`
45893    TAPEDRIVE="/dev/rmt/0cbn"
45894    PSCMD="ps -e -o pid,comm"
45895    PFILES="${PFILES} \
45896        platforms/solaris/Makefile \
45897        platforms/solaris/bacula-fd \
45898        platforms/solaris/bacula-sd \
45899        platforms/solaris/bacula-dir"
45900    if test x$DISTVER = x5.6 ; then
45901        cat >>confdefs.h <<\_ACEOF
45902 #define HAVE_OLD_SOCKOPT 1
45903 _ACEOF
45904
45905    fi
45906    LIBS="$LIBS -lresolv -lrt"
45907   ;;
45908 suse)
45909    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
45910        cut -f 3 -d ' '`
45911    TAPEDRIVE="/dev/nst0"
45912    PSCMD="ps -e -o pid,command"
45913    PFILES="${PFILES} \
45914        platforms/suse/Makefile \
45915        platforms/suse/bacula-fd \
45916        platforms/suse/bacula-sd \
45917        platforms/suse/bacula-dir \
45918        platforms/suse/bacula"
45919   ;;
45920 suse5)
45921    DISTNAME=suse
45922    DISTVER=5.x
45923    TAPEDRIVE="/dev/nst0"
45924    PSCMD="ps -e -o pid,command"
45925    PFILES="${PFILES} \
45926        platforms/suse/Makefile \
45927        platforms/suse/bacula-fd \
45928        platforms/suse/bacula-sd \
45929        platforms/suse/bacula-dir"
45930   ;;
45931 unknown)
45932    DISTVER=unknown
45933    TAPEDRIVE="/dev/nst0"
45934   ;;
45935 *)
45936   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
45937   ;;
45938 esac
45939
45940
45941
45942 LIBS="$PTHREAD_LIB $LIBS"
45943
45944 cat >>confdefs.h <<_ACEOF
45945 #define lld "$lld"
45946 _ACEOF
45947
45948 cat >>confdefs.h <<_ACEOF
45949 #define llu "$llu"
45950 _ACEOF
45951
45952
45953
45954
45955
45956
45957
45958
45959 MCOMMON=./autoconf/Make.common
45960
45961
45962 if test "x${subsysdir}" = "x${sbindir}" ; then
45963    echo " "
45964    echo " "
45965    echo "You have set both --sbindir and --with-subsys-dir"
45966    echo "  equal to: ${subsysdir} "
45967    echo "This is not permitted. Please reconfigure."
45968    echo " "
45969    echo "Aborting configuration ..."
45970    echo " "
45971    echo " "
45972    exit 1
45973 fi
45974
45975 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
45976
45977 ac_config_commands="$ac_config_commands default"
45978
45979 cat >confcache <<\_ACEOF
45980 # This file is a shell script that caches the results of configure
45981 # tests run on this system so they can be shared between configure
45982 # scripts and configure runs, see configure's option --config-cache.
45983 # It is not useful on other systems.  If it contains results you don't
45984 # want to keep, you may remove or edit it.
45985 #
45986 # config.status only pays attention to the cache file if you give it
45987 # the --recheck option to rerun configure.
45988 #
45989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45991 # following values.
45992
45993 _ACEOF
45994
45995 # The following way of writing the cache mishandles newlines in values,
45996 # but we know of no workaround that is simple, portable, and efficient.
45997 # So, we kill variables containing newlines.
45998 # Ultrix sh set writes to stderr and can't be redirected directly,
45999 # and sets the high bit in the cache file unless we assign to the vars.
46000 (
46001   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46002     eval ac_val=\$$ac_var
46003     case $ac_val in #(
46004     *${as_nl}*)
46005       case $ac_var in #(
46006       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46008       esac
46009       case $ac_var in #(
46010       _ | IFS | as_nl) ;; #(
46011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46012       *) $as_unset $ac_var ;;
46013       esac ;;
46014     esac
46015   done
46016
46017   (set) 2>&1 |
46018     case $as_nl`(ac_space=' '; set) 2>&1` in #(
46019     *${as_nl}ac_space=\ *)
46020       # `set' does not quote correctly, so add quotes (double-quote
46021       # substitution turns \\\\ into \\, and sed turns \\ into \).
46022       sed -n \
46023         "s/'/'\\\\''/g;
46024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46025       ;; #(
46026     *)
46027       # `set' quotes correctly as required by POSIX, so do not add quotes.
46028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46029       ;;
46030     esac |
46031     sort
46032 ) |
46033   sed '
46034      /^ac_cv_env_/b end
46035      t clear
46036      :clear
46037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46038      t end
46039      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46040      :end' >>confcache
46041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46042   if test -w "$cache_file"; then
46043     test "x$cache_file" != "x/dev/null" &&
46044       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46045 $as_echo "$as_me: updating cache $cache_file" >&6;}
46046     cat confcache >$cache_file
46047   else
46048     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46050   fi
46051 fi
46052 rm -f confcache
46053
46054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46055 # Let make expand exec_prefix.
46056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46057
46058 DEFS=-DHAVE_CONFIG_H
46059
46060 ac_libobjs=
46061 ac_ltlibobjs=
46062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46063   # 1. Remove the extension, and $U if already installed.
46064   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46065   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46066   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
46067   #    will be set to the directory where LIBOBJS objects are built.
46068   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46069   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46070 done
46071 LIBOBJS=$ac_libobjs
46072
46073 LTLIBOBJS=$ac_ltlibobjs
46074
46075
46076
46077 : ${CONFIG_STATUS=./config.status}
46078 ac_write_fail=0
46079 ac_clean_files_save=$ac_clean_files
46080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46081 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46082 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
46083 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46084 #! $SHELL
46085 # Generated by $as_me.
46086 # Run this file to recreate the current configuration.
46087 # Compiler output produced by configure, useful for debugging
46088 # configure, is in config.log if it exists.
46089
46090 debug=false
46091 ac_cs_recheck=false
46092 ac_cs_silent=false
46093 SHELL=\${CONFIG_SHELL-$SHELL}
46094 _ACEOF
46095
46096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46097 ## --------------------- ##
46098 ## M4sh Initialization.  ##
46099 ## --------------------- ##
46100
46101 # Be more Bourne compatible
46102 DUALCASE=1; export DUALCASE # for MKS sh
46103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46104   emulate sh
46105   NULLCMD=:
46106   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46107   # is contrary to our usage.  Disable this feature.
46108   alias -g '${1+"$@"}'='"$@"'
46109   setopt NO_GLOB_SUBST
46110 else
46111   case `(set -o) 2>/dev/null` in
46112   *posix*) set -o posix ;;
46113 esac
46114
46115 fi
46116
46117
46118
46119
46120 # PATH needs CR
46121 # Avoid depending upon Character Ranges.
46122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46125 as_cr_digits='0123456789'
46126 as_cr_alnum=$as_cr_Letters$as_cr_digits
46127
46128 as_nl='
46129 '
46130 export as_nl
46131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46135 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
46136   as_echo='printf %s\n'
46137   as_echo_n='printf %s'
46138 else
46139   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
46140     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
46141     as_echo_n='/usr/ucb/echo -n'
46142   else
46143     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
46144     as_echo_n_body='eval
46145       arg=$1;
46146       case $arg in
46147       *"$as_nl"*)
46148         expr "X$arg" : "X\\(.*\\)$as_nl";
46149         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46150       esac;
46151       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46152     '
46153     export as_echo_n_body
46154     as_echo_n='sh -c $as_echo_n_body as_echo'
46155   fi
46156   export as_echo_body
46157   as_echo='sh -c $as_echo_body as_echo'
46158 fi
46159
46160 # The user is always right.
46161 if test "${PATH_SEPARATOR+set}" != set; then
46162   PATH_SEPARATOR=:
46163   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46164     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46165       PATH_SEPARATOR=';'
46166   }
46167 fi
46168
46169 # Support unset when possible.
46170 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46171   as_unset=unset
46172 else
46173   as_unset=false
46174 fi
46175
46176
46177 # IFS
46178 # We need space, tab and new line, in precisely that order.  Quoting is
46179 # there to prevent editors from complaining about space-tab.
46180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
46181 # splitting by setting IFS to empty value.)
46182 IFS=" ""        $as_nl"
46183
46184 # Find who we are.  Look in the path if we contain no directory separator.
46185 case $0 in
46186   *[\\/]* ) as_myself=$0 ;;
46187   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46188 for as_dir in $PATH
46189 do
46190   IFS=$as_save_IFS
46191   test -z "$as_dir" && as_dir=.
46192   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46193 done
46194 IFS=$as_save_IFS
46195
46196      ;;
46197 esac
46198 # We did not find ourselves, most probably we were run as `sh COMMAND'
46199 # in which case we are not to be found in the path.
46200 if test "x$as_myself" = x; then
46201   as_myself=$0
46202 fi
46203 if test ! -f "$as_myself"; then
46204   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46205   { (exit 1); exit 1; }
46206 fi
46207
46208 # Work around bugs in pre-3.0 UWIN ksh.
46209 for as_var in ENV MAIL MAILPATH
46210 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46211 done
46212 PS1='$ '
46213 PS2='> '
46214 PS4='+ '
46215
46216 # NLS nuisances.
46217 LC_ALL=C
46218 export LC_ALL
46219 LANGUAGE=C
46220 export LANGUAGE
46221
46222 # Required to use basename.
46223 if expr a : '\(a\)' >/dev/null 2>&1 &&
46224    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46225   as_expr=expr
46226 else
46227   as_expr=false
46228 fi
46229
46230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46231   as_basename=basename
46232 else
46233   as_basename=false
46234 fi
46235
46236
46237 # Name of the executable.
46238 as_me=`$as_basename -- "$0" ||
46239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46240          X"$0" : 'X\(//\)$' \| \
46241          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46242 $as_echo X/"$0" |
46243     sed '/^.*\/\([^/][^/]*\)\/*$/{
46244             s//\1/
46245             q
46246           }
46247           /^X\/\(\/\/\)$/{
46248             s//\1/
46249             q
46250           }
46251           /^X\/\(\/\).*/{
46252             s//\1/
46253             q
46254           }
46255           s/.*/./; q'`
46256
46257 # CDPATH.
46258 $as_unset CDPATH
46259
46260
46261
46262   as_lineno_1=$LINENO
46263   as_lineno_2=$LINENO
46264   test "x$as_lineno_1" != "x$as_lineno_2" &&
46265   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46266
46267   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46268   # uniformly replaced by the line number.  The first 'sed' inserts a
46269   # line-number line after each line using $LINENO; the second 'sed'
46270   # does the real work.  The second script uses 'N' to pair each
46271   # line-number line with the line containing $LINENO, and appends
46272   # trailing '-' during substitution so that $LINENO is not a special
46273   # case at line end.
46274   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46275   # scripts with optimization help from Paolo Bonzini.  Blame Lee
46276   # E. McMahon (1931-1989) for sed's syntax.  :-)
46277   sed -n '
46278     p
46279     /[$]LINENO/=
46280   ' <$as_myself |
46281     sed '
46282       s/[$]LINENO.*/&-/
46283       t lineno
46284       b
46285       :lineno
46286       N
46287       :loop
46288       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46289       t loop
46290       s/-\n.*//
46291     ' >$as_me.lineno &&
46292   chmod +x "$as_me.lineno" ||
46293     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46294    { (exit 1); exit 1; }; }
46295
46296   # Don't try to exec as it changes $[0], causing all sort of problems
46297   # (the dirname of $[0] is not the place where we might find the
46298   # original and so on.  Autoconf is especially sensitive to this).
46299   . "./$as_me.lineno"
46300   # Exit status is that of the last command.
46301   exit
46302 }
46303
46304
46305 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46306   as_dirname=dirname
46307 else
46308   as_dirname=false
46309 fi
46310
46311 ECHO_C= ECHO_N= ECHO_T=
46312 case `echo -n x` in
46313 -n*)
46314   case `echo 'x\c'` in
46315   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
46316   *)   ECHO_C='\c';;
46317   esac;;
46318 *)
46319   ECHO_N='-n';;
46320 esac
46321 if expr a : '\(a\)' >/dev/null 2>&1 &&
46322    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46323   as_expr=expr
46324 else
46325   as_expr=false
46326 fi
46327
46328 rm -f conf$$ conf$$.exe conf$$.file
46329 if test -d conf$$.dir; then
46330   rm -f conf$$.dir/conf$$.file
46331 else
46332   rm -f conf$$.dir
46333   mkdir conf$$.dir 2>/dev/null
46334 fi
46335 if (echo >conf$$.file) 2>/dev/null; then
46336   if ln -s conf$$.file conf$$ 2>/dev/null; then
46337     as_ln_s='ln -s'
46338     # ... but there are two gotchas:
46339     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46340     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46341     # In both cases, we have to default to `cp -p'.
46342     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46343       as_ln_s='cp -p'
46344   elif ln conf$$.file conf$$ 2>/dev/null; then
46345     as_ln_s=ln
46346   else
46347     as_ln_s='cp -p'
46348   fi
46349 else
46350   as_ln_s='cp -p'
46351 fi
46352 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46353 rmdir conf$$.dir 2>/dev/null
46354
46355 if mkdir -p . 2>/dev/null; then
46356   as_mkdir_p=:
46357 else
46358   test -d ./-p && rmdir ./-p
46359   as_mkdir_p=false
46360 fi
46361
46362 if test -x / >/dev/null 2>&1; then
46363   as_test_x='test -x'
46364 else
46365   if ls -dL / >/dev/null 2>&1; then
46366     as_ls_L_option=L
46367   else
46368     as_ls_L_option=
46369   fi
46370   as_test_x='
46371     eval sh -c '\''
46372       if test -d "$1"; then
46373         test -d "$1/.";
46374       else
46375         case $1 in
46376         -*)set "./$1";;
46377         esac;
46378         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46379         ???[sx]*):;;*)false;;esac;fi
46380     '\'' sh
46381   '
46382 fi
46383 as_executable_p=$as_test_x
46384
46385 # Sed expression to map a string onto a valid CPP name.
46386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46387
46388 # Sed expression to map a string onto a valid variable name.
46389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46390
46391
46392 exec 6>&1
46393
46394 # Save the log message, to keep $[0] and so on meaningful, and to
46395 # report actual input values of CONFIG_FILES etc. instead of their
46396 # values after options handling.
46397 ac_log="
46398 This file was extended by $as_me, which was
46399 generated by GNU Autoconf 2.63.  Invocation command line was
46400
46401   CONFIG_FILES    = $CONFIG_FILES
46402   CONFIG_HEADERS  = $CONFIG_HEADERS
46403   CONFIG_LINKS    = $CONFIG_LINKS
46404   CONFIG_COMMANDS = $CONFIG_COMMANDS
46405   $ $0 $@
46406
46407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46408 "
46409
46410 _ACEOF
46411
46412 case $ac_config_files in *"
46413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46414 esac
46415
46416 case $ac_config_headers in *"
46417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46418 esac
46419
46420
46421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46422 # Files that config.status was made for.
46423 config_files="$ac_config_files"
46424 config_headers="$ac_config_headers"
46425 config_commands="$ac_config_commands"
46426
46427 _ACEOF
46428
46429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46430 ac_cs_usage="\
46431 \`$as_me' instantiates files from templates according to the
46432 current configuration.
46433
46434 Usage: $0 [OPTION]... [FILE]...
46435
46436   -h, --help       print this help, then exit
46437   -V, --version    print version number and configuration settings, then exit
46438   -q, --quiet, --silent
46439                    do not print progress messages
46440   -d, --debug      don't remove temporary files
46441       --recheck    update $as_me by reconfiguring in the same conditions
46442       --file=FILE[:TEMPLATE]
46443                    instantiate the configuration file FILE
46444       --header=FILE[:TEMPLATE]
46445                    instantiate the configuration header FILE
46446
46447 Configuration files:
46448 $config_files
46449
46450 Configuration headers:
46451 $config_headers
46452
46453 Configuration commands:
46454 $config_commands
46455
46456 Report bugs to <bug-autoconf@gnu.org>."
46457
46458 _ACEOF
46459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46460 ac_cs_version="\\
46461 config.status
46462 configured by $0, generated by GNU Autoconf 2.63,
46463   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46464
46465 Copyright (C) 2008 Free Software Foundation, Inc.
46466 This config.status script is free software; the Free Software Foundation
46467 gives unlimited permission to copy, distribute and modify it."
46468
46469 ac_pwd='$ac_pwd'
46470 srcdir='$srcdir'
46471 INSTALL='$INSTALL'
46472 AWK='$AWK'
46473 test -n "\$AWK" || AWK=awk
46474 _ACEOF
46475
46476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46477 # The default lists apply if the user does not specify any file.
46478 ac_need_defaults=:
46479 while test $# != 0
46480 do
46481   case $1 in
46482   --*=*)
46483     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46484     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46485     ac_shift=:
46486     ;;
46487   *)
46488     ac_option=$1
46489     ac_optarg=$2
46490     ac_shift=shift
46491     ;;
46492   esac
46493
46494   case $ac_option in
46495   # Handling of the options.
46496   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46497     ac_cs_recheck=: ;;
46498   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46499     $as_echo "$ac_cs_version"; exit ;;
46500   --debug | --debu | --deb | --de | --d | -d )
46501     debug=: ;;
46502   --file | --fil | --fi | --f )
46503     $ac_shift
46504     case $ac_optarg in
46505     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46506     esac
46507     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46508     ac_need_defaults=false;;
46509   --header | --heade | --head | --hea )
46510     $ac_shift
46511     case $ac_optarg in
46512     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46513     esac
46514     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46515     ac_need_defaults=false;;
46516   --he | --h)
46517     # Conflict between --help and --header
46518     { $as_echo "$as_me: error: ambiguous option: $1
46519 Try \`$0 --help' for more information." >&2
46520    { (exit 1); exit 1; }; };;
46521   --help | --hel | -h )
46522     $as_echo "$ac_cs_usage"; exit ;;
46523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46524   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46525     ac_cs_silent=: ;;
46526
46527   # This is an error.
46528   -*) { $as_echo "$as_me: error: unrecognized option: $1
46529 Try \`$0 --help' for more information." >&2
46530    { (exit 1); exit 1; }; } ;;
46531
46532   *) ac_config_targets="$ac_config_targets $1"
46533      ac_need_defaults=false ;;
46534
46535   esac
46536   shift
46537 done
46538
46539 ac_configure_extra_args=
46540
46541 if $ac_cs_silent; then
46542   exec 6>/dev/null
46543   ac_configure_extra_args="$ac_configure_extra_args --silent"
46544 fi
46545
46546 _ACEOF
46547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46548 if \$ac_cs_recheck; then
46549   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46550   shift
46551   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46552   CONFIG_SHELL='$SHELL'
46553   export CONFIG_SHELL
46554   exec "\$@"
46555 fi
46556
46557 _ACEOF
46558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46559 exec 5>>config.log
46560 {
46561   echo
46562   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46563 ## Running $as_me. ##
46564 _ASBOX
46565   $as_echo "$ac_log"
46566 } >&5
46567
46568 _ACEOF
46569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46570 #
46571 # INIT-COMMANDS
46572 #
46573
46574
46575 # The HP-UX ksh and POSIX shell print the target directory to stdout
46576 # if CDPATH is set.
46577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46578
46579 sed_quote_subst='$sed_quote_subst'
46580 double_quote_subst='$double_quote_subst'
46581 delay_variable_subst='$delay_variable_subst'
46582 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46583 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46584 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46585 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46586 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46587 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46588 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46589 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46590 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46591 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46592 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46593 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46594 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46595 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46596 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46597 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46598 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46599 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46600 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46601 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46602 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46603 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46604 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46605 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46606 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46607 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46608 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46609 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46610 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46611 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46612 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46613 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46614 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46615 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46616 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46617 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46618 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46619 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46620 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46621 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46622 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46623 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46624 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46625 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46626 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"`'
46627 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"`'
46628 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46629 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46630 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46631 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46632 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46633 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46634 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46635 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46636 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46637 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46638 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46639 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46640 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46641 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46642 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46643 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46644 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46645 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46646 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46647 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46648 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46649 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46650 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46651 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46652 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46653 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46654 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46655 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46656 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46657 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46658 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46659 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46660 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46661 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46662 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46663 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46664 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46665 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46666 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46667 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46668 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46669 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46670 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46671 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46672 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46673 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46674 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46675 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46676 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46677 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46678 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46679 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46680 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46681 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46682 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46683 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46684 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46685 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46686 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46687 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46688 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46689 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46690 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46691 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46692 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46693 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46694 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46695 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46696 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46697 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46698 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46699 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46700 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46701 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46702 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46703 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46704 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46705 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46706 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46707 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46708 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46709 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46710 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46711 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46712 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46713 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46714 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46715 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46716 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46717 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46718 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46719 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46720 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46721 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46722 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46723 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46724 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46725 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46726 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46727 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46728 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46729 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46730 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46731 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46732 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46733 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46734 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46735 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46736 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46737 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46738 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46739 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46740 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46741 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46742 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46743 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46744 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46745 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46746 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46747 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46748 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46749 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46750 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46751 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46752 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46753
46754 LTCC='$LTCC'
46755 LTCFLAGS='$LTCFLAGS'
46756 compiler='$compiler_DEFAULT'
46757
46758 # Quote evaled strings.
46759 for var in SED \
46760 GREP \
46761 EGREP \
46762 FGREP \
46763 LD \
46764 NM \
46765 LN_S \
46766 lt_SP2NL \
46767 lt_NL2SP \
46768 reload_flag \
46769 OBJDUMP \
46770 deplibs_check_method \
46771 file_magic_cmd \
46772 AR \
46773 AR_FLAGS \
46774 STRIP \
46775 RANLIB \
46776 CC \
46777 CFLAGS \
46778 compiler \
46779 lt_cv_sys_global_symbol_pipe \
46780 lt_cv_sys_global_symbol_to_cdecl \
46781 lt_cv_sys_global_symbol_to_c_name_address \
46782 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46783 SHELL \
46784 ECHO \
46785 lt_prog_compiler_no_builtin_flag \
46786 lt_prog_compiler_wl \
46787 lt_prog_compiler_pic \
46788 lt_prog_compiler_static \
46789 lt_cv_prog_compiler_c_o \
46790 need_locks \
46791 DSYMUTIL \
46792 NMEDIT \
46793 LIPO \
46794 OTOOL \
46795 OTOOL64 \
46796 shrext_cmds \
46797 export_dynamic_flag_spec \
46798 whole_archive_flag_spec \
46799 compiler_needs_object \
46800 with_gnu_ld \
46801 allow_undefined_flag \
46802 no_undefined_flag \
46803 hardcode_libdir_flag_spec \
46804 hardcode_libdir_flag_spec_ld \
46805 hardcode_libdir_separator \
46806 fix_srcfile_path \
46807 exclude_expsyms \
46808 include_expsyms \
46809 file_list_spec \
46810 variables_saved_for_relink \
46811 libname_spec \
46812 library_names_spec \
46813 soname_spec \
46814 finish_eval \
46815 old_striplib \
46816 striplib \
46817 compiler_lib_search_dirs \
46818 predep_objects \
46819 postdep_objects \
46820 predeps \
46821 postdeps \
46822 compiler_lib_search_path \
46823 LD_CXX \
46824 compiler_CXX \
46825 lt_prog_compiler_no_builtin_flag_CXX \
46826 lt_prog_compiler_wl_CXX \
46827 lt_prog_compiler_pic_CXX \
46828 lt_prog_compiler_static_CXX \
46829 lt_cv_prog_compiler_c_o_CXX \
46830 export_dynamic_flag_spec_CXX \
46831 whole_archive_flag_spec_CXX \
46832 compiler_needs_object_CXX \
46833 with_gnu_ld_CXX \
46834 allow_undefined_flag_CXX \
46835 no_undefined_flag_CXX \
46836 hardcode_libdir_flag_spec_CXX \
46837 hardcode_libdir_flag_spec_ld_CXX \
46838 hardcode_libdir_separator_CXX \
46839 fix_srcfile_path_CXX \
46840 exclude_expsyms_CXX \
46841 include_expsyms_CXX \
46842 file_list_spec_CXX \
46843 compiler_lib_search_dirs_CXX \
46844 predep_objects_CXX \
46845 postdep_objects_CXX \
46846 predeps_CXX \
46847 postdeps_CXX \
46848 compiler_lib_search_path_CXX; do
46849     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46850     *[\\\\\\\`\\"\\\$]*)
46851       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46852       ;;
46853     *)
46854       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46855       ;;
46856     esac
46857 done
46858
46859 # Double-quote double-evaled strings.
46860 for var in reload_cmds \
46861 old_postinstall_cmds \
46862 old_postuninstall_cmds \
46863 old_archive_cmds \
46864 extract_expsyms_cmds \
46865 old_archive_from_new_cmds \
46866 old_archive_from_expsyms_cmds \
46867 archive_cmds \
46868 archive_expsym_cmds \
46869 module_cmds \
46870 module_expsym_cmds \
46871 export_symbols_cmds \
46872 prelink_cmds \
46873 postinstall_cmds \
46874 postuninstall_cmds \
46875 finish_cmds \
46876 sys_lib_search_path_spec \
46877 sys_lib_dlsearch_path_spec \
46878 old_archive_cmds_CXX \
46879 old_archive_from_new_cmds_CXX \
46880 old_archive_from_expsyms_cmds_CXX \
46881 archive_cmds_CXX \
46882 archive_expsym_cmds_CXX \
46883 module_cmds_CXX \
46884 module_expsym_cmds_CXX \
46885 export_symbols_cmds_CXX \
46886 prelink_cmds_CXX; do
46887     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46888     *[\\\\\\\`\\"\\\$]*)
46889       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46890       ;;
46891     *)
46892       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46893       ;;
46894     esac
46895 done
46896
46897 # Fix-up fallback echo if it was mangled by the above quoting rules.
46898 case \$lt_ECHO in
46899 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46900   ;;
46901 esac
46902
46903 ac_aux_dir='$ac_aux_dir'
46904 xsi_shell='$xsi_shell'
46905 lt_shell_append='$lt_shell_append'
46906
46907 # See if we are running on zsh, and set the options which allow our
46908 # commands through without removal of \ escapes INIT.
46909 if test -n "\${ZSH_VERSION+set}" ; then
46910    setopt NO_GLOB_SUBST
46911 fi
46912
46913
46914     PACKAGE='$PACKAGE'
46915     VERSION='$VERSION'
46916     TIMESTAMP='$TIMESTAMP'
46917     RM='$RM'
46918     ofile='$ofile'
46919
46920
46921
46922
46923
46924 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46925     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
46926     # from automake.
46927     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46928     # Capture the value of LINGUAS because we need it to compute CATALOGS.
46929     LINGUAS="${LINGUAS-%UNSET%}"
46930
46931
46932 _ACEOF
46933
46934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46935
46936 # Handling of arguments.
46937 for ac_config_target in $ac_config_targets
46938 do
46939   case $ac_config_target in
46940     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
46941     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46942     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46943     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
46944     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46945     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
46946     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
46947     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
46948     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
46949     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
46950     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
46951     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
46952     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
46953     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
46954     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
46955     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
46956     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
46957     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
46958     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46959     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
46960     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
46961     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
46962     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
46963     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
46964     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
46965     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
46966     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
46967     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
46968     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
46969     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
46970     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
46971     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
46972     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
46973     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
46974     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
46975     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
46976     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
46977     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
46978     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
46979     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
46980     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
46981     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46982     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
46983     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
46984     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
46985     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
46986     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
46987     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
46988     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
46989     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
46990     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
46991     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
46992     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
46993     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
46994     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
46995     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
46996     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
46997     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
46998     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
46999     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
47000     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
47001     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
47002     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
47003     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
47004     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
47005     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
47006     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
47007     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
47008     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
47009     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
47010     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
47011     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
47012     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
47013     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
47014     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
47015     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
47016     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
47017     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
47018     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
47019     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
47020     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
47021     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
47022     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
47023     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
47024     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
47025     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
47026     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
47027     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
47028     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
47029     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
47030     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
47031     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
47032     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
47033     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
47034     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
47035     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
47036     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
47037     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
47038     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
47039     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
47040     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
47041     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
47042     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
47043     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
47044     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
47045     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
47046     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
47047     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
47048     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
47049     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
47050     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
47051     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47052
47053   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47054 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47055    { (exit 1); exit 1; }; };;
47056   esac
47057 done
47058
47059
47060 # If the user did not use the arguments to specify the items to instantiate,
47061 # then the envvar interface is used.  Set only those that are not.
47062 # We use the long form for the default assignment because of an extremely
47063 # bizarre bug on SunOS 4.1.3.
47064 if $ac_need_defaults; then
47065   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47066   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47067   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47068 fi
47069
47070 # Have a temporary directory for convenience.  Make it in the build tree
47071 # simply because there is no reason against having it here, and in addition,
47072 # creating and moving files from /tmp can sometimes cause problems.
47073 # Hook for its removal unless debugging.
47074 # Note that there is a small window in which the directory will not be cleaned:
47075 # after its creation but before its name has been assigned to `$tmp'.
47076 $debug ||
47077 {
47078   tmp=
47079   trap 'exit_status=$?
47080   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
47081 ' 0
47082   trap '{ (exit 1); exit 1; }' 1 2 13 15
47083 }
47084 # Create a (secure) tmp directory for tmp files.
47085
47086 {
47087   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47088   test -n "$tmp" && test -d "$tmp"
47089 }  ||
47090 {
47091   tmp=./conf$$-$RANDOM
47092   (umask 077 && mkdir "$tmp")
47093 } ||
47094 {
47095    $as_echo "$as_me: cannot create a temporary directory in ." >&2
47096    { (exit 1); exit 1; }
47097 }
47098
47099 # Set up the scripts for CONFIG_FILES section.
47100 # No need to generate them if there are no CONFIG_FILES.
47101 # This happens for instance with `./config.status config.h'.
47102 if test -n "$CONFIG_FILES"; then
47103
47104 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
47105   ac_cs_awk_getline=:
47106   ac_cs_awk_pipe_init=
47107   ac_cs_awk_read_file='
47108       while ((getline aline < (F[key])) > 0)
47109         print(aline)
47110       close(F[key])'
47111   ac_cs_awk_pipe_fini=
47112 else
47113   ac_cs_awk_getline=false
47114   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
47115   ac_cs_awk_read_file='
47116       print "|#_!!_#|"
47117       print "cat " F[key] " &&"
47118       '$ac_cs_awk_pipe_init
47119   # The final `:' finishes the AND list.
47120   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
47121 fi
47122 ac_cr='\r'
47123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47125   ac_cs_awk_cr='\\r'
47126 else
47127   ac_cs_awk_cr=$ac_cr
47128 fi
47129
47130 echo 'BEGIN {' >"$tmp/subs1.awk" &&
47131 _ACEOF
47132
47133 # Create commands to substitute file output variables.
47134 {
47135   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
47136   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
47137   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
47138   echo "_ACAWK" &&
47139   echo "_ACEOF"
47140 } >conf$$files.sh &&
47141 . ./conf$$files.sh ||
47142   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47144    { (exit 1); exit 1; }; }
47145 rm -f conf$$files.sh
47146
47147 {
47148   echo "cat >conf$$subs.awk <<_ACEOF" &&
47149   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47150   echo "_ACEOF"
47151 } >conf$$subs.sh ||
47152   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47153 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47154    { (exit 1); exit 1; }; }
47155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47156 ac_delim='%!_!# '
47157 for ac_last_try in false false false false false :; do
47158   . ./conf$$subs.sh ||
47159     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47160 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47161    { (exit 1); exit 1; }; }
47162
47163   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47164   if test $ac_delim_n = $ac_delim_num; then
47165     break
47166   elif $ac_last_try; then
47167     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47168 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47169    { (exit 1); exit 1; }; }
47170   else
47171     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47172   fi
47173 done
47174 rm -f conf$$subs.sh
47175
47176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47177 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47178 _ACEOF
47179 sed -n '
47180 h
47181 s/^/S["/; s/!.*/"]=/
47182 p
47183 g
47184 s/^[^!]*!//
47185 :repl
47186 t repl
47187 s/'"$ac_delim"'$//
47188 t delim
47189 :nl
47190 h
47191 s/\(.\{148\}\).*/\1/
47192 t more1
47193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47194 p
47195 n
47196 b repl
47197 :more1
47198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47199 p
47200 g
47201 s/.\{148\}//
47202 t nl
47203 :delim
47204 h
47205 s/\(.\{148\}\).*/\1/
47206 t more2
47207 s/["\\]/\\&/g; s/^/"/; s/$/"/
47208 p
47209 b
47210 :more2
47211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47212 p
47213 g
47214 s/.\{148\}//
47215 t delim
47216 ' <conf$$subs.awk | sed '
47217 /^[^""]/{
47218   N
47219   s/\n//
47220 }
47221 ' >>$CONFIG_STATUS || ac_write_fail=1
47222 rm -f conf$$subs.awk
47223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47224 _ACAWK
47225 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47226   for (key in S) S_is_set[key] = 1
47227   FS = "\a"
47228   \$ac_cs_awk_pipe_init
47229 }
47230 {
47231   line = $ 0
47232   nfields = split(line, field, "@")
47233   substed = 0
47234   len = length(field[1])
47235   for (i = 2; i < nfields; i++) {
47236     key = field[i]
47237     keylen = length(key)
47238     if (S_is_set[key]) {
47239       value = S[key]
47240       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47241       len += length(value) + length(field[++i])
47242       substed = 1
47243     } else
47244       len += 1 + keylen
47245   }
47246   if (nfields == 3 && !substed) {
47247     key = field[2]
47248     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
47249       \$ac_cs_awk_read_file
47250       next
47251     }
47252   }
47253   print line
47254 }
47255 \$ac_cs_awk_pipe_fini
47256 _ACAWK
47257 _ACEOF
47258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47260   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47261 else
47262   cat
47263 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47264   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47265 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
47266    { (exit 1); exit 1; }; }
47267 _ACEOF
47268
47269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
47270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47271 # trailing colons and then remove the whole line if VPATH becomes empty
47272 # (actually we leave an empty line to preserve line numbers).
47273 if test "x$srcdir" = x.; then
47274   ac_vpsub='/^[  ]*VPATH[        ]*=/{
47275 s/:*\$(srcdir):*/:/
47276 s/:*\${srcdir}:*/:/
47277 s/:*@srcdir@:*/:/
47278 s/^\([^=]*=[     ]*\):*/\1/
47279 s/:*$//
47280 s/^[^=]*=[       ]*$//
47281 }'
47282 fi
47283
47284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47285 fi # test -n "$CONFIG_FILES"
47286
47287 # Set up the scripts for CONFIG_HEADERS section.
47288 # No need to generate them if there are no CONFIG_HEADERS.
47289 # This happens for instance with `./config.status Makefile'.
47290 if test -n "$CONFIG_HEADERS"; then
47291 cat >"$tmp/defines.awk" <<\_ACAWK ||
47292 BEGIN {
47293 _ACEOF
47294
47295 # Transform confdefs.h into an awk script `defines.awk', embedded as
47296 # here-document in config.status, that substitutes the proper values into
47297 # config.h.in to produce config.h.
47298
47299 # Create a delimiter string that does not exist in confdefs.h, to ease
47300 # handling of long lines.
47301 ac_delim='%!_!# '
47302 for ac_last_try in false false :; do
47303   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47304   if test -z "$ac_t"; then
47305     break
47306   elif $ac_last_try; then
47307     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47308 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47309    { (exit 1); exit 1; }; }
47310   else
47311     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47312   fi
47313 done
47314
47315 # For the awk script, D is an array of macro values keyed by name,
47316 # likewise P contains macro parameters if any.  Preserve backslash
47317 # newline sequences.
47318
47319 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47320 sed -n '
47321 s/.\{148\}/&'"$ac_delim"'/g
47322 t rset
47323 :rset
47324 s/^[     ]*#[    ]*define[       ][      ]*/ /
47325 t def
47326 d
47327 :def
47328 s/\\$//
47329 t bsnl
47330 s/["\\]/\\&/g
47331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47332 D["\1"]=" \3"/p
47333 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
47334 d
47335 :bsnl
47336 s/["\\]/\\&/g
47337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47338 D["\1"]=" \3\\\\\\n"\\/p
47339 t cont
47340 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47341 t cont
47342 d
47343 :cont
47344 n
47345 s/.\{148\}/&'"$ac_delim"'/g
47346 t clear
47347 :clear
47348 s/\\$//
47349 t bsnlc
47350 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47351 d
47352 :bsnlc
47353 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47354 b cont
47355 ' <confdefs.h | sed '
47356 s/'"$ac_delim"'/"\\\
47357 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47358
47359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47360   for (key in D) D_is_set[key] = 1
47361   FS = "\a"
47362 }
47363 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47364   line = \$ 0
47365   split(line, arg, " ")
47366   if (arg[1] == "#") {
47367     defundef = arg[2]
47368     mac1 = arg[3]
47369   } else {
47370     defundef = substr(arg[1], 2)
47371     mac1 = arg[2]
47372   }
47373   split(mac1, mac2, "(") #)
47374   macro = mac2[1]
47375   prefix = substr(line, 1, index(line, defundef) - 1)
47376   if (D_is_set[macro]) {
47377     # Preserve the white space surrounding the "#".
47378     print prefix "define", macro P[macro] D[macro]
47379     next
47380   } else {
47381     # Replace #undef with comments.  This is necessary, for example,
47382     # in the case of _POSIX_SOURCE, which is predefined and required
47383     # on some systems where configure will not decide to define it.
47384     if (defundef == "undef") {
47385       print "/*", prefix defundef, macro, "*/"
47386       next
47387     }
47388   }
47389 }
47390 { print }
47391 _ACAWK
47392 _ACEOF
47393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47394   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47395 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47396    { (exit 1); exit 1; }; }
47397 fi # test -n "$CONFIG_HEADERS"
47398
47399
47400 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47401 shift
47402 for ac_tag
47403 do
47404   case $ac_tag in
47405   :[FHLC]) ac_mode=$ac_tag; continue;;
47406   esac
47407   case $ac_mode$ac_tag in
47408   :[FHL]*:*);;
47409   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47410 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47411    { (exit 1); exit 1; }; };;
47412   :[FH]-) ac_tag=-:-;;
47413   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47414   esac
47415   ac_save_IFS=$IFS
47416   IFS=:
47417   set x $ac_tag
47418   IFS=$ac_save_IFS
47419   shift
47420   ac_file=$1
47421   shift
47422
47423   case $ac_mode in
47424   :L) ac_source=$1;;
47425   :[FH])
47426     ac_file_inputs=
47427     for ac_f
47428     do
47429       case $ac_f in
47430       -) ac_f="$tmp/stdin";;
47431       *) # Look for the file first in the build tree, then in the source tree
47432          # (if the path is not absolute).  The absolute path cannot be DOS-style,
47433          # because $ac_f cannot contain `:'.
47434          test -f "$ac_f" ||
47435            case $ac_f in
47436            [\\/$]*) false;;
47437            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47438            esac ||
47439            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47440 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47441    { (exit 1); exit 1; }; };;
47442       esac
47443       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47444       ac_file_inputs="$ac_file_inputs '$ac_f'"
47445     done
47446
47447     # Let's still pretend it is `configure' which instantiates (i.e., don't
47448     # use $as_me), people would be surprised to read:
47449     #    /* config.h.  Generated by config.status.  */
47450     configure_input='Generated from '`
47451           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47452         `' by configure.'
47453     if test x"$ac_file" != x-; then
47454       configure_input="$ac_file.  $configure_input"
47455       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47456 $as_echo "$as_me: creating $ac_file" >&6;}
47457     fi
47458     # Neutralize special characters interpreted by sed in replacement strings.
47459     case $configure_input in #(
47460     *\&* | *\|* | *\\* )
47461        ac_sed_conf_input=`$as_echo "$configure_input" |
47462        sed 's/[\\\\&|]/\\\\&/g'`;; #(
47463     *) ac_sed_conf_input=$configure_input;;
47464     esac
47465
47466     case $ac_tag in
47467     *:-:* | *:-) cat >"$tmp/stdin" \
47468       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47469 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47470    { (exit 1); exit 1; }; } ;;
47471     esac
47472     ;;
47473   esac
47474
47475   ac_dir=`$as_dirname -- "$ac_file" ||
47476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47477          X"$ac_file" : 'X\(//\)[^/]' \| \
47478          X"$ac_file" : 'X\(//\)$' \| \
47479          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47480 $as_echo X"$ac_file" |
47481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47482             s//\1/
47483             q
47484           }
47485           /^X\(\/\/\)[^/].*/{
47486             s//\1/
47487             q
47488           }
47489           /^X\(\/\/\)$/{
47490             s//\1/
47491             q
47492           }
47493           /^X\(\/\).*/{
47494             s//\1/
47495             q
47496           }
47497           s/.*/./; q'`
47498   { as_dir="$ac_dir"
47499   case $as_dir in #(
47500   -*) as_dir=./$as_dir;;
47501   esac
47502   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47503     as_dirs=
47504     while :; do
47505       case $as_dir in #(
47506       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47507       *) as_qdir=$as_dir;;
47508       esac
47509       as_dirs="'$as_qdir' $as_dirs"
47510       as_dir=`$as_dirname -- "$as_dir" ||
47511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47512          X"$as_dir" : 'X\(//\)[^/]' \| \
47513          X"$as_dir" : 'X\(//\)$' \| \
47514          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47515 $as_echo X"$as_dir" |
47516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47517             s//\1/
47518             q
47519           }
47520           /^X\(\/\/\)[^/].*/{
47521             s//\1/
47522             q
47523           }
47524           /^X\(\/\/\)$/{
47525             s//\1/
47526             q
47527           }
47528           /^X\(\/\).*/{
47529             s//\1/
47530             q
47531           }
47532           s/.*/./; q'`
47533       test -d "$as_dir" && break
47534     done
47535     test -z "$as_dirs" || eval "mkdir $as_dirs"
47536   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47537 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47538    { (exit 1); exit 1; }; }; }
47539   ac_builddir=.
47540
47541 case "$ac_dir" in
47542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47543 *)
47544   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47545   # A ".." for each directory in $ac_dir_suffix.
47546   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47547   case $ac_top_builddir_sub in
47548   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47549   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47550   esac ;;
47551 esac
47552 ac_abs_top_builddir=$ac_pwd
47553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47554 # for backward compatibility:
47555 ac_top_builddir=$ac_top_build_prefix
47556
47557 case $srcdir in
47558   .)  # We are building in place.
47559     ac_srcdir=.
47560     ac_top_srcdir=$ac_top_builddir_sub
47561     ac_abs_top_srcdir=$ac_pwd ;;
47562   [\\/]* | ?:[\\/]* )  # Absolute name.
47563     ac_srcdir=$srcdir$ac_dir_suffix;
47564     ac_top_srcdir=$srcdir
47565     ac_abs_top_srcdir=$srcdir ;;
47566   *) # Relative name.
47567     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47568     ac_top_srcdir=$ac_top_build_prefix$srcdir
47569     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47570 esac
47571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47572
47573
47574   case $ac_mode in
47575   :F)
47576   #
47577   # CONFIG_FILE
47578   #
47579
47580   case $INSTALL in
47581   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47582   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47583   esac
47584 _ACEOF
47585
47586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47587 # If the template does not know about datarootdir, expand it.
47588 # FIXME: This hack should be removed a few years after 2.60.
47589 ac_datarootdir_hack=; ac_datarootdir_seen=
47590
47591 ac_sed_dataroot='
47592 /datarootdir/ {
47593   p
47594   q
47595 }
47596 /@datadir@/p
47597 /@docdir@/p
47598 /@infodir@/p
47599 /@localedir@/p
47600 /@mandir@/p
47601 '
47602 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47603 *datarootdir*) ac_datarootdir_seen=yes;;
47604 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47605   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47606 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47607 _ACEOF
47608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47609   ac_datarootdir_hack='
47610   s&@datadir@&$datadir&g
47611   s&@docdir@&$docdir&g
47612   s&@infodir@&$infodir&g
47613   s&@localedir@&$localedir&g
47614   s&@mandir@&$mandir&g
47615     s&\\\${datarootdir}&$datarootdir&g' ;;
47616 esac
47617 _ACEOF
47618
47619 # Neutralize VPATH when `$srcdir' = `.'.
47620 # Shell code in configure.ac might set extrasub.
47621 # FIXME: do we really want to maintain this feature?
47622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47623 ac_sed_extra="$ac_vpsub
47624 $extrasub
47625 _ACEOF
47626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47627 :t
47628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47629 s|@configure_input@|$ac_sed_conf_input|;t t
47630 s&@top_builddir@&$ac_top_builddir_sub&;t t
47631 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47632 s&@srcdir@&$ac_srcdir&;t t
47633 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47634 s&@top_srcdir@&$ac_top_srcdir&;t t
47635 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47636 s&@builddir@&$ac_builddir&;t t
47637 s&@abs_builddir@&$ac_abs_builddir&;t t
47638 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47639 s&@INSTALL@&$ac_INSTALL&;t t
47640 $ac_datarootdir_hack
47641 "
47642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
47643 if $ac_cs_awk_getline; then
47644   $AWK -f "$tmp/subs.awk"
47645 else
47646   $AWK -f "$tmp/subs.awk" | $SHELL
47647 fi >$tmp/out \
47648   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47650    { (exit 1); exit 1; }; }
47651
47652 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47653   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47654   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47655   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47656 which seems to be undefined.  Please make sure it is defined." >&5
47657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47658 which seems to be undefined.  Please make sure it is defined." >&2;}
47659
47660   rm -f "$tmp/stdin"
47661   case $ac_file in
47662   -) cat "$tmp/out" && rm -f "$tmp/out";;
47663   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47664   esac \
47665   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47666 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47667    { (exit 1); exit 1; }; }
47668  ;;
47669   :H)
47670   #
47671   # CONFIG_HEADER
47672   #
47673   if test x"$ac_file" != x-; then
47674     {
47675       $as_echo "/* $configure_input  */" \
47676       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47677     } >"$tmp/config.h" \
47678       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47679 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47680    { (exit 1); exit 1; }; }
47681     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47682       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47684     else
47685       rm -f "$ac_file"
47686       mv "$tmp/config.h" "$ac_file" \
47687         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47688 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47689    { (exit 1); exit 1; }; }
47690     fi
47691   else
47692     $as_echo "/* $configure_input  */" \
47693       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47694       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47695 $as_echo "$as_me: error: could not create -" >&2;}
47696    { (exit 1); exit 1; }; }
47697   fi
47698  ;;
47699
47700   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47701 $as_echo "$as_me: executing $ac_file commands" >&6;}
47702  ;;
47703   esac
47704
47705
47706   case $ac_file$ac_mode in
47707     "libtool":C)
47708
47709     # See if we are running on zsh, and set the options which allow our
47710     # commands through without removal of \ escapes.
47711     if test -n "${ZSH_VERSION+set}" ; then
47712       setopt NO_GLOB_SUBST
47713     fi
47714
47715     cfgfile="${ofile}T"
47716     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47717     $RM "$cfgfile"
47718
47719     cat <<_LT_EOF >> "$cfgfile"
47720 #! $SHELL
47721
47722 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47723 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47725 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47726 #
47727 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47728 #                 2006, 2007, 2008 Free Software Foundation, Inc.
47729 #   Written by Gordon Matzigkeit, 1996
47730 #
47731 #   This file is part of GNU Libtool.
47732 #
47733 # GNU Libtool is free software; you can redistribute it and/or
47734 # modify it under the terms of the GNU General Public License as
47735 # published by the Free Software Foundation; either version 2 of
47736 # the License, or (at your option) any later version.
47737 #
47738 # As a special exception to the GNU General Public License,
47739 # if you distribute this file as part of a program or library that
47740 # is built using GNU Libtool, you may include this file under the
47741 # same distribution terms that you use for the rest of that program.
47742 #
47743 # GNU Libtool is distributed in the hope that it will be useful,
47744 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47745 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47746 # GNU General Public License for more details.
47747 #
47748 # You should have received a copy of the GNU General Public License
47749 # along with GNU Libtool; see the file COPYING.  If not, a copy
47750 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47751 # obtained by writing to the Free Software Foundation, Inc.,
47752 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47753
47754
47755 # The names of the tagged configurations supported by this script.
47756 available_tags="CXX "
47757
47758 # ### BEGIN LIBTOOL CONFIG
47759
47760 # Which release of libtool.m4 was used?
47761 macro_version=$macro_version
47762 macro_revision=$macro_revision
47763
47764 # Whether or not to build shared libraries.
47765 build_libtool_libs=$enable_shared
47766
47767 # Whether or not to build static libraries.
47768 build_old_libs=$enable_static
47769
47770 # What type of objects to build.
47771 pic_mode=$pic_mode
47772
47773 # Whether or not to optimize for fast installation.
47774 fast_install=$enable_fast_install
47775
47776 # The host system.
47777 host_alias=$host_alias
47778 host=$host
47779 host_os=$host_os
47780
47781 # The build system.
47782 build_alias=$build_alias
47783 build=$build
47784 build_os=$build_os
47785
47786 # A sed program that does not truncate output.
47787 SED=$lt_SED
47788
47789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47790 Xsed="\$SED -e 1s/^X//"
47791
47792 # A grep program that handles long lines.
47793 GREP=$lt_GREP
47794
47795 # An ERE matcher.
47796 EGREP=$lt_EGREP
47797
47798 # A literal string matcher.
47799 FGREP=$lt_FGREP
47800
47801 # A BSD- or MS-compatible name lister.
47802 NM=$lt_NM
47803
47804 # Whether we need soft or hard links.
47805 LN_S=$lt_LN_S
47806
47807 # What is the maximum length of a command?
47808 max_cmd_len=$max_cmd_len
47809
47810 # Object file suffix (normally "o").
47811 objext=$ac_objext
47812
47813 # Executable file suffix (normally "").
47814 exeext=$exeext
47815
47816 # whether the shell understands "unset".
47817 lt_unset=$lt_unset
47818
47819 # turn spaces into newlines.
47820 SP2NL=$lt_lt_SP2NL
47821
47822 # turn newlines into spaces.
47823 NL2SP=$lt_lt_NL2SP
47824
47825 # How to create reloadable object files.
47826 reload_flag=$lt_reload_flag
47827 reload_cmds=$lt_reload_cmds
47828
47829 # An object symbol dumper.
47830 OBJDUMP=$lt_OBJDUMP
47831
47832 # Method to check whether dependent libraries are shared objects.
47833 deplibs_check_method=$lt_deplibs_check_method
47834
47835 # Command to use when deplibs_check_method == "file_magic".
47836 file_magic_cmd=$lt_file_magic_cmd
47837
47838 # The archiver.
47839 AR=$lt_AR
47840 AR_FLAGS=$lt_AR_FLAGS
47841
47842 # A symbol stripping program.
47843 STRIP=$lt_STRIP
47844
47845 # Commands used to install an old-style archive.
47846 RANLIB=$lt_RANLIB
47847 old_postinstall_cmds=$lt_old_postinstall_cmds
47848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47849
47850 # A C compiler.
47851 LTCC=$lt_CC
47852
47853 # LTCC compiler flags.
47854 LTCFLAGS=$lt_CFLAGS
47855
47856 # Take the output of nm and produce a listing of raw symbols and C names.
47857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47858
47859 # Transform the output of nm in a proper C declaration.
47860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47861
47862 # Transform the output of nm in a C name address pair.
47863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47864
47865 # Transform the output of nm in a C name address pair when lib prefix is needed.
47866 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47867
47868 # The name of the directory that contains temporary libtool files.
47869 objdir=$objdir
47870
47871 # Shell to use when invoking shell scripts.
47872 SHELL=$lt_SHELL
47873
47874 # An echo program that does not interpret backslashes.
47875 ECHO=$lt_ECHO
47876
47877 # Used to examine libraries when file_magic_cmd begins with "file".
47878 MAGIC_CMD=$MAGIC_CMD
47879
47880 # Must we lock files when doing compilation?
47881 need_locks=$lt_need_locks
47882
47883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47884 DSYMUTIL=$lt_DSYMUTIL
47885
47886 # Tool to change global to local symbols on Mac OS X.
47887 NMEDIT=$lt_NMEDIT
47888
47889 # Tool to manipulate fat objects and archives on Mac OS X.
47890 LIPO=$lt_LIPO
47891
47892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47893 OTOOL=$lt_OTOOL
47894
47895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47896 OTOOL64=$lt_OTOOL64
47897
47898 # Old archive suffix (normally "a").
47899 libext=$libext
47900
47901 # Shared library suffix (normally ".so").
47902 shrext_cmds=$lt_shrext_cmds
47903
47904 # The commands to extract the exported symbol list from a shared archive.
47905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47906
47907 # Variables whose values should be saved in libtool wrapper scripts and
47908 # restored at link time.
47909 variables_saved_for_relink=$lt_variables_saved_for_relink
47910
47911 # Do we need the "lib" prefix for modules?
47912 need_lib_prefix=$need_lib_prefix
47913
47914 # Do we need a version for libraries?
47915 need_version=$need_version
47916
47917 # Library versioning type.
47918 version_type=$version_type
47919
47920 # Shared library runtime path variable.
47921 runpath_var=$runpath_var
47922
47923 # Shared library path variable.
47924 shlibpath_var=$shlibpath_var
47925
47926 # Is shlibpath searched before the hard-coded library search path?
47927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47928
47929 # Format of library name prefix.
47930 libname_spec=$lt_libname_spec
47931
47932 # List of archive names.  First name is the real one, the rest are links.
47933 # The last name is the one that the linker finds with -lNAME
47934 library_names_spec=$lt_library_names_spec
47935
47936 # The coded name of the library, if different from the real name.
47937 soname_spec=$lt_soname_spec
47938
47939 # Command to use after installation of a shared archive.
47940 postinstall_cmds=$lt_postinstall_cmds
47941
47942 # Command to use after uninstallation of a shared archive.
47943 postuninstall_cmds=$lt_postuninstall_cmds
47944
47945 # Commands used to finish a libtool library installation in a directory.
47946 finish_cmds=$lt_finish_cmds
47947
47948 # As "finish_cmds", except a single script fragment to be evaled but
47949 # not shown.
47950 finish_eval=$lt_finish_eval
47951
47952 # Whether we should hardcode library paths into libraries.
47953 hardcode_into_libs=$hardcode_into_libs
47954
47955 # Compile-time system search path for libraries.
47956 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47957
47958 # Run-time system search path for libraries.
47959 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47960
47961 # Whether dlopen is supported.
47962 dlopen_support=$enable_dlopen
47963
47964 # Whether dlopen of programs is supported.
47965 dlopen_self=$enable_dlopen_self
47966
47967 # Whether dlopen of statically linked programs is supported.
47968 dlopen_self_static=$enable_dlopen_self_static
47969
47970 # Commands to strip libraries.
47971 old_striplib=$lt_old_striplib
47972 striplib=$lt_striplib
47973
47974
47975 # The linker used to build libraries.
47976 LD=$lt_LD
47977
47978 # Commands used to build an old-style archive.
47979 old_archive_cmds=$lt_old_archive_cmds
47980
47981 # A language specific compiler.
47982 CC=$lt_compiler
47983
47984 # Is the compiler the GNU compiler?
47985 with_gcc=$GCC
47986
47987 # Compiler flag to turn off builtin functions.
47988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47989
47990 # How to pass a linker flag through the compiler.
47991 wl=$lt_lt_prog_compiler_wl
47992
47993 # Additional compiler flags for building library objects.
47994 pic_flag=$lt_lt_prog_compiler_pic
47995
47996 # Compiler flag to prevent dynamic linking.
47997 link_static_flag=$lt_lt_prog_compiler_static
47998
47999 # Does compiler simultaneously support -c and -o options?
48000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48001
48002 # Whether or not to add -lc for building shared libraries.
48003 build_libtool_need_lc=$archive_cmds_need_lc
48004
48005 # Whether or not to disallow shared libs when runtime libs are static.
48006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48007
48008 # Compiler flag to allow reflexive dlopens.
48009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48010
48011 # Compiler flag to generate shared objects directly from archives.
48012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
48013
48014 # Whether the compiler copes with passing no objects directly.
48015 compiler_needs_object=$lt_compiler_needs_object
48016
48017 # Create an old-style archive from a shared archive.
48018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48019
48020 # Create a temporary old-style archive to link instead of a shared archive.
48021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48022
48023 # Commands used to build a shared archive.
48024 archive_cmds=$lt_archive_cmds
48025 archive_expsym_cmds=$lt_archive_expsym_cmds
48026
48027 # Commands used to build a loadable module if different from building
48028 # a shared archive.
48029 module_cmds=$lt_module_cmds
48030 module_expsym_cmds=$lt_module_expsym_cmds
48031
48032 # Whether we are building with GNU ld or not.
48033 with_gnu_ld=$lt_with_gnu_ld
48034
48035 # Flag that allows shared libraries with undefined symbols to be built.
48036 allow_undefined_flag=$lt_allow_undefined_flag
48037
48038 # Flag that enforces no undefined symbols.
48039 no_undefined_flag=$lt_no_undefined_flag
48040
48041 # Flag to hardcode \$libdir into a binary during linking.
48042 # This must work even if \$libdir does not exist
48043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48044
48045 # If ld is used when linking, flag to hardcode \$libdir into a binary
48046 # during linking.  This must work even if \$libdir does not exist.
48047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48048
48049 # Whether we need a single "-rpath" flag with a separated argument.
48050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48051
48052 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48053 # DIR into the resulting binary.
48054 hardcode_direct=$hardcode_direct
48055
48056 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48057 # DIR into the resulting binary and the resulting library dependency is
48058 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48059 # library is relocated.
48060 hardcode_direct_absolute=$hardcode_direct_absolute
48061
48062 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48063 # into the resulting binary.
48064 hardcode_minus_L=$hardcode_minus_L
48065
48066 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48067 # into the resulting binary.
48068 hardcode_shlibpath_var=$hardcode_shlibpath_var
48069
48070 # Set to "yes" if building a shared library automatically hardcodes DIR
48071 # into the library and all subsequent libraries and executables linked
48072 # against it.
48073 hardcode_automatic=$hardcode_automatic
48074
48075 # Set to yes if linker adds runtime paths of dependent libraries
48076 # to runtime path list.
48077 inherit_rpath=$inherit_rpath
48078
48079 # Whether libtool must link a program against all its dependency libraries.
48080 link_all_deplibs=$link_all_deplibs
48081
48082 # Fix the shell variable \$srcfile for the compiler.
48083 fix_srcfile_path=$lt_fix_srcfile_path
48084
48085 # Set to "yes" if exported symbols are required.
48086 always_export_symbols=$always_export_symbols
48087
48088 # The commands to list exported symbols.
48089 export_symbols_cmds=$lt_export_symbols_cmds
48090
48091 # Symbols that should not be listed in the preloaded symbols.
48092 exclude_expsyms=$lt_exclude_expsyms
48093
48094 # Symbols that must always be exported.
48095 include_expsyms=$lt_include_expsyms
48096
48097 # Commands necessary for linking programs (against libraries) with templates.
48098 prelink_cmds=$lt_prelink_cmds
48099
48100 # Specify filename containing input files.
48101 file_list_spec=$lt_file_list_spec
48102
48103 # How to hardcode a shared library path into an executable.
48104 hardcode_action=$hardcode_action
48105
48106 # The directories searched by this compiler when creating a shared library.
48107 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
48108
48109 # Dependencies to place before and after the objects being linked to
48110 # create a shared library.
48111 predep_objects=$lt_predep_objects
48112 postdep_objects=$lt_postdep_objects
48113 predeps=$lt_predeps
48114 postdeps=$lt_postdeps
48115
48116 # The library search path used internally by the compiler when linking
48117 # a shared library.
48118 compiler_lib_search_path=$lt_compiler_lib_search_path
48119
48120 # ### END LIBTOOL CONFIG
48121
48122 _LT_EOF
48123
48124   case $host_os in
48125   aix3*)
48126     cat <<\_LT_EOF >> "$cfgfile"
48127 # AIX sometimes has problems with the GCC collect2 program.  For some
48128 # reason, if we set the COLLECT_NAMES environment variable, the problems
48129 # vanish in a puff of smoke.
48130 if test "X${COLLECT_NAMES+set}" != Xset; then
48131   COLLECT_NAMES=
48132   export COLLECT_NAMES
48133 fi
48134 _LT_EOF
48135     ;;
48136   esac
48137
48138
48139 ltmain="$ac_aux_dir/ltmain.sh"
48140
48141
48142   # We use sed instead of cat because bash on DJGPP gets confused if
48143   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48144   # text mode, it properly converts lines to CR/LF.  This bash problem
48145   # is reportedly fixed, but why not run on old versions too?
48146   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48147     || (rm -f "$cfgfile"; exit 1)
48148
48149   case $xsi_shell in
48150   yes)
48151     cat << \_LT_EOF >> "$cfgfile"
48152
48153 # func_dirname file append nondir_replacement
48154 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
48155 # otherwise set result to NONDIR_REPLACEMENT.
48156 func_dirname ()
48157 {
48158   case ${1} in
48159     */*) func_dirname_result="${1%/*}${2}" ;;
48160     *  ) func_dirname_result="${3}" ;;
48161   esac
48162 }
48163
48164 # func_basename file
48165 func_basename ()
48166 {
48167   func_basename_result="${1##*/}"
48168 }
48169
48170 # func_dirname_and_basename file append nondir_replacement
48171 # perform func_basename and func_dirname in a single function
48172 # call:
48173 #   dirname:  Compute the dirname of FILE.  If nonempty,
48174 #             add APPEND to the result, otherwise set result
48175 #             to NONDIR_REPLACEMENT.
48176 #             value returned in "$func_dirname_result"
48177 #   basename: Compute filename of FILE.
48178 #             value retuned in "$func_basename_result"
48179 # Implementation must be kept synchronized with func_dirname
48180 # and func_basename. For efficiency, we do not delegate to
48181 # those functions but instead duplicate the functionality here.
48182 func_dirname_and_basename ()
48183 {
48184   case ${1} in
48185     */*) func_dirname_result="${1%/*}${2}" ;;
48186     *  ) func_dirname_result="${3}" ;;
48187   esac
48188   func_basename_result="${1##*/}"
48189 }
48190
48191 # func_stripname prefix suffix name
48192 # strip PREFIX and SUFFIX off of NAME.
48193 # PREFIX and SUFFIX must not contain globbing or regex special
48194 # characters, hashes, percent signs, but SUFFIX may contain a leading
48195 # dot (in which case that matches only a dot).
48196 func_stripname ()
48197 {
48198   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48199   # positional parameters, so assign one to ordinary parameter first.
48200   func_stripname_result=${3}
48201   func_stripname_result=${func_stripname_result#"${1}"}
48202   func_stripname_result=${func_stripname_result%"${2}"}
48203 }
48204
48205 # func_opt_split
48206 func_opt_split ()
48207 {
48208   func_opt_split_opt=${1%%=*}
48209   func_opt_split_arg=${1#*=}
48210 }
48211
48212 # func_lo2o object
48213 func_lo2o ()
48214 {
48215   case ${1} in
48216     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48217     *)    func_lo2o_result=${1} ;;
48218   esac
48219 }
48220
48221 # func_xform libobj-or-source
48222 func_xform ()
48223 {
48224   func_xform_result=${1%.*}.lo
48225 }
48226
48227 # func_arith arithmetic-term...
48228 func_arith ()
48229 {
48230   func_arith_result=$(( $* ))
48231 }
48232
48233 # func_len string
48234 # STRING may not start with a hyphen.
48235 func_len ()
48236 {
48237   func_len_result=${#1}
48238 }
48239
48240 _LT_EOF
48241     ;;
48242   *) # Bourne compatible functions.
48243     cat << \_LT_EOF >> "$cfgfile"
48244
48245 # func_dirname file append nondir_replacement
48246 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
48247 # otherwise set result to NONDIR_REPLACEMENT.
48248 func_dirname ()
48249 {
48250   # Extract subdirectory from the argument.
48251   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48252   if test "X$func_dirname_result" = "X${1}"; then
48253     func_dirname_result="${3}"
48254   else
48255     func_dirname_result="$func_dirname_result${2}"
48256   fi
48257 }
48258
48259 # func_basename file
48260 func_basename ()
48261 {
48262   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48263 }
48264
48265
48266 # func_stripname prefix suffix name
48267 # strip PREFIX and SUFFIX off of NAME.
48268 # PREFIX and SUFFIX must not contain globbing or regex special
48269 # characters, hashes, percent signs, but SUFFIX may contain a leading
48270 # dot (in which case that matches only a dot).
48271 # func_strip_suffix prefix name
48272 func_stripname ()
48273 {
48274   case ${2} in
48275     .*) func_stripname_result=`$ECHO "X${3}" \
48276            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48277     *)  func_stripname_result=`$ECHO "X${3}" \
48278            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48279   esac
48280 }
48281
48282 # sed scripts:
48283 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48284 my_sed_long_arg='1s/^-[^=]*=//'
48285
48286 # func_opt_split
48287 func_opt_split ()
48288 {
48289   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48290   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48291 }
48292
48293 # func_lo2o object
48294 func_lo2o ()
48295 {
48296   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48297 }
48298
48299 # func_xform libobj-or-source
48300 func_xform ()
48301 {
48302   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48303 }
48304
48305 # func_arith arithmetic-term...
48306 func_arith ()
48307 {
48308   func_arith_result=`expr "$@"`
48309 }
48310
48311 # func_len string
48312 # STRING may not start with a hyphen.
48313 func_len ()
48314 {
48315   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48316 }
48317
48318 _LT_EOF
48319 esac
48320
48321 case $lt_shell_append in
48322   yes)
48323     cat << \_LT_EOF >> "$cfgfile"
48324
48325 # func_append var value
48326 # Append VALUE to the end of shell variable VAR.
48327 func_append ()
48328 {
48329   eval "$1+=\$2"
48330 }
48331 _LT_EOF
48332     ;;
48333   *)
48334     cat << \_LT_EOF >> "$cfgfile"
48335
48336 # func_append var value
48337 # Append VALUE to the end of shell variable VAR.
48338 func_append ()
48339 {
48340   eval "$1=\$$1\$2"
48341 }
48342
48343 _LT_EOF
48344     ;;
48345   esac
48346
48347
48348   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48349     || (rm -f "$cfgfile"; exit 1)
48350
48351   mv -f "$cfgfile" "$ofile" ||
48352     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48353   chmod +x "$ofile"
48354
48355
48356     cat <<_LT_EOF >> "$ofile"
48357
48358 # ### BEGIN LIBTOOL TAG CONFIG: CXX
48359
48360 # The linker used to build libraries.
48361 LD=$lt_LD_CXX
48362
48363 # Commands used to build an old-style archive.
48364 old_archive_cmds=$lt_old_archive_cmds_CXX
48365
48366 # A language specific compiler.
48367 CC=$lt_compiler_CXX
48368
48369 # Is the compiler the GNU compiler?
48370 with_gcc=$GCC_CXX
48371
48372 # Compiler flag to turn off builtin functions.
48373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48374
48375 # How to pass a linker flag through the compiler.
48376 wl=$lt_lt_prog_compiler_wl_CXX
48377
48378 # Additional compiler flags for building library objects.
48379 pic_flag=$lt_lt_prog_compiler_pic_CXX
48380
48381 # Compiler flag to prevent dynamic linking.
48382 link_static_flag=$lt_lt_prog_compiler_static_CXX
48383
48384 # Does compiler simultaneously support -c and -o options?
48385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48386
48387 # Whether or not to add -lc for building shared libraries.
48388 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48389
48390 # Whether or not to disallow shared libs when runtime libs are static.
48391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48392
48393 # Compiler flag to allow reflexive dlopens.
48394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48395
48396 # Compiler flag to generate shared objects directly from archives.
48397 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48398
48399 # Whether the compiler copes with passing no objects directly.
48400 compiler_needs_object=$lt_compiler_needs_object_CXX
48401
48402 # Create an old-style archive from a shared archive.
48403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48404
48405 # Create a temporary old-style archive to link instead of a shared archive.
48406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48407
48408 # Commands used to build a shared archive.
48409 archive_cmds=$lt_archive_cmds_CXX
48410 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48411
48412 # Commands used to build a loadable module if different from building
48413 # a shared archive.
48414 module_cmds=$lt_module_cmds_CXX
48415 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48416
48417 # Whether we are building with GNU ld or not.
48418 with_gnu_ld=$lt_with_gnu_ld_CXX
48419
48420 # Flag that allows shared libraries with undefined symbols to be built.
48421 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48422
48423 # Flag that enforces no undefined symbols.
48424 no_undefined_flag=$lt_no_undefined_flag_CXX
48425
48426 # Flag to hardcode \$libdir into a binary during linking.
48427 # This must work even if \$libdir does not exist
48428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48429
48430 # If ld is used when linking, flag to hardcode \$libdir into a binary
48431 # during linking.  This must work even if \$libdir does not exist.
48432 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48433
48434 # Whether we need a single "-rpath" flag with a separated argument.
48435 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48436
48437 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48438 # DIR into the resulting binary.
48439 hardcode_direct=$hardcode_direct_CXX
48440
48441 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48442 # DIR into the resulting binary and the resulting library dependency is
48443 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48444 # library is relocated.
48445 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48446
48447 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48448 # into the resulting binary.
48449 hardcode_minus_L=$hardcode_minus_L_CXX
48450
48451 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48452 # into the resulting binary.
48453 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48454
48455 # Set to "yes" if building a shared library automatically hardcodes DIR
48456 # into the library and all subsequent libraries and executables linked
48457 # against it.
48458 hardcode_automatic=$hardcode_automatic_CXX
48459
48460 # Set to yes if linker adds runtime paths of dependent libraries
48461 # to runtime path list.
48462 inherit_rpath=$inherit_rpath_CXX
48463
48464 # Whether libtool must link a program against all its dependency libraries.
48465 link_all_deplibs=$link_all_deplibs_CXX
48466
48467 # Fix the shell variable \$srcfile for the compiler.
48468 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48469
48470 # Set to "yes" if exported symbols are required.
48471 always_export_symbols=$always_export_symbols_CXX
48472
48473 # The commands to list exported symbols.
48474 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48475
48476 # Symbols that should not be listed in the preloaded symbols.
48477 exclude_expsyms=$lt_exclude_expsyms_CXX
48478
48479 # Symbols that must always be exported.
48480 include_expsyms=$lt_include_expsyms_CXX
48481
48482 # Commands necessary for linking programs (against libraries) with templates.
48483 prelink_cmds=$lt_prelink_cmds_CXX
48484
48485 # Specify filename containing input files.
48486 file_list_spec=$lt_file_list_spec_CXX
48487
48488 # How to hardcode a shared library path into an executable.
48489 hardcode_action=$hardcode_action_CXX
48490
48491 # The directories searched by this compiler when creating a shared library.
48492 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48493
48494 # Dependencies to place before and after the objects being linked to
48495 # create a shared library.
48496 predep_objects=$lt_predep_objects_CXX
48497 postdep_objects=$lt_postdep_objects_CXX
48498 predeps=$lt_predeps_CXX
48499 postdeps=$lt_postdeps_CXX
48500
48501 # The library search path used internally by the compiler when linking
48502 # a shared library.
48503 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48504
48505 # ### END LIBTOOL TAG CONFIG: CXX
48506 _LT_EOF
48507
48508  ;;
48509     "default-1":C)
48510     for ac_file in $CONFIG_FILES; do
48511       # Support "outfile[:infile[:infile...]]"
48512       case "$ac_file" in
48513         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
48514       esac
48515       # PO directories have a Makefile.in generated from Makefile.in.in.
48516       case "$ac_file" in */Makefile.in)
48517         # Adjust a relative srcdir.
48518         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
48519         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
48520         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
48521         # In autoconf-2.13 it is called $ac_given_srcdir.
48522         # In autoconf-2.50 it is called $srcdir.
48523         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
48524         case "$ac_given_srcdir" in
48525           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
48526           /*) top_srcdir="$ac_given_srcdir" ;;
48527           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
48528         esac
48529         # Treat a directory as a PO directory if and only if it has a
48530         # POTFILES.in file. This allows packages to have multiple PO
48531         # directories under different names or in different locations.
48532         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
48533           rm -f "$ac_dir/POTFILES"
48534           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
48535           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
48536           POMAKEFILEDEPS="POTFILES.in"
48537           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
48538           # on $ac_dir but don't depend on user-specified configuration
48539           # parameters.
48540           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
48541             # The LINGUAS file contains the set of available languages.
48542             if test -n "$OBSOLETE_ALL_LINGUAS"; then
48543               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
48544             fi
48545             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
48546             # Hide the ALL_LINGUAS assigment from automake.
48547             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
48548             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
48549           else
48550             # The set of available languages was given in configure.in.
48551             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
48552           fi
48553           # Compute POFILES
48554           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
48555           # Compute UPDATEPOFILES
48556           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
48557           # Compute DUMMYPOFILES
48558           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
48559           # Compute GMOFILES
48560           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
48561           case "$ac_given_srcdir" in
48562             .) srcdirpre= ;;
48563             *) srcdirpre='$(srcdir)/' ;;
48564           esac
48565           POFILES=
48566           UPDATEPOFILES=
48567           DUMMYPOFILES=
48568           GMOFILES=
48569           for lang in $ALL_LINGUAS; do
48570             POFILES="$POFILES $srcdirpre$lang.po"
48571             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
48572             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
48573             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
48574           done
48575           # CATALOGS depends on both $ac_dir and the user's LINGUAS
48576           # environment variable.
48577           INST_LINGUAS=
48578           if test -n "$ALL_LINGUAS"; then
48579             for presentlang in $ALL_LINGUAS; do
48580               useit=no
48581               if test "%UNSET%" != "$LINGUAS"; then
48582                 desiredlanguages="$LINGUAS"
48583               else
48584                 desiredlanguages="$ALL_LINGUAS"
48585               fi
48586               for desiredlang in $desiredlanguages; do
48587                 # Use the presentlang catalog if desiredlang is
48588                 #   a. equal to presentlang, or
48589                 #   b. a variant of presentlang (because in this case,
48590                 #      presentlang can be used as a fallback for messages
48591                 #      which are not translated in the desiredlang catalog).
48592                 case "$desiredlang" in
48593                   "$presentlang"*) useit=yes;;
48594                 esac
48595               done
48596               if test $useit = yes; then
48597                 INST_LINGUAS="$INST_LINGUAS $presentlang"
48598               fi
48599             done
48600           fi
48601           CATALOGS=
48602           if test -n "$INST_LINGUAS"; then
48603             for lang in $INST_LINGUAS; do
48604               CATALOGS="$CATALOGS $lang.gmo"
48605             done
48606           fi
48607           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
48608           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"
48609           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
48610             if test -f "$f"; then
48611               case "$f" in
48612                 *.orig | *.bak | *~) ;;
48613                 *) cat "$f" >> "$ac_dir/Makefile" ;;
48614               esac
48615             fi
48616           done
48617         fi
48618         ;;
48619       esac
48620     done ;;
48621     "default":C)
48622  ;;
48623
48624   esac
48625 done # for ac_tag
48626
48627
48628 { (exit 0); exit 0; }
48629 _ACEOF
48630 chmod +x $CONFIG_STATUS
48631 ac_clean_files=$ac_clean_files_save
48632
48633 test $ac_write_fail = 0 ||
48634   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48635 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48636    { (exit 1); exit 1; }; }
48637
48638
48639 # configure is writing to config.log, and then calls config.status.
48640 # config.status does its own redirection, appending to config.log.
48641 # Unfortunately, on DOS this fails, as config.log is still kept open
48642 # by configure, so config.status won't be able to write to it; its
48643 # output is simply discarded.  So we exec the FD to /dev/null,
48644 # effectively closing config.log, so it can be properly (re)opened and
48645 # appended to by config.status.  When coming back to configure, we
48646 # need to make the FD available again.
48647 if test "$no_create" != yes; then
48648   ac_cs_success=:
48649   ac_config_status_args=
48650   test "$silent" = yes &&
48651     ac_config_status_args="$ac_config_status_args --quiet"
48652   exec 5>/dev/null
48653   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48654   exec 5>>config.log
48655   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48656   # would make configure fail if this is the last instruction.
48657   $ac_cs_success || { (exit 1); exit 1; }
48658 fi
48659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48660   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48662 fi
48663
48664
48665 if test "${support_bat}" = "yes" ; then
48666    if test "x$QMAKE" = "xnone"; then
48667       { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
48668 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
48669    { (exit 1); exit 1; }; }
48670    fi
48671
48672    QMAKEBIN="qmake"
48673    cd src/qt-console
48674    echo "Creating bat Makefile"
48675    touch bat
48676    chmod 755 bat
48677    rm -f Makefile
48678    $QMAKEBIN
48679    ${MAKE:-make} clean
48680    cd ${BUILD_DIR}
48681 fi
48682
48683 if test X"$GCC" = "Xyes" ; then
48684   echo "Doing make of dependencies"
48685   ${MAKE:-make} depend
48686 fi
48687
48688 cd src/qt-console
48689 chmod 755 install_conf_file build-depkgs-qt-console
48690 cd ${BUILD_DIR}
48691
48692 cd scripts
48693 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
48694 chmod 755 dvd-handler dvd-simulator
48695 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
48696 cd ..
48697
48698 c=updatedb
48699 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
48700 chmod 755 $c/update_postgresql_tables_10_to_11
48701
48702 c=src/cats
48703
48704 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
48705 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
48706
48707 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
48708 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
48709
48710 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
48711 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
48712
48713 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
48714 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
48715
48716 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
48717 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
48718
48719 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
48720 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
48721
48722
48723 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
48724 chmod 755 $c/sqlite
48725 chmod 755 $c/mysql
48726
48727 chmod 755 src/win32/build-depkgs-mingw32
48728
48729 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
48730    largefile_support="yes"
48731 fi
48732
48733 if test X"$GCC" = "Xyes" ; then
48734                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48735    if test "x${CCVERSION}" = "x" ; then
48736       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48737    fi
48738    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48739    if test x"${CXXVERSION}" = x ; then
48740       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48741    fi
48742 fi
48743
48744 # clean up any old junk
48745 echo " "
48746 echo "Cleaning up"
48747 echo " "
48748 ${MAKE:-make} clean
48749
48750 if test "x${db_type}" = "xInternal" ; then
48751    echo " "
48752    echo " "
48753    echo "You have not specified either --enable-client-only or one of the"
48754    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
48755    echo "  This is not permitted. Please reconfigure."
48756    echo " "
48757    echo "Aborting the configuration ..."
48758    echo " "
48759    echo " "
48760    exit 1
48761 fi
48762
48763 echo "
48764 Configuration on `date`:
48765
48766    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
48767    Bacula version:          ${BACULA} ${VERSION} (${DATE})
48768    Source code location:    ${srcdir}
48769    Install binaries:        ${sbindir}
48770    Install libraries:       ${libdir}
48771    Install config files:    ${sysconfdir}
48772    Scripts directory:       ${scriptdir}
48773    Archive directory:       ${archivedir}
48774    Working directory:       ${working_dir}
48775    PID directory:           ${piddir}
48776    Subsys directory:        ${subsysdir}
48777    Man directory:           ${mandir}
48778    Data directory:          ${datarootdir}
48779    Plugin directory:        ${plugindir}
48780    C Compiler:              ${CC} ${CCVERSION}
48781    C++ Compiler:            ${CXX} ${CXXVERSION}
48782    Compiler flags:          ${WCFLAGS} ${CFLAGS}
48783    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
48784    Libraries:               ${LIBS}
48785    Statically Linked Tools: ${support_static_tools}
48786    Statically Linked FD:    ${support_static_fd}
48787    Statically Linked SD:    ${support_static_sd}
48788    Statically Linked DIR:   ${support_static_dir}
48789    Statically Linked CONS:  ${support_static_cons}
48790    Database type:           ${db_type}
48791    Database port:           ${db_port}
48792    Database lib:            ${DB_LIBS}
48793    Database name:           ${db_name}
48794    Database user:           ${db_user}
48795
48796    Job Output Email:        ${job_email}
48797    Traceback Email:         ${dump_email}
48798    SMTP Host Address:       ${smtp_host}
48799
48800    Director Port:           ${dir_port}
48801    File daemon Port:        ${fd_port}
48802    Storage daemon Port:     ${sd_port}
48803
48804    Director User:           ${dir_user}
48805    Director Group:          ${dir_group}
48806    Storage Daemon User:     ${sd_user}
48807    Storage DaemonGroup:     ${sd_group}
48808    File Daemon User:        ${fd_user}
48809    File Daemon Group:       ${fd_group}
48810
48811    SQL binaries Directory   ${SQL_BINDIR}
48812
48813    Large file support:      $largefile_support
48814    Bacula conio support:    ${got_conio} ${CONS_LIBS}
48815    readline support:        ${got_readline} ${PRTREADLINE_SRC}
48816    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
48817    TLS support:             ${support_tls}
48818    Encryption support:      ${support_crypto}
48819    ZLIB support:            ${have_zlib}
48820    enable-smartalloc:       ${support_smartalloc}
48821    enable-lockmgr:          ${support_lockmgr}
48822    bat support:             ${support_bat}
48823    enable-gnome:            ${support_gnome} ${gnome_version}
48824    enable-bwx-console:      ${support_wx_console} ${wx_version}
48825    enable-tray-monitor:     ${support_tray_monitor}
48826    client-only:             ${build_client_only}
48827    build-dird:              ${build_dird}
48828    build-stored:            ${build_stored}
48829    Plugin support:          ${have_plugins}
48830    AFS support:             ${have_afs}
48831    ACL support:             ${have_acl}
48832    XATTR support:           ${have_xattr}
48833    Python support:          ${support_python} ${PYTHON_LIBS}
48834    Batch insert enabled:    ${support_batch_insert}
48835
48836   " > config.out
48837
48838 # create a small shell script useful for support with
48839 # configure options and config.out info
48840 cat > scripts/bacula_config << EOF
48841 #!/bin/sh
48842 cat << __EOC__
48843 $ $0 $ac_configure_args
48844 EOF
48845 cat config.out >> scripts/bacula_config
48846 echo __EOC__ >> scripts/bacula_config
48847 chmod 755 scripts/bacula_config
48848
48849 cat config.out
48850
48851 # Display a warning message if postgresql client lib is <= 8.1
48852 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
48853         -a x$support_batch_insert = xyes
48854 then
48855         echo "WARNING: Your PostgreSQL client library is too old to detect "
48856         echo " if it was compiled with --enable-thread-safety, consider to"
48857         echo " upgrade it in order to avoid problems with Batch insert mode"
48858         echo
48859 fi