]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
tweak bpipe-fd to display PluginCommand
[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 ZLIBS
805 LIBOBJS
806 X_EXTRA_LIBS
807 X_LIBS
808 X_PRE_LIBS
809 X_CFLAGS
810 XMKMF
811 GETCONF
812 DB_TYPE
813 cats
814 DB_PROG_LIB
815 DB_PROG
816 uncomment_dbi
817 DBI_DBD_DRIVERDIR
818 SQL_BINDIR
819 SQL_INCLUDE
820 SQL_LFLAGS
821 SBINPERM
822 fd_group
823 fd_user
824 sd_group
825 sd_user
826 dir_group
827 dir_user
828 db_port
829 db_password
830 db_user
831 db_name
832 mon_sd_password
833 mon_fd_password
834 mon_dir_password
835 sd_password
836 fd_password
837 dir_password
838 sd_port
839 fd_port
840 dir_port
841 baseport
842 subsysdir
843 piddir
844 smtp_host
845 job_email
846 dump_email
847 plugindir
848 logdir
849 bsrdir
850 scriptdir
851 hostname
852 basename
853 archivedir
854 working_dir
855 OPENSSL_INC
856 OPENSSL_LIBS
857 PYTHON_INCDIR
858 PYTHON_LIBS
859 READLINE_SRC
860 CONS_LDFLAGS
861 CONS_LIBS
862 CONS_SRC
863 CONS_OBJ
864 CONS_INC
865 STORED_DIR
866 DIR_TOOLS
867 DIRD_DIR
868 ALL_DIRS
869 STATIC_WX_CONS
870 STATIC_GNOME_CONS
871 STATIC_CONS
872 STATIC_DIR
873 STATIC_SD
874 STATIC_FD
875 TTOOL_LDFLAGS
876 TRAY_MONITOR_DIR
877 TRAY_MONITOR_LDFLAGS
878 TRAY_MONITOR_CPPFLAGS
879 WX_DIR
880 WXCONS_LDFLAGS
881 WXCONS_CPPFLAGS
882 QWT
883 QWT_LIB
884 QWT_LDFLAGS
885 QWT_INC
886 BAT_DIR
887 INTL_LIBTOOL_SUFFIX_PREFIX
888 INTLOBJS
889 GENCAT
890 INSTOBJEXT
891 DATADIRNAME
892 CATOBJEXT
893 USE_INCLUDED_LIBINTL
894 BUILD_INCLUDED_LIBINTL
895 INTLBISON
896 HAVE_WPRINTF
897 HAVE_SNPRINTF
898 HAVE_ASPRINTF
899 HAVE_POSIX_PRINTF
900 GLIBC21
901 ALLOCA
902 GLIBC2
903 POSUB
904 LTLIBINTL
905 LIBINTL
906 INTLLIBS
907 LTLIBICONV
908 LIBICONV
909 INTL_MACOSX_LIBS
910 MSGMERGE
911 XGETTEXT
912 GMSGFMT
913 MSGFMT
914 USE_NLS
915 MKINSTALLDIRS
916 SET_MAKE
917 HAVE_DARWIN_OS_FALSE
918 HAVE_DARWIN_OS_TRUE
919 HAVE_IRIX_OS_FALSE
920 HAVE_IRIX_OS_TRUE
921 HAVE_SGI_OS_FALSE
922 HAVE_SGI_OS_TRUE
923 HAVE_BSDI_OS_FALSE
924 HAVE_BSDI_OS_TRUE
925 HAVE_OPENBSD_OS_FALSE
926 HAVE_OPENBSD_OS_TRUE
927 HAVE_NETBSD_OS_FALSE
928 HAVE_NETBSD_OS_TRUE
929 HAVE_FREEBSD_OS_FALSE
930 HAVE_FREEBSD_OS_TRUE
931 HAVE_LINUX_OS_FALSE
932 HAVE_LINUX_OS_TRUE
933 HAVE_HPUX_OS_FALSE
934 HAVE_HPUX_OS_TRUE
935 HAVE_AIX_OS_FALSE
936 HAVE_AIX_OS_TRUE
937 HAVE_OSF1_OS_FALSE
938 HAVE_OSF1_OS_TRUE
939 HAVE_SUN_OS_FALSE
940 HAVE_SUN_OS_TRUE
941 INCLUDE_UNINSTALL_TARGET
942 INCLUDE_INSTALL_TARGET
943 FD_PLUGIN_DIR
944 QMAKE_LIBTOOL
945 LIBTOOL_CLEAN_TARGET
946 LIBTOOL_UNINSTALL_TARGET
947 LIBTOOL_INSTALL_TARGET
948 DEFAULT_SHARED_OBJECT_TYPE
949 DEFAULT_ARCHIVE_TYPE
950 DEFAULT_OBJECT_TYPE
951 CXXCPP
952 OTOOL64
953 OTOOL
954 LIPO
955 NMEDIT
956 DSYMUTIL
957 lt_ECHO
958 RANLIB
959 STRIP
960 OBJDUMP
961 LN_S
962 NM
963 ac_ct_DUMPBIN
964 DUMPBIN
965 LD
966 FGREP
967 host_os
968 host_vendor
969 host_cpu
970 host
971 build_os
972 build_vendor
973 build_cpu
974 build
975 LIBTOOL
976 LOCAL_DEFS
977 LOCAL_LDFLAGS
978 LOCAL_CFLAGS
979 LOCAL_LIBS
980 MAKE_SHELL
981 ARFLAGS
982 AWK
983 PIDOF
984 CDRECORD
985 WXFLAGS
986 WXCONFIG
987 GMAKE
988 QMAKE
989 PKGCONFIG
990 DVDRWFORMAT
991 DVDRWMEDIAINFO
992 GROWISOFS
993 PYTHON
994 MKISOFS
995 DD
996 MTX
997 OPENSSL
998 AR
999 TBL
1000 CMP
1001 ECHO
1002 SED
1003 CP
1004 REMOVE
1005 MV
1006 INSTALL_DATA
1007 INSTALL_SCRIPT
1008 INSTALL_PROGRAM
1009 EGREP
1010 GREP
1011 CPP
1012 ac_ct_CXX
1013 CXXFLAGS
1014 CXX
1015 OBJEXT
1016 EXEEXT
1017 ac_ct_CC
1018 CPPFLAGS
1019 LDFLAGS
1020 CFLAGS
1021 CC
1022 LIBBACFIND_LT_AGE
1023 LIBBACFIND_LT_REVISION
1024 LIBBACFIND_LT_CURRENT
1025 LIBBACSQL_LT_AGE
1026 LIBBACSQL_LT_REVISION
1027 LIBBACSQL_LT_CURRENT
1028 LIBBACPY_LT_AGE
1029 LIBBACPY_LT_REVISION
1030 LIBBACPY_LT_CURRENT
1031 LIBBACCFG_LT_AGE
1032 LIBBACCFG_LT_REVISION
1033 LIBBACCFG_LT_CURRENT
1034 LIBBAC_LT_AGE
1035 LIBBAC_LT_REVISION
1036 LIBBAC_LT_CURRENT
1037 post_host
1038 BACULA
1039 LSMDATE
1040 DATE
1041 VERSION
1042 FALSEPRG
1043 TRUEPRG
1044 WIN32TOPDIR
1045 WIN32MAINDIR
1046 WIN32BUILDDIR
1047 TOP_DIR
1048 BUILD_DIR
1049 target_alias
1050 host_alias
1051 build_alias
1052 LIBS
1053 ECHO_T
1054 ECHO_N
1055 ECHO_C
1056 DEFS
1057 mandir
1058 localedir
1059 libdir
1060 psdir
1061 pdfdir
1062 dvidir
1063 htmldir
1064 infodir
1065 docdir
1066 oldincludedir
1067 includedir
1068 localstatedir
1069 sharedstatedir
1070 sysconfdir
1071 datadir
1072 datarootdir
1073 libexecdir
1074 sbindir
1075 bindir
1076 program_transform_name
1077 prefix
1078 exec_prefix
1079 PACKAGE_BUGREPORT
1080 PACKAGE_STRING
1081 PACKAGE_VERSION
1082 PACKAGE_TARNAME
1083 PACKAGE_NAME
1084 PATH_SEPARATOR
1085 SHELL'
1086 ac_subst_files='MCOMMON'
1087 ac_user_opts='
1088 enable_option_checking
1089 enable_libtool
1090 enable_shared
1091 enable_static
1092 with_pic
1093 enable_fast_install
1094 with_gnu_ld
1095 enable_libtool_lock
1096 enable_includes
1097 enable_nls
1098 enable_rpath
1099 with_libiconv_prefix
1100 with_libintl_prefix
1101 with_included_gettext
1102 enable_gnome
1103 enable_bat
1104 enable_bwx_console
1105 enable_tray_monitor
1106 enable_smartalloc
1107 enable_lockmgr
1108 enable_static_tools
1109 enable_static_fd
1110 enable_static_sd
1111 enable_static_dir
1112 enable_static_cons
1113 enable_client_only
1114 enable_build_dird
1115 enable_build_stored
1116 enable_conio
1117 enable_ipv6
1118 enable_readline
1119 with_readline
1120 with_python
1121 with_tcp_wrappers
1122 with_openssl
1123 with_working_dir
1124 with_archivedir
1125 with_basename
1126 with_hostname
1127 with_scriptdir
1128 with_bsrdir
1129 with_logdir
1130 with_plugindir
1131 with_dump_email
1132 with_job_email
1133 with_smtp_host
1134 with_pid_dir
1135 with_subsys_dir
1136 with_baseport
1137 with_dir_password
1138 with_fd_password
1139 with_sd_password
1140 with_mon_dir_password
1141 with_mon_fd_password
1142 with_mon_sd_password
1143 with_db_name
1144 with_db_user
1145 with_db_password
1146 with_db_port
1147 with_dir_user
1148 with_dir_group
1149 with_sd_user
1150 with_sd_group
1151 with_fd_user
1152 with_fd_group
1153 with_sbin_perm
1154 with_postgresql
1155 with_mysql
1156 with_embedded_mysql
1157 with_ingres
1158 with_sqlite3
1159 with_dbi
1160 with_dbi_driver
1161 enable_batch_insert
1162 enable_largefile
1163 with_x
1164 enable_acl
1165 enable_xattr
1166 '
1167       ac_precious_vars='build_alias
1168 host_alias
1169 target_alias
1170 CC
1171 CFLAGS
1172 LDFLAGS
1173 LIBS
1174 CPPFLAGS
1175 CXX
1176 CXXFLAGS
1177 CCC
1178 CPP
1179 WXCONFIG
1180 WXFLAGS
1181 CXXCPP
1182 XMKMF'
1183
1184
1185 # Initialize some variables set by options.
1186 ac_init_help=
1187 ac_init_version=false
1188 ac_unrecognized_opts=
1189 ac_unrecognized_sep=
1190 # The variables have the same names as the options, with
1191 # dashes changed to underlines.
1192 cache_file=/dev/null
1193 exec_prefix=NONE
1194 no_create=
1195 no_recursion=
1196 prefix=NONE
1197 program_prefix=NONE
1198 program_suffix=NONE
1199 program_transform_name=s,x,x,
1200 silent=
1201 site=
1202 srcdir=
1203 verbose=
1204 x_includes=NONE
1205 x_libraries=NONE
1206
1207 # Installation directory options.
1208 # These are left unexpanded so users can "make install exec_prefix=/foo"
1209 # and all the variables that are supposed to be based on exec_prefix
1210 # by default will actually change.
1211 # Use braces instead of parens because sh, perl, etc. also accept them.
1212 # (The list follows the same order as the GNU Coding Standards.)
1213 bindir='${exec_prefix}/bin'
1214 sbindir='${exec_prefix}/sbin'
1215 libexecdir='${exec_prefix}/libexec'
1216 datarootdir='${prefix}/share'
1217 datadir='${datarootdir}'
1218 sysconfdir='${prefix}/etc'
1219 sharedstatedir='${prefix}/com'
1220 localstatedir='${prefix}/var'
1221 includedir='${prefix}/include'
1222 oldincludedir='/usr/include'
1223 docdir='${datarootdir}/doc/${PACKAGE}'
1224 infodir='${datarootdir}/info'
1225 htmldir='${docdir}'
1226 dvidir='${docdir}'
1227 pdfdir='${docdir}'
1228 psdir='${docdir}'
1229 libdir='${exec_prefix}/lib'
1230 localedir='${datarootdir}/locale'
1231 mandir='${datarootdir}/man'
1232
1233 ac_prev=
1234 ac_dashdash=
1235 for ac_option
1236 do
1237   # If the previous option needs an argument, assign it.
1238   if test -n "$ac_prev"; then
1239     eval $ac_prev=\$ac_option
1240     ac_prev=
1241     continue
1242   fi
1243
1244   case $ac_option in
1245   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246   *)    ac_optarg=yes ;;
1247   esac
1248
1249   # Accept the important Cygnus configure options, so we can diagnose typos.
1250
1251   case $ac_dashdash$ac_option in
1252   --)
1253     ac_dashdash=yes ;;
1254
1255   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256     ac_prev=bindir ;;
1257   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258     bindir=$ac_optarg ;;
1259
1260   -build | --build | --buil | --bui | --bu)
1261     ac_prev=build_alias ;;
1262   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263     build_alias=$ac_optarg ;;
1264
1265   -cache-file | --cache-file | --cache-fil | --cache-fi \
1266   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267     ac_prev=cache_file ;;
1268   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270     cache_file=$ac_optarg ;;
1271
1272   --config-cache | -C)
1273     cache_file=config.cache ;;
1274
1275   -datadir | --datadir | --datadi | --datad)
1276     ac_prev=datadir ;;
1277   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278     datadir=$ac_optarg ;;
1279
1280   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281   | --dataroo | --dataro | --datar)
1282     ac_prev=datarootdir ;;
1283   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285     datarootdir=$ac_optarg ;;
1286
1287   -disable-* | --disable-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "enable_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval enable_$ac_useropt=no ;;
1303
1304   -docdir | --docdir | --docdi | --doc | --do)
1305     ac_prev=docdir ;;
1306   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1307     docdir=$ac_optarg ;;
1308
1309   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1310     ac_prev=dvidir ;;
1311   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1312     dvidir=$ac_optarg ;;
1313
1314   -enable-* | --enable-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1319    { (exit 1); exit 1; }; }
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "enable_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval enable_$ac_useropt=\$ac_optarg ;;
1330
1331   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1332   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1333   | --exec | --exe | --ex)
1334     ac_prev=exec_prefix ;;
1335   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1336   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1337   | --exec=* | --exe=* | --ex=*)
1338     exec_prefix=$ac_optarg ;;
1339
1340   -gas | --gas | --ga | --g)
1341     # Obsolete; use --with-gas.
1342     with_gas=yes ;;
1343
1344   -help | --help | --hel | --he | -h)
1345     ac_init_help=long ;;
1346   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1347     ac_init_help=recursive ;;
1348   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1349     ac_init_help=short ;;
1350
1351   -host | --host | --hos | --ho)
1352     ac_prev=host_alias ;;
1353   -host=* | --host=* | --hos=* | --ho=*)
1354     host_alias=$ac_optarg ;;
1355
1356   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1357     ac_prev=htmldir ;;
1358   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1359   | --ht=*)
1360     htmldir=$ac_optarg ;;
1361
1362   -includedir | --includedir | --includedi | --included | --include \
1363   | --includ | --inclu | --incl | --inc)
1364     ac_prev=includedir ;;
1365   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1366   | --includ=* | --inclu=* | --incl=* | --inc=*)
1367     includedir=$ac_optarg ;;
1368
1369   -infodir | --infodir | --infodi | --infod | --info | --inf)
1370     ac_prev=infodir ;;
1371   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1372     infodir=$ac_optarg ;;
1373
1374   -libdir | --libdir | --libdi | --libd)
1375     ac_prev=libdir ;;
1376   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1377     libdir=$ac_optarg ;;
1378
1379   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1380   | --libexe | --libex | --libe)
1381     ac_prev=libexecdir ;;
1382   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1383   | --libexe=* | --libex=* | --libe=*)
1384     libexecdir=$ac_optarg ;;
1385
1386   -localedir | --localedir | --localedi | --localed | --locale)
1387     ac_prev=localedir ;;
1388   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1389     localedir=$ac_optarg ;;
1390
1391   -localstatedir | --localstatedir | --localstatedi | --localstated \
1392   | --localstate | --localstat | --localsta | --localst | --locals)
1393     ac_prev=localstatedir ;;
1394   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1395   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1396     localstatedir=$ac_optarg ;;
1397
1398   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1399     ac_prev=mandir ;;
1400   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1401     mandir=$ac_optarg ;;
1402
1403   -nfp | --nfp | --nf)
1404     # Obsolete; use --without-fp.
1405     with_fp=no ;;
1406
1407   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1408   | --no-cr | --no-c | -n)
1409     no_create=yes ;;
1410
1411   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1412   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1413     no_recursion=yes ;;
1414
1415   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1416   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1417   | --oldin | --oldi | --old | --ol | --o)
1418     ac_prev=oldincludedir ;;
1419   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1420   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1421   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1422     oldincludedir=$ac_optarg ;;
1423
1424   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1425     ac_prev=prefix ;;
1426   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1427     prefix=$ac_optarg ;;
1428
1429   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1430   | --program-pre | --program-pr | --program-p)
1431     ac_prev=program_prefix ;;
1432   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1433   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1434     program_prefix=$ac_optarg ;;
1435
1436   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1437   | --program-suf | --program-su | --program-s)
1438     ac_prev=program_suffix ;;
1439   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1440   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1441     program_suffix=$ac_optarg ;;
1442
1443   -program-transform-name | --program-transform-name \
1444   | --program-transform-nam | --program-transform-na \
1445   | --program-transform-n | --program-transform- \
1446   | --program-transform | --program-transfor \
1447   | --program-transfo | --program-transf \
1448   | --program-trans | --program-tran \
1449   | --progr-tra | --program-tr | --program-t)
1450     ac_prev=program_transform_name ;;
1451   -program-transform-name=* | --program-transform-name=* \
1452   | --program-transform-nam=* | --program-transform-na=* \
1453   | --program-transform-n=* | --program-transform-=* \
1454   | --program-transform=* | --program-transfor=* \
1455   | --program-transfo=* | --program-transf=* \
1456   | --program-trans=* | --program-tran=* \
1457   | --progr-tra=* | --program-tr=* | --program-t=*)
1458     program_transform_name=$ac_optarg ;;
1459
1460   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1461     ac_prev=pdfdir ;;
1462   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1463     pdfdir=$ac_optarg ;;
1464
1465   -psdir | --psdir | --psdi | --psd | --ps)
1466     ac_prev=psdir ;;
1467   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1468     psdir=$ac_optarg ;;
1469
1470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471   | -silent | --silent | --silen | --sile | --sil)
1472     silent=yes ;;
1473
1474   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1475     ac_prev=sbindir ;;
1476   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1477   | --sbi=* | --sb=*)
1478     sbindir=$ac_optarg ;;
1479
1480   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1481   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1482   | --sharedst | --shareds | --shared | --share | --shar \
1483   | --sha | --sh)
1484     ac_prev=sharedstatedir ;;
1485   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1486   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1487   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1488   | --sha=* | --sh=*)
1489     sharedstatedir=$ac_optarg ;;
1490
1491   -site | --site | --sit)
1492     ac_prev=site ;;
1493   -site=* | --site=* | --sit=*)
1494     site=$ac_optarg ;;
1495
1496   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1497     ac_prev=srcdir ;;
1498   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1499     srcdir=$ac_optarg ;;
1500
1501   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1502   | --syscon | --sysco | --sysc | --sys | --sy)
1503     ac_prev=sysconfdir ;;
1504   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1505   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1506     sysconfdir=$ac_optarg ;;
1507
1508   -target | --target | --targe | --targ | --tar | --ta | --t)
1509     ac_prev=target_alias ;;
1510   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1511     target_alias=$ac_optarg ;;
1512
1513   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1514     verbose=yes ;;
1515
1516   -version | --version | --versio | --versi | --vers | -V)
1517     ac_init_version=: ;;
1518
1519   -with-* | --with-*)
1520     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1521     # Reject names that are not valid shell variable names.
1522     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1524    { (exit 1); exit 1; }; }
1525     ac_useropt_orig=$ac_useropt
1526     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527     case $ac_user_opts in
1528       *"
1529 "with_$ac_useropt"
1530 "*) ;;
1531       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1532          ac_unrecognized_sep=', ';;
1533     esac
1534     eval with_$ac_useropt=\$ac_optarg ;;
1535
1536   -without-* | --without-*)
1537     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1538     # Reject names that are not valid shell variable names.
1539     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1540       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1541    { (exit 1); exit 1; }; }
1542     ac_useropt_orig=$ac_useropt
1543     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1544     case $ac_user_opts in
1545       *"
1546 "with_$ac_useropt"
1547 "*) ;;
1548       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549          ac_unrecognized_sep=', ';;
1550     esac
1551     eval with_$ac_useropt=no ;;
1552
1553   --x)
1554     # Obsolete; use --with-x.
1555     with_x=yes ;;
1556
1557   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1558   | --x-incl | --x-inc | --x-in | --x-i)
1559     ac_prev=x_includes ;;
1560   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1561   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1562     x_includes=$ac_optarg ;;
1563
1564   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1565   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1566     ac_prev=x_libraries ;;
1567   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1568   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1569     x_libraries=$ac_optarg ;;
1570
1571   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1572 Try \`$0 --help' for more information." >&2
1573    { (exit 1); exit 1; }; }
1574     ;;
1575
1576   *=*)
1577     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1578     # Reject names that are not valid shell variable names.
1579     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1580       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1581    { (exit 1); exit 1; }; }
1582     eval $ac_envvar=\$ac_optarg
1583     export $ac_envvar ;;
1584
1585   *)
1586     # FIXME: should be removed in autoconf 3.0.
1587     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1588     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1589       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1590     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1591     ;;
1592
1593   esac
1594 done
1595
1596 if test -n "$ac_prev"; then
1597   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1598   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1599    { (exit 1); exit 1; }; }
1600 fi
1601
1602 if test -n "$ac_unrecognized_opts"; then
1603   case $enable_option_checking in
1604     no) ;;
1605     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1606    { (exit 1); exit 1; }; } ;;
1607     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608   esac
1609 fi
1610
1611 # Check all directory arguments for consistency.
1612 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613                 datadir sysconfdir sharedstatedir localstatedir includedir \
1614                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615                 libdir localedir mandir
1616 do
1617   eval ac_val=\$$ac_var
1618   # Remove trailing slashes.
1619   case $ac_val in
1620     */ )
1621       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622       eval $ac_var=\$ac_val;;
1623   esac
1624   # Be sure to have absolute directory names.
1625   case $ac_val in
1626     [\\/$]* | ?:[\\/]* )  continue;;
1627     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628   esac
1629   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1630    { (exit 1); exit 1; }; }
1631 done
1632
1633 # There might be people who depend on the old broken behavior: `$host'
1634 # used to hold the argument of --host etc.
1635 # FIXME: To remove some day.
1636 build=$build_alias
1637 host=$host_alias
1638 target=$target_alias
1639
1640 # FIXME: To remove some day.
1641 if test "x$host_alias" != x; then
1642   if test "x$build_alias" = x; then
1643     cross_compiling=maybe
1644     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1645     If a cross compiler is detected then cross compile mode will be used." >&2
1646   elif test "x$build_alias" != "x$host_alias"; then
1647     cross_compiling=yes
1648   fi
1649 fi
1650
1651 ac_tool_prefix=
1652 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1653
1654 test "$silent" = yes && exec 6>/dev/null
1655
1656
1657 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1658 ac_ls_di=`ls -di .` &&
1659 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1660   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1661    { (exit 1); exit 1; }; }
1662 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1663   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1664    { (exit 1); exit 1; }; }
1665
1666
1667 # Find the source files, if location was not specified.
1668 if test -z "$srcdir"; then
1669   ac_srcdir_defaulted=yes
1670   # Try the directory containing this script, then the parent directory.
1671   ac_confdir=`$as_dirname -- "$as_myself" ||
1672 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1673          X"$as_myself" : 'X\(//\)[^/]' \| \
1674          X"$as_myself" : 'X\(//\)$' \| \
1675          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1676 $as_echo X"$as_myself" |
1677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1678             s//\1/
1679             q
1680           }
1681           /^X\(\/\/\)[^/].*/{
1682             s//\1/
1683             q
1684           }
1685           /^X\(\/\/\)$/{
1686             s//\1/
1687             q
1688           }
1689           /^X\(\/\).*/{
1690             s//\1/
1691             q
1692           }
1693           s/.*/./; q'`
1694   srcdir=$ac_confdir
1695   if test ! -r "$srcdir/$ac_unique_file"; then
1696     srcdir=..
1697   fi
1698 else
1699   ac_srcdir_defaulted=no
1700 fi
1701 if test ! -r "$srcdir/$ac_unique_file"; then
1702   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1703   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1704    { (exit 1); exit 1; }; }
1705 fi
1706 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1707 ac_abs_confdir=`(
1708         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1709    { (exit 1); exit 1; }; }
1710         pwd)`
1711 # When building in place, set srcdir=.
1712 if test "$ac_abs_confdir" = "$ac_pwd"; then
1713   srcdir=.
1714 fi
1715 # Remove unnecessary trailing slashes from srcdir.
1716 # Double slashes in file names in object file debugging info
1717 # mess up M-x gdb in Emacs.
1718 case $srcdir in
1719 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1720 esac
1721 for ac_var in $ac_precious_vars; do
1722   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1723   eval ac_env_${ac_var}_value=\$${ac_var}
1724   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1725   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1726 done
1727
1728 #
1729 # Report the --help message.
1730 #
1731 if test "$ac_init_help" = "long"; then
1732   # Omit some internal or obsolete options to make the list less imposing.
1733   # This message is too long to be a string in the A/UX 3.1 sh.
1734   cat <<_ACEOF
1735 \`configure' configures this package to adapt to many kinds of systems.
1736
1737 Usage: $0 [OPTION]... [VAR=VALUE]...
1738
1739 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1740 VAR=VALUE.  See below for descriptions of some of the useful variables.
1741
1742 Defaults for the options are specified in brackets.
1743
1744 Configuration:
1745   -h, --help              display this help and exit
1746       --help=short        display options specific to this package
1747       --help=recursive    display the short help of all the included packages
1748   -V, --version           display version information and exit
1749   -q, --quiet, --silent   do not print \`checking...' messages
1750       --cache-file=FILE   cache test results in FILE [disabled]
1751   -C, --config-cache      alias for \`--cache-file=config.cache'
1752   -n, --no-create         do not create output files
1753       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1754
1755 Installation directories:
1756   --prefix=PREFIX         install architecture-independent files in PREFIX
1757                           [$ac_default_prefix]
1758   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1759                           [PREFIX]
1760
1761 By default, \`make install' will install all the files in
1762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1764 for instance \`--prefix=\$HOME'.
1765
1766 For better control, use the options below.
1767
1768 Fine tuning of the installation directories:
1769   --bindir=DIR            user executables [EPREFIX/bin]
1770   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1771   --libexecdir=DIR        program executables [EPREFIX/libexec]
1772   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1773   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1774   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1775   --libdir=DIR            object code libraries [EPREFIX/lib]
1776   --includedir=DIR        C header files [PREFIX/include]
1777   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1778   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1779   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1780   --infodir=DIR           info documentation [DATAROOTDIR/info]
1781   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1782   --mandir=DIR            man documentation [DATAROOTDIR/man]
1783   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1784   --htmldir=DIR           html documentation [DOCDIR]
1785   --dvidir=DIR            dvi documentation [DOCDIR]
1786   --pdfdir=DIR            pdf documentation [DOCDIR]
1787   --psdir=DIR             ps documentation [DOCDIR]
1788 _ACEOF
1789
1790   cat <<\_ACEOF
1791
1792 X features:
1793   --x-includes=DIR    X include files are in DIR
1794   --x-libraries=DIR   X library files are in DIR
1795
1796 System types:
1797   --build=BUILD     configure for building on BUILD [guessed]
1798   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1799 _ACEOF
1800 fi
1801
1802 if test -n "$ac_init_help"; then
1803
1804   cat <<\_ACEOF
1805
1806 Optional Features:
1807   --disable-option-checking  ignore unrecognized --enable/--with options
1808   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1809   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1810   --enable-libtool        enable building using GNU libtool [default=yes]
1811   --enable-shared[=PKGS]  build shared libraries [default=yes]
1812   --enable-static[=PKGS]  build static libraries [default=no]
1813   --enable-fast-install[=PKGS]
1814                           optimize for fast installation [default=yes]
1815   --disable-libtool-lock  avoid locking (might break parallel builds)
1816   --enable-includes       enable installing of include files [default=no]
1817   --disable-nls           do not use Native Language Support
1818   --disable-rpath         do not hardcode runtime library paths
1819   --enable-gnome          enable build of bgnome-console GUI [default=no]
1820   --enable-bat            enable build of bat Qt4 GUI [default=no]
1821   --enable-bwx-console    enable build of wxWidgets console [default=no]
1822   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1823                           KDE [default=no]
1824   --enable-smartalloc     enable smartalloc debugging support [default=no]
1825   --enable-lockmgr        enable lock manager support [default=no]
1826   --enable-static-tools   enable static tape tools [default=no]
1827   --enable-static-fd      enable static File daemon [default=no]
1828   --enable-static-sd      enable static Storage daemon [default=no]
1829   --enable-static-dir     enable static Director [default=no]
1830   --enable-static-cons    enable static Console [default=no]
1831   --enable-client-only    build client (File daemon) only [default=no]
1832   --enable-build-dird     enable building of dird (Director) [default=yes]
1833   --enable-build-stored   enable building of stored (Storage daemon)
1834                           [default=yes]
1835   --disable-conio         disable conio support [default=no]
1836   --enable-ipv6           enable ipv6 support [default=yes]
1837   --disable-readline      disable readline support [default=yes]
1838   --enable-batch-insert   enable the DB batch insert code [default=no]
1839   --disable-largefile     omit support for large files
1840   --disable-acl           disable acl support [default=auto]
1841   --disable-xattr         disable xattr support [default=auto]
1842
1843 Optional Packages:
1844   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1845   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1846   --with-pic              try to use only PIC/non-PIC objects [default=use
1847                           both]
1848   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1849   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1850   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1851   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1852   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1853   --without-libintl-prefix     don't search for libintl in includedir and libdir
1854   --with-included-gettext use the GNU gettext library included here
1855   --with-readline[=DIR]   specify readline library directory
1856   --with-python[=DIR]     Include Python support. DIR is the Python base
1857                           install directory, default is to search through a
1858                           number of common places for the Python files.
1859   --with-tcp-wrappers[=DIR]
1860                           enable tcpwrappers support
1861   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1862   --with-working-dir=PATH specify path of Bacula working directory
1863   --with-archivedir=PATH  specify path of SD archive directory
1864   --with-basename=RESNAME specify base resource name for daemons
1865   --with-hostname=RESNAME specify host name for daemons
1866   --with-scriptdir=PATH   specify path of Bacula scripts directory
1867   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1868   --with-logdir=PATH      specify path of Bacula logs directory
1869   --with-plugindir=PATH   specify path of Bacula plugins directory
1870   --with-dump-email=EMAIL dump email address
1871   --with-job-email=EMAIL  job output email address
1872   --with-smtp-host=HOST   SMTP mail host address
1873   --with-pid-dir=PATH     specify location of Bacula pid files
1874   --with-subsys-dir=PATH  specify location of Bacula subsys file
1875   --with-baseport=PORT    specify base port address for daemons
1876   --with-dir-password=PASSWORD
1877                           specify Director's password
1878   --with-fd-password=PASSWORD
1879                           specify Client's password
1880   --with-sd-password=PASSWORD
1881                           specify Storage daemon's password
1882   --with-mon-dir-password=PASSWORD
1883                           specify Director's password used by the monitor
1884   --with-mon-fd-password=PASSWORD
1885                           specify Client's password used by the monitor
1886   --with-mon-sd-password=PASSWORD
1887                           specify Storage daemon's password used by the
1888                           monitor
1889   --with-db-name=DBNAME   specify database name [default=bacula]
1890   --with-db-user=UNAME    specify database user [default=bacula]
1891   --with-db-password=PWD  specify database password [default=*none*]
1892   --with-db-port=DBPORT   specify a database port [default=null]
1893   --with-dir-user=USER    specify user for Director daemon
1894   --with-dir-group=GROUP  specify group for Director daemon
1895   --with-sd-user=USER     specify user for Storage daemon
1896   --with-sd-group=GROUP   specify group for Storage daemon
1897   --with-fd-user=USER     specify user for File daemon
1898   --with-fd-group=GROUP   specify group for File daemon
1899   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1900   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1901                           base install directory, [default=/usr/local/pgsql]
1902   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1903                           directory, default is to search through a number of
1904                           common places for the MySQL files.
1905   --with-embedded-mysql[=DIR]
1906                           Include MySQL support. DIR is the MySQL base install
1907                           directory, default is to search through a number of
1908                           common places for the MySQL files.
1909   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1910                           install directory, default is to search through a
1911                           number of common places for the Ingres files.
1912   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1913                           install directory, default is to search through a
1914                           number of common places for the SQLite3 files.
1915   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1916                           directory, default is to search through a number of
1917                           common places for the DBI files.
1918   --with-dbi-driver[=DRIVER]
1919                           Suport for DBI driver. DRIVER is the one DBI driver
1920                           like Mysql, Postgresql, others. Default is to not
1921                           configure any driver.
1922   --with-x                use the X Window System
1923
1924 Some influential environment variables:
1925   CC          C compiler command
1926   CFLAGS      C compiler flags
1927   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1928               nonstandard directory <lib dir>
1929   LIBS        libraries to pass to the linker, e.g. -l<library>
1930   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1931               you have headers in a nonstandard directory <include dir>
1932   CXX         C++ compiler command
1933   CXXFLAGS    C++ compiler flags
1934   CPP         C preprocessor
1935   WXCONFIG    wx-config command. On some systems, you must set it to
1936               wx-config-2.6 to use wxWidgets 2.6.
1937   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1938   CXXCPP      C++ preprocessor
1939   XMKMF       Path to xmkmf, Makefile generator for X Window System
1940
1941 Use these variables to override the choices made by `configure' or to help
1942 it to find libraries and programs with nonstandard names/locations.
1943
1944 _ACEOF
1945 ac_status=$?
1946 fi
1947
1948 if test "$ac_init_help" = "recursive"; then
1949   # If there are subdirs, report their specific --help.
1950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1951     test -d "$ac_dir" ||
1952       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1953       continue
1954     ac_builddir=.
1955
1956 case "$ac_dir" in
1957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1958 *)
1959   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1960   # A ".." for each directory in $ac_dir_suffix.
1961   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1962   case $ac_top_builddir_sub in
1963   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1964   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1965   esac ;;
1966 esac
1967 ac_abs_top_builddir=$ac_pwd
1968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1969 # for backward compatibility:
1970 ac_top_builddir=$ac_top_build_prefix
1971
1972 case $srcdir in
1973   .)  # We are building in place.
1974     ac_srcdir=.
1975     ac_top_srcdir=$ac_top_builddir_sub
1976     ac_abs_top_srcdir=$ac_pwd ;;
1977   [\\/]* | ?:[\\/]* )  # Absolute name.
1978     ac_srcdir=$srcdir$ac_dir_suffix;
1979     ac_top_srcdir=$srcdir
1980     ac_abs_top_srcdir=$srcdir ;;
1981   *) # Relative name.
1982     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1983     ac_top_srcdir=$ac_top_build_prefix$srcdir
1984     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1985 esac
1986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1987
1988     cd "$ac_dir" || { ac_status=$?; continue; }
1989     # Check for guested configure.
1990     if test -f "$ac_srcdir/configure.gnu"; then
1991       echo &&
1992       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1993     elif test -f "$ac_srcdir/configure"; then
1994       echo &&
1995       $SHELL "$ac_srcdir/configure" --help=recursive
1996     else
1997       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1998     fi || ac_status=$?
1999     cd "$ac_pwd" || { ac_status=$?; break; }
2000   done
2001 fi
2002
2003 test -n "$ac_init_help" && exit $ac_status
2004 if $ac_init_version; then
2005   cat <<\_ACEOF
2006 configure
2007 generated by GNU Autoconf 2.63
2008
2009 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2010 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2011 This configure script is free software; the Free Software Foundation
2012 gives unlimited permission to copy, distribute and modify it.
2013 _ACEOF
2014   exit
2015 fi
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2019
2020 It was created by $as_me, which was
2021 generated by GNU Autoconf 2.63.  Invocation command line was
2022
2023   $ $0 $@
2024
2025 _ACEOF
2026 exec 5>>config.log
2027 {
2028 cat <<_ASUNAME
2029 ## --------- ##
2030 ## Platform. ##
2031 ## --------- ##
2032
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2041
2042 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2043 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2046 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2047 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2048 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2049
2050 _ASUNAME
2051
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   $as_echo "PATH: $as_dir"
2058 done
2059 IFS=$as_save_IFS
2060
2061 } >&5
2062
2063 cat >&5 <<_ACEOF
2064
2065
2066 ## ----------- ##
2067 ## Core tests. ##
2068 ## ----------- ##
2069
2070 _ACEOF
2071
2072
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_configure_args=
2079 ac_configure_args0=
2080 ac_configure_args1=
2081 ac_must_keep_next=false
2082 for ac_pass in 1 2
2083 do
2084   for ac_arg
2085   do
2086     case $ac_arg in
2087     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089     | -silent | --silent | --silen | --sile | --sil)
2090       continue ;;
2091     *\'*)
2092       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2093     esac
2094     case $ac_pass in
2095     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2096     2)
2097       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2098       if test $ac_must_keep_next = true; then
2099         ac_must_keep_next=false # Got value, back to normal.
2100       else
2101         case $ac_arg in
2102           *=* | --config-cache | -C | -disable-* | --disable-* \
2103           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105           | -with-* | --with-* | -without-* | --without-* | --x)
2106             case "$ac_configure_args0 " in
2107               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108             esac
2109             ;;
2110           -* ) ac_must_keep_next=true ;;
2111         esac
2112       fi
2113       ac_configure_args="$ac_configure_args '$ac_arg'"
2114       ;;
2115     esac
2116   done
2117 done
2118 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2119 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2120
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log.  We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127   # Save into config.log some information that might help in debugging.
2128   {
2129     echo
2130
2131     cat <<\_ASBOX
2132 ## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##
2135 _ASBOX
2136     echo
2137     # The following way of writing the cache mishandles newlines in values,
2138 (
2139   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140     eval ac_val=\$$ac_var
2141     case $ac_val in #(
2142     *${as_nl}*)
2143       case $ac_var in #(
2144       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146       esac
2147       case $ac_var in #(
2148       _ | IFS | as_nl) ;; #(
2149       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150       *) $as_unset $ac_var ;;
2151       esac ;;
2152     esac
2153   done
2154   (set) 2>&1 |
2155     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156     *${as_nl}ac_space=\ *)
2157       sed -n \
2158         "s/'\''/'\''\\\\'\'''\''/g;
2159           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160       ;; #(
2161     *)
2162       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163       ;;
2164     esac |
2165     sort
2166 )
2167     echo
2168
2169     cat <<\_ASBOX
2170 ## ----------------- ##
2171 ## Output variables. ##
2172 ## ----------------- ##
2173 _ASBOX
2174     echo
2175     for ac_var in $ac_subst_vars
2176     do
2177       eval ac_val=\$$ac_var
2178       case $ac_val in
2179       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180       esac
2181       $as_echo "$ac_var='\''$ac_val'\''"
2182     done | sort
2183     echo
2184
2185     if test -n "$ac_subst_files"; then
2186       cat <<\_ASBOX
2187 ## ------------------- ##
2188 ## File substitutions. ##
2189 ## ------------------- ##
2190 _ASBOX
2191       echo
2192       for ac_var in $ac_subst_files
2193       do
2194         eval ac_val=\$$ac_var
2195         case $ac_val in
2196         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197         esac
2198         $as_echo "$ac_var='\''$ac_val'\''"
2199       done | sort
2200       echo
2201     fi
2202
2203     if test -s confdefs.h; then
2204       cat <<\_ASBOX
2205 ## ----------- ##
2206 ## confdefs.h. ##
2207 ## ----------- ##
2208 _ASBOX
2209       echo
2210       cat confdefs.h
2211       echo
2212     fi
2213     test "$ac_signal" != 0 &&
2214       $as_echo "$as_me: caught signal $ac_signal"
2215     $as_echo "$as_me: exit $exit_status"
2216   } >&5
2217   rm -f core *.core core.conftest.* &&
2218     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219     exit $exit_status
2220 ' 0
2221 for ac_signal in 1 2 13 15; do
2222   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2223 done
2224 ac_signal=0
2225
2226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2227 rm -f -r conftest* confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2234
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2243 _ACEOF
2244
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_STRING "$PACKAGE_STRING"
2248 _ACEOF
2249
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253 _ACEOF
2254
2255
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261   ac_site_file1=$CONFIG_SITE
2262 elif test "x$prefix" != xNONE; then
2263   ac_site_file1=$prefix/share/config.site
2264   ac_site_file2=$prefix/etc/config.site
2265 else
2266   ac_site_file1=$ac_default_prefix/share/config.site
2267   ac_site_file2=$ac_default_prefix/etc/config.site
2268 fi
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 do
2271   test "x$ac_site_file" = xNONE && continue
2272   if test -r "$ac_site_file"; then
2273     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275     sed 's/^/| /' "$ac_site_file" >&5
2276     . "$ac_site_file"
2277   fi
2278 done
2279
2280 if test -r "$cache_file"; then
2281   # Some versions of bash will fail to source /dev/null (special
2282   # files actually), so we avoid doing that.
2283   if test -f "$cache_file"; then
2284     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286     case $cache_file in
2287       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288       *)                      . "./$cache_file";;
2289     esac
2290   fi
2291 else
2292   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294   >$cache_file
2295 fi
2296
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302   eval ac_new_set=\$ac_env_${ac_var}_set
2303   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304   eval ac_new_val=\$ac_env_${ac_var}_value
2305   case $ac_old_set,$ac_new_set in
2306     set,)
2307       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309       ac_cache_corrupted=: ;;
2310     ,set)
2311       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313       ac_cache_corrupted=: ;;
2314     ,);;
2315     *)
2316       if test "x$ac_old_val" != "x$ac_new_val"; then
2317         # differences in whitespace do not lead to failure.
2318         ac_old_val_w=`echo x $ac_old_val`
2319         ac_new_val_w=`echo x $ac_new_val`
2320         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323           ac_cache_corrupted=:
2324         else
2325           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327           eval $ac_var=\$ac_old_val
2328         fi
2329         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2330 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2331         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2333       fi;;
2334   esac
2335   # Pass precious variables to config.status.
2336   if test "$ac_new_set" = set; then
2337     case $ac_new_val in
2338     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     *) ac_arg=$ac_var=$ac_new_val ;;
2340     esac
2341     case " $ac_configure_args " in
2342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2344     esac
2345   fi
2346 done
2347 if $ac_cache_corrupted; then
2348   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2353 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373 ac_ext=c
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
2380 BUILD_DIR=`pwd`
2381 cd ..
2382 TOP_DIR=`pwd`
2383 cd ${BUILD_DIR}
2384
2385
2386 ac_aux_dir=
2387 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2388   if 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/install.sh"; then
2393     ac_aux_dir=$ac_dir
2394     ac_install_sh="$ac_aux_dir/install.sh -c"
2395     break
2396   elif test -f "$ac_dir/shtool"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/shtool install -c"
2399     break
2400   fi
2401 done
2402 if test -z "$ac_aux_dir"; then
2403   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2404 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2405    { (exit 1); exit 1; }; }
2406 fi
2407
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2415
2416
2417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2418
2419
2420 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2421 WIN32MAINDIR=${BUILD_DIR}
2422 WIN32TOPDIR=${TOP_DIR}
2423
2424
2425
2426
2427 for ac_prog in true
2428 do
2429   # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2434   $as_echo_n "(cached) " >&6
2435 else
2436   case $TRUEPRG in
2437   [\\/]* | ?:[\\/]*)
2438   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2439   ;;
2440   *)
2441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446   for ac_exec_ext in '' $ac_executable_extensions; do
2447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2449     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456   ;;
2457 esac
2458 fi
2459 TRUEPRG=$ac_cv_path_TRUEPRG
2460 if test -n "$TRUEPRG"; then
2461   { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2462 $as_echo "$TRUEPRG" >&6; }
2463 else
2464   { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
2468
2469   test -n "$TRUEPRG" && break
2470 done
2471 test -n "$TRUEPRG" || TRUEPRG=":"
2472
2473 for ac_prog in false
2474 do
2475   # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2480   $as_echo_n "(cached) " >&6
2481 else
2482   case $FALSEPRG in
2483   [\\/]* | ?:[\\/]*)
2484   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2485   ;;
2486   *)
2487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2495     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502   ;;
2503 esac
2504 fi
2505 FALSEPRG=$ac_cv_path_FALSEPRG
2506 if test -n "$FALSEPRG"; then
2507   { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2508 $as_echo "$FALSEPRG" >&6; }
2509 else
2510   { $as_echo "$as_me:$LINENO: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514
2515   test -n "$FALSEPRG" && break
2516 done
2517 test -n "$FALSEPRG" || FALSEPRG=":"
2518
2519
2520
2521 post_host=
2522 if test "x$BACULA" != x; then
2523    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2524 fi
2525 BACULA=${BACULA:-Bacula}
2526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2529
2530 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2531 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2532 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2533 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2534 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2535 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2536 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2537 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2538 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2539
2540
2541 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2542 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2543 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2544
2545 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2546 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2547 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2548
2549 echo "configuring for ${BACULA} $VERSION ($DATE)"
2550
2551
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 if test -n "$ac_tool_prefix"; then
2559   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564   $as_echo_n "(cached) " >&6
2565 else
2566   if test -n "$CC"; then
2567   ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572   IFS=$as_save_IFS
2573   test -z "$as_dir" && as_dir=.
2574   for ac_exec_ext in '' $ac_executable_extensions; do
2575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578     break 2
2579   fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585 fi
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2589 $as_echo "$CC" >&6; }
2590 else
2591   { $as_echo "$as_me:$LINENO: result: no" >&5
2592 $as_echo "no" >&6; }
2593 fi
2594
2595
2596 fi
2597 if test -z "$ac_cv_prog_CC"; then
2598   ac_ct_CC=$CC
2599   # Extract the first word of "gcc", so it can be a program name with args.
2600 set dummy gcc; ac_word=$2
2601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604   $as_echo_n "(cached) " >&6
2605 else
2606   if test -n "$ac_ct_CC"; then
2607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_ac_ct_CC="gcc"
2617     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 $as_echo "$ac_ct_CC" >&6; }
2630 else
2631   { $as_echo "$as_me:$LINENO: result: no" >&5
2632 $as_echo "no" >&6; }
2633 fi
2634
2635   if test "x$ac_ct_CC" = x; then
2636     CC=""
2637   else
2638     case $cross_compiling:$ac_tool_warned in
2639 yes:)
2640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642 ac_tool_warned=yes ;;
2643 esac
2644     CC=$ac_ct_CC
2645   fi
2646 else
2647   CC="$ac_cv_prog_CC"
2648 fi
2649
2650 if test -z "$CC"; then
2651           if test -n "$ac_tool_prefix"; then
2652     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_CC+set}" = set; then
2657   $as_echo_n "(cached) " >&6
2658 else
2659   if test -n "$CC"; then
2660   ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667   for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_prog_CC="${ac_tool_prefix}cc"
2670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2682 $as_echo "$CC" >&6; }
2683 else
2684   { $as_echo "$as_me:$LINENO: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689   fi
2690 fi
2691 if test -z "$CC"; then
2692   # Extract the first word of "cc", so it can be a program name with args.
2693 set dummy cc; ac_word=$2
2694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697   $as_echo_n "(cached) " >&6
2698 else
2699   if test -n "$CC"; then
2700   ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702   ac_prog_rejected=no
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711        ac_prog_rejected=yes
2712        continue
2713      fi
2714     ac_cv_prog_CC="cc"
2715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 if test $ac_prog_rejected = yes; then
2723   # We found a bogon in the path, so make sure we never use it.
2724   set dummy $ac_cv_prog_CC
2725   shift
2726   if test $# != 0; then
2727     # We chose a different compiler from the bogus one.
2728     # However, it has the same basename, so the bogon will be chosen
2729     # first if we set CC to just the basename; use the full file name.
2730     shift
2731     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732   fi
2733 fi
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741   { $as_echo "$as_me:$LINENO: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$CC"; then
2748   if test -n "$ac_tool_prefix"; then
2749   for ac_prog in cl.exe
2750   do
2751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756   $as_echo_n "(cached) " >&6
2757 else
2758   if test -n "$CC"; then
2759   ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766   for ac_exec_ext in '' $ac_executable_extensions; do
2767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2782 else
2783   { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788     test -n "$CC" && break
2789   done
2790 fi
2791 if test -z "$CC"; then
2792   ac_ct_CC=$CC
2793   for ac_prog in cl.exe
2794 do
2795   # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800   $as_echo_n "(cached) " >&6
2801 else
2802   if test -n "$ac_ct_CC"; then
2803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_ac_ct_CC="$ac_prog"
2813     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2825 $as_echo "$ac_ct_CC" >&6; }
2826 else
2827   { $as_echo "$as_me:$LINENO: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832   test -n "$ac_ct_CC" && break
2833 done
2834
2835   if test "x$ac_ct_CC" = x; then
2836     CC=""
2837   else
2838     case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844     CC=$ac_ct_CC
2845   fi
2846 fi
2847
2848 fi
2849
2850
2851 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857    { (exit 1); exit 1; }; }; }
2858
2859 # Provide some information about the compiler.
2860 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 set X $ac_compile
2862 ac_compiler=$2
2863 { (ac_try="$ac_compiler --version >&5"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870   (eval "$ac_compiler --version >&5") 2>&5
2871   ac_status=$?
2872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881   (eval "$ac_compiler -v >&5") 2>&5
2882   ac_status=$?
2883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }
2885 { (ac_try="$ac_compiler -V >&5"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892   (eval "$ac_compiler -V >&5") 2>&5
2893   ac_status=$?
2894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903
2904 int
2905 main ()
2906 {
2907
2908   ;
2909   return 0;
2910 }
2911 _ACEOF
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2916 # of exeext.
2917 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918 $as_echo_n "checking for C compiler default output file name... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923
2924 ac_rmfiles=
2925 for ac_file in $ac_files
2926 do
2927   case $ac_file in
2928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930   esac
2931 done
2932 rm -f $ac_rmfiles
2933
2934 if { (ac_try="$ac_link_default"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941   (eval "$ac_link_default") 2>&5
2942   ac_status=$?
2943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; then
2945   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2949 # Autoconf.
2950 for ac_file in $ac_files ''
2951 do
2952   test -f "$ac_file" || continue
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955         ;;
2956     [ab].out )
2957         # We found the default executable, but exeext='' is most
2958         # certainly right.
2959         break;;
2960     *.* )
2961         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962         then :; else
2963            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964         fi
2965         # We set ac_cv_exeext here because the later test for it is not
2966         # safe: cross compilers may not add the suffix if given an `-o'
2967         # argument, so we may need to know it at that point already.
2968         # Even if this section looks crufty: it has the advantage of
2969         # actually working.
2970         break;;
2971     * )
2972         break;;
2973   esac
2974 done
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976
2977 else
2978   ac_file=''
2979 fi
2980
2981 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2982 $as_echo "$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&5
2991 $as_echo "$as_me: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&2;}
2993    { (exit 77); exit 77; }; }; }
2994 fi
2995
2996 ac_exeext=$ac_cv_exeext
2997
2998 # Check that the compiler produces executables we can run.  If not, either
2999 # the compiler is broken, or we cross compile.
3000 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3001 $as_echo_n "checking whether the C compiler works... " >&6; }
3002 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3003 # If not cross compiling, check that we can run a simple program.
3004 if test "$cross_compiling" != yes; then
3005   if { ac_try='./$ac_file'
3006   { (case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3011 $as_echo "$ac_try_echo") >&5
3012   (eval "$ac_try") 2>&5
3013   ac_status=$?
3014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016     cross_compiling=no
3017   else
3018     if test "$cross_compiling" = maybe; then
3019         cross_compiling=yes
3020     else
3021         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&2;}
3029    { (exit 1); exit 1; }; }; }
3030     fi
3031   fi
3032 fi
3033 { $as_echo "$as_me:$LINENO: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run.  If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041 $as_echo_n "checking whether we are cross compiling... " >&6; }
3042 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043 $as_echo "$cross_compiling" >&6; }
3044
3045 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { (ac_try="$ac_link"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054   (eval "$ac_link") 2>&5
3055   ac_status=$?
3056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; then
3058   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 # `rm'.
3062 for ac_file in conftest.exe conftest conftest.*; do
3063   test -f "$ac_file" || continue
3064   case $ac_file in
3065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067           break;;
3068     * ) break;;
3069   esac
3070 done
3071 else
3072   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&2;}
3078    { (exit 1); exit 1; }; }; }
3079 fi
3080
3081 rm -f conftest$ac_cv_exeext
3082 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3083 $as_echo "$ac_cv_exeext" >&6; }
3084
3085 rm -f conftest.$ac_ext
3086 EXEEXT=$ac_cv_exeext
3087 ac_exeext=$EXEEXT
3088 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if test "${ac_cv_objext+set}" = set; then
3091   $as_echo_n "(cached) " >&6
3092 else
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.o conftest.obj
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115 $as_echo "$ac_try_echo") >&5
3116   (eval "$ac_compile") 2>&5
3117   ac_status=$?
3118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; then
3120   for ac_file in conftest.o conftest.obj conftest.*; do
3121   test -f "$ac_file" || continue;
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3124     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125        break;;
3126   esac
3127 done
3128 else
3129   $as_echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&5
3136 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&2;}
3138    { (exit 1); exit 1; }; }; }
3139 fi
3140
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142 fi
3143 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3146 ac_objext=$OBJEXT
3147 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150   $as_echo_n "(cached) " >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162 #ifndef __GNUC__
3163        choke me
3164 #endif
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } && {
3185          test -z "$ac_c_werror_flag" ||
3186          test ! -s conftest.err
3187        } && test -s conftest.$ac_objext; then
3188   ac_compiler_gnu=yes
3189 else
3190   $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193         ac_compiler_gnu=no
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198
3199 fi
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3201 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3202 if test $ac_compiler_gnu = yes; then
3203   GCC=yes
3204 else
3205   GCC=
3206 fi
3207 ac_test_CFLAGS=${CFLAGS+set}
3208 ac_save_CFLAGS=$CFLAGS
3209 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3210 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3211 if test "${ac_cv_prog_cc_g+set}" = set; then
3212   $as_echo_n "(cached) " >&6
3213 else
3214   ac_save_c_werror_flag=$ac_c_werror_flag
3215    ac_c_werror_flag=yes
3216    ac_cv_prog_cc_g=no
3217    CFLAGS="-g"
3218    cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224
3225 int
3226 main ()
3227 {
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_c_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cc_g=yes
3252 else
3253   $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256         CFLAGS=""
3257       cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   :
3291 else
3292   $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         ac_c_werror_flag=$ac_save_c_werror_flag
3296          CFLAGS="-g"
3297          cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303
3304 int
3305 main ()
3306 {
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3319 $as_echo "$ac_try_echo") >&5
3320   (eval "$ac_compile") 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } && {
3327          test -z "$ac_c_werror_flag" ||
3328          test ! -s conftest.err
3329        } && test -s conftest.$ac_objext; then
3330   ac_cv_prog_cc_g=yes
3331 else
3332   $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 fi
3340
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 fi
3343
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345    ac_c_werror_flag=$ac_save_c_werror_flag
3346 fi
3347 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3350   CFLAGS=$ac_save_CFLAGS
3351 elif test $ac_cv_prog_cc_g = yes; then
3352   if test "$GCC" = yes; then
3353     CFLAGS="-g -O2"
3354   else
3355     CFLAGS="-g"
3356   fi
3357 else
3358   if test "$GCC" = yes; then
3359     CFLAGS="-O2"
3360   else
3361     CFLAGS=
3362   fi
3363 fi
3364 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if test "${ac_cv_prog_cc_c89+set}" = set; then
3367   $as_echo_n "(cached) " >&6
3368 else
3369   ac_cv_prog_cc_c89=no
3370 ac_save_CC=$CC
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <stdarg.h>
3378 #include <stdio.h>
3379 #include <sys/types.h>
3380 #include <sys/stat.h>
3381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3382 struct buf { int x; };
3383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384 static char *e (p, i)
3385      char **p;
3386      int i;
3387 {
3388   return p[i];
3389 }
3390 static char *f (char * (*g) (char **, int), char **p, ...)
3391 {
3392   char *s;
3393   va_list v;
3394   va_start (v,p);
3395   s = g (p, va_arg (v,int));
3396   va_end (v);
3397   return s;
3398 }
3399
3400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3401    function prototypes and stuff, but not '\xHH' hex character constants.
3402    These don't provoke an error unfortunately, instead are silently treated
3403    as 'x'.  The following induces an error, until -std is added to get
3404    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3405    array size at least.  It's necessary to write '\x00'==0 to get something
3406    that's true only with -std.  */
3407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408
3409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410    inside strings and character constants.  */
3411 #define FOO(x) 'x'
3412 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418 int argc;
3419 char **argv;
3420 int
3421 main ()
3422 {
3423 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 do
3431   CC="$ac_save_CC $ac_arg"
3432   rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439 $as_echo "$ac_try_echo") >&5
3440   (eval "$ac_compile") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } && {
3447          test -z "$ac_c_werror_flag" ||
3448          test ! -s conftest.err
3449        } && test -s conftest.$ac_objext; then
3450   ac_cv_prog_cc_c89=$ac_arg
3451 else
3452   $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455
3456 fi
3457
3458 rm -f core conftest.err conftest.$ac_objext
3459   test "x$ac_cv_prog_cc_c89" != "xno" && break
3460 done
3461 rm -f conftest.$ac_ext
3462 CC=$ac_save_CC
3463
3464 fi
3465 # AC_CACHE_VAL
3466 case "x$ac_cv_prog_cc_c89" in
3467   x)
3468     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3469 $as_echo "none needed" >&6; } ;;
3470   xno)
3471     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3472 $as_echo "unsupported" >&6; } ;;
3473   *)
3474     CC="$CC $ac_cv_prog_cc_c89"
3475     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3477 esac
3478
3479
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486 ac_ext=cpp
3487 ac_cpp='$CXXCPP $CPPFLAGS'
3488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 if test -z "$CXX"; then
3492   if test -n "$CCC"; then
3493     CXX=$CCC
3494   else
3495     if test -n "$ac_tool_prefix"; then
3496   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3497   do
3498     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CXX+set}" = set; then
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$CXX"; then
3506   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513   for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 CXX=$ac_cv_prog_CXX
3526 if test -n "$CXX"; then
3527   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3528 $as_echo "$CXX" >&6; }
3529 else
3530   { $as_echo "$as_me:$LINENO: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534
3535     test -n "$CXX" && break
3536   done
3537 fi
3538 if test -z "$CXX"; then
3539   ac_ct_CXX=$CXX
3540   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3541 do
3542   # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3547   $as_echo_n "(cached) " >&6
3548 else
3549   if test -n "$ac_ct_CXX"; then
3550   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557   for ac_exec_ext in '' $ac_executable_extensions; do
3558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559     ac_cv_prog_ac_ct_CXX="$ac_prog"
3560     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3570 if test -n "$ac_ct_CXX"; then
3571   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3572 $as_echo "$ac_ct_CXX" >&6; }
3573 else
3574   { $as_echo "$as_me:$LINENO: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578
3579   test -n "$ac_ct_CXX" && break
3580 done
3581
3582   if test "x$ac_ct_CXX" = x; then
3583     CXX="g++"
3584   else
3585     case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591     CXX=$ac_ct_CXX
3592   fi
3593 fi
3594
3595   fi
3596 fi
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3599 set X $ac_compile
3600 ac_compiler=$2
3601 { (ac_try="$ac_compiler --version >&5"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608   (eval "$ac_compiler --version >&5") 2>&5
3609   ac_status=$?
3610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }
3612 { (ac_try="$ac_compiler -v >&5"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3618 $as_echo "$ac_try_echo") >&5
3619   (eval "$ac_compiler -v >&5") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); }
3623 { (ac_try="$ac_compiler -V >&5"
3624 case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630   (eval "$ac_compiler -V >&5") 2>&5
3631   ac_status=$?
3632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }
3634
3635 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3638   $as_echo_n "(cached) " >&6
3639 else
3640   cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646
3647 int
3648 main ()
3649 {
3650 #ifndef __GNUC__
3651        choke me
3652 #endif
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (ac_try="$ac_compile"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3665 $as_echo "$ac_try_echo") >&5
3666   (eval "$ac_compile") 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } && {
3673          test -z "$ac_cxx_werror_flag" ||
3674          test ! -s conftest.err
3675        } && test -s conftest.$ac_objext; then
3676   ac_compiler_gnu=yes
3677 else
3678   $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681         ac_compiler_gnu=no
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3686
3687 fi
3688 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3689 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3690 if test $ac_compiler_gnu = yes; then
3691   GXX=yes
3692 else
3693   GXX=
3694 fi
3695 ac_test_CXXFLAGS=${CXXFLAGS+set}
3696 ac_save_CXXFLAGS=$CXXFLAGS
3697 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3698 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3699 if test "${ac_cv_prog_cxx_g+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3703    ac_cxx_werror_flag=yes
3704    ac_cv_prog_cxx_g=no
3705    CXXFLAGS="-g"
3706    cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729   (eval "$ac_compile") 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } && {
3736          test -z "$ac_cxx_werror_flag" ||
3737          test ! -s conftest.err
3738        } && test -s conftest.$ac_objext; then
3739   ac_cv_prog_cxx_g=yes
3740 else
3741   $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744         CXXFLAGS=""
3745       cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h.  */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h.  */
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767 $as_echo "$ac_try_echo") >&5
3768   (eval "$ac_compile") 2>conftest.er1
3769   ac_status=$?
3770   grep -v '^ *+' conftest.er1 >conftest.err
3771   rm -f conftest.er1
3772   cat conftest.err >&5
3773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); } && {
3775          test -z "$ac_cxx_werror_flag" ||
3776          test ! -s conftest.err
3777        } && test -s conftest.$ac_objext; then
3778   :
3779 else
3780   $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3782
3783         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3784          CXXFLAGS="-g"
3785          cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3807 $as_echo "$ac_try_echo") >&5
3808   (eval "$ac_compile") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } && {
3815          test -z "$ac_cxx_werror_flag" ||
3816          test ! -s conftest.err
3817        } && test -s conftest.$ac_objext; then
3818   ac_cv_prog_cxx_g=yes
3819 else
3820   $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823
3824 fi
3825
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3834 fi
3835 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3836 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3837 if test "$ac_test_CXXFLAGS" = set; then
3838   CXXFLAGS=$ac_save_CXXFLAGS
3839 elif test $ac_cv_prog_cxx_g = yes; then
3840   if test "$GXX" = yes; then
3841     CXXFLAGS="-g -O2"
3842   else
3843     CXXFLAGS="-g"
3844   fi
3845 else
3846   if test "$GXX" = yes; then
3847     CXXFLAGS="-O2"
3848   else
3849     CXXFLAGS=
3850   fi
3851 fi
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 if test "x$CC" != xcc; then
3859   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3860 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3861 else
3862   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3863 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3864 fi
3865 set dummy $CC; ac_cc=`$as_echo "$2" |
3866                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3867 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3868   $as_echo_n "(cached) " >&6
3869 else
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 # Make sure it works both with $CC and with simple cc.
3886 # We do the test twice because some compilers refuse to overwrite an
3887 # existing .o file with -o, though they will create one.
3888 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3889 rm -f conftest2.*
3890 if { (case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_try") 2>&5
3897   ac_status=$?
3898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902   *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905 $as_echo "$ac_try_echo") >&5
3906   (eval "$ac_try") 2>&5
3907   ac_status=$?
3908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); };
3910 then
3911   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3912   if test "x$CC" != xcc; then
3913     # Test first that cc exists at all.
3914     if { ac_try='cc -c conftest.$ac_ext >&5'
3915   { (case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921   (eval "$ac_try") 2>&5
3922   ac_status=$?
3923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }; }; then
3925       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3926       rm -f conftest2.*
3927       if { (case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933   (eval "$ac_try") 2>&5
3934   ac_status=$?
3935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943   (eval "$ac_try") 2>&5
3944   ac_status=$?
3945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); };
3947       then
3948         # cc works too.
3949         :
3950       else
3951         # cc exists but doesn't like -o.
3952         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3953       fi
3954     fi
3955   fi
3956 else
3957   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3958 fi
3959 rm -f core conftest*
3960
3961 fi
3962 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3963   { $as_echo "$as_me:$LINENO: result: yes" >&5
3964 $as_echo "yes" >&6; }
3965 else
3966   { $as_echo "$as_me:$LINENO: result: no" >&5
3967 $as_echo "no" >&6; }
3968
3969 cat >>confdefs.h <<\_ACEOF
3970 #define NO_MINUS_C_MINUS_O 1
3971 _ACEOF
3972
3973 fi
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3984   CPP=
3985 fi
3986 if test -z "$CPP"; then
3987   if test "${ac_cv_prog_CPP+set}" = set; then
3988   $as_echo_n "(cached) " >&6
3989 else
3990       # Double quotes because CPP needs to be expanded
3991     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3992     do
3993       ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996   # Use a header file that comes with gcc, so configuring glibc
3997   # with a fresh cross-compiler works.
3998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999   # <limits.h> exists even on freestanding compilers.
4000   # On the NeXT, cc -E runs the code through the compiler's parser,
4001   # not just through cpp. "Syntax error" is here to catch this case.
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #ifdef __STDC__
4009 # include <limits.h>
4010 #else
4011 # include <assert.h>
4012 #endif
4013                      Syntax error
4014 _ACEOF
4015 if { (ac_try="$ac_cpp conftest.$ac_ext"
4016 case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4021 $as_echo "$ac_try_echo") >&5
4022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } >/dev/null && {
4029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4030          test ! -s conftest.err
4031        }; then
4032   :
4033 else
4034   $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037   # Broken: fails on valid input.
4038 continue
4039 fi
4040
4041 rm -f conftest.err conftest.$ac_ext
4042
4043   # OK, works on sane cases.  Now check whether nonexistent headers
4044   # can be detected and how.
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if { (ac_try="$ac_cpp conftest.$ac_ext"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059 $as_echo "$ac_try_echo") >&5
4060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } >/dev/null && {
4067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068          test ! -s conftest.err
4069        }; then
4070   # Broken: success on invalid input.
4071 continue
4072 else
4073   $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076   # Passes both tests.
4077 ac_preproc_ok=:
4078 break
4079 fi
4080
4081 rm -f conftest.err conftest.$ac_ext
4082
4083 done
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4087   break
4088 fi
4089
4090     done
4091     ac_cv_prog_CPP=$CPP
4092
4093 fi
4094   CPP=$ac_cv_prog_CPP
4095 else
4096   ac_cv_prog_CPP=$CPP
4097 fi
4098 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4099 $as_echo "$CPP" >&6; }
4100 ac_preproc_ok=false
4101 for ac_c_preproc_warn_flag in '' yes
4102 do
4103   # Use a header file that comes with gcc, so configuring glibc
4104   # with a fresh cross-compiler works.
4105   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106   # <limits.h> exists even on freestanding compilers.
4107   # On the NeXT, cc -E runs the code through the compiler's parser,
4108   # not just through cpp. "Syntax error" is here to catch this case.
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120                      Syntax error
4121 _ACEOF
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } >/dev/null && {
4136          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4137          test ! -s conftest.err
4138        }; then
4139   :
4140 else
4141   $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144   # Broken: fails on valid input.
4145 continue
4146 fi
4147
4148 rm -f conftest.err conftest.$ac_ext
4149
4150   # OK, works on sane cases.  Now check whether nonexistent headers
4151   # can be detected and how.
4152   cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <ac_nonexistent.h>
4159 _ACEOF
4160 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } >/dev/null && {
4174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175          test ! -s conftest.err
4176        }; then
4177   # Broken: success on invalid input.
4178 continue
4179 else
4180   $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183   # Passes both tests.
4184 ac_preproc_ok=:
4185 break
4186 fi
4187
4188 rm -f conftest.err conftest.$ac_ext
4189
4190 done
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then
4194   :
4195 else
4196   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4199 See \`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log' for more details." >&2;}
4202    { (exit 1); exit 1; }; }; }
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -z "$GREP"; then
4218   ac_path_GREP_found=false
4219   # Loop through the user's path and test for each of PROGNAME-LIST
4220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225   for ac_prog in grep ggrep; do
4226     for ac_exec_ext in '' $ac_executable_extensions; do
4227       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230   # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 *)
4235   ac_count=0
4236   $as_echo_n 0123456789 >"conftest.in"
4237   while :
4238   do
4239     cat "conftest.in" "conftest.in" >"conftest.tmp"
4240     mv "conftest.tmp" "conftest.in"
4241     cp "conftest.in" "conftest.nl"
4242     $as_echo 'GREP' >> "conftest.nl"
4243     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245     ac_count=`expr $ac_count + 1`
4246     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247       # Best one so far, save it but keep looking for a better one
4248       ac_cv_path_GREP="$ac_path_GREP"
4249       ac_path_GREP_max=$ac_count
4250     fi
4251     # 10*(2^10) chars as input seems more than enough
4252     test $ac_count -gt 10 && break
4253   done
4254   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257       $ac_path_GREP_found && break 3
4258     done
4259   done
4260 done
4261 IFS=$as_save_IFS
4262   if test -z "$ac_cv_path_GREP"; then
4263     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265    { (exit 1); exit 1; }; }
4266   fi
4267 else
4268   ac_cv_path_GREP=$GREP
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274  GREP="$ac_cv_path_GREP"
4275
4276
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4283    then ac_cv_path_EGREP="$GREP -E"
4284    else
4285      if test -z "$EGREP"; then
4286   ac_path_EGREP_found=false
4287   # Loop through the user's path and test for each of PROGNAME-LIST
4288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_prog in egrep; do
4294     for ac_exec_ext in '' $ac_executable_extensions; do
4295       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4296       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298   # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4300 *GNU*)
4301   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4302 *)
4303   ac_count=0
4304   $as_echo_n 0123456789 >"conftest.in"
4305   while :
4306   do
4307     cat "conftest.in" "conftest.in" >"conftest.tmp"
4308     mv "conftest.tmp" "conftest.in"
4309     cp "conftest.in" "conftest.nl"
4310     $as_echo 'EGREP' >> "conftest.nl"
4311     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313     ac_count=`expr $ac_count + 1`
4314     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315       # Best one so far, save it but keep looking for a better one
4316       ac_cv_path_EGREP="$ac_path_EGREP"
4317       ac_path_EGREP_max=$ac_count
4318     fi
4319     # 10*(2^10) chars as input seems more than enough
4320     test $ac_count -gt 10 && break
4321   done
4322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325       $ac_path_EGREP_found && break 3
4326     done
4327   done
4328 done
4329 IFS=$as_save_IFS
4330   if test -z "$ac_cv_path_EGREP"; then
4331     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333    { (exit 1); exit 1; }; }
4334   fi
4335 else
4336   ac_cv_path_EGREP=$EGREP
4337 fi
4338
4339    fi
4340 fi
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343  EGREP="$ac_cv_path_EGREP"
4344
4345
4346 if test $ac_cv_c_compiler_gnu = yes; then
4347     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4348 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4349 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4350   $as_echo_n "(cached) " >&6
4351 else
4352     ac_pattern="Autoconf.*'x'"
4353   cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <sgtty.h>
4360 Autoconf TIOCGETP
4361 _ACEOF
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4364   ac_cv_prog_gcc_traditional=yes
4365 else
4366   ac_cv_prog_gcc_traditional=no
4367 fi
4368 rm -f conftest*
4369
4370
4371   if test $ac_cv_prog_gcc_traditional = no; then
4372     cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <termio.h>
4379 Autoconf TCGETA
4380 _ACEOF
4381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4383   ac_cv_prog_gcc_traditional=yes
4384 fi
4385 rm -f conftest*
4386
4387   fi
4388 fi
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4390 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4391   if test $ac_cv_prog_gcc_traditional = yes; then
4392     CC="$CC -traditional"
4393   fi
4394 fi
4395
4396 BASECC=`basename $CC`
4397 have_gcc=no
4398 if test "x$BASECC" = xgcc; then
4399    cat >>confdefs.h <<\_ACEOF
4400 #define HAVE_GCC 1
4401 _ACEOF
4402
4403    have_gcc=yes
4404 fi
4405 # Extract the first word of "$CXX", so it can be a program name with args.
4406 set dummy $CXX; ac_word=$2
4407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_path_CXX+set}" = set; then
4410   $as_echo_n "(cached) " >&6
4411 else
4412   case $CXX in
4413   [\\/]* | ?:[\\/]*)
4414   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4415   ;;
4416   *)
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4425     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4433   ;;
4434 esac
4435 fi
4436 CXX=$ac_cv_path_CXX
4437 if test -n "$CXX"; then
4438   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4439 $as_echo "$CXX" >&6; }
4440 else
4441   { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4443 fi
4444
4445
4446 if test ! -e $CXX; then
4447    { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4448 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4449    { (exit 1); exit 1; }; }
4450 fi
4451
4452 # Find a good install program.  We prefer a C program (faster),
4453 # so one script is as good as another.  But avoid the broken or
4454 # incompatible versions:
4455 # SysV /etc/install, /usr/sbin/install
4456 # SunOS /usr/etc/install
4457 # IRIX /sbin/install
4458 # AIX /bin/install
4459 # AmigaOS /C/install, which installs bootblocks on floppy discs
4460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4463 # OS/2's system install, which has a completely different semantic
4464 # ./install, which can be erroneously created by make from ./install.sh.
4465 # Reject install programs that cannot install multiple files.
4466 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4468 if test -z "$INSTALL"; then
4469 if test "${ac_cv_path_install+set}" = set; then
4470   $as_echo_n "(cached) " >&6
4471 else
4472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   # Account for people who put trailing slashes in PATH elements.
4478 case $as_dir/ in
4479   ./ | .// | /cC/* | \
4480   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4481   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4482   /usr/ucb/* ) ;;
4483   *)
4484     # OSF1 and SCO ODT 3.0 have their own names for install.
4485     # Don't use installbsd from OSF since it installs stuff as root
4486     # by default.
4487     for ac_prog in ginstall scoinst install; do
4488       for ac_exec_ext in '' $ac_executable_extensions; do
4489         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4490           if test $ac_prog = install &&
4491             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4492             # AIX install.  It has an incompatible calling convention.
4493             :
4494           elif test $ac_prog = install &&
4495             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4496             # program-specific install script used by HP pwplus--don't use.
4497             :
4498           else
4499             rm -rf conftest.one conftest.two conftest.dir
4500             echo one > conftest.one
4501             echo two > conftest.two
4502             mkdir conftest.dir
4503             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4504               test -s conftest.one && test -s conftest.two &&
4505               test -s conftest.dir/conftest.one &&
4506               test -s conftest.dir/conftest.two
4507             then
4508               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4509               break 3
4510             fi
4511           fi
4512         fi
4513       done
4514     done
4515     ;;
4516 esac
4517
4518 done
4519 IFS=$as_save_IFS
4520
4521 rm -rf conftest.one conftest.two conftest.dir
4522
4523 fi
4524   if test "${ac_cv_path_install+set}" = set; then
4525     INSTALL=$ac_cv_path_install
4526   else
4527     # As a last resort, use the slow shell script.  Don't cache a
4528     # value for INSTALL within a source directory, because that will
4529     # break other packages using the cache if that directory is
4530     # removed, or if the value is a relative name.
4531     INSTALL=$ac_install_sh
4532   fi
4533 fi
4534 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4535 $as_echo "$INSTALL" >&6; }
4536
4537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4538 # It thinks the first close brace ends the variable substitution.
4539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4540
4541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4542
4543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4544
4545 # Extract the first word of "mv", so it can be a program name with args.
4546 set dummy mv; ac_word=$2
4547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_path_MV+set}" = set; then
4550   $as_echo_n "(cached) " >&6
4551 else
4552   case $MV in
4553   [\\/]* | ?:[\\/]*)
4554   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4555   ;;
4556   *)
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for ac_exec_ext in '' $ac_executable_extensions; do
4563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4565     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566     break 2
4567   fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4573   ;;
4574 esac
4575 fi
4576 MV=$ac_cv_path_MV
4577 if test -n "$MV"; then
4578   { $as_echo "$as_me:$LINENO: result: $MV" >&5
4579 $as_echo "$MV" >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586 # Extract the first word of "rm", so it can be a program name with args.
4587 set dummy rm; ac_word=$2
4588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if test "${ac_cv_path_REMOVE+set}" = set; then
4591   $as_echo_n "(cached) " >&6
4592 else
4593   case $REMOVE in
4594   [\\/]* | ?:[\\/]*)
4595   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4596   ;;
4597   *)
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4606     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4614   ;;
4615 esac
4616 fi
4617 REMOVE=$ac_cv_path_REMOVE
4618 if test -n "$REMOVE"; then
4619   { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4620 $as_echo "$REMOVE" >&6; }
4621 else
4622   { $as_echo "$as_me:$LINENO: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 # Extract the first word of "cp", so it can be a program name with args.
4628 set dummy cp; ac_word=$2
4629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_path_CP+set}" = set; then
4632   $as_echo_n "(cached) " >&6
4633 else
4634   case $CP in
4635   [\\/]* | ?:[\\/]*)
4636   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4637   ;;
4638   *)
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4647     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4655   ;;
4656 esac
4657 fi
4658 CP=$ac_cv_path_CP
4659 if test -n "$CP"; then
4660   { $as_echo "$as_me:$LINENO: result: $CP" >&5
4661 $as_echo "$CP" >&6; }
4662 else
4663   { $as_echo "$as_me:$LINENO: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 # Extract the first word of "sed", so it can be a program name with args.
4669 set dummy sed; ac_word=$2
4670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_path_SED+set}" = set; then
4673   $as_echo_n "(cached) " >&6
4674 else
4675   case $SED in
4676   [\\/]* | ?:[\\/]*)
4677   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4678   ;;
4679   *)
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4688     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4696   ;;
4697 esac
4698 fi
4699 SED=$ac_cv_path_SED
4700 if test -n "$SED"; then
4701   { $as_echo "$as_me:$LINENO: result: $SED" >&5
4702 $as_echo "$SED" >&6; }
4703 else
4704   { $as_echo "$as_me:$LINENO: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 # Extract the first word of "echo", so it can be a program name with args.
4710 set dummy echo; ac_word=$2
4711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_path_ECHO+set}" = set; then
4714   $as_echo_n "(cached) " >&6
4715 else
4716   case $ECHO in
4717   [\\/]* | ?:[\\/]*)
4718   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4719   ;;
4720   *)
4721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726   for ac_exec_ext in '' $ac_executable_extensions; do
4727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4729     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4737   ;;
4738 esac
4739 fi
4740 ECHO=$ac_cv_path_ECHO
4741 if test -n "$ECHO"; then
4742   { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4743 $as_echo "$ECHO" >&6; }
4744 else
4745   { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 # Extract the first word of "cmp", so it can be a program name with args.
4751 set dummy cmp; ac_word=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_CMP+set}" = set; then
4755   $as_echo_n "(cached) " >&6
4756 else
4757   case $CMP in
4758   [\\/]* | ?:[\\/]*)
4759   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4760   ;;
4761   *)
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   for ac_exec_ext in '' $ac_executable_extensions; do
4768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4770     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4778   ;;
4779 esac
4780 fi
4781 CMP=$ac_cv_path_CMP
4782 if test -n "$CMP"; then
4783   { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4784 $as_echo "$CMP" >&6; }
4785 else
4786   { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791 # Extract the first word of "tbl", so it can be a program name with args.
4792 set dummy tbl; ac_word=$2
4793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_path_TBL+set}" = set; then
4796   $as_echo_n "(cached) " >&6
4797 else
4798   case $TBL in
4799   [\\/]* | ?:[\\/]*)
4800   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4801   ;;
4802   *)
4803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4811     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812     break 2
4813   fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4819   ;;
4820 esac
4821 fi
4822 TBL=$ac_cv_path_TBL
4823 if test -n "$TBL"; then
4824   { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4825 $as_echo "$TBL" >&6; }
4826 else
4827   { $as_echo "$as_me:$LINENO: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831
4832 # Extract the first word of "ar", so it can be a program name with args.
4833 set dummy ar; ac_word=$2
4834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_path_AR+set}" = set; then
4837   $as_echo_n "(cached) " >&6
4838 else
4839   case $AR in
4840   [\\/]* | ?:[\\/]*)
4841   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4842   ;;
4843   *)
4844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4852     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4860   ;;
4861 esac
4862 fi
4863 AR=$ac_cv_path_AR
4864 if test -n "$AR"; then
4865   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4866 $as_echo "$AR" >&6; }
4867 else
4868   { $as_echo "$as_me:$LINENO: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873 # Extract the first word of "openssl", so it can be a program name with args.
4874 set dummy openssl; ac_word=$2
4875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if test "${ac_cv_path_OPENSSL+set}" = set; then
4878   $as_echo_n "(cached) " >&6
4879 else
4880   case $OPENSSL in
4881   [\\/]* | ?:[\\/]*)
4882   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4883   ;;
4884   *)
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4893     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4901   ;;
4902 esac
4903 fi
4904 OPENSSL=$ac_cv_path_OPENSSL
4905 if test -n "$OPENSSL"; then
4906   { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4907 $as_echo "$OPENSSL" >&6; }
4908 else
4909   { $as_echo "$as_me:$LINENO: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914 # Extract the first word of "mtx", so it can be a program name with args.
4915 set dummy mtx; ac_word=$2
4916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_path_MTX+set}" = set; then
4919   $as_echo_n "(cached) " >&6
4920 else
4921   case $MTX in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939 IFS=$as_save_IFS
4940
4941   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4942   ;;
4943 esac
4944 fi
4945 MTX=$ac_cv_path_MTX
4946 if test -n "$MTX"; then
4947   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4948 $as_echo "$MTX" >&6; }
4949 else
4950   { $as_echo "$as_me:$LINENO: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 # Extract the first word of "dd", so it can be a program name with args.
4956 set dummy dd; ac_word=$2
4957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_path_DD+set}" = set; then
4960   $as_echo_n "(cached) " >&6
4961 else
4962   case $DD in
4963   [\\/]* | ?:[\\/]*)
4964   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4965   ;;
4966   *)
4967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972   for ac_exec_ext in '' $ac_executable_extensions; do
4973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976     break 2
4977   fi
4978 done
4979 done
4980 IFS=$as_save_IFS
4981
4982   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4983   ;;
4984 esac
4985 fi
4986 DD=$ac_cv_path_DD
4987 if test -n "$DD"; then
4988   { $as_echo "$as_me:$LINENO: result: $DD" >&5
4989 $as_echo "$DD" >&6; }
4990 else
4991   { $as_echo "$as_me:$LINENO: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996 # Extract the first word of "mkisofs", so it can be a program name with args.
4997 set dummy mkisofs; ac_word=$2
4998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_path_MKISOFS+set}" = set; then
5001   $as_echo_n "(cached) " >&6
5002 else
5003   case $MKISOFS in
5004   [\\/]* | ?:[\\/]*)
5005   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5006   ;;
5007   *)
5008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   for ac_exec_ext in '' $ac_executable_extensions; do
5014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5016     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5024   ;;
5025 esac
5026 fi
5027 MKISOFS=$ac_cv_path_MKISOFS
5028 if test -n "$MKISOFS"; then
5029   { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5030 $as_echo "$MKISOFS" >&6; }
5031 else
5032   { $as_echo "$as_me:$LINENO: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 # Extract the first word of "python", so it can be a program name with args.
5038 set dummy python; ac_word=$2
5039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if test "${ac_cv_path_PYTHON+set}" = set; then
5042   $as_echo_n "(cached) " >&6
5043 else
5044   case $PYTHON in
5045   [\\/]* | ?:[\\/]*)
5046   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5047   ;;
5048   *)
5049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5057     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5065   ;;
5066 esac
5067 fi
5068 PYTHON=$ac_cv_path_PYTHON
5069 if test -n "$PYTHON"; then
5070   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5071 $as_echo "$PYTHON" >&6; }
5072 else
5073   { $as_echo "$as_me:$LINENO: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 # Extract the first word of "growisofs", so it can be a program name with args.
5079 set dummy growisofs; ac_word=$2
5080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5083   $as_echo_n "(cached) " >&6
5084 else
5085   case $GROWISOFS in
5086   [\\/]* | ?:[\\/]*)
5087   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5088   ;;
5089   *)
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5098     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5106   ;;
5107 esac
5108 fi
5109 GROWISOFS=$ac_cv_path_GROWISOFS
5110 if test -n "$GROWISOFS"; then
5111   { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5112 $as_echo "$GROWISOFS" >&6; }
5113 else
5114   { $as_echo "$as_me:$LINENO: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118
5119 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5120 set dummy dvd+rw-mediainfo; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5124   $as_echo_n "(cached) " >&6
5125 else
5126   case $DVDRWMEDIAINFO in
5127   [\\/]* | ?:[\\/]*)
5128   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5129   ;;
5130   *)
5131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136   for ac_exec_ext in '' $ac_executable_extensions; do
5137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5139     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5147   ;;
5148 esac
5149 fi
5150 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5151 if test -n "$DVDRWMEDIAINFO"; then
5152   { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5153 $as_echo "$DVDRWMEDIAINFO" >&6; }
5154 else
5155   { $as_echo "$as_me:$LINENO: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5161 set dummy dvd+rw-format; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5165   $as_echo_n "(cached) " >&6
5166 else
5167   case $DVDRWFORMAT in
5168   [\\/]* | ?:[\\/]*)
5169   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5170   ;;
5171   *)
5172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177   for ac_exec_ext in '' $ac_executable_extensions; do
5178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5180     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5188   ;;
5189 esac
5190 fi
5191 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5192 if test -n "$DVDRWFORMAT"; then
5193   { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5194 $as_echo "$DVDRWFORMAT" >&6; }
5195 else
5196   { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201 # Extract the first word of "pkg-config", so it can be a program name with args.
5202 set dummy pkg-config; ac_word=$2
5203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5206   $as_echo_n "(cached) " >&6
5207 else
5208   case $PKGCONFIG in
5209   [\\/]* | ?:[\\/]*)
5210   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5211   ;;
5212   *)
5213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218   for ac_exec_ext in '' $ac_executable_extensions; do
5219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5221     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5229   ;;
5230 esac
5231 fi
5232 PKGCONFIG=$ac_cv_path_PKGCONFIG
5233 if test -n "$PKGCONFIG"; then
5234   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5235 $as_echo "$PKGCONFIG" >&6; }
5236 else
5237   { $as_echo "$as_me:$LINENO: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 # Extract the first word of "qmake", so it can be a program name with args.
5243 set dummy qmake; ac_word=$2
5244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_path_QMAKE+set}" = set; then
5247   $as_echo_n "(cached) " >&6
5248 else
5249   case $QMAKE in
5250   [\\/]* | ?:[\\/]*)
5251   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5252   ;;
5253   *)
5254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259   for ac_exec_ext in '' $ac_executable_extensions; do
5260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5270   ;;
5271 esac
5272 fi
5273 QMAKE=$ac_cv_path_QMAKE
5274 if test -n "$QMAKE"; then
5275   { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5276 $as_echo "$QMAKE" >&6; }
5277 else
5278   { $as_echo "$as_me:$LINENO: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282
5283 # Extract the first word of "gmake", so it can be a program name with args.
5284 set dummy gmake; ac_word=$2
5285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_path_GMAKE+set}" = set; then
5288   $as_echo_n "(cached) " >&6
5289 else
5290   case $GMAKE in
5291   [\\/]* | ?:[\\/]*)
5292   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5293   ;;
5294   *)
5295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300   for ac_exec_ext in '' $ac_executable_extensions; do
5301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5303     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5311   ;;
5312 esac
5313 fi
5314 GMAKE=$ac_cv_path_GMAKE
5315 if test -n "$GMAKE"; then
5316   { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5317 $as_echo "$GMAKE" >&6; }
5318 else
5319   { $as_echo "$as_me:$LINENO: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324
5325 if test "x$WXCONFIG" = x; then
5326    WXCONFIG=wx-config
5327 fi
5328 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5329 set dummy ${WXCONFIG}; ac_word=$2
5330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5333   $as_echo_n "(cached) " >&6
5334 else
5335   case $WXCONFIG in
5336   [\\/]* | ?:[\\/]*)
5337   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5338   ;;
5339   *)
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345   for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5348     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5356   ;;
5357 esac
5358 fi
5359 WXCONFIG=$ac_cv_path_WXCONFIG
5360 if test -n "$WXCONFIG"; then
5361   { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5362 $as_echo "$WXCONFIG" >&6; }
5363 else
5364   { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369
5370 # Extract the first word of "cdrecord", so it can be a program name with args.
5371 set dummy cdrecord; ac_word=$2
5372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_path_CDRECORD+set}" = set; then
5375   $as_echo_n "(cached) " >&6
5376 else
5377   case $CDRECORD in
5378   [\\/]* | ?:[\\/]*)
5379   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5380   ;;
5381   *)
5382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387   for ac_exec_ext in '' $ac_executable_extensions; do
5388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5390     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5398   ;;
5399 esac
5400 fi
5401 CDRECORD=$ac_cv_path_CDRECORD
5402 if test -n "$CDRECORD"; then
5403   { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5404 $as_echo "$CDRECORD" >&6; }
5405 else
5406   { $as_echo "$as_me:$LINENO: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 # Extract the first word of "pidof", so it can be a program name with args.
5412 set dummy pidof; ac_word=$2
5413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if test "${ac_cv_path_PIDOF+set}" = set; then
5416   $as_echo_n "(cached) " >&6
5417 else
5418   case $PIDOF in
5419   [\\/]* | ?:[\\/]*)
5420   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5421   ;;
5422   *)
5423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428   for ac_exec_ext in '' $ac_executable_extensions; do
5429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435 done
5436 IFS=$as_save_IFS
5437
5438   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5439   ;;
5440 esac
5441 fi
5442 PIDOF=$ac_cv_path_PIDOF
5443 if test -n "$PIDOF"; then
5444   { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5445 $as_echo "$PIDOF" >&6; }
5446 else
5447   { $as_echo "$as_me:$LINENO: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451
5452 for ac_prog in gawk mawk nawk awk
5453 do
5454   # Extract the first word of "$ac_prog", so it can be a program name with args.
5455 set dummy $ac_prog; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_AWK+set}" = set; then
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$AWK"; then
5462   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_prog_AWK="$ac_prog"
5472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 AWK=$ac_cv_prog_AWK
5482 if test -n "$AWK"; then
5483   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5484 $as_echo "$AWK" >&6; }
5485 else
5486   { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491   test -n "$AWK" && break
5492 done
5493
5494 # Some AWK programs fail, so test it and warn the user
5495 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5496       { if ((prog == $2) || (("(" prog ")") == $2) ||
5497       (("" prog "") == $2) ||
5498       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5499 else
5500   { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5501    The regex engine of $AWK is too broken to be used you
5502    might want to install GNU AWK.
5503    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5504 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5505    The regex engine of $AWK is too broken to be used you
5506    might want to install GNU AWK.
5507    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5508    { (exit 1); exit 1; }; }
5509 fi
5510 THE_AWK=$AWK
5511 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5512 set dummy $THE_AWK; ac_word=$2
5513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if test "${ac_cv_path_AWK+set}" = set; then
5516   $as_echo_n "(cached) " >&6
5517 else
5518   case $AWK in
5519   [\\/]* | ?:[\\/]*)
5520   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5521   ;;
5522   *)
5523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_exec_ext in '' $ac_executable_extensions; do
5529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5531     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5539   ;;
5540 esac
5541 fi
5542 AWK=$ac_cv_path_AWK
5543 if test -n "$AWK"; then
5544   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5545 $as_echo "$AWK" >&6; }
5546 else
5547   { $as_echo "$as_me:$LINENO: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552
5553
5554 test -n "$ARFLAG" || ARFLAGS="cr"
5555
5556
5557 MAKE_SHELL=/bin/sh
5558
5559
5560
5561
5562
5563
5564
5565 use_libtool=yes
5566 # Check whether --enable-libtool was given.
5567 if test "${enable_libtool+set}" = set; then
5568   enableval=$enable_libtool;
5569        if test x$enableval = xno; then
5570           use_libtool=no
5571        fi
5572
5573
5574 fi
5575
5576 case `pwd` in
5577   *\ * | *\     *)
5578     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5580 esac
5581
5582
5583
5584 macro_version='2.2.6'
5585 macro_revision='1.3012'
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 ltmain="$ac_aux_dir/ltmain.sh"
5600
5601 # Make sure we can run config.sub.
5602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5603   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5604 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5605    { (exit 1); exit 1; }; }
5606
5607 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5608 $as_echo_n "checking build system type... " >&6; }
5609 if test "${ac_cv_build+set}" = set; then
5610   $as_echo_n "(cached) " >&6
5611 else
5612   ac_build_alias=$build_alias
5613 test "x$ac_build_alias" = x &&
5614   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5615 test "x$ac_build_alias" = x &&
5616   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5617 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5618    { (exit 1); exit 1; }; }
5619 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5620   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5621 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5622    { (exit 1); exit 1; }; }
5623
5624 fi
5625 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5626 $as_echo "$ac_cv_build" >&6; }
5627 case $ac_cv_build in
5628 *-*-*) ;;
5629 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5630 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5631    { (exit 1); exit 1; }; };;
5632 esac
5633 build=$ac_cv_build
5634 ac_save_IFS=$IFS; IFS='-'
5635 set x $ac_cv_build
5636 shift
5637 build_cpu=$1
5638 build_vendor=$2
5639 shift; shift
5640 # Remember, the first character of IFS is used to create $*,
5641 # except with old shells:
5642 build_os=$*
5643 IFS=$ac_save_IFS
5644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5645
5646
5647 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5648 $as_echo_n "checking host system type... " >&6; }
5649 if test "${ac_cv_host+set}" = set; then
5650   $as_echo_n "(cached) " >&6
5651 else
5652   if test "x$host_alias" = x; then
5653   ac_cv_host=$ac_cv_build
5654 else
5655   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5656     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5657 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5658    { (exit 1); exit 1; }; }
5659 fi
5660
5661 fi
5662 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5663 $as_echo "$ac_cv_host" >&6; }
5664 case $ac_cv_host in
5665 *-*-*) ;;
5666 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5667 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5668    { (exit 1); exit 1; }; };;
5669 esac
5670 host=$ac_cv_host
5671 ac_save_IFS=$IFS; IFS='-'
5672 set x $ac_cv_host
5673 shift
5674 host_cpu=$1
5675 host_vendor=$2
5676 shift; shift
5677 # Remember, the first character of IFS is used to create $*,
5678 # except with old shells:
5679 host_os=$*
5680 IFS=$ac_save_IFS
5681 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5682
5683
5684 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5686 if test "${ac_cv_path_SED+set}" = set; then
5687   $as_echo_n "(cached) " >&6
5688 else
5689             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5690      for ac_i in 1 2 3 4 5 6 7; do
5691        ac_script="$ac_script$as_nl$ac_script"
5692      done
5693      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5694      $as_unset ac_script || ac_script=
5695      if test -z "$SED"; then
5696   ac_path_SED_found=false
5697   # Loop through the user's path and test for each of PROGNAME-LIST
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_prog in sed gsed; do
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5706       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5707 # Check for GNU ac_path_SED and select it if it is found.
5708   # Check for GNU $ac_path_SED
5709 case `"$ac_path_SED" --version 2>&1` in
5710 *GNU*)
5711   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5712 *)
5713   ac_count=0
5714   $as_echo_n 0123456789 >"conftest.in"
5715   while :
5716   do
5717     cat "conftest.in" "conftest.in" >"conftest.tmp"
5718     mv "conftest.tmp" "conftest.in"
5719     cp "conftest.in" "conftest.nl"
5720     $as_echo '' >> "conftest.nl"
5721     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723     ac_count=`expr $ac_count + 1`
5724     if test $ac_count -gt ${ac_path_SED_max-0}; then
5725       # Best one so far, save it but keep looking for a better one
5726       ac_cv_path_SED="$ac_path_SED"
5727       ac_path_SED_max=$ac_count
5728     fi
5729     # 10*(2^10) chars as input seems more than enough
5730     test $ac_count -gt 10 && break
5731   done
5732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735       $ac_path_SED_found && break 3
5736     done
5737   done
5738 done
5739 IFS=$as_save_IFS
5740   if test -z "$ac_cv_path_SED"; then
5741     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5742 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5743    { (exit 1); exit 1; }; }
5744   fi
5745 else
5746   ac_cv_path_SED=$SED
5747 fi
5748
5749 fi
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5751 $as_echo "$ac_cv_path_SED" >&6; }
5752  SED="$ac_cv_path_SED"
5753   rm -f conftest.sed
5754
5755 test -z "$SED" && SED=sed
5756 Xsed="$SED -e 1s/^X//"
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5769 $as_echo_n "checking for fgrep... " >&6; }
5770 if test "${ac_cv_path_FGREP+set}" = set; then
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5774    then ac_cv_path_FGREP="$GREP -F"
5775    else
5776      if test -z "$FGREP"; then
5777   ac_path_FGREP_found=false
5778   # Loop through the user's path and test for each of PROGNAME-LIST
5779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_prog in fgrep; do
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5787       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5788 # Check for GNU ac_path_FGREP and select it if it is found.
5789   # Check for GNU $ac_path_FGREP
5790 case `"$ac_path_FGREP" --version 2>&1` in
5791 *GNU*)
5792   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5793 *)
5794   ac_count=0
5795   $as_echo_n 0123456789 >"conftest.in"
5796   while :
5797   do
5798     cat "conftest.in" "conftest.in" >"conftest.tmp"
5799     mv "conftest.tmp" "conftest.in"
5800     cp "conftest.in" "conftest.nl"
5801     $as_echo 'FGREP' >> "conftest.nl"
5802     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804     ac_count=`expr $ac_count + 1`
5805     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5806       # Best one so far, save it but keep looking for a better one
5807       ac_cv_path_FGREP="$ac_path_FGREP"
5808       ac_path_FGREP_max=$ac_count
5809     fi
5810     # 10*(2^10) chars as input seems more than enough
5811     test $ac_count -gt 10 && break
5812   done
5813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814 esac
5815
5816       $ac_path_FGREP_found && break 3
5817     done
5818   done
5819 done
5820 IFS=$as_save_IFS
5821   if test -z "$ac_cv_path_FGREP"; then
5822     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824    { (exit 1); exit 1; }; }
5825   fi
5826 else
5827   ac_cv_path_FGREP=$FGREP
5828 fi
5829
5830    fi
5831 fi
5832 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5833 $as_echo "$ac_cv_path_FGREP" >&6; }
5834  FGREP="$ac_cv_path_FGREP"
5835
5836
5837 test -z "$GREP" && GREP=grep
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 # Check whether --with-gnu-ld was given.
5858 if test "${with_gnu_ld+set}" = set; then
5859   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5860 else
5861   with_gnu_ld=no
5862 fi
5863
5864 ac_prog=ld
5865 if test "$GCC" = yes; then
5866   # Check if gcc -print-prog-name=ld gives a path.
5867   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5868 $as_echo_n "checking for ld used by $CC... " >&6; }
5869   case $host in
5870   *-*-mingw*)
5871     # gcc leaves a trailing carriage return which upsets mingw
5872     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5873   *)
5874     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5875   esac
5876   case $ac_prog in
5877     # Accept absolute paths.
5878     [\\/]* | ?:[\\/]*)
5879       re_direlt='/[^/][^/]*/\.\./'
5880       # Canonicalize the pathname of ld
5881       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5882       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5883         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5884       done
5885       test -z "$LD" && LD="$ac_prog"
5886       ;;
5887   "")
5888     # If it fails, then pretend we aren't using GCC.
5889     ac_prog=ld
5890     ;;
5891   *)
5892     # If it is relative, then search for the first ld in PATH.
5893     with_gnu_ld=unknown
5894     ;;
5895   esac
5896 elif test "$with_gnu_ld" = yes; then
5897   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5898 $as_echo_n "checking for GNU ld... " >&6; }
5899 else
5900   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5901 $as_echo_n "checking for non-GNU ld... " >&6; }
5902 fi
5903 if test "${lt_cv_path_LD+set}" = set; then
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if test -z "$LD"; then
5907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5908   for ac_dir in $PATH; do
5909     IFS="$lt_save_ifs"
5910     test -z "$ac_dir" && ac_dir=.
5911     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5912       lt_cv_path_LD="$ac_dir/$ac_prog"
5913       # Check to see if the program is GNU ld.  I'd rather use --version,
5914       # but apparently some variants of GNU ld only accept -v.
5915       # Break only if it was the GNU/non-GNU ld that we prefer.
5916       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5917       *GNU* | *'with BFD'*)
5918         test "$with_gnu_ld" != no && break
5919         ;;
5920       *)
5921         test "$with_gnu_ld" != yes && break
5922         ;;
5923       esac
5924     fi
5925   done
5926   IFS="$lt_save_ifs"
5927 else
5928   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5929 fi
5930 fi
5931
5932 LD="$lt_cv_path_LD"
5933 if test -n "$LD"; then
5934   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5935 $as_echo "$LD" >&6; }
5936 else
5937   { $as_echo "$as_me:$LINENO: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5941 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5942    { (exit 1); exit 1; }; }
5943 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5944 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5945 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5946   $as_echo_n "(cached) " >&6
5947 else
5948   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5949 case `$LD -v 2>&1 </dev/null` in
5950 *GNU* | *'with BFD'*)
5951   lt_cv_prog_gnu_ld=yes
5952   ;;
5953 *)
5954   lt_cv_prog_gnu_ld=no
5955   ;;
5956 esac
5957 fi
5958 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5959 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5960 with_gnu_ld=$lt_cv_prog_gnu_ld
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5971 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5972 if test "${lt_cv_path_NM+set}" = set; then
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -n "$NM"; then
5976   # Let the user override the test.
5977   lt_cv_path_NM="$NM"
5978 else
5979   lt_nm_to_check="${ac_tool_prefix}nm"
5980   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5981     lt_nm_to_check="$lt_nm_to_check nm"
5982   fi
5983   for lt_tmp_nm in $lt_nm_to_check; do
5984     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5986       IFS="$lt_save_ifs"
5987       test -z "$ac_dir" && ac_dir=.
5988       tmp_nm="$ac_dir/$lt_tmp_nm"
5989       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5990         # Check to see if the nm accepts a BSD-compat flag.
5991         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5992         #   nm: unknown option "B" ignored
5993         # Tru64's nm complains that /dev/null is an invalid object file
5994         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5995         */dev/null* | *'Invalid file or object type'*)
5996           lt_cv_path_NM="$tmp_nm -B"
5997           break
5998           ;;
5999         *)
6000           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6001           */dev/null*)
6002             lt_cv_path_NM="$tmp_nm -p"
6003             break
6004             ;;
6005           *)
6006             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6007             continue # so that we can try to find one that supports BSD flags
6008             ;;
6009           esac
6010           ;;
6011         esac
6012       fi
6013     done
6014     IFS="$lt_save_ifs"
6015   done
6016   : ${lt_cv_path_NM=no}
6017 fi
6018 fi
6019 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6020 $as_echo "$lt_cv_path_NM" >&6; }
6021 if test "$lt_cv_path_NM" != "no"; then
6022   NM="$lt_cv_path_NM"
6023 else
6024   # Didn't find any BSD compatible name lister, look for dumpbin.
6025   if test -n "$ac_tool_prefix"; then
6026   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6027   do
6028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6033   $as_echo_n "(cached) " >&6
6034 else
6035   if test -n "$DUMPBIN"; then
6036   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 DUMPBIN=$ac_cv_prog_DUMPBIN
6056 if test -n "$DUMPBIN"; then
6057   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6058 $as_echo "$DUMPBIN" >&6; }
6059 else
6060   { $as_echo "$as_me:$LINENO: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065     test -n "$DUMPBIN" && break
6066   done
6067 fi
6068 if test -z "$DUMPBIN"; then
6069   ac_ct_DUMPBIN=$DUMPBIN
6070   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6071 do
6072   # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$ac_ct_DUMPBIN"; then
6080   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087   for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6100 if test -n "$ac_ct_DUMPBIN"; then
6101   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6102 $as_echo "$ac_ct_DUMPBIN" >&6; }
6103 else
6104   { $as_echo "$as_me:$LINENO: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109   test -n "$ac_ct_DUMPBIN" && break
6110 done
6111
6112   if test "x$ac_ct_DUMPBIN" = x; then
6113     DUMPBIN=":"
6114   else
6115     case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121     DUMPBIN=$ac_ct_DUMPBIN
6122   fi
6123 fi
6124
6125
6126   if test "$DUMPBIN" != ":"; then
6127     NM="$DUMPBIN"
6128   fi
6129 fi
6130 test -z "$NM" && NM=nm
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6138 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6139 if test "${lt_cv_nm_interface+set}" = set; then
6140   $as_echo_n "(cached) " >&6
6141 else
6142   lt_cv_nm_interface="BSD nm"
6143   echo "int some_variable = 0;" > conftest.$ac_ext
6144   (eval echo "\"\$as_me:6144: $ac_compile\"" >&5)
6145   (eval "$ac_compile" 2>conftest.err)
6146   cat conftest.err >&5
6147   (eval echo "\"\$as_me:6147: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6148   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6149   cat conftest.err >&5
6150   (eval echo "\"\$as_me:6150: output\"" >&5)
6151   cat conftest.out >&5
6152   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6153     lt_cv_nm_interface="MS dumpbin"
6154   fi
6155   rm -f conftest*
6156 fi
6157 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6158 $as_echo "$lt_cv_nm_interface" >&6; }
6159
6160 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6161 $as_echo_n "checking whether ln -s works... " >&6; }
6162 LN_S=$as_ln_s
6163 if test "$LN_S" = "ln -s"; then
6164   { $as_echo "$as_me:$LINENO: result: yes" >&5
6165 $as_echo "yes" >&6; }
6166 else
6167   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6168 $as_echo "no, using $LN_S" >&6; }
6169 fi
6170
6171 # find the maximum length of command line arguments
6172 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6173 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6174 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6175   $as_echo_n "(cached) " >&6
6176 else
6177     i=0
6178   teststring="ABCD"
6179
6180   case $build_os in
6181   msdosdjgpp*)
6182     # On DJGPP, this test can blow up pretty badly due to problems in libc
6183     # (any single argument exceeding 2000 bytes causes a buffer overrun
6184     # during glob expansion).  Even if it were fixed, the result of this
6185     # check would be larger than it should be.
6186     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6187     ;;
6188
6189   gnu*)
6190     # Under GNU Hurd, this test is not required because there is
6191     # no limit to the length of command line arguments.
6192     # Libtool will interpret -1 as no limit whatsoever
6193     lt_cv_sys_max_cmd_len=-1;
6194     ;;
6195
6196   cygwin* | mingw* | cegcc*)
6197     # On Win9x/ME, this test blows up -- it succeeds, but takes
6198     # about 5 minutes as the teststring grows exponentially.
6199     # Worse, since 9x/ME are not pre-emptively multitasking,
6200     # you end up with a "frozen" computer, even though with patience
6201     # the test eventually succeeds (with a max line length of 256k).
6202     # Instead, let's just punt: use the minimum linelength reported by
6203     # all of the supported platforms: 8192 (on NT/2K/XP).
6204     lt_cv_sys_max_cmd_len=8192;
6205     ;;
6206
6207   amigaos*)
6208     # On AmigaOS with pdksh, this test takes hours, literally.
6209     # So we just punt and use a minimum line length of 8192.
6210     lt_cv_sys_max_cmd_len=8192;
6211     ;;
6212
6213   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6214     # This has been around since 386BSD, at least.  Likely further.
6215     if test -x /sbin/sysctl; then
6216       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6217     elif test -x /usr/sbin/sysctl; then
6218       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6219     else
6220       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6221     fi
6222     # And add a safety zone
6223     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6224     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6225     ;;
6226
6227   interix*)
6228     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6229     lt_cv_sys_max_cmd_len=196608
6230     ;;
6231
6232   osf*)
6233     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6234     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6235     # nice to cause kernel panics so lets avoid the loop below.
6236     # First set a reasonable default.
6237     lt_cv_sys_max_cmd_len=16384
6238     #
6239     if test -x /sbin/sysconfig; then
6240       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6241         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6242       esac
6243     fi
6244     ;;
6245   sco3.2v5*)
6246     lt_cv_sys_max_cmd_len=102400
6247     ;;
6248   sysv5* | sco5v6* | sysv4.2uw2*)
6249     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6250     if test -n "$kargmax"; then
6251       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6252     else
6253       lt_cv_sys_max_cmd_len=32768
6254     fi
6255     ;;
6256   *)
6257     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6258     if test -n "$lt_cv_sys_max_cmd_len"; then
6259       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6260       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6261     else
6262       # Make teststring a little bigger before we do anything with it.
6263       # a 1K string should be a reasonable start.
6264       for i in 1 2 3 4 5 6 7 8 ; do
6265         teststring=$teststring$teststring
6266       done
6267       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6268       # If test is not a shell built-in, we'll probably end up computing a
6269       # maximum length that is only half of the actual maximum length, but
6270       # we can't tell.
6271       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6272                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6273               test $i != 17 # 1/2 MB should be enough
6274       do
6275         i=`expr $i + 1`
6276         teststring=$teststring$teststring
6277       done
6278       # Only check the string length outside the loop.
6279       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6280       teststring=
6281       # Add a significant safety factor because C++ compilers can tack on
6282       # massive amounts of additional arguments before passing them to the
6283       # linker.  It appears as though 1/2 is a usable value.
6284       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6285     fi
6286     ;;
6287   esac
6288
6289 fi
6290
6291 if test -n $lt_cv_sys_max_cmd_len ; then
6292   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6293 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6294 else
6295   { $as_echo "$as_me:$LINENO: result: none" >&5
6296 $as_echo "none" >&6; }
6297 fi
6298 max_cmd_len=$lt_cv_sys_max_cmd_len
6299
6300
6301
6302
6303
6304
6305 : ${CP="cp -f"}
6306 : ${MV="mv -f"}
6307 : ${RM="rm -f"}
6308
6309 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6310 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6311 # Try some XSI features
6312 xsi_shell=no
6313 ( _lt_dummy="a/b/c"
6314   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6315       = c,a/b,, \
6316     && eval 'test $(( 1 + 1 )) -eq 2 \
6317     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6318   && xsi_shell=yes
6319 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6320 $as_echo "$xsi_shell" >&6; }
6321
6322
6323 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6324 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6325 lt_shell_append=no
6326 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6327     >/dev/null 2>&1 \
6328   && lt_shell_append=yes
6329 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6330 $as_echo "$lt_shell_append" >&6; }
6331
6332
6333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6334   lt_unset=unset
6335 else
6336   lt_unset=false
6337 fi
6338
6339
6340
6341
6342
6343 # test EBCDIC or ASCII
6344 case `echo X|tr X '\101'` in
6345  A) # ASCII based system
6346     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6347   lt_SP2NL='tr \040 \012'
6348   lt_NL2SP='tr \015\012 \040\040'
6349   ;;
6350  *) # EBCDIC based system
6351   lt_SP2NL='tr \100 \n'
6352   lt_NL2SP='tr \r\n \100\100'
6353   ;;
6354 esac
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6365 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6366 if test "${lt_cv_ld_reload_flag+set}" = set; then
6367   $as_echo_n "(cached) " >&6
6368 else
6369   lt_cv_ld_reload_flag='-r'
6370 fi
6371 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6372 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6373 reload_flag=$lt_cv_ld_reload_flag
6374 case $reload_flag in
6375 "" | " "*) ;;
6376 *) reload_flag=" $reload_flag" ;;
6377 esac
6378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6379 case $host_os in
6380   darwin*)
6381     if test "$GCC" = yes; then
6382       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6383     else
6384       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6385     fi
6386     ;;
6387 esac
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 if test -n "$ac_tool_prefix"; then
6398   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$OBJDUMP"; then
6406   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413   for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 OBJDUMP=$ac_cv_prog_OBJDUMP
6426 if test -n "$OBJDUMP"; then
6427   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6428 $as_echo "$OBJDUMP" >&6; }
6429 else
6430   { $as_echo "$as_me:$LINENO: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_OBJDUMP"; then
6437   ac_ct_OBJDUMP=$OBJDUMP
6438   # Extract the first word of "objdump", so it can be a program name with args.
6439 set dummy objdump; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$ac_ct_OBJDUMP"; then
6446   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6466 if test -n "$ac_ct_OBJDUMP"; then
6467   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6468 $as_echo "$ac_ct_OBJDUMP" >&6; }
6469 else
6470   { $as_echo "$as_me:$LINENO: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474   if test "x$ac_ct_OBJDUMP" = x; then
6475     OBJDUMP="false"
6476   else
6477     case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483     OBJDUMP=$ac_ct_OBJDUMP
6484   fi
6485 else
6486   OBJDUMP="$ac_cv_prog_OBJDUMP"
6487 fi
6488
6489 test -z "$OBJDUMP" && OBJDUMP=objdump
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6500 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6501 if test "${lt_cv_deplibs_check_method+set}" = set; then
6502   $as_echo_n "(cached) " >&6
6503 else
6504   lt_cv_file_magic_cmd='$MAGIC_CMD'
6505 lt_cv_file_magic_test_file=
6506 lt_cv_deplibs_check_method='unknown'
6507 # Need to set the preceding variable on all platforms that support
6508 # interlibrary dependencies.
6509 # 'none' -- dependencies not supported.
6510 # `unknown' -- same as none, but documents that we really don't know.
6511 # 'pass_all' -- all dependencies passed with no checks.
6512 # 'test_compile' -- check by making test program.
6513 # 'file_magic [[regex]]' -- check by looking for files in library path
6514 # which responds to the $file_magic_cmd with a given extended regex.
6515 # If you have `file' or equivalent on your system and you're not sure
6516 # whether `pass_all' will *always* work, you probably want this one.
6517
6518 case $host_os in
6519 aix[4-9]*)
6520   lt_cv_deplibs_check_method=pass_all
6521   ;;
6522
6523 beos*)
6524   lt_cv_deplibs_check_method=pass_all
6525   ;;
6526
6527 bsdi[45]*)
6528   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6529   lt_cv_file_magic_cmd='/usr/bin/file -L'
6530   lt_cv_file_magic_test_file=/shlib/libc.so
6531   ;;
6532
6533 cygwin*)
6534   # func_win32_libid is a shell function defined in ltmain.sh
6535   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536   lt_cv_file_magic_cmd='func_win32_libid'
6537   ;;
6538
6539 mingw* | pw32*)
6540   # Base MSYS/MinGW do not provide the 'file' command needed by
6541   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6542   # unless we find 'file', for example because we are cross-compiling.
6543   if ( file / ) >/dev/null 2>&1; then
6544     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545     lt_cv_file_magic_cmd='func_win32_libid'
6546   else
6547     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6548     lt_cv_file_magic_cmd='$OBJDUMP -f'
6549   fi
6550   ;;
6551
6552 cegcc)
6553   # use the weaker test based on 'objdump'. See mingw*.
6554   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6555   lt_cv_file_magic_cmd='$OBJDUMP -f'
6556   ;;
6557
6558 darwin* | rhapsody*)
6559   lt_cv_deplibs_check_method=pass_all
6560   ;;
6561
6562 freebsd* | dragonfly*)
6563   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6564     case $host_cpu in
6565     i*86 )
6566       # Not sure whether the presence of OpenBSD here was a mistake.
6567       # Let's accept both of them until this is cleared up.
6568       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6569       lt_cv_file_magic_cmd=/usr/bin/file
6570       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6571       ;;
6572     esac
6573   else
6574     lt_cv_deplibs_check_method=pass_all
6575   fi
6576   ;;
6577
6578 gnu*)
6579   lt_cv_deplibs_check_method=pass_all
6580   ;;
6581
6582 hpux10.20* | hpux11*)
6583   lt_cv_file_magic_cmd=/usr/bin/file
6584   case $host_cpu in
6585   ia64*)
6586     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6587     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6588     ;;
6589   hppa*64*)
6590     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]'
6591     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6592     ;;
6593   *)
6594     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6595     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6596     ;;
6597   esac
6598   ;;
6599
6600 interix[3-9]*)
6601   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6602   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6603   ;;
6604
6605 irix5* | irix6* | nonstopux*)
6606   case $LD in
6607   *-32|*"-32 ") libmagic=32-bit;;
6608   *-n32|*"-n32 ") libmagic=N32;;
6609   *-64|*"-64 ") libmagic=64-bit;;
6610   *) libmagic=never-match;;
6611   esac
6612   lt_cv_deplibs_check_method=pass_all
6613   ;;
6614
6615 # This must be Linux ELF.
6616 linux* | k*bsd*-gnu)
6617   lt_cv_deplibs_check_method=pass_all
6618   ;;
6619
6620 netbsd*)
6621   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6623   else
6624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6625   fi
6626   ;;
6627
6628 newos6*)
6629   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6630   lt_cv_file_magic_cmd=/usr/bin/file
6631   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6632   ;;
6633
6634 *nto* | *qnx*)
6635   lt_cv_deplibs_check_method=pass_all
6636   ;;
6637
6638 openbsd*)
6639   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6641   else
6642     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6643   fi
6644   ;;
6645
6646 osf3* | osf4* | osf5*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649
6650 rdos*)
6651   lt_cv_deplibs_check_method=pass_all
6652   ;;
6653
6654 solaris*)
6655   lt_cv_deplibs_check_method=pass_all
6656   ;;
6657
6658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6659   lt_cv_deplibs_check_method=pass_all
6660   ;;
6661
6662 sysv4 | sysv4.3*)
6663   case $host_vendor in
6664   motorola)
6665     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]'
6666     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6667     ;;
6668   ncr)
6669     lt_cv_deplibs_check_method=pass_all
6670     ;;
6671   sequent)
6672     lt_cv_file_magic_cmd='/bin/file'
6673     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6674     ;;
6675   sni)
6676     lt_cv_file_magic_cmd='/bin/file'
6677     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6678     lt_cv_file_magic_test_file=/lib/libc.so
6679     ;;
6680   siemens)
6681     lt_cv_deplibs_check_method=pass_all
6682     ;;
6683   pc)
6684     lt_cv_deplibs_check_method=pass_all
6685     ;;
6686   esac
6687   ;;
6688
6689 tpf*)
6690   lt_cv_deplibs_check_method=pass_all
6691   ;;
6692 esac
6693
6694 fi
6695 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6697 file_magic_cmd=$lt_cv_file_magic_cmd
6698 deplibs_check_method=$lt_cv_deplibs_check_method
6699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 if test -n "$ac_tool_prefix"; then
6713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}ar; ac_word=$2
6715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_AR+set}" = set; then
6718   $as_echo_n "(cached) " >&6
6719 else
6720   if test -n "$AR"; then
6721   ac_cv_prog_AR="$AR" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_AR="${ac_tool_prefix}ar"
6731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 AR=$ac_cv_prog_AR
6741 if test -n "$AR"; then
6742   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743 $as_echo "$AR" >&6; }
6744 else
6745   { $as_echo "$as_me:$LINENO: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_AR"; then
6752   ac_ct_AR=$AR
6753   # Extract the first word of "ar", so it can be a program name with args.
6754 set dummy ar; ac_word=$2
6755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758   $as_echo_n "(cached) " >&6
6759 else
6760   if test -n "$ac_ct_AR"; then
6761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768   for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_prog_ac_ct_AR="ar"
6771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781 if test -n "$ac_ct_AR"; then
6782   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783 $as_echo "$ac_ct_AR" >&6; }
6784 else
6785   { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789   if test "x$ac_ct_AR" = x; then
6790     AR="false"
6791   else
6792     case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798     AR=$ac_ct_AR
6799   fi
6800 else
6801   AR="$ac_cv_prog_AR"
6802 fi
6803
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 if test -n "$ac_tool_prefix"; then
6818   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}strip; ac_word=$2
6820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_STRIP+set}" = set; then
6823   $as_echo_n "(cached) " >&6
6824 else
6825   if test -n "$STRIP"; then
6826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   test -z "$as_dir" && as_dir=.
6833   for ac_exec_ext in '' $ac_executable_extensions; do
6834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837     break 2
6838   fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 STRIP=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6848 $as_echo "$STRIP" >&6; }
6849 else
6850   { $as_echo "$as_me:$LINENO: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_STRIP"; then
6857   ac_ct_STRIP=$STRIP
6858   # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip; ac_word=$2
6860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863   $as_echo_n "(cached) " >&6
6864 else
6865   if test -n "$ac_ct_STRIP"; then
6866   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873   for ac_exec_ext in '' $ac_executable_extensions; do
6874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875     ac_cv_prog_ac_ct_STRIP="strip"
6876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888 $as_echo "$ac_ct_STRIP" >&6; }
6889 else
6890   { $as_echo "$as_me:$LINENO: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894   if test "x$ac_ct_STRIP" = x; then
6895     STRIP=":"
6896   else
6897     case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     STRIP=$ac_ct_STRIP
6904   fi
6905 else
6906   STRIP="$ac_cv_prog_STRIP"
6907 fi
6908
6909 test -z "$STRIP" && STRIP=:
6910
6911
6912
6913
6914
6915
6916 if test -n "$ac_tool_prefix"; then
6917   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_prog_RANLIB+set}" = set; then
6922   $as_echo_n "(cached) " >&6
6923 else
6924   if test -n "$RANLIB"; then
6925   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932   for ac_exec_ext in '' $ac_executable_extensions; do
6933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 RANLIB=$ac_cv_prog_RANLIB
6945 if test -n "$RANLIB"; then
6946   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6947 $as_echo "$RANLIB" >&6; }
6948 else
6949   { $as_echo "$as_me:$LINENO: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953
6954 fi
6955 if test -z "$ac_cv_prog_RANLIB"; then
6956   ac_ct_RANLIB=$RANLIB
6957   # Extract the first word of "ranlib", so it can be a program name with args.
6958 set dummy ranlib; ac_word=$2
6959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6962   $as_echo_n "(cached) " >&6
6963 else
6964   if test -n "$ac_ct_RANLIB"; then
6965   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972   for ac_exec_ext in '' $ac_executable_extensions; do
6973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974     ac_cv_prog_ac_ct_RANLIB="ranlib"
6975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976     break 2
6977   fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6985 if test -n "$ac_ct_RANLIB"; then
6986   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6987 $as_echo "$ac_ct_RANLIB" >&6; }
6988 else
6989   { $as_echo "$as_me:$LINENO: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993   if test "x$ac_ct_RANLIB" = x; then
6994     RANLIB=":"
6995   else
6996     case $cross_compiling:$ac_tool_warned in
6997 yes:)
6998 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7001 esac
7002     RANLIB=$ac_ct_RANLIB
7003   fi
7004 else
7005   RANLIB="$ac_cv_prog_RANLIB"
7006 fi
7007
7008 test -z "$RANLIB" && RANLIB=:
7009
7010
7011
7012
7013
7014
7015 # Determine commands to create old-style static archives.
7016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7017 old_postinstall_cmds='chmod 644 $oldlib'
7018 old_postuninstall_cmds=
7019
7020 if test -n "$RANLIB"; then
7021   case $host_os in
7022   openbsd*)
7023     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7024     ;;
7025   *)
7026     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7027     ;;
7028   esac
7029   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7030 fi
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
7062
7063
7064
7065 # If no C compiler was specified, use CC.
7066 LTCC=${LTCC-"$CC"}
7067
7068 # If no C compiler flags were specified, use CFLAGS.
7069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7070
7071 # Allow CC to be a program name with arguments.
7072 compiler=$CC
7073
7074
7075 # Check for command to grab the raw symbol name followed by C symbol from nm.
7076 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7077 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7078 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7079   $as_echo_n "(cached) " >&6
7080 else
7081
7082 # These are sane defaults that work on at least a few old systems.
7083 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7084
7085 # Character class describing NM global symbol codes.
7086 symcode='[BCDEGRST]'
7087
7088 # Regexp to match symbols that can be accessed directly from C.
7089 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7090
7091 # Define system-specific variables.
7092 case $host_os in
7093 aix*)
7094   symcode='[BCDT]'
7095   ;;
7096 cygwin* | mingw* | pw32* | cegcc*)
7097   symcode='[ABCDGISTW]'
7098   ;;
7099 hpux*)
7100   if test "$host_cpu" = ia64; then
7101     symcode='[ABCDEGRST]'
7102   fi
7103   ;;
7104 irix* | nonstopux*)
7105   symcode='[BCDEGRST]'
7106   ;;
7107 osf*)
7108   symcode='[BCDEGQRST]'
7109   ;;
7110 solaris*)
7111   symcode='[BDRT]'
7112   ;;
7113 sco3.2v5*)
7114   symcode='[DT]'
7115   ;;
7116 sysv4.2uw2*)
7117   symcode='[DT]'
7118   ;;
7119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7120   symcode='[ABDT]'
7121   ;;
7122 sysv4)
7123   symcode='[DFNSTU]'
7124   ;;
7125 esac
7126
7127 # If we're using GNU nm, then use its standard symbol codes.
7128 case `$NM -V 2>&1` in
7129 *GNU* | *'with BFD'*)
7130   symcode='[ABCDGIRSTW]' ;;
7131 esac
7132
7133 # Transform an extracted symbol line into a proper C declaration.
7134 # Some systems (esp. on ia64) link data and code symbols differently,
7135 # so use this general approach.
7136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7137
7138 # Transform an extracted symbol line into symbol name and symbol address
7139 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7140 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'"
7141
7142 # Handle CRLF in mingw tool chain
7143 opt_cr=
7144 case $build_os in
7145 mingw*)
7146   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7147   ;;
7148 esac
7149
7150 # Try without a prefix underscore, then with it.
7151 for ac_symprfx in "" "_"; do
7152
7153   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7154   symxfrm="\\1 $ac_symprfx\\2 \\2"
7155
7156   # Write the raw and C identifiers.
7157   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7158     # Fake it for dumpbin and say T for any non-static function
7159     # and D for any global variable.
7160     # Also find C++ and __fastcall symbols from MSVC++,
7161     # which start with @ or ?.
7162     lt_cv_sys_global_symbol_pipe="$AWK '"\
7163 "     {last_section=section; section=\$ 3};"\
7164 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7165 "     \$ 0!~/External *\|/{next};"\
7166 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7167 "     {if(hide[section]) next};"\
7168 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7169 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7170 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7171 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7172 "     ' prfx=^$ac_symprfx"
7173   else
7174     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7175   fi
7176
7177   # Check to see that the pipe works correctly.
7178   pipe_works=no
7179
7180   rm -f conftest*
7181   cat > conftest.$ac_ext <<_LT_EOF
7182 #ifdef __cplusplus
7183 extern "C" {
7184 #endif
7185 char nm_test_var;
7186 void nm_test_func(void);
7187 void nm_test_func(void){}
7188 #ifdef __cplusplus
7189 }
7190 #endif
7191 int main(){nm_test_var='a';nm_test_func();return(0);}
7192 _LT_EOF
7193
7194   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195   (eval $ac_compile) 2>&5
7196   ac_status=$?
7197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; then
7199     # Now try to grab the symbols.
7200     nlist=conftest.nm
7201     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7202   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7203   ac_status=$?
7204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } && test -s "$nlist"; then
7206       # Try sorting and uniquifying the output.
7207       if sort "$nlist" | uniq > "$nlist"T; then
7208         mv -f "$nlist"T "$nlist"
7209       else
7210         rm -f "$nlist"T
7211       fi
7212
7213       # Make sure that we snagged all the symbols we need.
7214       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7215         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7216           cat <<_LT_EOF > conftest.$ac_ext
7217 #ifdef __cplusplus
7218 extern "C" {
7219 #endif
7220
7221 _LT_EOF
7222           # Now generate the symbol file.
7223           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7224
7225           cat <<_LT_EOF >> conftest.$ac_ext
7226
7227 /* The mapping between symbol names and symbols.  */
7228 const struct {
7229   const char *name;
7230   void       *address;
7231 }
7232 lt__PROGRAM__LTX_preloaded_symbols[] =
7233 {
7234   { "@PROGRAM@", (void *) 0 },
7235 _LT_EOF
7236           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7237           cat <<\_LT_EOF >> conftest.$ac_ext
7238   {0, (void *) 0}
7239 };
7240
7241 /* This works around a problem in FreeBSD linker */
7242 #ifdef FREEBSD_WORKAROUND
7243 static const void *lt_preloaded_setup() {
7244   return lt__PROGRAM__LTX_preloaded_symbols;
7245 }
7246 #endif
7247
7248 #ifdef __cplusplus
7249 }
7250 #endif
7251 _LT_EOF
7252           # Now try linking the two files.
7253           mv conftest.$ac_objext conftstm.$ac_objext
7254           lt_save_LIBS="$LIBS"
7255           lt_save_CFLAGS="$CFLAGS"
7256           LIBS="conftstm.$ac_objext"
7257           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7258           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259   (eval $ac_link) 2>&5
7260   ac_status=$?
7261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7263             pipe_works=yes
7264           fi
7265           LIBS="$lt_save_LIBS"
7266           CFLAGS="$lt_save_CFLAGS"
7267         else
7268           echo "cannot find nm_test_func in $nlist" >&5
7269         fi
7270       else
7271         echo "cannot find nm_test_var in $nlist" >&5
7272       fi
7273     else
7274       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7275     fi
7276   else
7277     echo "$progname: failed program was:" >&5
7278     cat conftest.$ac_ext >&5
7279   fi
7280   rm -rf conftest* conftst*
7281
7282   # Do not use the global_symbol_pipe unless it works.
7283   if test "$pipe_works" = yes; then
7284     break
7285   else
7286     lt_cv_sys_global_symbol_pipe=
7287   fi
7288 done
7289
7290 fi
7291
7292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7293   lt_cv_sys_global_symbol_to_cdecl=
7294 fi
7295 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7296   { $as_echo "$as_me:$LINENO: result: failed" >&5
7297 $as_echo "failed" >&6; }
7298 else
7299   { $as_echo "$as_me:$LINENO: result: ok" >&5
7300 $as_echo "ok" >&6; }
7301 fi
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 # Check whether --enable-libtool-lock was given.
7325 if test "${enable_libtool_lock+set}" = set; then
7326   enableval=$enable_libtool_lock;
7327 fi
7328
7329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7330
7331 # Some flags need to be propagated to the compiler or linker for good
7332 # libtool support.
7333 case $host in
7334 ia64-*-hpux*)
7335   # Find out which ABI we are using.
7336   echo 'int i;' > conftest.$ac_ext
7337   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338   (eval $ac_compile) 2>&5
7339   ac_status=$?
7340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); }; then
7342     case `/usr/bin/file conftest.$ac_objext` in
7343       *ELF-32*)
7344         HPUX_IA64_MODE="32"
7345         ;;
7346       *ELF-64*)
7347         HPUX_IA64_MODE="64"
7348         ;;
7349     esac
7350   fi
7351   rm -rf conftest*
7352   ;;
7353 *-*-irix6*)
7354   # Find out which ABI we are using.
7355   echo '#line 7355 "configure"' > conftest.$ac_ext
7356   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357   (eval $ac_compile) 2>&5
7358   ac_status=$?
7359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; then
7361     if test "$lt_cv_prog_gnu_ld" = yes; then
7362       case `/usr/bin/file conftest.$ac_objext` in
7363         *32-bit*)
7364           LD="${LD-ld} -melf32bsmip"
7365           ;;
7366         *N32*)
7367           LD="${LD-ld} -melf32bmipn32"
7368           ;;
7369         *64-bit*)
7370           LD="${LD-ld} -melf64bmip"
7371         ;;
7372       esac
7373     else
7374       case `/usr/bin/file conftest.$ac_objext` in
7375         *32-bit*)
7376           LD="${LD-ld} -32"
7377           ;;
7378         *N32*)
7379           LD="${LD-ld} -n32"
7380           ;;
7381         *64-bit*)
7382           LD="${LD-ld} -64"
7383           ;;
7384       esac
7385     fi
7386   fi
7387   rm -rf conftest*
7388   ;;
7389
7390 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7391 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7392   # Find out which ABI we are using.
7393   echo 'int i;' > conftest.$ac_ext
7394   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395   (eval $ac_compile) 2>&5
7396   ac_status=$?
7397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); }; then
7399     case `/usr/bin/file conftest.o` in
7400       *32-bit*)
7401         case $host in
7402           x86_64-*kfreebsd*-gnu)
7403             LD="${LD-ld} -m elf_i386_fbsd"
7404             ;;
7405           x86_64-*linux*)
7406             LD="${LD-ld} -m elf_i386"
7407             ;;
7408           ppc64-*linux*|powerpc64-*linux*)
7409             LD="${LD-ld} -m elf32ppclinux"
7410             ;;
7411           s390x-*linux*)
7412             LD="${LD-ld} -m elf_s390"
7413             ;;
7414           sparc64-*linux*)
7415             LD="${LD-ld} -m elf32_sparc"
7416             ;;
7417         esac
7418         ;;
7419       *64-bit*)
7420         case $host in
7421           x86_64-*kfreebsd*-gnu)
7422             LD="${LD-ld} -m elf_x86_64_fbsd"
7423             ;;
7424           x86_64-*linux*)
7425             LD="${LD-ld} -m elf_x86_64"
7426             ;;
7427           ppc*-*linux*|powerpc*-*linux*)
7428             LD="${LD-ld} -m elf64ppc"
7429             ;;
7430           s390*-*linux*|s390*-*tpf*)
7431             LD="${LD-ld} -m elf64_s390"
7432             ;;
7433           sparc*-*linux*)
7434             LD="${LD-ld} -m elf64_sparc"
7435             ;;
7436         esac
7437         ;;
7438     esac
7439   fi
7440   rm -rf conftest*
7441   ;;
7442
7443 *-*-sco3.2v5*)
7444   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445   SAVE_CFLAGS="$CFLAGS"
7446   CFLAGS="$CFLAGS -belf"
7447   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7448 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7449 if test "${lt_cv_cc_needs_belf+set}" = set; then
7450   $as_echo_n "(cached) " >&6
7451 else
7452   ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458      cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7475 case "(($ac_try" in
7476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477   *) ac_try_echo=$ac_try;;
7478 esac
7479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7480 $as_echo "$ac_try_echo") >&5
7481   (eval "$ac_link") 2>conftest.er1
7482   ac_status=$?
7483   grep -v '^ *+' conftest.er1 >conftest.err
7484   rm -f conftest.er1
7485   cat conftest.err >&5
7486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); } && {
7488          test -z "$ac_c_werror_flag" ||
7489          test ! -s conftest.err
7490        } && test -s conftest$ac_exeext && {
7491          test "$cross_compiling" = yes ||
7492          $as_test_x conftest$ac_exeext
7493        }; then
7494   lt_cv_cc_needs_belf=yes
7495 else
7496   $as_echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499         lt_cv_cc_needs_belf=no
7500 fi
7501
7502 rm -rf conftest.dSYM
7503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7504       conftest$ac_exeext conftest.$ac_ext
7505      ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511 fi
7512 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7513 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7514   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7515     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7516     CFLAGS="$SAVE_CFLAGS"
7517   fi
7518   ;;
7519 sparc*-*solaris*)
7520   # Find out which ABI we are using.
7521   echo 'int i;' > conftest.$ac_ext
7522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523   (eval $ac_compile) 2>&5
7524   ac_status=$?
7525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; then
7527     case `/usr/bin/file conftest.o` in
7528     *64-bit*)
7529       case $lt_cv_prog_gnu_ld in
7530       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7531       *)
7532         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7533           LD="${LD-ld} -64"
7534         fi
7535         ;;
7536       esac
7537       ;;
7538     esac
7539   fi
7540   rm -rf conftest*
7541   ;;
7542 esac
7543
7544 need_locks="$enable_libtool_lock"
7545
7546
7547   case $host_os in
7548     rhapsody* | darwin*)
7549     if test -n "$ac_tool_prefix"; then
7550   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$DSYMUTIL"; then
7558   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7568     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7578 if test -n "$DSYMUTIL"; then
7579   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7580 $as_echo "$DSYMUTIL" >&6; }
7581 else
7582   { $as_echo "$as_me:$LINENO: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586
7587 fi
7588 if test -z "$ac_cv_prog_DSYMUTIL"; then
7589   ac_ct_DSYMUTIL=$DSYMUTIL
7590   # Extract the first word of "dsymutil", so it can be a program name with args.
7591 set dummy dsymutil; ac_word=$2
7592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7595   $as_echo_n "(cached) " >&6
7596 else
7597   if test -n "$ac_ct_DSYMUTIL"; then
7598   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7618 if test -n "$ac_ct_DSYMUTIL"; then
7619   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7620 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7621 else
7622   { $as_echo "$as_me:$LINENO: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626   if test "x$ac_ct_DSYMUTIL" = x; then
7627     DSYMUTIL=":"
7628   else
7629     case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635     DSYMUTIL=$ac_ct_DSYMUTIL
7636   fi
7637 else
7638   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7639 fi
7640
7641     if test -n "$ac_tool_prefix"; then
7642   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7647   $as_echo_n "(cached) " >&6
7648 else
7649   if test -n "$NMEDIT"; then
7650   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657   for ac_exec_ext in '' $ac_executable_extensions; do
7658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 NMEDIT=$ac_cv_prog_NMEDIT
7670 if test -n "$NMEDIT"; then
7671   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7672 $as_echo "$NMEDIT" >&6; }
7673 else
7674   { $as_echo "$as_me:$LINENO: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679 fi
7680 if test -z "$ac_cv_prog_NMEDIT"; then
7681   ac_ct_NMEDIT=$NMEDIT
7682   # Extract the first word of "nmedit", so it can be a program name with args.
7683 set dummy nmedit; ac_word=$2
7684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -n "$ac_ct_NMEDIT"; then
7690   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7710 if test -n "$ac_ct_NMEDIT"; then
7711   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7712 $as_echo "$ac_ct_NMEDIT" >&6; }
7713 else
7714   { $as_echo "$as_me:$LINENO: result: no" >&5
7715 $as_echo "no" >&6; }
7716 fi
7717
7718   if test "x$ac_ct_NMEDIT" = x; then
7719     NMEDIT=":"
7720   else
7721     case $cross_compiling:$ac_tool_warned in
7722 yes:)
7723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725 ac_tool_warned=yes ;;
7726 esac
7727     NMEDIT=$ac_ct_NMEDIT
7728   fi
7729 else
7730   NMEDIT="$ac_cv_prog_NMEDIT"
7731 fi
7732
7733     if test -n "$ac_tool_prefix"; then
7734   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7735 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if test "${ac_cv_prog_LIPO+set}" = set; then
7739   $as_echo_n "(cached) " >&6
7740 else
7741   if test -n "$LIPO"; then
7742   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749   for ac_exec_ext in '' $ac_executable_extensions; do
7750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7751     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 LIPO=$ac_cv_prog_LIPO
7762 if test -n "$LIPO"; then
7763   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7764 $as_echo "$LIPO" >&6; }
7765 else
7766   { $as_echo "$as_me:$LINENO: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770
7771 fi
7772 if test -z "$ac_cv_prog_LIPO"; then
7773   ac_ct_LIPO=$LIPO
7774   # Extract the first word of "lipo", so it can be a program name with args.
7775 set dummy lipo; ac_word=$2
7776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$ac_ct_LIPO"; then
7782   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_prog_ac_ct_LIPO="lipo"
7792     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7802 if test -n "$ac_ct_LIPO"; then
7803   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7804 $as_echo "$ac_ct_LIPO" >&6; }
7805 else
7806   { $as_echo "$as_me:$LINENO: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810   if test "x$ac_ct_LIPO" = x; then
7811     LIPO=":"
7812   else
7813     case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819     LIPO=$ac_ct_LIPO
7820   fi
7821 else
7822   LIPO="$ac_cv_prog_LIPO"
7823 fi
7824
7825     if test -n "$ac_tool_prefix"; then
7826   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}otool; ac_word=$2
7828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_OTOOL+set}" = set; then
7831   $as_echo_n "(cached) " >&6
7832 else
7833   if test -n "$OTOOL"; then
7834   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841   for ac_exec_ext in '' $ac_executable_extensions; do
7842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 OTOOL=$ac_cv_prog_OTOOL
7854 if test -n "$OTOOL"; then
7855   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7856 $as_echo "$OTOOL" >&6; }
7857 else
7858   { $as_echo "$as_me:$LINENO: result: no" >&5
7859 $as_echo "no" >&6; }
7860 fi
7861
7862
7863 fi
7864 if test -z "$ac_cv_prog_OTOOL"; then
7865   ac_ct_OTOOL=$OTOOL
7866   # Extract the first word of "otool", so it can be a program name with args.
7867 set dummy otool; ac_word=$2
7868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7871   $as_echo_n "(cached) " >&6
7872 else
7873   if test -n "$ac_ct_OTOOL"; then
7874   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   for ac_exec_ext in '' $ac_executable_extensions; do
7882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883     ac_cv_prog_ac_ct_OTOOL="otool"
7884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7894 if test -n "$ac_ct_OTOOL"; then
7895   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7896 $as_echo "$ac_ct_OTOOL" >&6; }
7897 else
7898   { $as_echo "$as_me:$LINENO: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902   if test "x$ac_ct_OTOOL" = x; then
7903     OTOOL=":"
7904   else
7905     case $cross_compiling:$ac_tool_warned in
7906 yes:)
7907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned=yes ;;
7910 esac
7911     OTOOL=$ac_ct_OTOOL
7912   fi
7913 else
7914   OTOOL="$ac_cv_prog_OTOOL"
7915 fi
7916
7917     if test -n "$ac_tool_prefix"; then
7918   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7919 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7923   $as_echo_n "(cached) " >&6
7924 else
7925   if test -n "$OTOOL64"; then
7926   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931   IFS=$as_save_IFS
7932   test -z "$as_dir" && as_dir=.
7933   for ac_exec_ext in '' $ac_executable_extensions; do
7934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937     break 2
7938   fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 OTOOL64=$ac_cv_prog_OTOOL64
7946 if test -n "$OTOOL64"; then
7947   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7948 $as_echo "$OTOOL64" >&6; }
7949 else
7950   { $as_echo "$as_me:$LINENO: result: no" >&5
7951 $as_echo "no" >&6; }
7952 fi
7953
7954
7955 fi
7956 if test -z "$ac_cv_prog_OTOOL64"; then
7957   ac_ct_OTOOL64=$OTOOL64
7958   # Extract the first word of "otool64", so it can be a program name with args.
7959 set dummy otool64; ac_word=$2
7960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7963   $as_echo_n "(cached) " >&6
7964 else
7965   if test -n "$ac_ct_OTOOL64"; then
7966   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973   for ac_exec_ext in '' $ac_executable_extensions; do
7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975     ac_cv_prog_ac_ct_OTOOL64="otool64"
7976     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7986 if test -n "$ac_ct_OTOOL64"; then
7987   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7988 $as_echo "$ac_ct_OTOOL64" >&6; }
7989 else
7990   { $as_echo "$as_me:$LINENO: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994   if test "x$ac_ct_OTOOL64" = x; then
7995     OTOOL64=":"
7996   else
7997     case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003     OTOOL64=$ac_ct_OTOOL64
8004   fi
8005 else
8006   OTOOL64="$ac_cv_prog_OTOOL64"
8007 fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8036 $as_echo_n "checking for -single_module linker flag... " >&6; }
8037 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8038   $as_echo_n "(cached) " >&6
8039 else
8040   lt_cv_apple_cc_single_mod=no
8041       if test -z "${LT_MULTI_MODULE}"; then
8042         # By default we will add the -single_module flag. You can override
8043         # by either setting the environment variable LT_MULTI_MODULE
8044         # non-empty at configure time, or by adding -multi_module to the
8045         # link flags.
8046         rm -rf libconftest.dylib*
8047         echo "int foo(void){return 1;}" > conftest.c
8048         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8049 -dynamiclib -Wl,-single_module conftest.c" >&5
8050         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8051           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8052         _lt_result=$?
8053         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8054           lt_cv_apple_cc_single_mod=yes
8055         else
8056           cat conftest.err >&5
8057         fi
8058         rm -rf libconftest.dylib*
8059         rm -f conftest.*
8060       fi
8061 fi
8062 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8063 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8064     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8065 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8066 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8067   $as_echo_n "(cached) " >&6
8068 else
8069   lt_cv_ld_exported_symbols_list=no
8070       save_LDFLAGS=$LDFLAGS
8071       echo "_main" > conftest.sym
8072       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8073       cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079
8080 int
8081 main ()
8082 {
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (ac_try="$ac_link"
8090 case "(($ac_try" in
8091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092   *) ac_try_echo=$ac_try;;
8093 esac
8094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8095 $as_echo "$ac_try_echo") >&5
8096   (eval "$ac_link") 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } && {
8103          test -z "$ac_c_werror_flag" ||
8104          test ! -s conftest.err
8105        } && test -s conftest$ac_exeext && {
8106          test "$cross_compiling" = yes ||
8107          $as_test_x conftest$ac_exeext
8108        }; then
8109   lt_cv_ld_exported_symbols_list=yes
8110 else
8111   $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114         lt_cv_ld_exported_symbols_list=no
8115 fi
8116
8117 rm -rf conftest.dSYM
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119       conftest$ac_exeext conftest.$ac_ext
8120         LDFLAGS="$save_LDFLAGS"
8121
8122 fi
8123 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8124 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8125     case $host_os in
8126     rhapsody* | darwin1.[012])
8127       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8128     darwin1.*)
8129       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8130     darwin*) # darwin 5.x on
8131       # if running on 10.5 or later, the deployment target defaults
8132       # to the OS version, if on x86, and 10.4, the deployment
8133       # target defaults to 10.4. Don't you love it?
8134       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8135         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8136           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8137         10.[012]*)
8138           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8139         10.*)
8140           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8141       esac
8142     ;;
8143   esac
8144     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8145       _lt_dar_single_mod='$single_module'
8146     fi
8147     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8148       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8149     else
8150       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8151     fi
8152     if test "$DSYMUTIL" != ":"; then
8153       _lt_dsymutil='~$DSYMUTIL $lib || :'
8154     else
8155       _lt_dsymutil=
8156     fi
8157     ;;
8158   esac
8159
8160 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161 $as_echo_n "checking for ANSI C header files... " >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then
8163   $as_echo_n "(cached) " >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171 #include <stdlib.h>
8172 #include <stdarg.h>
8173 #include <string.h>
8174 #include <float.h>
8175
8176 int
8177 main ()
8178 {
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   ac_cv_header_stdc=yes
8203 else
8204   $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         ac_cv_header_stdc=no
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
8212 if test $ac_cv_header_stdc = yes; then
8213   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #include <string.h>
8221
8222 _ACEOF
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224   $EGREP "memchr" >/dev/null 2>&1; then
8225   :
8226 else
8227   ac_cv_header_stdc=no
8228 fi
8229 rm -f conftest*
8230
8231 fi
8232
8233 if test $ac_cv_header_stdc = yes; then
8234   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 #include <stdlib.h>
8242
8243 _ACEOF
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245   $EGREP "free" >/dev/null 2>&1; then
8246   :
8247 else
8248   ac_cv_header_stdc=no
8249 fi
8250 rm -f conftest*
8251
8252 fi
8253
8254 if test $ac_cv_header_stdc = yes; then
8255   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8256   if test "$cross_compiling" = yes; then
8257   :
8258 else
8259   cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h.  */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h.  */
8265 #include <ctype.h>
8266 #include <stdlib.h>
8267 #if ((' ' & 0x0FF) == 0x020)
8268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8270 #else
8271 # define ISLOWER(c) \
8272                    (('a' <= (c) && (c) <= 'i') \
8273                      || ('j' <= (c) && (c) <= 'r') \
8274                      || ('s' <= (c) && (c) <= 'z'))
8275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8276 #endif
8277
8278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8279 int
8280 main ()
8281 {
8282   int i;
8283   for (i = 0; i < 256; i++)
8284     if (XOR (islower (i), ISLOWER (i))
8285         || toupper (i) != TOUPPER (i))
8286       return 2;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest$ac_exeext
8291 if { (ac_try="$ac_link"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298   (eval "$ac_link") 2>&5
8299   ac_status=$?
8300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307 $as_echo "$ac_try_echo") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   :
8313 else
8314   $as_echo "$as_me: program exited with status $ac_status" >&5
8315 $as_echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 ( exit $ac_status )
8319 ac_cv_header_stdc=no
8320 fi
8321 rm -rf conftest.dSYM
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8323 fi
8324
8325
8326 fi
8327 fi
8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8329 $as_echo "$ac_cv_header_stdc" >&6; }
8330 if test $ac_cv_header_stdc = yes; then
8331
8332 cat >>confdefs.h <<\_ACEOF
8333 #define STDC_HEADERS 1
8334 _ACEOF
8335
8336 fi
8337
8338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8349                   inttypes.h stdint.h unistd.h
8350 do
8351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 $as_echo_n "checking for $ac_header... " >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355   $as_echo_n "(cached) " >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 $ac_includes_default
8364
8365 #include <$ac_header>
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375   (eval "$ac_compile") 2>conftest.er1
8376   ac_status=$?
8377   grep -v '^ *+' conftest.er1 >conftest.err
8378   rm -f conftest.er1
8379   cat conftest.err >&5
8380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } && {
8382          test -z "$ac_c_werror_flag" ||
8383          test ! -s conftest.err
8384        } && test -s conftest.$ac_objext; then
8385   eval "$as_ac_Header=yes"
8386 else
8387   $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         eval "$as_ac_Header=no"
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396                  $as_echo "$as_val"'`
8397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8399 as_val=`eval 'as_val=${'$as_ac_Header'}
8400                  $as_echo "$as_val"'`
8401    if test "x$as_val" = x""yes; then
8402   cat >>confdefs.h <<_ACEOF
8403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 _ACEOF
8405
8406 fi
8407
8408 done
8409
8410
8411
8412 for ac_header in dlfcn.h
8413 do
8414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 $as_echo_n "checking for $ac_header... " >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418   $as_echo_n "(cached) " >&6
8419 else
8420   cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 $ac_includes_default
8427
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } && {
8445          test -z "$ac_c_werror_flag" ||
8446          test ! -s conftest.err
8447        } && test -s conftest.$ac_objext; then
8448   eval "$as_ac_Header=yes"
8449 else
8450   $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453         eval "$as_ac_Header=no"
8454 fi
8455
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 fi
8458 ac_res=`eval 'as_val=${'$as_ac_Header'}
8459                  $as_echo "$as_val"'`
8460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8461 $as_echo "$ac_res" >&6; }
8462 as_val=`eval 'as_val=${'$as_ac_Header'}
8463                  $as_echo "$as_val"'`
8464    if test "x$as_val" = x""yes; then
8465   cat >>confdefs.h <<_ACEOF
8466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472
8473
8474
8475 ac_ext=cpp
8476 ac_cpp='$CXXCPP $CPPFLAGS'
8477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8480 if test -z "$CXX"; then
8481   if test -n "$CCC"; then
8482     CXX=$CCC
8483   else
8484     if test -n "$ac_tool_prefix"; then
8485   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8486   do
8487     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_CXX+set}" = set; then
8492   $as_echo_n "(cached) " >&6
8493 else
8494   if test -n "$CXX"; then
8495   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500   IFS=$as_save_IFS
8501   test -z "$as_dir" && as_dir=.
8502   for ac_exec_ext in '' $ac_executable_extensions; do
8503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506     break 2
8507   fi
8508 done
8509 done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 CXX=$ac_cv_prog_CXX
8515 if test -n "$CXX"; then
8516   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8517 $as_echo "$CXX" >&6; }
8518 else
8519   { $as_echo "$as_me:$LINENO: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524     test -n "$CXX" && break
8525   done
8526 fi
8527 if test -z "$CXX"; then
8528   ac_ct_CXX=$CXX
8529   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8530 do
8531   # Extract the first word of "$ac_prog", so it can be a program name with args.
8532 set dummy $ac_prog; ac_word=$2
8533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8536   $as_echo_n "(cached) " >&6
8537 else
8538   if test -n "$ac_ct_CXX"; then
8539   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544   IFS=$as_save_IFS
8545   test -z "$as_dir" && as_dir=.
8546   for ac_exec_ext in '' $ac_executable_extensions; do
8547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8548     ac_cv_prog_ac_ct_CXX="$ac_prog"
8549     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8550     break 2
8551   fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8559 if test -n "$ac_ct_CXX"; then
8560   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8561 $as_echo "$ac_ct_CXX" >&6; }
8562 else
8563   { $as_echo "$as_me:$LINENO: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568   test -n "$ac_ct_CXX" && break
8569 done
8570
8571   if test "x$ac_ct_CXX" = x; then
8572     CXX="g++"
8573   else
8574     case $cross_compiling:$ac_tool_warned in
8575 yes:)
8576 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8578 ac_tool_warned=yes ;;
8579 esac
8580     CXX=$ac_ct_CXX
8581   fi
8582 fi
8583
8584   fi
8585 fi
8586 # Provide some information about the compiler.
8587 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8588 set X $ac_compile
8589 ac_compiler=$2
8590 { (ac_try="$ac_compiler --version >&5"
8591 case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8596 $as_echo "$ac_try_echo") >&5
8597   (eval "$ac_compiler --version >&5") 2>&5
8598   ac_status=$?
8599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }
8601 { (ac_try="$ac_compiler -v >&5"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608   (eval "$ac_compiler -v >&5") 2>&5
8609   ac_status=$?
8610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }
8612 { (ac_try="$ac_compiler -V >&5"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618 $as_echo "$ac_try_echo") >&5
8619   (eval "$ac_compiler -V >&5") 2>&5
8620   ac_status=$?
8621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }
8623
8624 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8625 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8627   $as_echo_n "(cached) " >&6
8628 else
8629   cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635
8636 int
8637 main ()
8638 {
8639 #ifndef __GNUC__
8640        choke me
8641 #endif
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8649 case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8654 $as_echo "$ac_try_echo") >&5
8655   (eval "$ac_compile") 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } && {
8662          test -z "$ac_cxx_werror_flag" ||
8663          test ! -s conftest.err
8664        } && test -s conftest.$ac_objext; then
8665   ac_compiler_gnu=yes
8666 else
8667   $as_echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670         ac_compiler_gnu=no
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8675
8676 fi
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8679 if test $ac_compiler_gnu = yes; then
8680   GXX=yes
8681 else
8682   GXX=
8683 fi
8684 ac_test_CXXFLAGS=${CXXFLAGS+set}
8685 ac_save_CXXFLAGS=$CXXFLAGS
8686 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8688 if test "${ac_cv_prog_cxx_g+set}" = set; then
8689   $as_echo_n "(cached) " >&6
8690 else
8691   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8692    ac_cxx_werror_flag=yes
8693    ac_cv_prog_cxx_g=no
8694    CXXFLAGS="-g"
8695    cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701
8702 int
8703 main ()
8704 {
8705
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8712 case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8717 $as_echo "$ac_try_echo") >&5
8718   (eval "$ac_compile") 2>conftest.er1
8719   ac_status=$?
8720   grep -v '^ *+' conftest.er1 >conftest.err
8721   rm -f conftest.er1
8722   cat conftest.err >&5
8723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); } && {
8725          test -z "$ac_cxx_werror_flag" ||
8726          test ! -s conftest.err
8727        } && test -s conftest.$ac_objext; then
8728   ac_cv_prog_cxx_g=yes
8729 else
8730   $as_echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733         CXXFLAGS=""
8734       cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740
8741 int
8742 main ()
8743 {
8744
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8751 case "(($ac_try" in
8752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753   *) ac_try_echo=$ac_try;;
8754 esac
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757   (eval "$ac_compile") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } && {
8764          test -z "$ac_cxx_werror_flag" ||
8765          test ! -s conftest.err
8766        } && test -s conftest.$ac_objext; then
8767   :
8768 else
8769   $as_echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8773          CXXFLAGS="-g"
8774          cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780
8781 int
8782 main ()
8783 {
8784
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (ac_try="$ac_compile"
8791 case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796 $as_echo "$ac_try_echo") >&5
8797   (eval "$ac_compile") 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } && {
8804          test -z "$ac_cxx_werror_flag" ||
8805          test ! -s conftest.err
8806        } && test -s conftest.$ac_objext; then
8807   ac_cv_prog_cxx_g=yes
8808 else
8809   $as_echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812
8813 fi
8814
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 fi
8817
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 fi
8820
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8823 fi
8824 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8826 if test "$ac_test_CXXFLAGS" = set; then
8827   CXXFLAGS=$ac_save_CXXFLAGS
8828 elif test $ac_cv_prog_cxx_g = yes; then
8829   if test "$GXX" = yes; then
8830     CXXFLAGS="-g -O2"
8831   else
8832     CXXFLAGS="-g"
8833   fi
8834 else
8835   if test "$GXX" = yes; then
8836     CXXFLAGS="-O2"
8837   else
8838     CXXFLAGS=
8839   fi
8840 fi
8841 ac_ext=c
8842 ac_cpp='$CPP $CPPFLAGS'
8843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8846
8847 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8848     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8849     (test "X$CXX" != "Xg++"))) ; then
8850   ac_ext=cpp
8851 ac_cpp='$CXXCPP $CPPFLAGS'
8852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8855 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8856 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8857 if test -z "$CXXCPP"; then
8858   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8859   $as_echo_n "(cached) " >&6
8860 else
8861       # Double quotes because CXXCPP needs to be expanded
8862     for CXXCPP in "$CXX -E" "/lib/cpp"
8863     do
8864       ac_preproc_ok=false
8865 for ac_cxx_preproc_warn_flag in '' yes
8866 do
8867   # Use a header file that comes with gcc, so configuring glibc
8868   # with a fresh cross-compiler works.
8869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870   # <limits.h> exists even on freestanding compilers.
8871   # On the NeXT, cc -E runs the code through the compiler's parser,
8872   # not just through cpp. "Syntax error" is here to catch this case.
8873   cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879 #ifdef __STDC__
8880 # include <limits.h>
8881 #else
8882 # include <assert.h>
8883 #endif
8884                      Syntax error
8885 _ACEOF
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8892 $as_echo "$ac_try_echo") >&5
8893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } >/dev/null && {
8900          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901          test ! -s conftest.err
8902        }; then
8903   :
8904 else
8905   $as_echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908   # Broken: fails on valid input.
8909 continue
8910 fi
8911
8912 rm -f conftest.err conftest.$ac_ext
8913
8914   # OK, works on sane cases.  Now check whether nonexistent headers
8915   # can be detected and how.
8916   cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 #include <ac_nonexistent.h>
8923 _ACEOF
8924 if { (ac_try="$ac_cpp conftest.$ac_ext"
8925 case "(($ac_try" in
8926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927   *) ac_try_echo=$ac_try;;
8928 esac
8929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8932   ac_status=$?
8933   grep -v '^ *+' conftest.er1 >conftest.err
8934   rm -f conftest.er1
8935   cat conftest.err >&5
8936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } >/dev/null && {
8938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8939          test ! -s conftest.err
8940        }; then
8941   # Broken: success on invalid input.
8942 continue
8943 else
8944   $as_echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947   # Passes both tests.
8948 ac_preproc_ok=:
8949 break
8950 fi
8951
8952 rm -f conftest.err conftest.$ac_ext
8953
8954 done
8955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8956 rm -f conftest.err conftest.$ac_ext
8957 if $ac_preproc_ok; then
8958   break
8959 fi
8960
8961     done
8962     ac_cv_prog_CXXCPP=$CXXCPP
8963
8964 fi
8965   CXXCPP=$ac_cv_prog_CXXCPP
8966 else
8967   ac_cv_prog_CXXCPP=$CXXCPP
8968 fi
8969 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8970 $as_echo "$CXXCPP" >&6; }
8971 ac_preproc_ok=false
8972 for ac_cxx_preproc_warn_flag in '' yes
8973 do
8974   # Use a header file that comes with gcc, so configuring glibc
8975   # with a fresh cross-compiler works.
8976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8977   # <limits.h> exists even on freestanding compilers.
8978   # On the NeXT, cc -E runs the code through the compiler's parser,
8979   # not just through cpp. "Syntax error" is here to catch this case.
8980   cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 #ifdef __STDC__
8987 # include <limits.h>
8988 #else
8989 # include <assert.h>
8990 #endif
8991                      Syntax error
8992 _ACEOF
8993 if { (ac_try="$ac_cpp conftest.$ac_ext"
8994 case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8999 $as_echo "$ac_try_echo") >&5
9000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } >/dev/null && {
9007          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9008          test ! -s conftest.err
9009        }; then
9010   :
9011 else
9012   $as_echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015   # Broken: fails on valid input.
9016 continue
9017 fi
9018
9019 rm -f conftest.err conftest.$ac_ext
9020
9021   # OK, works on sane cases.  Now check whether nonexistent headers
9022   # can be detected and how.
9023   cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029 #include <ac_nonexistent.h>
9030 _ACEOF
9031 if { (ac_try="$ac_cpp conftest.$ac_ext"
9032 case "(($ac_try" in
9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034   *) ac_try_echo=$ac_try;;
9035 esac
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } >/dev/null && {
9045          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9046          test ! -s conftest.err
9047        }; then
9048   # Broken: success on invalid input.
9049 continue
9050 else
9051   $as_echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054   # Passes both tests.
9055 ac_preproc_ok=:
9056 break
9057 fi
9058
9059 rm -f conftest.err conftest.$ac_ext
9060
9061 done
9062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9063 rm -f conftest.err conftest.$ac_ext
9064 if $ac_preproc_ok; then
9065   :
9066 else
9067   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9069 _lt_caught_CXX_error=yes; }
9070 fi
9071
9072 ac_ext=c
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077
9078 else
9079   _lt_caught_CXX_error=yes
9080 fi
9081
9082
9083
9084
9085
9086 # Set options
9087 # Check whether --enable-shared was given.
9088 if test "${enable_shared+set}" = set; then
9089   enableval=$enable_shared; p=${PACKAGE-default}
9090     case $enableval in
9091     yes) enable_shared=yes ;;
9092     no) enable_shared=no ;;
9093     *)
9094       enable_shared=no
9095       # Look at the argument we got.  We use all the common list separators.
9096       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9097       for pkg in $enableval; do
9098         IFS="$lt_save_ifs"
9099         if test "X$pkg" = "X$p"; then
9100           enable_shared=yes
9101         fi
9102       done
9103       IFS="$lt_save_ifs"
9104       ;;
9105     esac
9106 else
9107   enable_shared=yes
9108 fi
9109
9110
9111
9112
9113
9114
9115
9116 # Check whether --enable-static was given.
9117 if test "${enable_static+set}" = set; then
9118   enableval=$enable_static; p=${PACKAGE-default}
9119     case $enableval in
9120     yes) enable_static=yes ;;
9121     no) enable_static=no ;;
9122     *)
9123      enable_static=no
9124       # Look at the argument we got.  We use all the common list separators.
9125       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9126       for pkg in $enableval; do
9127         IFS="$lt_save_ifs"
9128         if test "X$pkg" = "X$p"; then
9129           enable_static=yes
9130         fi
9131       done
9132       IFS="$lt_save_ifs"
9133       ;;
9134     esac
9135 else
9136   enable_static=no
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148         enable_dlopen=no
9149
9150
9151   enable_win32_dll=no
9152
9153
9154
9155
9156
9157 # Check whether --with-pic was given.
9158 if test "${with_pic+set}" = set; then
9159   withval=$with_pic; pic_mode="$withval"
9160 else
9161   pic_mode=default
9162 fi
9163
9164
9165 test -z "$pic_mode" && pic_mode=default
9166
9167
9168
9169
9170
9171
9172
9173   # Check whether --enable-fast-install was given.
9174 if test "${enable_fast_install+set}" = set; then
9175   enableval=$enable_fast_install; p=${PACKAGE-default}
9176     case $enableval in
9177     yes) enable_fast_install=yes ;;
9178     no) enable_fast_install=no ;;
9179     *)
9180       enable_fast_install=no
9181       # Look at the argument we got.  We use all the common list separators.
9182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9183       for pkg in $enableval; do
9184         IFS="$lt_save_ifs"
9185         if test "X$pkg" = "X$p"; then
9186           enable_fast_install=yes
9187         fi
9188       done
9189       IFS="$lt_save_ifs"
9190       ;;
9191     esac
9192 else
9193   enable_fast_install=yes
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 # This can be used to rebuild libtool when needed
9207 LIBTOOL_DEPS="$ltmain"
9208
9209 # Always use our own libtool.
9210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 test -z "$LN_S" && LN_S="ln -s"
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 if test -n "${ZSH_VERSION+set}" ; then
9252    setopt NO_GLOB_SUBST
9253 fi
9254
9255 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9256 $as_echo_n "checking for objdir... " >&6; }
9257 if test "${lt_cv_objdir+set}" = set; then
9258   $as_echo_n "(cached) " >&6
9259 else
9260   rm -f .libs 2>/dev/null
9261 mkdir .libs 2>/dev/null
9262 if test -d .libs; then
9263   lt_cv_objdir=.libs
9264 else
9265   # MS-DOS does not allow filenames that begin with a dot.
9266   lt_cv_objdir=_libs
9267 fi
9268 rmdir .libs 2>/dev/null
9269 fi
9270 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9271 $as_echo "$lt_cv_objdir" >&6; }
9272 objdir=$lt_cv_objdir
9273
9274
9275
9276
9277
9278 cat >>confdefs.h <<_ACEOF
9279 #define LT_OBJDIR "$lt_cv_objdir/"
9280 _ACEOF
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298 case $host_os in
9299 aix3*)
9300   # AIX sometimes has problems with the GCC collect2 program.  For some
9301   # reason, if we set the COLLECT_NAMES environment variable, the problems
9302   # vanish in a puff of smoke.
9303   if test "X${COLLECT_NAMES+set}" != Xset; then
9304     COLLECT_NAMES=
9305     export COLLECT_NAMES
9306   fi
9307   ;;
9308 esac
9309
9310 # Sed substitution that helps us do robust quoting.  It backslashifies
9311 # metacharacters that are still active within double-quoted strings.
9312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9313
9314 # Same as above, but do not quote variable references.
9315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9316
9317 # Sed substitution to delay expansion of an escaped shell variable in a
9318 # double_quote_subst'ed string.
9319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9320
9321 # Sed substitution to delay expansion of an escaped single quote.
9322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9323
9324 # Sed substitution to avoid accidental globbing in evaled expressions
9325 no_glob_subst='s/\*/\\\*/g'
9326
9327 # Global variables:
9328 ofile=libtool
9329 can_build_shared=yes
9330
9331 # All known linkers require a `.a' archive for static linking (except MSVC,
9332 # which needs '.lib').
9333 libext=a
9334
9335 with_gnu_ld="$lt_cv_prog_gnu_ld"
9336
9337 old_CC="$CC"
9338 old_CFLAGS="$CFLAGS"
9339
9340 # Set sane defaults for various variables
9341 test -z "$CC" && CC=cc
9342 test -z "$LTCC" && LTCC=$CC
9343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9344 test -z "$LD" && LD=ld
9345 test -z "$ac_objext" && ac_objext=o
9346
9347 for cc_temp in $compiler""; do
9348   case $cc_temp in
9349     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9350     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9351     \-*) ;;
9352     *) break;;
9353   esac
9354 done
9355 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9356
9357
9358 # Only perform the check for file, if the check method requires it
9359 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9360 case $deplibs_check_method in
9361 file_magic*)
9362   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9363     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9364 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9365 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9366   $as_echo_n "(cached) " >&6
9367 else
9368   case $MAGIC_CMD in
9369 [\\/*] |  ?:[\\/]*)
9370   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9371   ;;
9372 *)
9373   lt_save_MAGIC_CMD="$MAGIC_CMD"
9374   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9375   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9376   for ac_dir in $ac_dummy; do
9377     IFS="$lt_save_ifs"
9378     test -z "$ac_dir" && ac_dir=.
9379     if test -f $ac_dir/${ac_tool_prefix}file; then
9380       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9381       if test -n "$file_magic_test_file"; then
9382         case $deplibs_check_method in
9383         "file_magic "*)
9384           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9385           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9386           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9387             $EGREP "$file_magic_regex" > /dev/null; then
9388             :
9389           else
9390             cat <<_LT_EOF 1>&2
9391
9392 *** Warning: the command libtool uses to detect shared libraries,
9393 *** $file_magic_cmd, produces output that libtool cannot recognize.
9394 *** The result is that libtool may fail to recognize shared libraries
9395 *** as such.  This will affect the creation of libtool libraries that
9396 *** depend on shared libraries, but programs linked with such libtool
9397 *** libraries will work regardless of this problem.  Nevertheless, you
9398 *** may want to report the problem to your system manager and/or to
9399 *** bug-libtool@gnu.org
9400
9401 _LT_EOF
9402           fi ;;
9403         esac
9404       fi
9405       break
9406     fi
9407   done
9408   IFS="$lt_save_ifs"
9409   MAGIC_CMD="$lt_save_MAGIC_CMD"
9410   ;;
9411 esac
9412 fi
9413
9414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9415 if test -n "$MAGIC_CMD"; then
9416   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9417 $as_echo "$MAGIC_CMD" >&6; }
9418 else
9419   { $as_echo "$as_me:$LINENO: result: no" >&5
9420 $as_echo "no" >&6; }
9421 fi
9422
9423
9424
9425
9426
9427 if test -z "$lt_cv_path_MAGIC_CMD"; then
9428   if test -n "$ac_tool_prefix"; then
9429     { $as_echo "$as_me:$LINENO: checking for file" >&5
9430 $as_echo_n "checking for file... " >&6; }
9431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9432   $as_echo_n "(cached) " >&6
9433 else
9434   case $MAGIC_CMD in
9435 [\\/*] |  ?:[\\/]*)
9436   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9437   ;;
9438 *)
9439   lt_save_MAGIC_CMD="$MAGIC_CMD"
9440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9441   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9442   for ac_dir in $ac_dummy; do
9443     IFS="$lt_save_ifs"
9444     test -z "$ac_dir" && ac_dir=.
9445     if test -f $ac_dir/file; then
9446       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9447       if test -n "$file_magic_test_file"; then
9448         case $deplibs_check_method in
9449         "file_magic "*)
9450           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9451           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9452           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9453             $EGREP "$file_magic_regex" > /dev/null; then
9454             :
9455           else
9456             cat <<_LT_EOF 1>&2
9457
9458 *** Warning: the command libtool uses to detect shared libraries,
9459 *** $file_magic_cmd, produces output that libtool cannot recognize.
9460 *** The result is that libtool may fail to recognize shared libraries
9461 *** as such.  This will affect the creation of libtool libraries that
9462 *** depend on shared libraries, but programs linked with such libtool
9463 *** libraries will work regardless of this problem.  Nevertheless, you
9464 *** may want to report the problem to your system manager and/or to
9465 *** bug-libtool@gnu.org
9466
9467 _LT_EOF
9468           fi ;;
9469         esac
9470       fi
9471       break
9472     fi
9473   done
9474   IFS="$lt_save_ifs"
9475   MAGIC_CMD="$lt_save_MAGIC_CMD"
9476   ;;
9477 esac
9478 fi
9479
9480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9481 if test -n "$MAGIC_CMD"; then
9482   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9483 $as_echo "$MAGIC_CMD" >&6; }
9484 else
9485   { $as_echo "$as_me:$LINENO: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488
9489
9490   else
9491     MAGIC_CMD=:
9492   fi
9493 fi
9494
9495   fi
9496   ;;
9497 esac
9498
9499 # Use C for the default configuration in the libtool script
9500
9501 lt_save_CC="$CC"
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
9509 # Source file extension for C test sources.
9510 ac_ext=c
9511
9512 # Object file extension for compiled C test sources.
9513 objext=o
9514 objext=$objext
9515
9516 # Code to be used in simple compile tests
9517 lt_simple_compile_test_code="int some_variable = 0;"
9518
9519 # Code to be used in simple link tests
9520 lt_simple_link_test_code='int main(){return(0);}'
9521
9522
9523
9524
9525
9526
9527
9528 # If no C compiler was specified, use CC.
9529 LTCC=${LTCC-"$CC"}
9530
9531 # If no C compiler flags were specified, use CFLAGS.
9532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9533
9534 # Allow CC to be a program name with arguments.
9535 compiler=$CC
9536
9537 # Save the default compiler, since it gets overwritten when the other
9538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9539 compiler_DEFAULT=$CC
9540
9541 # save warnings/boilerplate of simple test code
9542 ac_outfile=conftest.$ac_objext
9543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9545 _lt_compiler_boilerplate=`cat conftest.err`
9546 $RM conftest*
9547
9548 ac_outfile=conftest.$ac_objext
9549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9551 _lt_linker_boilerplate=`cat conftest.err`
9552 $RM -r conftest*
9553
9554
9555 ## CAVEAT EMPTOR:
9556 ## There is no encapsulation within the following macros, do not change
9557 ## the running order or otherwise move them around unless you know exactly
9558 ## what you are doing...
9559 if test -n "$compiler"; then
9560
9561 lt_prog_compiler_no_builtin_flag=
9562
9563 if test "$GCC" = yes; then
9564   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9565
9566   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9568 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9569   $as_echo_n "(cached) " >&6
9570 else
9571   lt_cv_prog_compiler_rtti_exceptions=no
9572    ac_outfile=conftest.$ac_objext
9573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9574    lt_compiler_flag="-fno-rtti -fno-exceptions"
9575    # Insert the option either (1) after the last *FLAGS variable, or
9576    # (2) before a word containing "conftest.", or (3) at the end.
9577    # Note that $ac_compile itself does not contain backslashes and begins
9578    # with a dollar sign (not a hyphen), so the echo should work correctly.
9579    # The option is referenced via a variable to avoid confusing sed.
9580    lt_compile=`echo "$ac_compile" | $SED \
9581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583    -e 's:$: $lt_compiler_flag:'`
9584    (eval echo "\"\$as_me:9584: $lt_compile\"" >&5)
9585    (eval "$lt_compile" 2>conftest.err)
9586    ac_status=$?
9587    cat conftest.err >&5
9588    echo "$as_me:9588: \$? = $ac_status" >&5
9589    if (exit $ac_status) && test -s "$ac_outfile"; then
9590      # The compiler can only warn and ignore the option if not recognized
9591      # So say no if there are warnings other than the usual output.
9592      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9593      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9594      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9595        lt_cv_prog_compiler_rtti_exceptions=yes
9596      fi
9597    fi
9598    $RM conftest*
9599
9600 fi
9601 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9603
9604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9605     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9606 else
9607     :
9608 fi
9609
9610 fi
9611
9612
9613
9614
9615
9616
9617   lt_prog_compiler_wl=
9618 lt_prog_compiler_pic=
9619 lt_prog_compiler_static=
9620
9621 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9622 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9623
9624   if test "$GCC" = yes; then
9625     lt_prog_compiler_wl='-Wl,'
9626     lt_prog_compiler_static='-static'
9627
9628     case $host_os in
9629       aix*)
9630       # All AIX code is PIC.
9631       if test "$host_cpu" = ia64; then
9632         # AIX 5 now supports IA64 processor
9633         lt_prog_compiler_static='-Bstatic'
9634       fi
9635       ;;
9636
9637     amigaos*)
9638       case $host_cpu in
9639       powerpc)
9640             # see comment about AmigaOS4 .so support
9641             lt_prog_compiler_pic='-fPIC'
9642         ;;
9643       m68k)
9644             # FIXME: we need at least 68020 code to build shared libraries, but
9645             # adding the `-m68020' flag to GCC prevents building anything better,
9646             # like `-m68040'.
9647             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9648         ;;
9649       esac
9650       ;;
9651
9652     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9653       # PIC is the default for these OSes.
9654       ;;
9655
9656     mingw* | cygwin* | pw32* | os2* | cegcc*)
9657       # This hack is so that the source file can tell whether it is being
9658       # built for inclusion in a dll (and should export symbols for example).
9659       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9660       # (--disable-auto-import) libraries
9661       lt_prog_compiler_pic='-DDLL_EXPORT'
9662       ;;
9663
9664     darwin* | rhapsody*)
9665       # PIC is the default on this platform
9666       # Common symbols not allowed in MH_DYLIB files
9667       lt_prog_compiler_pic='-fno-common'
9668       ;;
9669
9670     hpux*)
9671       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9672       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9673       # sets the default TLS model and affects inlining.
9674       case $host_cpu in
9675       hppa*64*)
9676         # +Z the default
9677         ;;
9678       *)
9679         lt_prog_compiler_pic='-fPIC'
9680         ;;
9681       esac
9682       ;;
9683
9684     interix[3-9]*)
9685       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9686       # Instead, we relocate shared libraries at runtime.
9687       ;;
9688
9689     msdosdjgpp*)
9690       # Just because we use GCC doesn't mean we suddenly get shared libraries
9691       # on systems that don't support them.
9692       lt_prog_compiler_can_build_shared=no
9693       enable_shared=no
9694       ;;
9695
9696     *nto* | *qnx*)
9697       # QNX uses GNU C++, but need to define -shared option too, otherwise
9698       # it will coredump.
9699       lt_prog_compiler_pic='-fPIC -shared'
9700       ;;
9701
9702     sysv4*MP*)
9703       if test -d /usr/nec; then
9704         lt_prog_compiler_pic=-Kconform_pic
9705       fi
9706       ;;
9707
9708     *)
9709       lt_prog_compiler_pic='-fPIC'
9710       ;;
9711     esac
9712   else
9713     # PORTME Check for flag to pass linker flags through the system compiler.
9714     case $host_os in
9715     aix*)
9716       lt_prog_compiler_wl='-Wl,'
9717       if test "$host_cpu" = ia64; then
9718         # AIX 5 now supports IA64 processor
9719         lt_prog_compiler_static='-Bstatic'
9720       else
9721         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9722       fi
9723       ;;
9724
9725     mingw* | cygwin* | pw32* | os2* | cegcc*)
9726       # This hack is so that the source file can tell whether it is being
9727       # built for inclusion in a dll (and should export symbols for example).
9728       lt_prog_compiler_pic='-DDLL_EXPORT'
9729       ;;
9730
9731     hpux9* | hpux10* | hpux11*)
9732       lt_prog_compiler_wl='-Wl,'
9733       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9734       # not for PA HP-UX.
9735       case $host_cpu in
9736       hppa*64*|ia64*)
9737         # +Z the default
9738         ;;
9739       *)
9740         lt_prog_compiler_pic='+Z'
9741         ;;
9742       esac
9743       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9744       lt_prog_compiler_static='${wl}-a ${wl}archive'
9745       ;;
9746
9747     irix5* | irix6* | nonstopux*)
9748       lt_prog_compiler_wl='-Wl,'
9749       # PIC (with -KPIC) is the default.
9750       lt_prog_compiler_static='-non_shared'
9751       ;;
9752
9753     linux* | k*bsd*-gnu)
9754       case $cc_basename in
9755       # old Intel for x86_64 which still supported -KPIC.
9756       ecc*)
9757         lt_prog_compiler_wl='-Wl,'
9758         lt_prog_compiler_pic='-KPIC'
9759         lt_prog_compiler_static='-static'
9760         ;;
9761       # icc used to be incompatible with GCC.
9762       # ICC 10 doesn't accept -KPIC any more.
9763       icc* | ifort*)
9764         lt_prog_compiler_wl='-Wl,'
9765         lt_prog_compiler_pic='-fPIC'
9766         lt_prog_compiler_static='-static'
9767         ;;
9768       # Lahey Fortran 8.1.
9769       lf95*)
9770         lt_prog_compiler_wl='-Wl,'
9771         lt_prog_compiler_pic='--shared'
9772         lt_prog_compiler_static='--static'
9773         ;;
9774       pgcc* | pgf77* | pgf90* | pgf95*)
9775         # Portland Group compilers (*not* the Pentium gcc compiler,
9776         # which looks to be a dead project)
9777         lt_prog_compiler_wl='-Wl,'
9778         lt_prog_compiler_pic='-fpic'
9779         lt_prog_compiler_static='-Bstatic'
9780         ;;
9781       ccc*)
9782         lt_prog_compiler_wl='-Wl,'
9783         # All Alpha code is PIC.
9784         lt_prog_compiler_static='-non_shared'
9785         ;;
9786       xl*)
9787         # IBM XL C 8.0/Fortran 10.1 on PPC
9788         lt_prog_compiler_wl='-Wl,'
9789         lt_prog_compiler_pic='-qpic'
9790         lt_prog_compiler_static='-qstaticlink'
9791         ;;
9792       *)
9793         case `$CC -V 2>&1 | sed 5q` in
9794         *Sun\ C*)
9795           # Sun C 5.9
9796           lt_prog_compiler_pic='-KPIC'
9797           lt_prog_compiler_static='-Bstatic'
9798           lt_prog_compiler_wl='-Wl,'
9799           ;;
9800         *Sun\ F*)
9801           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9802           lt_prog_compiler_pic='-KPIC'
9803           lt_prog_compiler_static='-Bstatic'
9804           lt_prog_compiler_wl=''
9805           ;;
9806         esac
9807         ;;
9808       esac
9809       ;;
9810
9811     newsos6)
9812       lt_prog_compiler_pic='-KPIC'
9813       lt_prog_compiler_static='-Bstatic'
9814       ;;
9815
9816     *nto* | *qnx*)
9817       # QNX uses GNU C++, but need to define -shared option too, otherwise
9818       # it will coredump.
9819       lt_prog_compiler_pic='-fPIC -shared'
9820       ;;
9821
9822     osf3* | osf4* | osf5*)
9823       lt_prog_compiler_wl='-Wl,'
9824       # All OSF/1 code is PIC.
9825       lt_prog_compiler_static='-non_shared'
9826       ;;
9827
9828     rdos*)
9829       lt_prog_compiler_static='-non_shared'
9830       ;;
9831
9832     solaris*)
9833       lt_prog_compiler_pic='-KPIC'
9834       lt_prog_compiler_static='-Bstatic'
9835       case $cc_basename in
9836       f77* | f90* | f95*)
9837         lt_prog_compiler_wl='-Qoption ld ';;
9838       *)
9839         lt_prog_compiler_wl='-Wl,';;
9840       esac
9841       ;;
9842
9843     sunos4*)
9844       lt_prog_compiler_wl='-Qoption ld '
9845       lt_prog_compiler_pic='-PIC'
9846       lt_prog_compiler_static='-Bstatic'
9847       ;;
9848
9849     sysv4 | sysv4.2uw2* | sysv4.3*)
9850       lt_prog_compiler_wl='-Wl,'
9851       lt_prog_compiler_pic='-KPIC'
9852       lt_prog_compiler_static='-Bstatic'
9853       ;;
9854
9855     sysv4*MP*)
9856       if test -d /usr/nec ;then
9857         lt_prog_compiler_pic='-Kconform_pic'
9858         lt_prog_compiler_static='-Bstatic'
9859       fi
9860       ;;
9861
9862     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9863       lt_prog_compiler_wl='-Wl,'
9864       lt_prog_compiler_pic='-KPIC'
9865       lt_prog_compiler_static='-Bstatic'
9866       ;;
9867
9868     unicos*)
9869       lt_prog_compiler_wl='-Wl,'
9870       lt_prog_compiler_can_build_shared=no
9871       ;;
9872
9873     uts4*)
9874       lt_prog_compiler_pic='-pic'
9875       lt_prog_compiler_static='-Bstatic'
9876       ;;
9877
9878     *)
9879       lt_prog_compiler_can_build_shared=no
9880       ;;
9881     esac
9882   fi
9883
9884 case $host_os in
9885   # For platforms which do not support PIC, -DPIC is meaningless:
9886   *djgpp*)
9887     lt_prog_compiler_pic=
9888     ;;
9889   *)
9890     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9891     ;;
9892 esac
9893 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9894 $as_echo "$lt_prog_compiler_pic" >&6; }
9895
9896
9897
9898
9899
9900
9901 #
9902 # Check to make sure the PIC flag actually works.
9903 #
9904 if test -n "$lt_prog_compiler_pic"; then
9905   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9907 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9908   $as_echo_n "(cached) " >&6
9909 else
9910   lt_cv_prog_compiler_pic_works=no
9911    ac_outfile=conftest.$ac_objext
9912    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9913    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9914    # Insert the option either (1) after the last *FLAGS variable, or
9915    # (2) before a word containing "conftest.", or (3) at the end.
9916    # Note that $ac_compile itself does not contain backslashes and begins
9917    # with a dollar sign (not a hyphen), so the echo should work correctly.
9918    # The option is referenced via a variable to avoid confusing sed.
9919    lt_compile=`echo "$ac_compile" | $SED \
9920    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9921    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9922    -e 's:$: $lt_compiler_flag:'`
9923    (eval echo "\"\$as_me:9923: $lt_compile\"" >&5)
9924    (eval "$lt_compile" 2>conftest.err)
9925    ac_status=$?
9926    cat conftest.err >&5
9927    echo "$as_me:9927: \$? = $ac_status" >&5
9928    if (exit $ac_status) && test -s "$ac_outfile"; then
9929      # The compiler can only warn and ignore the option if not recognized
9930      # So say no if there are warnings other than the usual output.
9931      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9932      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9933      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9934        lt_cv_prog_compiler_pic_works=yes
9935      fi
9936    fi
9937    $RM conftest*
9938
9939 fi
9940 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9942
9943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9944     case $lt_prog_compiler_pic in
9945      "" | " "*) ;;
9946      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9947      esac
9948 else
9949     lt_prog_compiler_pic=
9950      lt_prog_compiler_can_build_shared=no
9951 fi
9952
9953 fi
9954
9955
9956
9957
9958
9959
9960 #
9961 # Check to make sure the static flag actually works.
9962 #
9963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9964 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9966 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9967   $as_echo_n "(cached) " >&6
9968 else
9969   lt_cv_prog_compiler_static_works=no
9970    save_LDFLAGS="$LDFLAGS"
9971    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9972    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9973    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9974      # The linker can only warn and ignore the option if not recognized
9975      # So say no if there are warnings
9976      if test -s conftest.err; then
9977        # Append any errors to the config.log.
9978        cat conftest.err 1>&5
9979        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9980        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981        if diff conftest.exp conftest.er2 >/dev/null; then
9982          lt_cv_prog_compiler_static_works=yes
9983        fi
9984      else
9985        lt_cv_prog_compiler_static_works=yes
9986      fi
9987    fi
9988    $RM -r conftest*
9989    LDFLAGS="$save_LDFLAGS"
9990
9991 fi
9992 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9994
9995 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9996     :
9997 else
9998     lt_prog_compiler_static=
9999 fi
10000
10001
10002
10003
10004
10005
10006
10007   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10010   $as_echo_n "(cached) " >&6
10011 else
10012   lt_cv_prog_compiler_c_o=no
10013    $RM -r conftest 2>/dev/null
10014    mkdir conftest
10015    cd conftest
10016    mkdir out
10017    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10018
10019    lt_compiler_flag="-o out/conftest2.$ac_objext"
10020    # Insert the option either (1) after the last *FLAGS variable, or
10021    # (2) before a word containing "conftest.", or (3) at the end.
10022    # Note that $ac_compile itself does not contain backslashes and begins
10023    # with a dollar sign (not a hyphen), so the echo should work correctly.
10024    lt_compile=`echo "$ac_compile" | $SED \
10025    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10027    -e 's:$: $lt_compiler_flag:'`
10028    (eval echo "\"\$as_me:10028: $lt_compile\"" >&5)
10029    (eval "$lt_compile" 2>out/conftest.err)
10030    ac_status=$?
10031    cat out/conftest.err >&5
10032    echo "$as_me:10032: \$? = $ac_status" >&5
10033    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10034    then
10035      # The compiler can only warn and ignore the option if not recognized
10036      # So say no if there are warnings
10037      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10038      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10039      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10040        lt_cv_prog_compiler_c_o=yes
10041      fi
10042    fi
10043    chmod u+w . 2>&5
10044    $RM conftest*
10045    # SGI C++ compiler will create directory out/ii_files/ for
10046    # template instantiation
10047    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10048    $RM out/* && rmdir out
10049    cd ..
10050    $RM -r conftest
10051    $RM conftest*
10052
10053 fi
10054 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10056
10057
10058
10059
10060
10061
10062   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10064 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10065   $as_echo_n "(cached) " >&6
10066 else
10067   lt_cv_prog_compiler_c_o=no
10068    $RM -r conftest 2>/dev/null
10069    mkdir conftest
10070    cd conftest
10071    mkdir out
10072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10073
10074    lt_compiler_flag="-o out/conftest2.$ac_objext"
10075    # Insert the option either (1) after the last *FLAGS variable, or
10076    # (2) before a word containing "conftest.", or (3) at the end.
10077    # Note that $ac_compile itself does not contain backslashes and begins
10078    # with a dollar sign (not a hyphen), so the echo should work correctly.
10079    lt_compile=`echo "$ac_compile" | $SED \
10080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10082    -e 's:$: $lt_compiler_flag:'`
10083    (eval echo "\"\$as_me:10083: $lt_compile\"" >&5)
10084    (eval "$lt_compile" 2>out/conftest.err)
10085    ac_status=$?
10086    cat out/conftest.err >&5
10087    echo "$as_me:10087: \$? = $ac_status" >&5
10088    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10089    then
10090      # The compiler can only warn and ignore the option if not recognized
10091      # So say no if there are warnings
10092      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10093      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10094      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10095        lt_cv_prog_compiler_c_o=yes
10096      fi
10097    fi
10098    chmod u+w . 2>&5
10099    $RM conftest*
10100    # SGI C++ compiler will create directory out/ii_files/ for
10101    # template instantiation
10102    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10103    $RM out/* && rmdir out
10104    cd ..
10105    $RM -r conftest
10106    $RM conftest*
10107
10108 fi
10109 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10111
10112
10113
10114
10115 hard_links="nottested"
10116 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10117   # do not overwrite the value of need_locks provided by the user
10118   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10119 $as_echo_n "checking if we can lock with hard links... " >&6; }
10120   hard_links=yes
10121   $RM conftest*
10122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10123   touch conftest.a
10124   ln conftest.a conftest.b 2>&5 || hard_links=no
10125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10127 $as_echo "$hard_links" >&6; }
10128   if test "$hard_links" = no; then
10129     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10131     need_locks=warn
10132   fi
10133 else
10134   need_locks=no
10135 fi
10136
10137
10138
10139
10140
10141
10142   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10144
10145   runpath_var=
10146   allow_undefined_flag=
10147   always_export_symbols=no
10148   archive_cmds=
10149   archive_expsym_cmds=
10150   compiler_needs_object=no
10151   enable_shared_with_static_runtimes=no
10152   export_dynamic_flag_spec=
10153   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10154   hardcode_automatic=no
10155   hardcode_direct=no
10156   hardcode_direct_absolute=no
10157   hardcode_libdir_flag_spec=
10158   hardcode_libdir_flag_spec_ld=
10159   hardcode_libdir_separator=
10160   hardcode_minus_L=no
10161   hardcode_shlibpath_var=unsupported
10162   inherit_rpath=no
10163   link_all_deplibs=unknown
10164   module_cmds=
10165   module_expsym_cmds=
10166   old_archive_from_new_cmds=
10167   old_archive_from_expsyms_cmds=
10168   thread_safe_flag_spec=
10169   whole_archive_flag_spec=
10170   # include_expsyms should be a list of space-separated symbols to be *always*
10171   # included in the symbol list
10172   include_expsyms=
10173   # exclude_expsyms can be an extended regexp of symbols to exclude
10174   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10175   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10176   # as well as any symbol that contains `d'.
10177   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10178   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10179   # platforms (ab)use it in PIC code, but their linkers get confused if
10180   # the symbol is explicitly referenced.  Since portable code cannot
10181   # rely on this symbol name, it's probably fine to never include it in
10182   # preloaded symbol tables.
10183   # Exclude shared library initialization/finalization symbols.
10184   extract_expsyms_cmds=
10185
10186   case $host_os in
10187   cygwin* | mingw* | pw32* | cegcc*)
10188     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10189     # When not using gcc, we currently assume that we are using
10190     # Microsoft Visual C++.
10191     if test "$GCC" != yes; then
10192       with_gnu_ld=no
10193     fi
10194     ;;
10195   interix*)
10196     # we just hope/assume this is gcc and not c89 (= MSVC++)
10197     with_gnu_ld=yes
10198     ;;
10199   openbsd*)
10200     with_gnu_ld=no
10201     ;;
10202   esac
10203
10204   ld_shlibs=yes
10205   if test "$with_gnu_ld" = yes; then
10206     # If archive_cmds runs LD, not CC, wlarc should be empty
10207     wlarc='${wl}'
10208
10209     # Set some defaults for GNU ld with shared library support. These
10210     # are reset later if shared libraries are not supported. Putting them
10211     # here allows them to be overridden if necessary.
10212     runpath_var=LD_RUN_PATH
10213     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214     export_dynamic_flag_spec='${wl}--export-dynamic'
10215     # ancient GNU ld didn't support --whole-archive et. al.
10216     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10217       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10218     else
10219       whole_archive_flag_spec=
10220     fi
10221     supports_anon_versioning=no
10222     case `$LD -v 2>&1` in
10223       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10224       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10225       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10226       *\ 2.11.*) ;; # other 2.11 versions
10227       *) supports_anon_versioning=yes ;;
10228     esac
10229
10230     # See if GNU ld supports shared libraries.
10231     case $host_os in
10232     aix[3-9]*)
10233       # On AIX/PPC, the GNU linker is very broken
10234       if test "$host_cpu" != ia64; then
10235         ld_shlibs=no
10236         cat <<_LT_EOF 1>&2
10237
10238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10239 *** to be unable to reliably create shared libraries on AIX.
10240 *** Therefore, libtool is disabling shared libraries support.  If you
10241 *** really care for shared libraries, you may want to modify your PATH
10242 *** so that a non-GNU linker is found, and then restart.
10243
10244 _LT_EOF
10245       fi
10246       ;;
10247
10248     amigaos*)
10249       case $host_cpu in
10250       powerpc)
10251             # see comment about AmigaOS4 .so support
10252             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253             archive_expsym_cmds=''
10254         ;;
10255       m68k)
10256             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)'
10257             hardcode_libdir_flag_spec='-L$libdir'
10258             hardcode_minus_L=yes
10259         ;;
10260       esac
10261       ;;
10262
10263     beos*)
10264       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10265         allow_undefined_flag=unsupported
10266         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10267         # support --undefined.  This deserves some investigation.  FIXME
10268         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10269       else
10270         ld_shlibs=no
10271       fi
10272       ;;
10273
10274     cygwin* | mingw* | pw32* | cegcc*)
10275       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10276       # as there is no search path for DLLs.
10277       hardcode_libdir_flag_spec='-L$libdir'
10278       allow_undefined_flag=unsupported
10279       always_export_symbols=no
10280       enable_shared_with_static_runtimes=yes
10281       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10282
10283       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10285         # If the export-symbols file already is a .def file (1st line
10286         # is EXPORTS), use it as is; otherwise, prepend...
10287         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10288           cp $export_symbols $output_objdir/$soname.def;
10289         else
10290           echo EXPORTS > $output_objdir/$soname.def;
10291           cat $export_symbols >> $output_objdir/$soname.def;
10292         fi~
10293         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10294       else
10295         ld_shlibs=no
10296       fi
10297       ;;
10298
10299     interix[3-9]*)
10300       hardcode_direct=no
10301       hardcode_shlibpath_var=no
10302       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10303       export_dynamic_flag_spec='${wl}-E'
10304       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10305       # Instead, shared libraries are loaded at an image base (0x10000000 by
10306       # default) and relocated if they conflict, which is a slow very memory
10307       # consuming and fragmenting process.  To avoid this, we pick a random,
10308       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10309       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10310       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10311       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'
10312       ;;
10313
10314     gnu* | linux* | tpf* | k*bsd*-gnu)
10315       tmp_diet=no
10316       if test "$host_os" = linux-dietlibc; then
10317         case $cc_basename in
10318           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10319         esac
10320       fi
10321       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10322          && test "$tmp_diet" = no
10323       then
10324         tmp_addflag=
10325         tmp_sharedflag='-shared'
10326         case $cc_basename,$host_cpu in
10327         pgcc*)                          # Portland Group C compiler
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'
10330           ;;
10331         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10332           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'
10333           tmp_addflag=' $pic_flag -Mnomain' ;;
10334         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10335           tmp_addflag=' -i_dynamic' ;;
10336         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10337           tmp_addflag=' -i_dynamic -nofor_main' ;;
10338         ifc* | ifort*)                  # Intel Fortran compiler
10339           tmp_addflag=' -nofor_main' ;;
10340         lf95*)                          # Lahey Fortran 8.1
10341           whole_archive_flag_spec=
10342           tmp_sharedflag='--shared' ;;
10343         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10344           tmp_sharedflag='-qmkshrobj'
10345           tmp_addflag= ;;
10346         esac
10347         case `$CC -V 2>&1 | sed 5q` in
10348         *Sun\ C*)                       # Sun C 5.9
10349           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'
10350           compiler_needs_object=yes
10351           tmp_sharedflag='-G' ;;
10352         *Sun\ F*)                       # Sun Fortran 8.3
10353           tmp_sharedflag='-G' ;;
10354         esac
10355         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356
10357         if test "x$supports_anon_versioning" = xyes; then
10358           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10359             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10360             echo "local: *; };" >> $output_objdir/$libname.ver~
10361             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10362         fi
10363
10364         case $cc_basename in
10365         xlf*)
10366           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10367           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10368           hardcode_libdir_flag_spec=
10369           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10370           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10371           if test "x$supports_anon_versioning" = xyes; then
10372             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10373               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10374               echo "local: *; };" >> $output_objdir/$libname.ver~
10375               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10376           fi
10377           ;;
10378         esac
10379       else
10380         ld_shlibs=no
10381       fi
10382       ;;
10383
10384     netbsd*)
10385       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10386         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10387         wlarc=
10388       else
10389         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10391       fi
10392       ;;
10393
10394     solaris*)
10395       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10396         ld_shlibs=no
10397         cat <<_LT_EOF 1>&2
10398
10399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10400 *** create shared libraries on Solaris systems.  Therefore, libtool
10401 *** is disabling shared libraries support.  We urge you to upgrade GNU
10402 *** binutils to release 2.9.1 or newer.  Another option is to modify
10403 *** your PATH or compiler configuration so that the native linker is
10404 *** used, and then restart.
10405
10406 _LT_EOF
10407       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10408         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10409         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10410       else
10411         ld_shlibs=no
10412       fi
10413       ;;
10414
10415     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10416       case `$LD -v 2>&1` in
10417         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10418         ld_shlibs=no
10419         cat <<_LT_EOF 1>&2
10420
10421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10422 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10423 *** is disabling shared libraries support.  We urge you to upgrade GNU
10424 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10425 *** your PATH or compiler configuration so that the native linker is
10426 *** used, and then restart.
10427
10428 _LT_EOF
10429         ;;
10430         *)
10431           # For security reasons, it is highly recommended that you always
10432           # use absolute paths for naming shared libraries, and exclude the
10433           # DT_RUNPATH tag from executables and libraries.  But doing so
10434           # requires that you compile everything twice, which is a pain.
10435           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10436             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10439           else
10440             ld_shlibs=no
10441           fi
10442         ;;
10443       esac
10444       ;;
10445
10446     sunos4*)
10447       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10448       wlarc=
10449       hardcode_direct=yes
10450       hardcode_shlibpath_var=no
10451       ;;
10452
10453     *)
10454       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10455         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10457       else
10458         ld_shlibs=no
10459       fi
10460       ;;
10461     esac
10462
10463     if test "$ld_shlibs" = no; then
10464       runpath_var=
10465       hardcode_libdir_flag_spec=
10466       export_dynamic_flag_spec=
10467       whole_archive_flag_spec=
10468     fi
10469   else
10470     # PORTME fill in a description of your system's linker (not GNU ld)
10471     case $host_os in
10472     aix3*)
10473       allow_undefined_flag=unsupported
10474       always_export_symbols=yes
10475       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'
10476       # Note: this linker hardcodes the directories in LIBPATH if there
10477       # are no directories specified by -L.
10478       hardcode_minus_L=yes
10479       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10480         # Neither direct hardcoding nor static linking is supported with a
10481         # broken collect2.
10482         hardcode_direct=unsupported
10483       fi
10484       ;;
10485
10486     aix[4-9]*)
10487       if test "$host_cpu" = ia64; then
10488         # On IA64, the linker does run time linking by default, so we don't
10489         # have to do anything special.
10490         aix_use_runtimelinking=no
10491         exp_sym_flag='-Bexport'
10492         no_entry_flag=""
10493       else
10494         # If we're using GNU nm, then we don't want the "-C" option.
10495         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10496         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10497           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'
10498         else
10499           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'
10500         fi
10501         aix_use_runtimelinking=no
10502
10503         # Test if we are trying to use run time linking or normal
10504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10505         # need to do runtime linking.
10506         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10507           for ld_flag in $LDFLAGS; do
10508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10509             aix_use_runtimelinking=yes
10510             break
10511           fi
10512           done
10513           ;;
10514         esac
10515
10516         exp_sym_flag='-bexport'
10517         no_entry_flag='-bnoentry'
10518       fi
10519
10520       # When large executables or shared objects are built, AIX ld can
10521       # have problems creating the table of contents.  If linking a library
10522       # or program results in "error TOC overflow" add -mminimal-toc to
10523       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10524       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10525
10526       archive_cmds=''
10527       hardcode_direct=yes
10528       hardcode_direct_absolute=yes
10529       hardcode_libdir_separator=':'
10530       link_all_deplibs=yes
10531       file_list_spec='${wl}-f,'
10532
10533       if test "$GCC" = yes; then
10534         case $host_os in aix4.[012]|aix4.[012].*)
10535         # We only want to do this on AIX 4.2 and lower, the check
10536         # below for broken collect2 doesn't work under 4.3+
10537           collect2name=`${CC} -print-prog-name=collect2`
10538           if test -f "$collect2name" &&
10539            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10540           then
10541           # We have reworked collect2
10542           :
10543           else
10544           # We have old collect2
10545           hardcode_direct=unsupported
10546           # It fails to find uninstalled libraries when the uninstalled
10547           # path is not listed in the libpath.  Setting hardcode_minus_L
10548           # to unsupported forces relinking
10549           hardcode_minus_L=yes
10550           hardcode_libdir_flag_spec='-L$libdir'
10551           hardcode_libdir_separator=
10552           fi
10553           ;;
10554         esac
10555         shared_flag='-shared'
10556         if test "$aix_use_runtimelinking" = yes; then
10557           shared_flag="$shared_flag "'${wl}-G'
10558         fi
10559       else
10560         # not using gcc
10561         if test "$host_cpu" = ia64; then
10562         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10563         # chokes on -Wl,-G. The following line is correct:
10564           shared_flag='-G'
10565         else
10566           if test "$aix_use_runtimelinking" = yes; then
10567             shared_flag='${wl}-G'
10568           else
10569             shared_flag='${wl}-bM:SRE'
10570           fi
10571         fi
10572       fi
10573
10574       export_dynamic_flag_spec='${wl}-bexpall'
10575       # It seems that -bexpall does not export symbols beginning with
10576       # underscore (_), so it is better to generate a list of symbols to export.
10577       always_export_symbols=yes
10578       if test "$aix_use_runtimelinking" = yes; then
10579         # Warning - without using the other runtime loading flags (-brtl),
10580         # -berok will link without error, but may produce a broken library.
10581         allow_undefined_flag='-berok'
10582         # Determine the default libpath from the value encoded in an
10583         # empty executable.
10584         cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590
10591 int
10592 main ()
10593 {
10594
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607   (eval "$ac_link") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && {
10614          test -z "$ac_c_werror_flag" ||
10615          test ! -s conftest.err
10616        } && test -s conftest$ac_exeext && {
10617          test "$cross_compiling" = yes ||
10618          $as_test_x conftest$ac_exeext
10619        }; then
10620
10621 lt_aix_libpath_sed='
10622     /Import File Strings/,/^$/ {
10623         /^0/ {
10624             s/^0  *\(.*\)$/\1/
10625             p
10626         }
10627     }'
10628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10629 # Check for a 64-bit object if we didn't find anything.
10630 if test -z "$aix_libpath"; then
10631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10632 fi
10633 else
10634   $as_echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637
10638 fi
10639
10640 rm -rf conftest.dSYM
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642       conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10644
10645         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10646         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"
10647       else
10648         if test "$host_cpu" = ia64; then
10649           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10650           allow_undefined_flag="-z nodefs"
10651           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"
10652         else
10653          # Determine the default libpath from the value encoded in an
10654          # empty executable.
10655          cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h.  */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h.  */
10661
10662 int
10663 main ()
10664 {
10665
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678   (eval "$ac_link") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } && {
10685          test -z "$ac_c_werror_flag" ||
10686          test ! -s conftest.err
10687        } && test -s conftest$ac_exeext && {
10688          test "$cross_compiling" = yes ||
10689          $as_test_x conftest$ac_exeext
10690        }; then
10691
10692 lt_aix_libpath_sed='
10693     /Import File Strings/,/^$/ {
10694         /^0/ {
10695             s/^0  *\(.*\)$/\1/
10696             p
10697         }
10698     }'
10699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10700 # Check for a 64-bit object if we didn't find anything.
10701 if test -z "$aix_libpath"; then
10702   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10703 fi
10704 else
10705   $as_echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708
10709 fi
10710
10711 rm -rf conftest.dSYM
10712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713       conftest$ac_exeext conftest.$ac_ext
10714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10715
10716          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10717           # Warning - without using the other run time loading flags,
10718           # -berok will link without error, but may produce a broken library.
10719           no_undefined_flag=' ${wl}-bernotok'
10720           allow_undefined_flag=' ${wl}-berok'
10721           # Exported symbols can be pulled into shared objects from archives
10722           whole_archive_flag_spec='$convenience'
10723           archive_cmds_need_lc=yes
10724           # This is similar to how AIX traditionally builds its shared libraries.
10725           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'
10726         fi
10727       fi
10728       ;;
10729
10730     amigaos*)
10731       case $host_cpu in
10732       powerpc)
10733             # see comment about AmigaOS4 .so support
10734             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735             archive_expsym_cmds=''
10736         ;;
10737       m68k)
10738             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)'
10739             hardcode_libdir_flag_spec='-L$libdir'
10740             hardcode_minus_L=yes
10741         ;;
10742       esac
10743       ;;
10744
10745     bsdi[45]*)
10746       export_dynamic_flag_spec=-rdynamic
10747       ;;
10748
10749     cygwin* | mingw* | pw32* | cegcc*)
10750       # When not using gcc, we currently assume that we are using
10751       # Microsoft Visual C++.
10752       # hardcode_libdir_flag_spec is actually meaningless, as there is
10753       # no search path for DLLs.
10754       hardcode_libdir_flag_spec=' '
10755       allow_undefined_flag=unsupported
10756       # Tell ltmain to make .lib files, not .a files.
10757       libext=lib
10758       # Tell ltmain to make .dll files, not .so files.
10759       shrext_cmds=".dll"
10760       # FIXME: Setting linknames here is a bad hack.
10761       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10762       # The linker will automatically build a .lib file if we build a DLL.
10763       old_archive_from_new_cmds='true'
10764       # FIXME: Should let the user specify the lib program.
10765       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10766       fix_srcfile_path='`cygpath -w "$srcfile"`'
10767       enable_shared_with_static_runtimes=yes
10768       ;;
10769
10770     darwin* | rhapsody*)
10771
10772
10773   archive_cmds_need_lc=no
10774   hardcode_direct=no
10775   hardcode_automatic=yes
10776   hardcode_shlibpath_var=unsupported
10777   whole_archive_flag_spec=''
10778   link_all_deplibs=yes
10779   allow_undefined_flag="$_lt_dar_allow_undefined"
10780   case $cc_basename in
10781      ifort*) _lt_dar_can_shared=yes ;;
10782      *) _lt_dar_can_shared=$GCC ;;
10783   esac
10784   if test "$_lt_dar_can_shared" = "yes"; then
10785     output_verbose_link_cmd=echo
10786     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10787     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10788     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}"
10789     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}"
10790
10791   else
10792   ld_shlibs=no
10793   fi
10794
10795       ;;
10796
10797     dgux*)
10798       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799       hardcode_libdir_flag_spec='-L$libdir'
10800       hardcode_shlibpath_var=no
10801       ;;
10802
10803     freebsd1*)
10804       ld_shlibs=no
10805       ;;
10806
10807     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10808     # support.  Future versions do this automatically, but an explicit c++rt0.o
10809     # does not break anything, and helps significantly (at the cost of a little
10810     # extra space).
10811     freebsd2.2*)
10812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10813       hardcode_libdir_flag_spec='-R$libdir'
10814       hardcode_direct=yes
10815       hardcode_shlibpath_var=no
10816       ;;
10817
10818     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10819     freebsd2*)
10820       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10821       hardcode_direct=yes
10822       hardcode_minus_L=yes
10823       hardcode_shlibpath_var=no
10824       ;;
10825
10826     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10827     freebsd* | dragonfly*)
10828       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10829       hardcode_libdir_flag_spec='-R$libdir'
10830       hardcode_direct=yes
10831       hardcode_shlibpath_var=no
10832       ;;
10833
10834     hpux9*)
10835       if test "$GCC" = yes; then
10836         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'
10837       else
10838         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'
10839       fi
10840       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10841       hardcode_libdir_separator=:
10842       hardcode_direct=yes
10843
10844       # hardcode_minus_L: Not really in the search PATH,
10845       # but as the default location of the library.
10846       hardcode_minus_L=yes
10847       export_dynamic_flag_spec='${wl}-E'
10848       ;;
10849
10850     hpux10*)
10851       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10852         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10853       else
10854         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10855       fi
10856       if test "$with_gnu_ld" = no; then
10857         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10858         hardcode_libdir_flag_spec_ld='+b $libdir'
10859         hardcode_libdir_separator=:
10860         hardcode_direct=yes
10861         hardcode_direct_absolute=yes
10862         export_dynamic_flag_spec='${wl}-E'
10863         # hardcode_minus_L: Not really in the search PATH,
10864         # but as the default location of the library.
10865         hardcode_minus_L=yes
10866       fi
10867       ;;
10868
10869     hpux11*)
10870       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10871         case $host_cpu in
10872         hppa*64*)
10873           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10874           ;;
10875         ia64*)
10876           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10877           ;;
10878         *)
10879           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10880           ;;
10881         esac
10882       else
10883         case $host_cpu in
10884         hppa*64*)
10885           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10886           ;;
10887         ia64*)
10888           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10889           ;;
10890         *)
10891           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10892           ;;
10893         esac
10894       fi
10895       if test "$with_gnu_ld" = no; then
10896         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10897         hardcode_libdir_separator=:
10898
10899         case $host_cpu in
10900         hppa*64*|ia64*)
10901           hardcode_direct=no
10902           hardcode_shlibpath_var=no
10903           ;;
10904         *)
10905           hardcode_direct=yes
10906           hardcode_direct_absolute=yes
10907           export_dynamic_flag_spec='${wl}-E'
10908
10909           # hardcode_minus_L: Not really in the search PATH,
10910           # but as the default location of the library.
10911           hardcode_minus_L=yes
10912           ;;
10913         esac
10914       fi
10915       ;;
10916
10917     irix5* | irix6* | nonstopux*)
10918       if test "$GCC" = yes; then
10919         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'
10920         # Try to use the -exported_symbol ld option, if it does not
10921         # work, assume that -exports_file does not work either and
10922         # implicitly export all symbols.
10923         save_LDFLAGS="$LDFLAGS"
10924         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10925         cat >conftest.$ac_ext <<_ACEOF
10926 int foo(void) {}
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936   (eval "$ac_link") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } && {
10943          test -z "$ac_c_werror_flag" ||
10944          test ! -s conftest.err
10945        } && test -s conftest$ac_exeext && {
10946          test "$cross_compiling" = yes ||
10947          $as_test_x conftest$ac_exeext
10948        }; then
10949   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'
10950
10951 else
10952   $as_echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955
10956 fi
10957
10958 rm -rf conftest.dSYM
10959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10960       conftest$ac_exeext conftest.$ac_ext
10961         LDFLAGS="$save_LDFLAGS"
10962       else
10963         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'
10964         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'
10965       fi
10966       archive_cmds_need_lc='no'
10967       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10968       hardcode_libdir_separator=:
10969       inherit_rpath=yes
10970       link_all_deplibs=yes
10971       ;;
10972
10973     netbsd*)
10974       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10975         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10976       else
10977         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10978       fi
10979       hardcode_libdir_flag_spec='-R$libdir'
10980       hardcode_direct=yes
10981       hardcode_shlibpath_var=no
10982       ;;
10983
10984     newsos6)
10985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986       hardcode_direct=yes
10987       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10988       hardcode_libdir_separator=:
10989       hardcode_shlibpath_var=no
10990       ;;
10991
10992     *nto* | *qnx*)
10993       ;;
10994
10995     openbsd*)
10996       if test -f /usr/libexec/ld.so; then
10997         hardcode_direct=yes
10998         hardcode_shlibpath_var=no
10999         hardcode_direct_absolute=yes
11000         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11001           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11002           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11003           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11004           export_dynamic_flag_spec='${wl}-E'
11005         else
11006           case $host_os in
11007            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11008              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11009              hardcode_libdir_flag_spec='-R$libdir'
11010              ;;
11011            *)
11012              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11014              ;;
11015           esac
11016         fi
11017       else
11018         ld_shlibs=no
11019       fi
11020       ;;
11021
11022     os2*)
11023       hardcode_libdir_flag_spec='-L$libdir'
11024       hardcode_minus_L=yes
11025       allow_undefined_flag=unsupported
11026       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'
11027       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11028       ;;
11029
11030     osf3*)
11031       if test "$GCC" = yes; then
11032         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11033         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'
11034       else
11035         allow_undefined_flag=' -expect_unresolved \*'
11036         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'
11037       fi
11038       archive_cmds_need_lc='no'
11039       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11040       hardcode_libdir_separator=:
11041       ;;
11042
11043     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11044       if test "$GCC" = yes; then
11045         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11046         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'
11047         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11048       else
11049         allow_undefined_flag=' -expect_unresolved \*'
11050         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'
11051         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~
11052         $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'
11053
11054         # Both c and cxx compiler support -rpath directly
11055         hardcode_libdir_flag_spec='-rpath $libdir'
11056       fi
11057       archive_cmds_need_lc='no'
11058       hardcode_libdir_separator=:
11059       ;;
11060
11061     solaris*)
11062       no_undefined_flag=' -z defs'
11063       if test "$GCC" = yes; then
11064         wlarc='${wl}'
11065         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11067           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11068       else
11069         case `$CC -V 2>&1` in
11070         *"Compilers 5.0"*)
11071           wlarc=''
11072           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11074           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11075           ;;
11076         *)
11077           wlarc='${wl}'
11078           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11079           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11080           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11081           ;;
11082         esac
11083       fi
11084       hardcode_libdir_flag_spec='-R$libdir'
11085       hardcode_shlibpath_var=no
11086       case $host_os in
11087       solaris2.[0-5] | solaris2.[0-5].*) ;;
11088       *)
11089         # The compiler driver will combine and reorder linker options,
11090         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11091         # but is careful enough not to reorder.
11092         # Supported since Solaris 2.6 (maybe 2.5.1?)
11093         if test "$GCC" = yes; then
11094           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11095         else
11096           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11097         fi
11098         ;;
11099       esac
11100       link_all_deplibs=yes
11101       ;;
11102
11103     sunos4*)
11104       if test "x$host_vendor" = xsequent; then
11105         # Use $CC to link under sequent, because it throws in some extra .o
11106         # files that make .init and .fini sections work.
11107         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11108       else
11109         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11110       fi
11111       hardcode_libdir_flag_spec='-L$libdir'
11112       hardcode_direct=yes
11113       hardcode_minus_L=yes
11114       hardcode_shlibpath_var=no
11115       ;;
11116
11117     sysv4)
11118       case $host_vendor in
11119         sni)
11120           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121           hardcode_direct=yes # is this really true???
11122         ;;
11123         siemens)
11124           ## LD is ld it makes a PLAMLIB
11125           ## CC just makes a GrossModule.
11126           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11127           reload_cmds='$CC -r -o $output$reload_objs'
11128           hardcode_direct=no
11129         ;;
11130         motorola)
11131           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11133         ;;
11134       esac
11135       runpath_var='LD_RUN_PATH'
11136       hardcode_shlibpath_var=no
11137       ;;
11138
11139     sysv4.3*)
11140       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141       hardcode_shlibpath_var=no
11142       export_dynamic_flag_spec='-Bexport'
11143       ;;
11144
11145     sysv4*MP*)
11146       if test -d /usr/nec; then
11147         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148         hardcode_shlibpath_var=no
11149         runpath_var=LD_RUN_PATH
11150         hardcode_runpath_var=yes
11151         ld_shlibs=yes
11152       fi
11153       ;;
11154
11155     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11156       no_undefined_flag='${wl}-z,text'
11157       archive_cmds_need_lc=no
11158       hardcode_shlibpath_var=no
11159       runpath_var='LD_RUN_PATH'
11160
11161       if test "$GCC" = yes; then
11162         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164       else
11165         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167       fi
11168       ;;
11169
11170     sysv5* | sco3.2v5* | sco5v6*)
11171       # Note: We can NOT use -z defs as we might desire, because we do not
11172       # link with -lc, and that would cause any symbols used from libc to
11173       # always be unresolved, which means just about no library would
11174       # ever link correctly.  If we're not using GNU ld we use -z text
11175       # though, which does catch some bad symbols but isn't as heavy-handed
11176       # as -z defs.
11177       no_undefined_flag='${wl}-z,text'
11178       allow_undefined_flag='${wl}-z,nodefs'
11179       archive_cmds_need_lc=no
11180       hardcode_shlibpath_var=no
11181       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11182       hardcode_libdir_separator=':'
11183       link_all_deplibs=yes
11184       export_dynamic_flag_spec='${wl}-Bexport'
11185       runpath_var='LD_RUN_PATH'
11186
11187       if test "$GCC" = yes; then
11188         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190       else
11191         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11192         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193       fi
11194       ;;
11195
11196     uts4*)
11197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198       hardcode_libdir_flag_spec='-L$libdir'
11199       hardcode_shlibpath_var=no
11200       ;;
11201
11202     *)
11203       ld_shlibs=no
11204       ;;
11205     esac
11206
11207     if test x$host_vendor = xsni; then
11208       case $host in
11209       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11210         export_dynamic_flag_spec='${wl}-Blargedynsym'
11211         ;;
11212       esac
11213     fi
11214   fi
11215
11216 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11217 $as_echo "$ld_shlibs" >&6; }
11218 test "$ld_shlibs" = no && can_build_shared=no
11219
11220 with_gnu_ld=$with_gnu_ld
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236 #
11237 # Do we need to explicitly link libc?
11238 #
11239 case "x$archive_cmds_need_lc" in
11240 x|xyes)
11241   # Assume -lc should be added
11242   archive_cmds_need_lc=yes
11243
11244   if test "$enable_shared" = yes && test "$GCC" = yes; then
11245     case $archive_cmds in
11246     *'~'*)
11247       # FIXME: we may have to deal with multi-command sequences.
11248       ;;
11249     '$CC '*)
11250       # Test whether the compiler implicitly links with -lc since on some
11251       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11252       # to ld, don't add -lc before -lgcc.
11253       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11254 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11255       $RM conftest*
11256       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11257
11258       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259   (eval $ac_compile) 2>&5
11260   ac_status=$?
11261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } 2>conftest.err; then
11263         soname=conftest
11264         lib=conftest
11265         libobjs=conftest.$ac_objext
11266         deplibs=
11267         wl=$lt_prog_compiler_wl
11268         pic_flag=$lt_prog_compiler_pic
11269         compiler_flags=-v
11270         linker_flags=-v
11271         verstring=
11272         output_objdir=.
11273         libname=conftest
11274         lt_save_allow_undefined_flag=$allow_undefined_flag
11275         allow_undefined_flag=
11276         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11277   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11278   ac_status=$?
11279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }
11281         then
11282           archive_cmds_need_lc=no
11283         else
11284           archive_cmds_need_lc=yes
11285         fi
11286         allow_undefined_flag=$lt_save_allow_undefined_flag
11287       else
11288         cat conftest.err 1>&5
11289       fi
11290       $RM conftest*
11291       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11292 $as_echo "$archive_cmds_need_lc" >&6; }
11293       ;;
11294     esac
11295   fi
11296   ;;
11297 esac
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
11452
11453
11454
11455   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11456 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11457
11458 if test "$GCC" = yes; then
11459   case $host_os in
11460     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11461     *) lt_awk_arg="/^libraries:/" ;;
11462   esac
11463   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11464   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11465     # if the path contains ";" then we assume it to be the separator
11466     # otherwise default to the standard path separator (i.e. ":") - it is
11467     # assumed that no part of a normal pathname contains ";" but that should
11468     # okay in the real world where ";" in dirpaths is itself problematic.
11469     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11470   else
11471     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11472   fi
11473   # Ok, now we have the path, separated by spaces, we can step through it
11474   # and add multilib dir if necessary.
11475   lt_tmp_lt_search_path_spec=
11476   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11477   for lt_sys_path in $lt_search_path_spec; do
11478     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11479       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11480     else
11481       test -d "$lt_sys_path" && \
11482         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11483     fi
11484   done
11485   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11486 BEGIN {RS=" "; FS="/|\n";} {
11487   lt_foo="";
11488   lt_count=0;
11489   for (lt_i = NF; lt_i > 0; lt_i--) {
11490     if ($lt_i != "" && $lt_i != ".") {
11491       if ($lt_i == "..") {
11492         lt_count++;
11493       } else {
11494         if (lt_count == 0) {
11495           lt_foo="/" $lt_i lt_foo;
11496         } else {
11497           lt_count--;
11498         }
11499       }
11500     }
11501   }
11502   if (lt_foo != "") { lt_freq[lt_foo]++; }
11503   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11504 }'`
11505   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11506 else
11507   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11508 fi
11509 library_names_spec=
11510 libname_spec='lib$name'
11511 soname_spec=
11512 shrext_cmds=".so"
11513 postinstall_cmds=
11514 postuninstall_cmds=
11515 finish_cmds=
11516 finish_eval=
11517 shlibpath_var=
11518 shlibpath_overrides_runpath=unknown
11519 version_type=none
11520 dynamic_linker="$host_os ld.so"
11521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11522 need_lib_prefix=unknown
11523 hardcode_into_libs=no
11524
11525 # when you set need_version to no, make sure it does not cause -set_version
11526 # flags to be left without arguments
11527 need_version=unknown
11528
11529 case $host_os in
11530 aix3*)
11531   version_type=linux
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11533   shlibpath_var=LIBPATH
11534
11535   # AIX 3 has no versioning support, so we append a major version to the name.
11536   soname_spec='${libname}${release}${shared_ext}$major'
11537   ;;
11538
11539 aix[4-9]*)
11540   version_type=linux
11541   need_lib_prefix=no
11542   need_version=no
11543   hardcode_into_libs=yes
11544   if test "$host_cpu" = ia64; then
11545     # AIX 5 supports IA64
11546     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11547     shlibpath_var=LD_LIBRARY_PATH
11548   else
11549     # With GCC up to 2.95.x, collect2 would create an import file
11550     # for dependence libraries.  The import file would start with
11551     # the line `#! .'.  This would cause the generated library to
11552     # depend on `.', always an invalid library.  This was fixed in
11553     # development snapshots of GCC prior to 3.0.
11554     case $host_os in
11555       aix4 | aix4.[01] | aix4.[01].*)
11556       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11557            echo ' yes '
11558            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11559         :
11560       else
11561         can_build_shared=no
11562       fi
11563       ;;
11564     esac
11565     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11566     # soname into executable. Probably we can add versioning support to
11567     # collect2, so additional links can be useful in future.
11568     if test "$aix_use_runtimelinking" = yes; then
11569       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11570       # instead of lib<name>.a to let people know that these are not
11571       # typical AIX shared libraries.
11572       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573     else
11574       # We preserve .a as extension for shared libraries through AIX4.2
11575       # and later when we are not doing run time linking.
11576       library_names_spec='${libname}${release}.a $libname.a'
11577       soname_spec='${libname}${release}${shared_ext}$major'
11578     fi
11579     shlibpath_var=LIBPATH
11580   fi
11581   ;;
11582
11583 amigaos*)
11584   case $host_cpu in
11585   powerpc)
11586     # Since July 2007 AmigaOS4 officially supports .so libraries.
11587     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589     ;;
11590   m68k)
11591     library_names_spec='$libname.ixlibrary $libname.a'
11592     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11593     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'
11594     ;;
11595   esac
11596   ;;
11597
11598 beos*)
11599   library_names_spec='${libname}${shared_ext}'
11600   dynamic_linker="$host_os ld.so"
11601   shlibpath_var=LIBRARY_PATH
11602   ;;
11603
11604 bsdi[45]*)
11605   version_type=linux
11606   need_version=no
11607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608   soname_spec='${libname}${release}${shared_ext}$major'
11609   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11610   shlibpath_var=LD_LIBRARY_PATH
11611   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11612   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11613   # the default ld.so.conf also contains /usr/contrib/lib and
11614   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11615   # libtool to hard-code these into programs
11616   ;;
11617
11618 cygwin* | mingw* | pw32* | cegcc*)
11619   version_type=windows
11620   shrext_cmds=".dll"
11621   need_version=no
11622   need_lib_prefix=no
11623
11624   case $GCC,$host_os in
11625   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11626     library_names_spec='$libname.dll.a'
11627     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11628     postinstall_cmds='base_file=`basename \${file}`~
11629       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11630       dldir=$destdir/`dirname \$dlpath`~
11631       test -d \$dldir || mkdir -p \$dldir~
11632       $install_prog $dir/$dlname \$dldir/$dlname~
11633       chmod a+x \$dldir/$dlname~
11634       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11635         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11636       fi'
11637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11638       dlpath=$dir/\$dldll~
11639        $RM \$dlpath'
11640     shlibpath_overrides_runpath=yes
11641
11642     case $host_os in
11643     cygwin*)
11644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11646       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11647       ;;
11648     mingw* | cegcc*)
11649       # MinGW DLLs use traditional 'lib' prefix
11650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11651       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11652       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11653         # It is most probably a Windows format PATH printed by
11654         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11655         # path with ; separators, and with drive letters. We can handle the
11656         # drive letters (cygwin fileutils understands them), so leave them,
11657         # especially as we might pass files found there to a mingw objdump,
11658         # which wouldn't understand a cygwinified path. Ahh.
11659         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11660       else
11661         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11662       fi
11663       ;;
11664     pw32*)
11665       # pw32 DLLs use 'pw' prefix rather than 'lib'
11666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11667       ;;
11668     esac
11669     ;;
11670
11671   *)
11672     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11673     ;;
11674   esac
11675   dynamic_linker='Win32 ld.exe'
11676   # FIXME: first we should search . and the directory the executable is in
11677   shlibpath_var=PATH
11678   ;;
11679
11680 darwin* | rhapsody*)
11681   dynamic_linker="$host_os dyld"
11682   version_type=darwin
11683   need_lib_prefix=no
11684   need_version=no
11685   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11686   soname_spec='${libname}${release}${major}$shared_ext'
11687   shlibpath_overrides_runpath=yes
11688   shlibpath_var=DYLD_LIBRARY_PATH
11689   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11690
11691   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11692   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11693   ;;
11694
11695 dgux*)
11696   version_type=linux
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   ;;
11703
11704 freebsd1*)
11705   dynamic_linker=no
11706   ;;
11707
11708 freebsd* | dragonfly*)
11709   # DragonFly does not have aout.  When/if they implement a new
11710   # versioning mechanism, adjust this.
11711   if test -x /usr/bin/objformat; then
11712     objformat=`/usr/bin/objformat`
11713   else
11714     case $host_os in
11715     freebsd[123]*) objformat=aout ;;
11716     *) objformat=elf ;;
11717     esac
11718   fi
11719   version_type=freebsd-$objformat
11720   case $version_type in
11721     freebsd-elf*)
11722       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11723       need_version=no
11724       need_lib_prefix=no
11725       ;;
11726     freebsd-*)
11727       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11728       need_version=yes
11729       ;;
11730   esac
11731   shlibpath_var=LD_LIBRARY_PATH
11732   case $host_os in
11733   freebsd2*)
11734     shlibpath_overrides_runpath=yes
11735     ;;
11736   freebsd3.[01]* | freebsdelf3.[01]*)
11737     shlibpath_overrides_runpath=yes
11738     hardcode_into_libs=yes
11739     ;;
11740   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11741   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11742     shlibpath_overrides_runpath=no
11743     hardcode_into_libs=yes
11744     ;;
11745   *) # from 4.6 on, and DragonFly
11746     shlibpath_overrides_runpath=yes
11747     hardcode_into_libs=yes
11748     ;;
11749   esac
11750   ;;
11751
11752 gnu*)
11753   version_type=linux
11754   need_lib_prefix=no
11755   need_version=no
11756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11757   soname_spec='${libname}${release}${shared_ext}$major'
11758   shlibpath_var=LD_LIBRARY_PATH
11759   hardcode_into_libs=yes
11760   ;;
11761
11762 hpux9* | hpux10* | hpux11*)
11763   # Give a soname corresponding to the major version so that dld.sl refuses to
11764   # link against other versions.
11765   version_type=sunos
11766   need_lib_prefix=no
11767   need_version=no
11768   case $host_cpu in
11769   ia64*)
11770     shrext_cmds='.so'
11771     hardcode_into_libs=yes
11772     dynamic_linker="$host_os dld.so"
11773     shlibpath_var=LD_LIBRARY_PATH
11774     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776     soname_spec='${libname}${release}${shared_ext}$major'
11777     if test "X$HPUX_IA64_MODE" = X32; then
11778       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11779     else
11780       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11781     fi
11782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11783     ;;
11784   hppa*64*)
11785     shrext_cmds='.sl'
11786     hardcode_into_libs=yes
11787     dynamic_linker="$host_os dld.sl"
11788     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791     soname_spec='${libname}${release}${shared_ext}$major'
11792     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11794     ;;
11795   *)
11796     shrext_cmds='.sl'
11797     dynamic_linker="$host_os dld.sl"
11798     shlibpath_var=SHLIB_PATH
11799     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801     soname_spec='${libname}${release}${shared_ext}$major'
11802     ;;
11803   esac
11804   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11805   postinstall_cmds='chmod 555 $lib'
11806   ;;
11807
11808 interix[3-9]*)
11809   version_type=linux
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11815   shlibpath_var=LD_LIBRARY_PATH
11816   shlibpath_overrides_runpath=no
11817   hardcode_into_libs=yes
11818   ;;
11819
11820 irix5* | irix6* | nonstopux*)
11821   case $host_os in
11822     nonstopux*) version_type=nonstopux ;;
11823     *)
11824         if test "$lt_cv_prog_gnu_ld" = yes; then
11825                 version_type=linux
11826         else
11827                 version_type=irix
11828         fi ;;
11829   esac
11830   need_lib_prefix=no
11831   need_version=no
11832   soname_spec='${libname}${release}${shared_ext}$major'
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11834   case $host_os in
11835   irix5* | nonstopux*)
11836     libsuff= shlibsuff=
11837     ;;
11838   *)
11839     case $LD in # libtool.m4 will add one of these switches to LD
11840     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11841       libsuff= shlibsuff= libmagic=32-bit;;
11842     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11843       libsuff=32 shlibsuff=N32 libmagic=N32;;
11844     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11845       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11846     *) libsuff= shlibsuff= libmagic=never-match;;
11847     esac
11848     ;;
11849   esac
11850   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11851   shlibpath_overrides_runpath=no
11852   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11853   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11854   hardcode_into_libs=yes
11855   ;;
11856
11857 # No shared lib support for Linux oldld, aout, or coff.
11858 linux*oldld* | linux*aout* | linux*coff*)
11859   dynamic_linker=no
11860   ;;
11861
11862 # This must be Linux ELF.
11863 linux* | k*bsd*-gnu)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   shlibpath_overrides_runpath=no
11872   # Some binutils ld are patched to set DT_RUNPATH
11873   save_LDFLAGS=$LDFLAGS
11874   save_libdir=$libdir
11875   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11876        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11877   cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883
11884 int
11885 main ()
11886 {
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900   (eval "$ac_link") 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } && {
11907          test -z "$ac_c_werror_flag" ||
11908          test ! -s conftest.err
11909        } && test -s conftest$ac_exeext && {
11910          test "$cross_compiling" = yes ||
11911          $as_test_x conftest$ac_exeext
11912        }; then
11913   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11914   shlibpath_overrides_runpath=yes
11915 fi
11916
11917 else
11918   $as_echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921
11922 fi
11923
11924 rm -rf conftest.dSYM
11925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11926       conftest$ac_exeext conftest.$ac_ext
11927   LDFLAGS=$save_LDFLAGS
11928   libdir=$save_libdir
11929
11930   # This implies no fast_install, which is unacceptable.
11931   # Some rework will be needed to allow for fast_install
11932   # before this can be enabled.
11933   hardcode_into_libs=yes
11934
11935   # Append ld.so.conf contents to the search path
11936   if test -f /etc/ld.so.conf; then
11937     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' ' '`
11938     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11939   fi
11940
11941   # We used to test for /lib/ld.so.1 and disable shared libraries on
11942   # powerpc, because MkLinux only supported shared libraries with the
11943   # GNU dynamic linker.  Since this was broken with cross compilers,
11944   # most powerpc-linux boxes support dynamic linking these days and
11945   # people can always --disable-shared, the test was removed, and we
11946   # assume the GNU/Linux dynamic linker is in use.
11947   dynamic_linker='GNU/Linux ld.so'
11948   ;;
11949
11950 netbsd*)
11951   version_type=sunos
11952   need_lib_prefix=no
11953   need_version=no
11954   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11956     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11957     dynamic_linker='NetBSD (a.out) ld.so'
11958   else
11959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11960     soname_spec='${libname}${release}${shared_ext}$major'
11961     dynamic_linker='NetBSD ld.elf_so'
11962   fi
11963   shlibpath_var=LD_LIBRARY_PATH
11964   shlibpath_overrides_runpath=yes
11965   hardcode_into_libs=yes
11966   ;;
11967
11968 newsos6)
11969   version_type=linux
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971   shlibpath_var=LD_LIBRARY_PATH
11972   shlibpath_overrides_runpath=yes
11973   ;;
11974
11975 *nto* | *qnx*)
11976   version_type=qnx
11977   need_lib_prefix=no
11978   need_version=no
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   shlibpath_overrides_runpath=no
11983   hardcode_into_libs=yes
11984   dynamic_linker='ldqnx.so'
11985   ;;
11986
11987 openbsd*)
11988   version_type=sunos
11989   sys_lib_dlsearch_path_spec="/usr/lib"
11990   need_lib_prefix=no
11991   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11992   case $host_os in
11993     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11994     *)                          need_version=no  ;;
11995   esac
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12000     case $host_os in
12001       openbsd2.[89] | openbsd2.[89].*)
12002         shlibpath_overrides_runpath=no
12003         ;;
12004       *)
12005         shlibpath_overrides_runpath=yes
12006         ;;
12007       esac
12008   else
12009     shlibpath_overrides_runpath=yes
12010   fi
12011   ;;
12012
12013 os2*)
12014   libname_spec='$name'
12015   shrext_cmds=".dll"
12016   need_lib_prefix=no
12017   library_names_spec='$libname${shared_ext} $libname.a'
12018   dynamic_linker='OS/2 ld.exe'
12019   shlibpath_var=LIBPATH
12020   ;;
12021
12022 osf3* | osf4* | osf5*)
12023   version_type=osf
12024   need_lib_prefix=no
12025   need_version=no
12026   soname_spec='${libname}${release}${shared_ext}$major'
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12031   ;;
12032
12033 rdos*)
12034   dynamic_linker=no
12035   ;;
12036
12037 solaris*)
12038   version_type=linux
12039   need_lib_prefix=no
12040   need_version=no
12041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042   soname_spec='${libname}${release}${shared_ext}$major'
12043   shlibpath_var=LD_LIBRARY_PATH
12044   shlibpath_overrides_runpath=yes
12045   hardcode_into_libs=yes
12046   # ldd complains unless libraries are executable
12047   postinstall_cmds='chmod +x $lib'
12048   ;;
12049
12050 sunos4*)
12051   version_type=sunos
12052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12054   shlibpath_var=LD_LIBRARY_PATH
12055   shlibpath_overrides_runpath=yes
12056   if test "$with_gnu_ld" = yes; then
12057     need_lib_prefix=no
12058   fi
12059   need_version=yes
12060   ;;
12061
12062 sysv4 | sysv4.3*)
12063   version_type=linux
12064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065   soname_spec='${libname}${release}${shared_ext}$major'
12066   shlibpath_var=LD_LIBRARY_PATH
12067   case $host_vendor in
12068     sni)
12069       shlibpath_overrides_runpath=no
12070       need_lib_prefix=no
12071       runpath_var=LD_RUN_PATH
12072       ;;
12073     siemens)
12074       need_lib_prefix=no
12075       ;;
12076     motorola)
12077       need_lib_prefix=no
12078       need_version=no
12079       shlibpath_overrides_runpath=no
12080       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12081       ;;
12082   esac
12083   ;;
12084
12085 sysv4*MP*)
12086   if test -d /usr/nec ;then
12087     version_type=linux
12088     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12089     soname_spec='$libname${shared_ext}.$major'
12090     shlibpath_var=LD_LIBRARY_PATH
12091   fi
12092   ;;
12093
12094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12095   version_type=freebsd-elf
12096   need_lib_prefix=no
12097   need_version=no
12098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12099   soname_spec='${libname}${release}${shared_ext}$major'
12100   shlibpath_var=LD_LIBRARY_PATH
12101   shlibpath_overrides_runpath=yes
12102   hardcode_into_libs=yes
12103   if test "$with_gnu_ld" = yes; then
12104     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12105   else
12106     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12107     case $host_os in
12108       sco3.2v5*)
12109         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12110         ;;
12111     esac
12112   fi
12113   sys_lib_dlsearch_path_spec='/usr/lib'
12114   ;;
12115
12116 tpf*)
12117   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12118   version_type=linux
12119   need_lib_prefix=no
12120   need_version=no
12121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122   shlibpath_var=LD_LIBRARY_PATH
12123   shlibpath_overrides_runpath=no
12124   hardcode_into_libs=yes
12125   ;;
12126
12127 uts4*)
12128   version_type=linux
12129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130   soname_spec='${libname}${release}${shared_ext}$major'
12131   shlibpath_var=LD_LIBRARY_PATH
12132   ;;
12133
12134 *)
12135   dynamic_linker=no
12136   ;;
12137 esac
12138 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12139 $as_echo "$dynamic_linker" >&6; }
12140 test "$dynamic_linker" = no && can_build_shared=no
12141
12142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12143 if test "$GCC" = yes; then
12144   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12145 fi
12146
12147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12148   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12149 fi
12150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12151   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12152 fi
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
12237
12238
12239
12240   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12241 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12242 hardcode_action=
12243 if test -n "$hardcode_libdir_flag_spec" ||
12244    test -n "$runpath_var" ||
12245    test "X$hardcode_automatic" = "Xyes" ; then
12246
12247   # We can hardcode non-existent directories.
12248   if test "$hardcode_direct" != no &&
12249      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12250      # have to relink, otherwise we might link with an installed library
12251      # when we should be linking with a yet-to-be-installed one
12252      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12253      test "$hardcode_minus_L" != no; then
12254     # Linking always hardcodes the temporary library directory.
12255     hardcode_action=relink
12256   else
12257     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12258     hardcode_action=immediate
12259   fi
12260 else
12261   # We cannot hardcode anything, or else we can only hardcode existing
12262   # directories.
12263   hardcode_action=unsupported
12264 fi
12265 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12266 $as_echo "$hardcode_action" >&6; }
12267
12268 if test "$hardcode_action" = relink ||
12269    test "$inherit_rpath" = yes; then
12270   # Fast installation is not supported
12271   enable_fast_install=no
12272 elif test "$shlibpath_overrides_runpath" = yes ||
12273      test "$enable_shared" = no; then
12274   # Fast installation is not necessary
12275   enable_fast_install=needless
12276 fi
12277
12278
12279
12280
12281
12282
12283   if test "x$enable_dlopen" != xyes; then
12284   enable_dlopen=unknown
12285   enable_dlopen_self=unknown
12286   enable_dlopen_self_static=unknown
12287 else
12288   lt_cv_dlopen=no
12289   lt_cv_dlopen_libs=
12290
12291   case $host_os in
12292   beos*)
12293     lt_cv_dlopen="load_add_on"
12294     lt_cv_dlopen_libs=
12295     lt_cv_dlopen_self=yes
12296     ;;
12297
12298   mingw* | pw32* | cegcc*)
12299     lt_cv_dlopen="LoadLibrary"
12300     lt_cv_dlopen_libs=
12301     ;;
12302
12303   cygwin*)
12304     lt_cv_dlopen="dlopen"
12305     lt_cv_dlopen_libs=
12306     ;;
12307
12308   darwin*)
12309   # if libdl is installed we need to link against it
12310     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12311 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12313   $as_echo_n "(cached) " >&6
12314 else
12315   ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-ldl  $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323
12324 /* Override any GCC internal prototype to avoid an error.
12325    Use char because int might match the return type of a GCC
12326    builtin and then its argument prototype would still apply.  */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char dlopen ();
12331 int
12332 main ()
12333 {
12334 return dlopen ();
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343   *) ac_try_echo=$ac_try;;
12344 esac
12345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346 $as_echo "$ac_try_echo") >&5
12347   (eval "$ac_link") 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && {
12354          test -z "$ac_c_werror_flag" ||
12355          test ! -s conftest.err
12356        } && test -s conftest$ac_exeext && {
12357          test "$cross_compiling" = yes ||
12358          $as_test_x conftest$ac_exeext
12359        }; then
12360   ac_cv_lib_dl_dlopen=yes
12361 else
12362   $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365         ac_cv_lib_dl_dlopen=no
12366 fi
12367
12368 rm -rf conftest.dSYM
12369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12370       conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12375 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12376   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 else
12378
12379     lt_cv_dlopen="dyld"
12380     lt_cv_dlopen_libs=
12381     lt_cv_dlopen_self=yes
12382
12383 fi
12384
12385     ;;
12386
12387   *)
12388     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12389 $as_echo_n "checking for shl_load... " >&6; }
12390 if test "${ac_cv_func_shl_load+set}" = set; then
12391   $as_echo_n "(cached) " >&6
12392 else
12393   cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12401 #define shl_load innocuous_shl_load
12402
12403 /* System header to define __stub macros and hopefully few prototypes,
12404     which can conflict with char shl_load (); below.
12405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406     <limits.h> exists even on freestanding compilers.  */
12407
12408 #ifdef __STDC__
12409 # include <limits.h>
12410 #else
12411 # include <assert.h>
12412 #endif
12413
12414 #undef shl_load
12415
12416 /* Override any GCC internal prototype to avoid an error.
12417    Use char because int might match the return type of a GCC
12418    builtin and then its argument prototype would still apply.  */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char shl_load ();
12423 /* The GNU C library defines this for functions which it implements
12424     to always fail with ENOSYS.  Some functions are actually named
12425     something starting with __ and the normal name is an alias.  */
12426 #if defined __stub_shl_load || defined __stub___shl_load
12427 choke me
12428 #endif
12429
12430 int
12431 main ()
12432 {
12433 return shl_load ();
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (ac_try="$ac_link"
12440 case "(($ac_try" in
12441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442   *) ac_try_echo=$ac_try;;
12443 esac
12444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12445 $as_echo "$ac_try_echo") >&5
12446   (eval "$ac_link") 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } && {
12453          test -z "$ac_c_werror_flag" ||
12454          test ! -s conftest.err
12455        } && test -s conftest$ac_exeext && {
12456          test "$cross_compiling" = yes ||
12457          $as_test_x conftest$ac_exeext
12458        }; then
12459   ac_cv_func_shl_load=yes
12460 else
12461   $as_echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464         ac_cv_func_shl_load=no
12465 fi
12466
12467 rm -rf conftest.dSYM
12468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12469       conftest$ac_exeext conftest.$ac_ext
12470 fi
12471 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12472 $as_echo "$ac_cv_func_shl_load" >&6; }
12473 if test "x$ac_cv_func_shl_load" = x""yes; then
12474   lt_cv_dlopen="shl_load"
12475 else
12476   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12477 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12478 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12479   $as_echo_n "(cached) " >&6
12480 else
12481   ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-ldld  $LIBS"
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491    Use char because int might match the return type of a GCC
12492    builtin and then its argument prototype would still apply.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char shl_load ();
12497 int
12498 main ()
12499 {
12500 return shl_load ();
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509   *) ac_try_echo=$ac_try;;
12510 esac
12511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12512 $as_echo "$ac_try_echo") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } && {
12520          test -z "$ac_c_werror_flag" ||
12521          test ! -s conftest.err
12522        } && test -s conftest$ac_exeext && {
12523          test "$cross_compiling" = yes ||
12524          $as_test_x conftest$ac_exeext
12525        }; then
12526   ac_cv_lib_dld_shl_load=yes
12527 else
12528   $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531         ac_cv_lib_dld_shl_load=no
12532 fi
12533
12534 rm -rf conftest.dSYM
12535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536       conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12541 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12542   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12543 else
12544   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12545 $as_echo_n "checking for dlopen... " >&6; }
12546 if test "${ac_cv_func_dlopen+set}" = set; then
12547   $as_echo_n "(cached) " >&6
12548 else
12549   cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12557 #define dlopen innocuous_dlopen
12558
12559 /* System header to define __stub macros and hopefully few prototypes,
12560     which can conflict with char dlopen (); below.
12561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12562     <limits.h> exists even on freestanding compilers.  */
12563
12564 #ifdef __STDC__
12565 # include <limits.h>
12566 #else
12567 # include <assert.h>
12568 #endif
12569
12570 #undef dlopen
12571
12572 /* Override any GCC internal prototype to avoid an error.
12573    Use char because int might match the return type of a GCC
12574    builtin and then its argument prototype would still apply.  */
12575 #ifdef __cplusplus
12576 extern "C"
12577 #endif
12578 char dlopen ();
12579 /* The GNU C library defines this for functions which it implements
12580     to always fail with ENOSYS.  Some functions are actually named
12581     something starting with __ and the normal name is an alias.  */
12582 #if defined __stub_dlopen || defined __stub___dlopen
12583 choke me
12584 #endif
12585
12586 int
12587 main ()
12588 {
12589 return dlopen ();
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602   (eval "$ac_link") 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } && {
12609          test -z "$ac_c_werror_flag" ||
12610          test ! -s conftest.err
12611        } && test -s conftest$ac_exeext && {
12612          test "$cross_compiling" = yes ||
12613          $as_test_x conftest$ac_exeext
12614        }; then
12615   ac_cv_func_dlopen=yes
12616 else
12617   $as_echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620         ac_cv_func_dlopen=no
12621 fi
12622
12623 rm -rf conftest.dSYM
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625       conftest$ac_exeext conftest.$ac_ext
12626 fi
12627 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12628 $as_echo "$ac_cv_func_dlopen" >&6; }
12629 if test "x$ac_cv_func_dlopen" = x""yes; then
12630   lt_cv_dlopen="dlopen"
12631 else
12632   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12635   $as_echo_n "(cached) " >&6
12636 else
12637   ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-ldl  $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647    Use char because int might match the return type of a GCC
12648    builtin and then its argument prototype would still apply.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char dlopen ();
12653 int
12654 main ()
12655 {
12656 return dlopen ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669   (eval "$ac_link") 2>conftest.er1
12670   ac_status=$?
12671   grep -v '^ *+' conftest.er1 >conftest.err
12672   rm -f conftest.er1
12673   cat conftest.err >&5
12674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } && {
12676          test -z "$ac_c_werror_flag" ||
12677          test ! -s conftest.err
12678        } && test -s conftest$ac_exeext && {
12679          test "$cross_compiling" = yes ||
12680          $as_test_x conftest$ac_exeext
12681        }; then
12682   ac_cv_lib_dl_dlopen=yes
12683 else
12684   $as_echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687         ac_cv_lib_dl_dlopen=no
12688 fi
12689
12690 rm -rf conftest.dSYM
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692       conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12698   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12699 else
12700   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12701 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12702 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12703   $as_echo_n "(cached) " >&6
12704 else
12705   ac_check_lib_save_LIBS=$LIBS
12706 LIBS="-lsvld  $LIBS"
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715    Use char because int might match the return type of a GCC
12716    builtin and then its argument prototype would still apply.  */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char dlopen ();
12721 int
12722 main ()
12723 {
12724 return dlopen ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737   (eval "$ac_link") 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } && {
12744          test -z "$ac_c_werror_flag" ||
12745          test ! -s conftest.err
12746        } && test -s conftest$ac_exeext && {
12747          test "$cross_compiling" = yes ||
12748          $as_test_x conftest$ac_exeext
12749        }; then
12750   ac_cv_lib_svld_dlopen=yes
12751 else
12752   $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755         ac_cv_lib_svld_dlopen=no
12756 fi
12757
12758 rm -rf conftest.dSYM
12759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12760       conftest$ac_exeext conftest.$ac_ext
12761 LIBS=$ac_check_lib_save_LIBS
12762 fi
12763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12764 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12765 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12766   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12767 else
12768   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12769 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12771   $as_echo_n "(cached) " >&6
12772 else
12773   ac_check_lib_save_LIBS=$LIBS
12774 LIBS="-ldld  $LIBS"
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781
12782 /* Override any GCC internal prototype to avoid an error.
12783    Use char because int might match the return type of a GCC
12784    builtin and then its argument prototype would still apply.  */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 char dld_link ();
12789 int
12790 main ()
12791 {
12792 return dld_link ();
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804 $as_echo "$ac_try_echo") >&5
12805   (eval "$ac_link") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } && {
12812          test -z "$ac_c_werror_flag" ||
12813          test ! -s conftest.err
12814        } && test -s conftest$ac_exeext && {
12815          test "$cross_compiling" = yes ||
12816          $as_test_x conftest$ac_exeext
12817        }; then
12818   ac_cv_lib_dld_dld_link=yes
12819 else
12820   $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823         ac_cv_lib_dld_dld_link=no
12824 fi
12825
12826 rm -rf conftest.dSYM
12827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12828       conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12830 fi
12831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12832 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12833 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12834   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12835 fi
12836
12837
12838 fi
12839
12840
12841 fi
12842
12843
12844 fi
12845
12846
12847 fi
12848
12849
12850 fi
12851
12852     ;;
12853   esac
12854
12855   if test "x$lt_cv_dlopen" != xno; then
12856     enable_dlopen=yes
12857   else
12858     enable_dlopen=no
12859   fi
12860
12861   case $lt_cv_dlopen in
12862   dlopen)
12863     save_CPPFLAGS="$CPPFLAGS"
12864     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12865
12866     save_LDFLAGS="$LDFLAGS"
12867     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12868
12869     save_LIBS="$LIBS"
12870     LIBS="$lt_cv_dlopen_libs $LIBS"
12871
12872     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12873 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12874 if test "${lt_cv_dlopen_self+set}" = set; then
12875   $as_echo_n "(cached) " >&6
12876 else
12877           if test "$cross_compiling" = yes; then :
12878   lt_cv_dlopen_self=cross
12879 else
12880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12881   lt_status=$lt_dlunknown
12882   cat > conftest.$ac_ext <<_LT_EOF
12883 #line 12883 "configure"
12884 #include "confdefs.h"
12885
12886 #if HAVE_DLFCN_H
12887 #include <dlfcn.h>
12888 #endif
12889
12890 #include <stdio.h>
12891
12892 #ifdef RTLD_GLOBAL
12893 #  define LT_DLGLOBAL           RTLD_GLOBAL
12894 #else
12895 #  ifdef DL_GLOBAL
12896 #    define LT_DLGLOBAL         DL_GLOBAL
12897 #  else
12898 #    define LT_DLGLOBAL         0
12899 #  endif
12900 #endif
12901
12902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12903    find out it does not work in some platform. */
12904 #ifndef LT_DLLAZY_OR_NOW
12905 #  ifdef RTLD_LAZY
12906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12907 #  else
12908 #    ifdef DL_LAZY
12909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12910 #    else
12911 #      ifdef RTLD_NOW
12912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12913 #      else
12914 #        ifdef DL_NOW
12915 #          define LT_DLLAZY_OR_NOW      DL_NOW
12916 #        else
12917 #          define LT_DLLAZY_OR_NOW      0
12918 #        endif
12919 #      endif
12920 #    endif
12921 #  endif
12922 #endif
12923
12924 void fnord() { int i=42;}
12925 int main ()
12926 {
12927   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928   int status = $lt_dlunknown;
12929
12930   if (self)
12931     {
12932       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12933       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934       /* dlclose (self); */
12935     }
12936   else
12937     puts (dlerror ());
12938
12939   return status;
12940 }
12941 _LT_EOF
12942   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943   (eval $ac_link) 2>&5
12944   ac_status=$?
12945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12947     (./conftest; exit; ) >&5 2>/dev/null
12948     lt_status=$?
12949     case x$lt_status in
12950       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12951       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12952       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12953     esac
12954   else :
12955     # compilation failed
12956     lt_cv_dlopen_self=no
12957   fi
12958 fi
12959 rm -fr conftest*
12960
12961
12962 fi
12963 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12964 $as_echo "$lt_cv_dlopen_self" >&6; }
12965
12966     if test "x$lt_cv_dlopen_self" = xyes; then
12967       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12968       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12969 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12970 if test "${lt_cv_dlopen_self_static+set}" = set; then
12971   $as_echo_n "(cached) " >&6
12972 else
12973           if test "$cross_compiling" = yes; then :
12974   lt_cv_dlopen_self_static=cross
12975 else
12976   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12977   lt_status=$lt_dlunknown
12978   cat > conftest.$ac_ext <<_LT_EOF
12979 #line 12979 "configure"
12980 #include "confdefs.h"
12981
12982 #if HAVE_DLFCN_H
12983 #include <dlfcn.h>
12984 #endif
12985
12986 #include <stdio.h>
12987
12988 #ifdef RTLD_GLOBAL
12989 #  define LT_DLGLOBAL           RTLD_GLOBAL
12990 #else
12991 #  ifdef DL_GLOBAL
12992 #    define LT_DLGLOBAL         DL_GLOBAL
12993 #  else
12994 #    define LT_DLGLOBAL         0
12995 #  endif
12996 #endif
12997
12998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12999    find out it does not work in some platform. */
13000 #ifndef LT_DLLAZY_OR_NOW
13001 #  ifdef RTLD_LAZY
13002 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13003 #  else
13004 #    ifdef DL_LAZY
13005 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13006 #    else
13007 #      ifdef RTLD_NOW
13008 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13009 #      else
13010 #        ifdef DL_NOW
13011 #          define LT_DLLAZY_OR_NOW      DL_NOW
13012 #        else
13013 #          define LT_DLLAZY_OR_NOW      0
13014 #        endif
13015 #      endif
13016 #    endif
13017 #  endif
13018 #endif
13019
13020 void fnord() { int i=42;}
13021 int main ()
13022 {
13023   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13024   int status = $lt_dlunknown;
13025
13026   if (self)
13027     {
13028       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13029       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13030       /* dlclose (self); */
13031     }
13032   else
13033     puts (dlerror ());
13034
13035   return status;
13036 }
13037 _LT_EOF
13038   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13043     (./conftest; exit; ) >&5 2>/dev/null
13044     lt_status=$?
13045     case x$lt_status in
13046       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13047       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13048       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13049     esac
13050   else :
13051     # compilation failed
13052     lt_cv_dlopen_self_static=no
13053   fi
13054 fi
13055 rm -fr conftest*
13056
13057
13058 fi
13059 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13060 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13061     fi
13062
13063     CPPFLAGS="$save_CPPFLAGS"
13064     LDFLAGS="$save_LDFLAGS"
13065     LIBS="$save_LIBS"
13066     ;;
13067   esac
13068
13069   case $lt_cv_dlopen_self in
13070   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13071   *) enable_dlopen_self=unknown ;;
13072   esac
13073
13074   case $lt_cv_dlopen_self_static in
13075   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13076   *) enable_dlopen_self_static=unknown ;;
13077   esac
13078 fi
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096 striplib=
13097 old_striplib=
13098 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13099 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13100 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13101   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13102   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13103   { $as_echo "$as_me:$LINENO: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 else
13106 # FIXME - insert some real tests, host_os isn't really good enough
13107   case $host_os in
13108   darwin*)
13109     if test -n "$STRIP" ; then
13110       striplib="$STRIP -x"
13111       old_striplib="$STRIP -S"
13112       { $as_echo "$as_me:$LINENO: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114     else
13115       { $as_echo "$as_me:$LINENO: result: no" >&5
13116 $as_echo "no" >&6; }
13117     fi
13118     ;;
13119   *)
13120     { $as_echo "$as_me:$LINENO: result: no" >&5
13121 $as_echo "no" >&6; }
13122     ;;
13123   esac
13124 fi
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137   # Report which library types will actually be built
13138   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13140   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13141 $as_echo "$can_build_shared" >&6; }
13142
13143   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13144 $as_echo_n "checking whether to build shared libraries... " >&6; }
13145   test "$can_build_shared" = "no" && enable_shared=no
13146
13147   # On AIX, shared libraries and static libraries use the same namespace, and
13148   # are all built from PIC.
13149   case $host_os in
13150   aix3*)
13151     test "$enable_shared" = yes && enable_static=no
13152     if test -n "$RANLIB"; then
13153       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154       postinstall_cmds='$RANLIB $lib'
13155     fi
13156     ;;
13157
13158   aix[4-9]*)
13159     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13160       test "$enable_shared" = yes && enable_static=no
13161     fi
13162     ;;
13163   esac
13164   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13165 $as_echo "$enable_shared" >&6; }
13166
13167   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13168 $as_echo_n "checking whether to build static libraries... " >&6; }
13169   # Make sure either enable_shared or enable_static is yes.
13170   test "$enable_shared" = yes || enable_static=yes
13171   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13172 $as_echo "$enable_static" >&6; }
13173
13174
13175
13176
13177 fi
13178 ac_ext=c
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184 CC="$lt_save_CC"
13185
13186
13187 ac_ext=cpp
13188 ac_cpp='$CXXCPP $CPPFLAGS'
13189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13192
13193 archive_cmds_need_lc_CXX=no
13194 allow_undefined_flag_CXX=
13195 always_export_symbols_CXX=no
13196 archive_expsym_cmds_CXX=
13197 compiler_needs_object_CXX=no
13198 export_dynamic_flag_spec_CXX=
13199 hardcode_direct_CXX=no
13200 hardcode_direct_absolute_CXX=no
13201 hardcode_libdir_flag_spec_CXX=
13202 hardcode_libdir_flag_spec_ld_CXX=
13203 hardcode_libdir_separator_CXX=
13204 hardcode_minus_L_CXX=no
13205 hardcode_shlibpath_var_CXX=unsupported
13206 hardcode_automatic_CXX=no
13207 inherit_rpath_CXX=no
13208 module_cmds_CXX=
13209 module_expsym_cmds_CXX=
13210 link_all_deplibs_CXX=unknown
13211 old_archive_cmds_CXX=$old_archive_cmds
13212 no_undefined_flag_CXX=
13213 whole_archive_flag_spec_CXX=
13214 enable_shared_with_static_runtimes_CXX=no
13215
13216 # Source file extension for C++ test sources.
13217 ac_ext=cpp
13218
13219 # Object file extension for compiled C++ test sources.
13220 objext=o
13221 objext_CXX=$objext
13222
13223 # No sense in running all these tests if we already determined that
13224 # the CXX compiler isn't working.  Some variables (like enable_shared)
13225 # are currently assumed to apply to all compilers on this platform,
13226 # and will be corrupted by setting them based on a non-working compiler.
13227 if test "$_lt_caught_CXX_error" != yes; then
13228   # Code to be used in simple compile tests
13229   lt_simple_compile_test_code="int some_variable = 0;"
13230
13231   # Code to be used in simple link tests
13232   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13233
13234   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13235
13236
13237
13238
13239
13240
13241 # If no C compiler was specified, use CC.
13242 LTCC=${LTCC-"$CC"}
13243
13244 # If no C compiler flags were specified, use CFLAGS.
13245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13246
13247 # Allow CC to be a program name with arguments.
13248 compiler=$CC
13249
13250
13251   # save warnings/boilerplate of simple test code
13252   ac_outfile=conftest.$ac_objext
13253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13255 _lt_compiler_boilerplate=`cat conftest.err`
13256 $RM conftest*
13257
13258   ac_outfile=conftest.$ac_objext
13259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13261 _lt_linker_boilerplate=`cat conftest.err`
13262 $RM -r conftest*
13263
13264
13265   # Allow CC to be a program name with arguments.
13266   lt_save_CC=$CC
13267   lt_save_LD=$LD
13268   lt_save_GCC=$GCC
13269   GCC=$GXX
13270   lt_save_with_gnu_ld=$with_gnu_ld
13271   lt_save_path_LD=$lt_cv_path_LD
13272   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13273     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13274   else
13275     $as_unset lt_cv_prog_gnu_ld
13276   fi
13277   if test -n "${lt_cv_path_LDCXX+set}"; then
13278     lt_cv_path_LD=$lt_cv_path_LDCXX
13279   else
13280     $as_unset lt_cv_path_LD
13281   fi
13282   test -z "${LDCXX+set}" || LD=$LDCXX
13283   CC=${CXX-"c++"}
13284   compiler=$CC
13285   compiler_CXX=$CC
13286   for cc_temp in $compiler""; do
13287   case $cc_temp in
13288     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13289     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13290     \-*) ;;
13291     *) break;;
13292   esac
13293 done
13294 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13295
13296
13297   if test -n "$compiler"; then
13298     # We don't want -fno-exception when compiling C++ code, so set the
13299     # no_builtin_flag separately
13300     if test "$GXX" = yes; then
13301       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13302     else
13303       lt_prog_compiler_no_builtin_flag_CXX=
13304     fi
13305
13306     if test "$GXX" = yes; then
13307       # Set up default GNU C++ configuration
13308
13309
13310
13311 # Check whether --with-gnu-ld was given.
13312 if test "${with_gnu_ld+set}" = set; then
13313   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13314 else
13315   with_gnu_ld=no
13316 fi
13317
13318 ac_prog=ld
13319 if test "$GCC" = yes; then
13320   # Check if gcc -print-prog-name=ld gives a path.
13321   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13322 $as_echo_n "checking for ld used by $CC... " >&6; }
13323   case $host in
13324   *-*-mingw*)
13325     # gcc leaves a trailing carriage return which upsets mingw
13326     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13327   *)
13328     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13329   esac
13330   case $ac_prog in
13331     # Accept absolute paths.
13332     [\\/]* | ?:[\\/]*)
13333       re_direlt='/[^/][^/]*/\.\./'
13334       # Canonicalize the pathname of ld
13335       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13336       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13337         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13338       done
13339       test -z "$LD" && LD="$ac_prog"
13340       ;;
13341   "")
13342     # If it fails, then pretend we aren't using GCC.
13343     ac_prog=ld
13344     ;;
13345   *)
13346     # If it is relative, then search for the first ld in PATH.
13347     with_gnu_ld=unknown
13348     ;;
13349   esac
13350 elif test "$with_gnu_ld" = yes; then
13351   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13352 $as_echo_n "checking for GNU ld... " >&6; }
13353 else
13354   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13355 $as_echo_n "checking for non-GNU ld... " >&6; }
13356 fi
13357 if test "${lt_cv_path_LD+set}" = set; then
13358   $as_echo_n "(cached) " >&6
13359 else
13360   if test -z "$LD"; then
13361   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13362   for ac_dir in $PATH; do
13363     IFS="$lt_save_ifs"
13364     test -z "$ac_dir" && ac_dir=.
13365     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13366       lt_cv_path_LD="$ac_dir/$ac_prog"
13367       # Check to see if the program is GNU ld.  I'd rather use --version,
13368       # but apparently some variants of GNU ld only accept -v.
13369       # Break only if it was the GNU/non-GNU ld that we prefer.
13370       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13371       *GNU* | *'with BFD'*)
13372         test "$with_gnu_ld" != no && break
13373         ;;
13374       *)
13375         test "$with_gnu_ld" != yes && break
13376         ;;
13377       esac
13378     fi
13379   done
13380   IFS="$lt_save_ifs"
13381 else
13382   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13383 fi
13384 fi
13385
13386 LD="$lt_cv_path_LD"
13387 if test -n "$LD"; then
13388   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13389 $as_echo "$LD" >&6; }
13390 else
13391   { $as_echo "$as_me:$LINENO: result: no" >&5
13392 $as_echo "no" >&6; }
13393 fi
13394 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13395 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13396    { (exit 1); exit 1; }; }
13397 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13399 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13400   $as_echo_n "(cached) " >&6
13401 else
13402   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13403 case `$LD -v 2>&1 </dev/null` in
13404 *GNU* | *'with BFD'*)
13405   lt_cv_prog_gnu_ld=yes
13406   ;;
13407 *)
13408   lt_cv_prog_gnu_ld=no
13409   ;;
13410 esac
13411 fi
13412 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13413 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13414 with_gnu_ld=$lt_cv_prog_gnu_ld
13415
13416
13417
13418
13419
13420
13421
13422       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13423       # archiving commands below assume that GNU ld is being used.
13424       if test "$with_gnu_ld" = yes; then
13425         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426         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'
13427
13428         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13429         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13430
13431         # If archive_cmds runs LD, not CC, wlarc should be empty
13432         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13433         #     investigate it a little bit more. (MM)
13434         wlarc='${wl}'
13435
13436         # ancient GNU ld didn't support --whole-archive et. al.
13437         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13438           $GREP 'no-whole-archive' > /dev/null; then
13439           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13440         else
13441           whole_archive_flag_spec_CXX=
13442         fi
13443       else
13444         with_gnu_ld=no
13445         wlarc=
13446
13447         # A generic and very simple default shared library creation
13448         # command for GNU C++ for the case where it uses the native
13449         # linker, instead of GNU ld.  If possible, this setting should
13450         # overridden to take advantage of the native linker features on
13451         # the platform it is being used on.
13452         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13453       fi
13454
13455       # Commands to make compiler produce verbose output that lists
13456       # what "hidden" libraries, object files and flags are used when
13457       # linking a shared library.
13458       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13459
13460     else
13461       GXX=no
13462       with_gnu_ld=no
13463       wlarc=
13464     fi
13465
13466     # PORTME: fill in a description of your system's C++ link characteristics
13467     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13469     ld_shlibs_CXX=yes
13470     case $host_os in
13471       aix3*)
13472         # FIXME: insert proper C++ library support
13473         ld_shlibs_CXX=no
13474         ;;
13475       aix[4-9]*)
13476         if test "$host_cpu" = ia64; then
13477           # On IA64, the linker does run time linking by default, so we don't
13478           # have to do anything special.
13479           aix_use_runtimelinking=no
13480           exp_sym_flag='-Bexport'
13481           no_entry_flag=""
13482         else
13483           aix_use_runtimelinking=no
13484
13485           # Test if we are trying to use run time linking or normal
13486           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13487           # need to do runtime linking.
13488           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13489             for ld_flag in $LDFLAGS; do
13490               case $ld_flag in
13491               *-brtl*)
13492                 aix_use_runtimelinking=yes
13493                 break
13494                 ;;
13495               esac
13496             done
13497             ;;
13498           esac
13499
13500           exp_sym_flag='-bexport'
13501           no_entry_flag='-bnoentry'
13502         fi
13503
13504         # When large executables or shared objects are built, AIX ld can
13505         # have problems creating the table of contents.  If linking a library
13506         # or program results in "error TOC overflow" add -mminimal-toc to
13507         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13508         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13509
13510         archive_cmds_CXX=''
13511         hardcode_direct_CXX=yes
13512         hardcode_direct_absolute_CXX=yes
13513         hardcode_libdir_separator_CXX=':'
13514         link_all_deplibs_CXX=yes
13515         file_list_spec_CXX='${wl}-f,'
13516
13517         if test "$GXX" = yes; then
13518           case $host_os in aix4.[012]|aix4.[012].*)
13519           # We only want to do this on AIX 4.2 and lower, the check
13520           # below for broken collect2 doesn't work under 4.3+
13521           collect2name=`${CC} -print-prog-name=collect2`
13522           if test -f "$collect2name" &&
13523              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13524           then
13525             # We have reworked collect2
13526             :
13527           else
13528             # We have old collect2
13529             hardcode_direct_CXX=unsupported
13530             # It fails to find uninstalled libraries when the uninstalled
13531             # path is not listed in the libpath.  Setting hardcode_minus_L
13532             # to unsupported forces relinking
13533             hardcode_minus_L_CXX=yes
13534             hardcode_libdir_flag_spec_CXX='-L$libdir'
13535             hardcode_libdir_separator_CXX=
13536           fi
13537           esac
13538           shared_flag='-shared'
13539           if test "$aix_use_runtimelinking" = yes; then
13540             shared_flag="$shared_flag "'${wl}-G'
13541           fi
13542         else
13543           # not using gcc
13544           if test "$host_cpu" = ia64; then
13545           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13546           # chokes on -Wl,-G. The following line is correct:
13547           shared_flag='-G'
13548           else
13549             if test "$aix_use_runtimelinking" = yes; then
13550               shared_flag='${wl}-G'
13551             else
13552               shared_flag='${wl}-bM:SRE'
13553             fi
13554           fi
13555         fi
13556
13557         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13558         # It seems that -bexpall does not export symbols beginning with
13559         # underscore (_), so it is better to generate a list of symbols to
13560         # export.
13561         always_export_symbols_CXX=yes
13562         if test "$aix_use_runtimelinking" = yes; then
13563           # Warning - without using the other runtime loading flags (-brtl),
13564           # -berok will link without error, but may produce a broken library.
13565           allow_undefined_flag_CXX='-berok'
13566           # Determine the default libpath from the value encoded in an empty
13567           # executable.
13568           cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h.  */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h.  */
13574
13575 int
13576 main ()
13577 {
13578
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587   *) ac_try_echo=$ac_try;;
13588 esac
13589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13590 $as_echo "$ac_try_echo") >&5
13591   (eval "$ac_link") 2>conftest.er1
13592   ac_status=$?
13593   grep -v '^ *+' conftest.er1 >conftest.err
13594   rm -f conftest.er1
13595   cat conftest.err >&5
13596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } && {
13598          test -z "$ac_cxx_werror_flag" ||
13599          test ! -s conftest.err
13600        } && test -s conftest$ac_exeext && {
13601          test "$cross_compiling" = yes ||
13602          $as_test_x conftest$ac_exeext
13603        }; then
13604
13605 lt_aix_libpath_sed='
13606     /Import File Strings/,/^$/ {
13607         /^0/ {
13608             s/^0  *\(.*\)$/\1/
13609             p
13610         }
13611     }'
13612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13613 # Check for a 64-bit object if we didn't find anything.
13614 if test -z "$aix_libpath"; then
13615   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13616 fi
13617 else
13618   $as_echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621
13622 fi
13623
13624 rm -rf conftest.dSYM
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626       conftest$ac_exeext conftest.$ac_ext
13627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13628
13629           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13630
13631           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"
13632         else
13633           if test "$host_cpu" = ia64; then
13634             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13635             allow_undefined_flag_CXX="-z nodefs"
13636             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"
13637           else
13638             # Determine the default libpath from the value encoded in an
13639             # empty executable.
13640             cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646
13647 int
13648 main ()
13649 {
13650
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (ac_try="$ac_link"
13657 case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663   (eval "$ac_link") 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } && {
13670          test -z "$ac_cxx_werror_flag" ||
13671          test ! -s conftest.err
13672        } && test -s conftest$ac_exeext && {
13673          test "$cross_compiling" = yes ||
13674          $as_test_x conftest$ac_exeext
13675        }; then
13676
13677 lt_aix_libpath_sed='
13678     /Import File Strings/,/^$/ {
13679         /^0/ {
13680             s/^0  *\(.*\)$/\1/
13681             p
13682         }
13683     }'
13684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13685 # Check for a 64-bit object if we didn't find anything.
13686 if test -z "$aix_libpath"; then
13687   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13688 fi
13689 else
13690   $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693
13694 fi
13695
13696 rm -rf conftest.dSYM
13697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13698       conftest$ac_exeext conftest.$ac_ext
13699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13700
13701             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13702             # Warning - without using the other run time loading flags,
13703             # -berok will link without error, but may produce a broken library.
13704             no_undefined_flag_CXX=' ${wl}-bernotok'
13705             allow_undefined_flag_CXX=' ${wl}-berok'
13706             # Exported symbols can be pulled into shared objects from archives
13707             whole_archive_flag_spec_CXX='$convenience'
13708             archive_cmds_need_lc_CXX=yes
13709             # This is similar to how AIX traditionally builds its shared
13710             # libraries.
13711             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'
13712           fi
13713         fi
13714         ;;
13715
13716       beos*)
13717         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13718           allow_undefined_flag_CXX=unsupported
13719           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13720           # support --undefined.  This deserves some investigation.  FIXME
13721           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722         else
13723           ld_shlibs_CXX=no
13724         fi
13725         ;;
13726
13727       chorus*)
13728         case $cc_basename in
13729           *)
13730           # FIXME: insert proper C++ library support
13731           ld_shlibs_CXX=no
13732           ;;
13733         esac
13734         ;;
13735
13736       cygwin* | mingw* | pw32* | cegcc*)
13737         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13738         # as there is no search path for DLLs.
13739         hardcode_libdir_flag_spec_CXX='-L$libdir'
13740         allow_undefined_flag_CXX=unsupported
13741         always_export_symbols_CXX=no
13742         enable_shared_with_static_runtimes_CXX=yes
13743
13744         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13745           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'
13746           # If the export-symbols file already is a .def file (1st line
13747           # is EXPORTS), use it as is; otherwise, prepend...
13748           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749             cp $export_symbols $output_objdir/$soname.def;
13750           else
13751             echo EXPORTS > $output_objdir/$soname.def;
13752             cat $export_symbols >> $output_objdir/$soname.def;
13753           fi~
13754           $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'
13755         else
13756           ld_shlibs_CXX=no
13757         fi
13758         ;;
13759       darwin* | rhapsody*)
13760
13761
13762   archive_cmds_need_lc_CXX=no
13763   hardcode_direct_CXX=no
13764   hardcode_automatic_CXX=yes
13765   hardcode_shlibpath_var_CXX=unsupported
13766   whole_archive_flag_spec_CXX=''
13767   link_all_deplibs_CXX=yes
13768   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13769   case $cc_basename in
13770      ifort*) _lt_dar_can_shared=yes ;;
13771      *) _lt_dar_can_shared=$GCC ;;
13772   esac
13773   if test "$_lt_dar_can_shared" = "yes"; then
13774     output_verbose_link_cmd=echo
13775     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}"
13776     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13777     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}"
13778     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}"
13779        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13780       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}"
13781       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}"
13782     fi
13783
13784   else
13785   ld_shlibs_CXX=no
13786   fi
13787
13788         ;;
13789
13790       dgux*)
13791         case $cc_basename in
13792           ec++*)
13793             # FIXME: insert proper C++ library support
13794             ld_shlibs_CXX=no
13795             ;;
13796           ghcx*)
13797             # Green Hills C++ Compiler
13798             # FIXME: insert proper C++ library support
13799             ld_shlibs_CXX=no
13800             ;;
13801           *)
13802             # FIXME: insert proper C++ library support
13803             ld_shlibs_CXX=no
13804             ;;
13805         esac
13806         ;;
13807
13808       freebsd[12]*)
13809         # C++ shared libraries reported to be fairly broken before
13810         # switch to ELF
13811         ld_shlibs_CXX=no
13812         ;;
13813
13814       freebsd-elf*)
13815         archive_cmds_need_lc_CXX=no
13816         ;;
13817
13818       freebsd* | dragonfly*)
13819         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13820         # conventions
13821         ld_shlibs_CXX=yes
13822         ;;
13823
13824       gnu*)
13825         ;;
13826
13827       hpux9*)
13828         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13829         hardcode_libdir_separator_CXX=:
13830         export_dynamic_flag_spec_CXX='${wl}-E'
13831         hardcode_direct_CXX=yes
13832         hardcode_minus_L_CXX=yes # Not in the search PATH,
13833                                              # but as the default
13834                                              # location of the library.
13835
13836         case $cc_basename in
13837           CC*)
13838             # FIXME: insert proper C++ library support
13839             ld_shlibs_CXX=no
13840             ;;
13841           aCC*)
13842             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'
13843             # Commands to make compiler produce verbose output that lists
13844             # what "hidden" libraries, object files and flags are used when
13845             # linking a shared library.
13846             #
13847             # There doesn't appear to be a way to prevent this compiler from
13848             # explicitly linking system object files so we need to strip them
13849             # from the output so that they don't get included in the library
13850             # dependencies.
13851             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'
13852             ;;
13853           *)
13854             if test "$GXX" = yes; then
13855               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'
13856             else
13857               # FIXME: insert proper C++ library support
13858               ld_shlibs_CXX=no
13859             fi
13860             ;;
13861         esac
13862         ;;
13863
13864       hpux10*|hpux11*)
13865         if test $with_gnu_ld = no; then
13866           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13867           hardcode_libdir_separator_CXX=:
13868
13869           case $host_cpu in
13870             hppa*64*|ia64*)
13871               ;;
13872             *)
13873               export_dynamic_flag_spec_CXX='${wl}-E'
13874               ;;
13875           esac
13876         fi
13877         case $host_cpu in
13878           hppa*64*|ia64*)
13879             hardcode_direct_CXX=no
13880             hardcode_shlibpath_var_CXX=no
13881             ;;
13882           *)
13883             hardcode_direct_CXX=yes
13884             hardcode_direct_absolute_CXX=yes
13885             hardcode_minus_L_CXX=yes # Not in the search PATH,
13886                                                  # but as the default
13887                                                  # location of the library.
13888             ;;
13889         esac
13890
13891         case $cc_basename in
13892           CC*)
13893             # FIXME: insert proper C++ library support
13894             ld_shlibs_CXX=no
13895             ;;
13896           aCC*)
13897             case $host_cpu in
13898               hppa*64*)
13899                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13900                 ;;
13901               ia64*)
13902                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13903                 ;;
13904               *)
13905                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13906                 ;;
13907             esac
13908             # Commands to make compiler produce verbose output that lists
13909             # what "hidden" libraries, object files and flags are used when
13910             # linking a shared library.
13911             #
13912             # There doesn't appear to be a way to prevent this compiler from
13913             # explicitly linking system object files so we need to strip them
13914             # from the output so that they don't get included in the library
13915             # dependencies.
13916             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'
13917             ;;
13918           *)
13919             if test "$GXX" = yes; then
13920               if test $with_gnu_ld = no; then
13921                 case $host_cpu in
13922                   hppa*64*)
13923                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13924                     ;;
13925                   ia64*)
13926                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13927                     ;;
13928                   *)
13929                     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'
13930                     ;;
13931                 esac
13932               fi
13933             else
13934               # FIXME: insert proper C++ library support
13935               ld_shlibs_CXX=no
13936             fi
13937             ;;
13938         esac
13939         ;;
13940
13941       interix[3-9]*)
13942         hardcode_direct_CXX=no
13943         hardcode_shlibpath_var_CXX=no
13944         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13945         export_dynamic_flag_spec_CXX='${wl}-E'
13946         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13947         # Instead, shared libraries are loaded at an image base (0x10000000 by
13948         # default) and relocated if they conflict, which is a slow very memory
13949         # consuming and fragmenting process.  To avoid this, we pick a random,
13950         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13951         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13952         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'
13953         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'
13954         ;;
13955       irix5* | irix6*)
13956         case $cc_basename in
13957           CC*)
13958             # SGI C++
13959             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'
13960
13961             # Archives containing C++ object files must be created using
13962             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13963             # necessary to make sure instantiated templates are included
13964             # in the archive.
13965             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13966             ;;
13967           *)
13968             if test "$GXX" = yes; then
13969               if test "$with_gnu_ld" = no; then
13970                 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'
13971               else
13972                 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'
13973               fi
13974             fi
13975             link_all_deplibs_CXX=yes
13976             ;;
13977         esac
13978         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13979         hardcode_libdir_separator_CXX=:
13980         inherit_rpath_CXX=yes
13981         ;;
13982
13983       linux* | k*bsd*-gnu)
13984         case $cc_basename in
13985           KCC*)
13986             # Kuck and Associates, Inc. (KAI) C++ Compiler
13987
13988             # KCC will only create a shared library if the output file
13989             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13990             # to its proper name (with version) after linking.
13991             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'
13992             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'
13993             # Commands to make compiler produce verbose output that lists
13994             # what "hidden" libraries, object files and flags are used when
13995             # linking a shared library.
13996             #
13997             # There doesn't appear to be a way to prevent this compiler from
13998             # explicitly linking system object files so we need to strip them
13999             # from the output so that they don't get included in the library
14000             # dependencies.
14001             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'
14002
14003             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14004             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14005
14006             # Archives containing C++ object files must be created using
14007             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14008             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14009             ;;
14010           icpc* | ecpc* )
14011             # Intel C++
14012             with_gnu_ld=yes
14013             # version 8.0 and above of icpc choke on multiply defined symbols
14014             # if we add $predep_objects and $postdep_objects, however 7.1 and
14015             # earlier do not add the objects themselves.
14016             case `$CC -V 2>&1` in
14017               *"Version 7."*)
14018                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019                 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'
14020                 ;;
14021               *)  # Version 8.0 or newer
14022                 tmp_idyn=
14023                 case $host_cpu in
14024                   ia64*) tmp_idyn=' -i_dynamic';;
14025                 esac
14026                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14027                 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'
14028                 ;;
14029             esac
14030             archive_cmds_need_lc_CXX=no
14031             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14032             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14033             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14034             ;;
14035           pgCC* | pgcpp*)
14036             # Portland Group C++ compiler
14037             case `$CC -V` in
14038             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14039               prelink_cmds_CXX='tpldir=Template.dir~
14040                 rm -rf $tpldir~
14041                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14042                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14043               old_archive_cmds_CXX='tpldir=Template.dir~
14044                 rm -rf $tpldir~
14045                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14046                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14047                 $RANLIB $oldlib'
14048               archive_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 -o $lib'
14052               archive_expsym_cmds_CXX='tpldir=Template.dir~
14053                 rm -rf $tpldir~
14054                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14055                 $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'
14056               ;;
14057             *) # Version 6 will use weak symbols
14058               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14059               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'
14060               ;;
14061             esac
14062
14063             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14064             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14065             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'
14066             ;;
14067           cxx*)
14068             # Compaq C++
14069             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070             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'
14071
14072             runpath_var=LD_RUN_PATH
14073             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14074             hardcode_libdir_separator_CXX=:
14075
14076             # Commands to make compiler produce verbose output that lists
14077             # what "hidden" libraries, object files and flags are used when
14078             # linking a shared library.
14079             #
14080             # There doesn't appear to be a way to prevent this compiler from
14081             # explicitly linking system object files so we need to strip them
14082             # from the output so that they don't get included in the library
14083             # dependencies.
14084             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'
14085             ;;
14086           xl*)
14087             # IBM XL 8.0 on PPC, with GNU ld
14088             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14089             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14090             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14091             if test "x$supports_anon_versioning" = xyes; then
14092               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14093                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14094                 echo "local: *; };" >> $output_objdir/$libname.ver~
14095                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14096             fi
14097             ;;
14098           *)
14099             case `$CC -V 2>&1 | sed 5q` in
14100             *Sun\ C*)
14101               # Sun C++ 5.9
14102               no_undefined_flag_CXX=' -zdefs'
14103               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104               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'
14105               hardcode_libdir_flag_spec_CXX='-R$libdir'
14106               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'
14107               compiler_needs_object_CXX=yes
14108
14109               # Not sure whether something based on
14110               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14111               # would be better.
14112               output_verbose_link_cmd='echo'
14113
14114               # Archives containing C++ object files must be created using
14115               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14116               # necessary to make sure instantiated templates are included
14117               # in the archive.
14118               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14119               ;;
14120             esac
14121             ;;
14122         esac
14123         ;;
14124
14125       lynxos*)
14126         # FIXME: insert proper C++ library support
14127         ld_shlibs_CXX=no
14128         ;;
14129
14130       m88k*)
14131         # FIXME: insert proper C++ library support
14132         ld_shlibs_CXX=no
14133         ;;
14134
14135       mvs*)
14136         case $cc_basename in
14137           cxx*)
14138             # FIXME: insert proper C++ library support
14139             ld_shlibs_CXX=no
14140             ;;
14141           *)
14142             # FIXME: insert proper C++ library support
14143             ld_shlibs_CXX=no
14144             ;;
14145         esac
14146         ;;
14147
14148       netbsd*)
14149         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14150           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14151           wlarc=
14152           hardcode_libdir_flag_spec_CXX='-R$libdir'
14153           hardcode_direct_CXX=yes
14154           hardcode_shlibpath_var_CXX=no
14155         fi
14156         # Workaround some broken pre-1.5 toolchains
14157         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14158         ;;
14159
14160       *nto* | *qnx*)
14161         ld_shlibs_CXX=yes
14162         ;;
14163
14164       openbsd2*)
14165         # C++ shared libraries are fairly broken
14166         ld_shlibs_CXX=no
14167         ;;
14168
14169       openbsd*)
14170         if test -f /usr/libexec/ld.so; then
14171           hardcode_direct_CXX=yes
14172           hardcode_shlibpath_var_CXX=no
14173           hardcode_direct_absolute_CXX=yes
14174           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14175           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14176           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14177             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14178             export_dynamic_flag_spec_CXX='${wl}-E'
14179             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14180           fi
14181           output_verbose_link_cmd=echo
14182         else
14183           ld_shlibs_CXX=no
14184         fi
14185         ;;
14186
14187       osf3* | osf4* | osf5*)
14188         case $cc_basename in
14189           KCC*)
14190             # Kuck and Associates, Inc. (KAI) C++ Compiler
14191
14192             # KCC will only create a shared library if the output file
14193             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14194             # to its proper name (with version) after linking.
14195             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'
14196
14197             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14198             hardcode_libdir_separator_CXX=:
14199
14200             # Archives containing C++ object files must be created using
14201             # the KAI C++ compiler.
14202             case $host in
14203               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14204               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14205             esac
14206             ;;
14207           RCC*)
14208             # Rational C++ 2.4.1
14209             # FIXME: insert proper C++ library support
14210             ld_shlibs_CXX=no
14211             ;;
14212           cxx*)
14213             case $host in
14214               osf3*)
14215                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14216                 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'
14217                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14218                 ;;
14219               *)
14220                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14221                 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'
14222                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14223                   echo "-hidden">> $lib.exp~
14224                   $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~
14225                   $RM $lib.exp'
14226                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14227                 ;;
14228             esac
14229
14230             hardcode_libdir_separator_CXX=:
14231
14232             # Commands to make compiler produce verbose output that lists
14233             # what "hidden" libraries, object files and flags are used when
14234             # linking a shared library.
14235             #
14236             # There doesn't appear to be a way to prevent this compiler from
14237             # explicitly linking system object files so we need to strip them
14238             # from the output so that they don't get included in the library
14239             # dependencies.
14240             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'
14241             ;;
14242           *)
14243             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14244               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14245               case $host in
14246                 osf3*)
14247                   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'
14248                   ;;
14249                 *)
14250                   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'
14251                   ;;
14252               esac
14253
14254               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14255               hardcode_libdir_separator_CXX=:
14256
14257               # Commands to make compiler produce verbose output that lists
14258               # what "hidden" libraries, object files and flags are used when
14259               # linking a shared library.
14260               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14261
14262             else
14263               # FIXME: insert proper C++ library support
14264               ld_shlibs_CXX=no
14265             fi
14266             ;;
14267         esac
14268         ;;
14269
14270       psos*)
14271         # FIXME: insert proper C++ library support
14272         ld_shlibs_CXX=no
14273         ;;
14274
14275       sunos4*)
14276         case $cc_basename in
14277           CC*)
14278             # Sun C++ 4.x
14279             # FIXME: insert proper C++ library support
14280             ld_shlibs_CXX=no
14281             ;;
14282           lcc*)
14283             # Lucid
14284             # FIXME: insert proper C++ library support
14285             ld_shlibs_CXX=no
14286             ;;
14287           *)
14288             # FIXME: insert proper C++ library support
14289             ld_shlibs_CXX=no
14290             ;;
14291         esac
14292         ;;
14293
14294       solaris*)
14295         case $cc_basename in
14296           CC*)
14297             # Sun C++ 4.2, 5.x and Centerline C++
14298             archive_cmds_need_lc_CXX=yes
14299             no_undefined_flag_CXX=' -zdefs'
14300             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14301             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14302               $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'
14303
14304             hardcode_libdir_flag_spec_CXX='-R$libdir'
14305             hardcode_shlibpath_var_CXX=no
14306             case $host_os in
14307               solaris2.[0-5] | solaris2.[0-5].*) ;;
14308               *)
14309                 # The compiler driver will combine and reorder linker options,
14310                 # but understands `-z linker_flag'.
14311                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14312                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14313                 ;;
14314             esac
14315             link_all_deplibs_CXX=yes
14316
14317             output_verbose_link_cmd='echo'
14318
14319             # Archives containing C++ object files must be created using
14320             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14321             # necessary to make sure instantiated templates are included
14322             # in the archive.
14323             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14324             ;;
14325           gcx*)
14326             # Green Hills C++ Compiler
14327             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14328
14329             # The C++ compiler must be used to create the archive.
14330             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14331             ;;
14332           *)
14333             # GNU C++ compiler with Solaris linker
14334             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14335               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14336               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14337                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14338                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14339                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14340
14341                 # Commands to make compiler produce verbose output that lists
14342                 # what "hidden" libraries, object files and flags are used when
14343                 # linking a shared library.
14344                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14345               else
14346                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14347                 # platform.
14348                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14349                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14350                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14351
14352                 # Commands to make compiler produce verbose output that lists
14353                 # what "hidden" libraries, object files and flags are used when
14354                 # linking a shared library.
14355                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14356               fi
14357
14358               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14359               case $host_os in
14360                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14361                 *)
14362                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14363                   ;;
14364               esac
14365             fi
14366             ;;
14367         esac
14368         ;;
14369
14370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14371       no_undefined_flag_CXX='${wl}-z,text'
14372       archive_cmds_need_lc_CXX=no
14373       hardcode_shlibpath_var_CXX=no
14374       runpath_var='LD_RUN_PATH'
14375
14376       case $cc_basename in
14377         CC*)
14378           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14379           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14380           ;;
14381         *)
14382           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14384           ;;
14385       esac
14386       ;;
14387
14388       sysv5* | sco3.2v5* | sco5v6*)
14389         # Note: We can NOT use -z defs as we might desire, because we do not
14390         # link with -lc, and that would cause any symbols used from libc to
14391         # always be unresolved, which means just about no library would
14392         # ever link correctly.  If we're not using GNU ld we use -z text
14393         # though, which does catch some bad symbols but isn't as heavy-handed
14394         # as -z defs.
14395         no_undefined_flag_CXX='${wl}-z,text'
14396         allow_undefined_flag_CXX='${wl}-z,nodefs'
14397         archive_cmds_need_lc_CXX=no
14398         hardcode_shlibpath_var_CXX=no
14399         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14400         hardcode_libdir_separator_CXX=':'
14401         link_all_deplibs_CXX=yes
14402         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14403         runpath_var='LD_RUN_PATH'
14404
14405         case $cc_basename in
14406           CC*)
14407             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14408             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14409             ;;
14410           *)
14411             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14413             ;;
14414         esac
14415       ;;
14416
14417       tandem*)
14418         case $cc_basename in
14419           NCC*)
14420             # NonStop-UX NCC 3.20
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424           *)
14425             # FIXME: insert proper C++ library support
14426             ld_shlibs_CXX=no
14427             ;;
14428         esac
14429         ;;
14430
14431       vxworks*)
14432         # FIXME: insert proper C++ library support
14433         ld_shlibs_CXX=no
14434         ;;
14435
14436       *)
14437         # FIXME: insert proper C++ library support
14438         ld_shlibs_CXX=no
14439         ;;
14440     esac
14441
14442     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14443 $as_echo "$ld_shlibs_CXX" >&6; }
14444     test "$ld_shlibs_CXX" = no && can_build_shared=no
14445
14446     GCC_CXX="$GXX"
14447     LD_CXX="$LD"
14448
14449     ## CAVEAT EMPTOR:
14450     ## There is no encapsulation within the following macros, do not change
14451     ## the running order or otherwise move them around unless you know exactly
14452     ## what you are doing...
14453     # Dependencies to place before and after the object being linked:
14454 predep_objects_CXX=
14455 postdep_objects_CXX=
14456 predeps_CXX=
14457 postdeps_CXX=
14458 compiler_lib_search_path_CXX=
14459
14460 cat > conftest.$ac_ext <<_LT_EOF
14461 class Foo
14462 {
14463 public:
14464   Foo (void) { a = 0; }
14465 private:
14466   int a;
14467 };
14468 _LT_EOF
14469
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; then
14475   # Parse the compiler output and extract the necessary
14476   # objects, libraries and library flags.
14477
14478   # Sentinel used to keep track of whether or not we are before
14479   # the conftest object file.
14480   pre_test_object_deps_done=no
14481
14482   for p in `eval "$output_verbose_link_cmd"`; do
14483     case $p in
14484
14485     -L* | -R* | -l*)
14486        # Some compilers place space between "-{L,R}" and the path.
14487        # Remove the space.
14488        if test $p = "-L" ||
14489           test $p = "-R"; then
14490          prev=$p
14491          continue
14492        else
14493          prev=
14494        fi
14495
14496        if test "$pre_test_object_deps_done" = no; then
14497          case $p in
14498          -L* | -R*)
14499            # Internal compiler library paths should come after those
14500            # provided the user.  The postdeps already come after the
14501            # user supplied libs so there is no need to process them.
14502            if test -z "$compiler_lib_search_path_CXX"; then
14503              compiler_lib_search_path_CXX="${prev}${p}"
14504            else
14505              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14506            fi
14507            ;;
14508          # The "-l" case would never come before the object being
14509          # linked, so don't bother handling this case.
14510          esac
14511        else
14512          if test -z "$postdeps_CXX"; then
14513            postdeps_CXX="${prev}${p}"
14514          else
14515            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14516          fi
14517        fi
14518        ;;
14519
14520     *.$objext)
14521        # This assumes that the test object file only shows up
14522        # once in the compiler output.
14523        if test "$p" = "conftest.$objext"; then
14524          pre_test_object_deps_done=yes
14525          continue
14526        fi
14527
14528        if test "$pre_test_object_deps_done" = no; then
14529          if test -z "$predep_objects_CXX"; then
14530            predep_objects_CXX="$p"
14531          else
14532            predep_objects_CXX="$predep_objects_CXX $p"
14533          fi
14534        else
14535          if test -z "$postdep_objects_CXX"; then
14536            postdep_objects_CXX="$p"
14537          else
14538            postdep_objects_CXX="$postdep_objects_CXX $p"
14539          fi
14540        fi
14541        ;;
14542
14543     *) ;; # Ignore the rest.
14544
14545     esac
14546   done
14547
14548   # Clean up.
14549   rm -f a.out a.exe
14550 else
14551   echo "libtool.m4: error: problem compiling CXX test program"
14552 fi
14553
14554 $RM -f confest.$objext
14555
14556 # PORTME: override above test on systems where it is broken
14557 case $host_os in
14558 interix[3-9]*)
14559   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14560   # hack all around it, let's just trust "g++" to DTRT.
14561   predep_objects_CXX=
14562   postdep_objects_CXX=
14563   postdeps_CXX=
14564   ;;
14565
14566 linux*)
14567   case `$CC -V 2>&1 | sed 5q` in
14568   *Sun\ C*)
14569     # Sun C++ 5.9
14570
14571     # The more standards-conforming stlport4 library is
14572     # incompatible with the Cstd library. Avoid specifying
14573     # it if it's in CXXFLAGS. Ignore libCrun as
14574     # -library=stlport4 depends on it.
14575     case " $CXX $CXXFLAGS " in
14576     *" -library=stlport4 "*)
14577       solaris_use_stlport4=yes
14578       ;;
14579     esac
14580
14581     if test "$solaris_use_stlport4" != yes; then
14582       postdeps_CXX='-library=Cstd -library=Crun'
14583     fi
14584     ;;
14585   esac
14586   ;;
14587
14588 solaris*)
14589   case $cc_basename in
14590   CC*)
14591     # The more standards-conforming stlport4 library is
14592     # incompatible with the Cstd library. Avoid specifying
14593     # it if it's in CXXFLAGS. Ignore libCrun as
14594     # -library=stlport4 depends on it.
14595     case " $CXX $CXXFLAGS " in
14596     *" -library=stlport4 "*)
14597       solaris_use_stlport4=yes
14598       ;;
14599     esac
14600
14601     # Adding this requires a known-good setup of shared libraries for
14602     # Sun compiler versions before 5.6, else PIC objects from an old
14603     # archive will be linked into the output, leading to subtle bugs.
14604     if test "$solaris_use_stlport4" != yes; then
14605       postdeps_CXX='-library=Cstd -library=Crun'
14606     fi
14607     ;;
14608   esac
14609   ;;
14610 esac
14611
14612
14613 case " $postdeps_CXX " in
14614 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14615 esac
14616  compiler_lib_search_dirs_CXX=
14617 if test -n "${compiler_lib_search_path_CXX}"; then
14618  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14619 fi
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
14648
14649
14650
14651     lt_prog_compiler_wl_CXX=
14652 lt_prog_compiler_pic_CXX=
14653 lt_prog_compiler_static_CXX=
14654
14655 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14657
14658   # C++ specific cases for pic, static, wl, etc.
14659   if test "$GXX" = yes; then
14660     lt_prog_compiler_wl_CXX='-Wl,'
14661     lt_prog_compiler_static_CXX='-static'
14662
14663     case $host_os in
14664     aix*)
14665       # All AIX code is PIC.
14666       if test "$host_cpu" = ia64; then
14667         # AIX 5 now supports IA64 processor
14668         lt_prog_compiler_static_CXX='-Bstatic'
14669       fi
14670       ;;
14671
14672     amigaos*)
14673       case $host_cpu in
14674       powerpc)
14675             # see comment about AmigaOS4 .so support
14676             lt_prog_compiler_pic_CXX='-fPIC'
14677         ;;
14678       m68k)
14679             # FIXME: we need at least 68020 code to build shared libraries, but
14680             # adding the `-m68020' flag to GCC prevents building anything better,
14681             # like `-m68040'.
14682             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14683         ;;
14684       esac
14685       ;;
14686
14687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14688       # PIC is the default for these OSes.
14689       ;;
14690     mingw* | cygwin* | os2* | pw32* | cegcc*)
14691       # This hack is so that the source file can tell whether it is being
14692       # built for inclusion in a dll (and should export symbols for example).
14693       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14694       # (--disable-auto-import) libraries
14695       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14696       ;;
14697     darwin* | rhapsody*)
14698       # PIC is the default on this platform
14699       # Common symbols not allowed in MH_DYLIB files
14700       lt_prog_compiler_pic_CXX='-fno-common'
14701       ;;
14702     *djgpp*)
14703       # DJGPP does not support shared libraries at all
14704       lt_prog_compiler_pic_CXX=
14705       ;;
14706     interix[3-9]*)
14707       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14708       # Instead, we relocate shared libraries at runtime.
14709       ;;
14710     sysv4*MP*)
14711       if test -d /usr/nec; then
14712         lt_prog_compiler_pic_CXX=-Kconform_pic
14713       fi
14714       ;;
14715     hpux*)
14716       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14717       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14718       # sets the default TLS model and affects inlining.
14719       case $host_cpu in
14720       hppa*64*)
14721         ;;
14722       *)
14723         lt_prog_compiler_pic_CXX='-fPIC'
14724         ;;
14725       esac
14726       ;;
14727     *qnx* | *nto*)
14728       # QNX uses GNU C++, but need to define -shared option too, otherwise
14729       # it will coredump.
14730       lt_prog_compiler_pic_CXX='-fPIC -shared'
14731       ;;
14732     *)
14733       lt_prog_compiler_pic_CXX='-fPIC'
14734       ;;
14735     esac
14736   else
14737     case $host_os in
14738       aix[4-9]*)
14739         # All AIX code is PIC.
14740         if test "$host_cpu" = ia64; then
14741           # AIX 5 now supports IA64 processor
14742           lt_prog_compiler_static_CXX='-Bstatic'
14743         else
14744           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14745         fi
14746         ;;
14747       chorus*)
14748         case $cc_basename in
14749         cxch68*)
14750           # Green Hills C++ Compiler
14751           # _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"
14752           ;;
14753         esac
14754         ;;
14755       dgux*)
14756         case $cc_basename in
14757           ec++*)
14758             lt_prog_compiler_pic_CXX='-KPIC'
14759             ;;
14760           ghcx*)
14761             # Green Hills C++ Compiler
14762             lt_prog_compiler_pic_CXX='-pic'
14763             ;;
14764           *)
14765             ;;
14766         esac
14767         ;;
14768       freebsd* | dragonfly*)
14769         # FreeBSD uses GNU C++
14770         ;;
14771       hpux9* | hpux10* | hpux11*)
14772         case $cc_basename in
14773           CC*)
14774             lt_prog_compiler_wl_CXX='-Wl,'
14775             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14776             if test "$host_cpu" != ia64; then
14777               lt_prog_compiler_pic_CXX='+Z'
14778             fi
14779             ;;
14780           aCC*)
14781             lt_prog_compiler_wl_CXX='-Wl,'
14782             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14783             case $host_cpu in
14784             hppa*64*|ia64*)
14785               # +Z the default
14786               ;;
14787             *)
14788               lt_prog_compiler_pic_CXX='+Z'
14789               ;;
14790             esac
14791             ;;
14792           *)
14793             ;;
14794         esac
14795         ;;
14796       interix*)
14797         # This is c89, which is MS Visual C++ (no shared libs)
14798         # Anyone wants to do a port?
14799         ;;
14800       irix5* | irix6* | nonstopux*)
14801         case $cc_basename in
14802           CC*)
14803             lt_prog_compiler_wl_CXX='-Wl,'
14804             lt_prog_compiler_static_CXX='-non_shared'
14805             # CC pic flag -KPIC is the default.
14806             ;;
14807           *)
14808             ;;
14809         esac
14810         ;;
14811       linux* | k*bsd*-gnu)
14812         case $cc_basename in
14813           KCC*)
14814             # KAI C++ Compiler
14815             lt_prog_compiler_wl_CXX='--backend -Wl,'
14816             lt_prog_compiler_pic_CXX='-fPIC'
14817             ;;
14818           ecpc* )
14819             # old Intel C++ for x86_64 which still supported -KPIC.
14820             lt_prog_compiler_wl_CXX='-Wl,'
14821             lt_prog_compiler_pic_CXX='-KPIC'
14822             lt_prog_compiler_static_CXX='-static'
14823             ;;
14824           icpc* )
14825             # Intel C++, used to be incompatible with GCC.
14826             # ICC 10 doesn't accept -KPIC any more.
14827             lt_prog_compiler_wl_CXX='-Wl,'
14828             lt_prog_compiler_pic_CXX='-fPIC'
14829             lt_prog_compiler_static_CXX='-static'
14830             ;;
14831           pgCC* | pgcpp*)
14832             # Portland Group C++ compiler
14833             lt_prog_compiler_wl_CXX='-Wl,'
14834             lt_prog_compiler_pic_CXX='-fpic'
14835             lt_prog_compiler_static_CXX='-Bstatic'
14836             ;;
14837           cxx*)
14838             # Compaq C++
14839             # Make sure the PIC flag is empty.  It appears that all Alpha
14840             # Linux and Compaq Tru64 Unix objects are PIC.
14841             lt_prog_compiler_pic_CXX=
14842             lt_prog_compiler_static_CXX='-non_shared'
14843             ;;
14844           xlc* | xlC*)
14845             # IBM XL 8.0 on PPC
14846             lt_prog_compiler_wl_CXX='-Wl,'
14847             lt_prog_compiler_pic_CXX='-qpic'
14848             lt_prog_compiler_static_CXX='-qstaticlink'
14849             ;;
14850           *)
14851             case `$CC -V 2>&1 | sed 5q` in
14852             *Sun\ C*)
14853               # Sun C++ 5.9
14854               lt_prog_compiler_pic_CXX='-KPIC'
14855               lt_prog_compiler_static_CXX='-Bstatic'
14856               lt_prog_compiler_wl_CXX='-Qoption ld '
14857               ;;
14858             esac
14859             ;;
14860         esac
14861         ;;
14862       lynxos*)
14863         ;;
14864       m88k*)
14865         ;;
14866       mvs*)
14867         case $cc_basename in
14868           cxx*)
14869             lt_prog_compiler_pic_CXX='-W c,exportall'
14870             ;;
14871           *)
14872             ;;
14873         esac
14874         ;;
14875       netbsd*)
14876         ;;
14877       *qnx* | *nto*)
14878         # QNX uses GNU C++, but need to define -shared option too, otherwise
14879         # it will coredump.
14880         lt_prog_compiler_pic_CXX='-fPIC -shared'
14881         ;;
14882       osf3* | osf4* | osf5*)
14883         case $cc_basename in
14884           KCC*)
14885             lt_prog_compiler_wl_CXX='--backend -Wl,'
14886             ;;
14887           RCC*)
14888             # Rational C++ 2.4.1
14889             lt_prog_compiler_pic_CXX='-pic'
14890             ;;
14891           cxx*)
14892             # Digital/Compaq C++
14893             lt_prog_compiler_wl_CXX='-Wl,'
14894             # Make sure the PIC flag is empty.  It appears that all Alpha
14895             # Linux and Compaq Tru64 Unix objects are PIC.
14896             lt_prog_compiler_pic_CXX=
14897             lt_prog_compiler_static_CXX='-non_shared'
14898             ;;
14899           *)
14900             ;;
14901         esac
14902         ;;
14903       psos*)
14904         ;;
14905       solaris*)
14906         case $cc_basename in
14907           CC*)
14908             # Sun C++ 4.2, 5.x and Centerline C++
14909             lt_prog_compiler_pic_CXX='-KPIC'
14910             lt_prog_compiler_static_CXX='-Bstatic'
14911             lt_prog_compiler_wl_CXX='-Qoption ld '
14912             ;;
14913           gcx*)
14914             # Green Hills C++ Compiler
14915             lt_prog_compiler_pic_CXX='-PIC'
14916             ;;
14917           *)
14918             ;;
14919         esac
14920         ;;
14921       sunos4*)
14922         case $cc_basename in
14923           CC*)
14924             # Sun C++ 4.x
14925             lt_prog_compiler_pic_CXX='-pic'
14926             lt_prog_compiler_static_CXX='-Bstatic'
14927             ;;
14928           lcc*)
14929             # Lucid
14930             lt_prog_compiler_pic_CXX='-pic'
14931             ;;
14932           *)
14933             ;;
14934         esac
14935         ;;
14936       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14937         case $cc_basename in
14938           CC*)
14939             lt_prog_compiler_wl_CXX='-Wl,'
14940             lt_prog_compiler_pic_CXX='-KPIC'
14941             lt_prog_compiler_static_CXX='-Bstatic'
14942             ;;
14943         esac
14944         ;;
14945       tandem*)
14946         case $cc_basename in
14947           NCC*)
14948             # NonStop-UX NCC 3.20
14949             lt_prog_compiler_pic_CXX='-KPIC'
14950             ;;
14951           *)
14952             ;;
14953         esac
14954         ;;
14955       vxworks*)
14956         ;;
14957       *)
14958         lt_prog_compiler_can_build_shared_CXX=no
14959         ;;
14960     esac
14961   fi
14962
14963 case $host_os in
14964   # For platforms which do not support PIC, -DPIC is meaningless:
14965   *djgpp*)
14966     lt_prog_compiler_pic_CXX=
14967     ;;
14968   *)
14969     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14970     ;;
14971 esac
14972 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14973 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14974
14975
14976
14977 #
14978 # Check to make sure the PIC flag actually works.
14979 #
14980 if test -n "$lt_prog_compiler_pic_CXX"; then
14981   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14982 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14983 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14984   $as_echo_n "(cached) " >&6
14985 else
14986   lt_cv_prog_compiler_pic_works_CXX=no
14987    ac_outfile=conftest.$ac_objext
14988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14989    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14990    # Insert the option either (1) after the last *FLAGS variable, or
14991    # (2) before a word containing "conftest.", or (3) at the end.
14992    # Note that $ac_compile itself does not contain backslashes and begins
14993    # with a dollar sign (not a hyphen), so the echo should work correctly.
14994    # The option is referenced via a variable to avoid confusing sed.
14995    lt_compile=`echo "$ac_compile" | $SED \
14996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14998    -e 's:$: $lt_compiler_flag:'`
14999    (eval echo "\"\$as_me:14999: $lt_compile\"" >&5)
15000    (eval "$lt_compile" 2>conftest.err)
15001    ac_status=$?
15002    cat conftest.err >&5
15003    echo "$as_me:15003: \$? = $ac_status" >&5
15004    if (exit $ac_status) && test -s "$ac_outfile"; then
15005      # The compiler can only warn and ignore the option if not recognized
15006      # So say no if there are warnings other than the usual output.
15007      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15010        lt_cv_prog_compiler_pic_works_CXX=yes
15011      fi
15012    fi
15013    $RM conftest*
15014
15015 fi
15016 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15017 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15018
15019 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15020     case $lt_prog_compiler_pic_CXX in
15021      "" | " "*) ;;
15022      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15023      esac
15024 else
15025     lt_prog_compiler_pic_CXX=
15026      lt_prog_compiler_can_build_shared_CXX=no
15027 fi
15028
15029 fi
15030
15031
15032
15033 #
15034 # Check to make sure the static flag actually works.
15035 #
15036 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15037 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15038 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15039 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15040   $as_echo_n "(cached) " >&6
15041 else
15042   lt_cv_prog_compiler_static_works_CXX=no
15043    save_LDFLAGS="$LDFLAGS"
15044    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15045    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15046    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15047      # The linker can only warn and ignore the option if not recognized
15048      # So say no if there are warnings
15049      if test -s conftest.err; then
15050        # Append any errors to the config.log.
15051        cat conftest.err 1>&5
15052        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15053        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15054        if diff conftest.exp conftest.er2 >/dev/null; then
15055          lt_cv_prog_compiler_static_works_CXX=yes
15056        fi
15057      else
15058        lt_cv_prog_compiler_static_works_CXX=yes
15059      fi
15060    fi
15061    $RM -r conftest*
15062    LDFLAGS="$save_LDFLAGS"
15063
15064 fi
15065 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15066 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15067
15068 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15069     :
15070 else
15071     lt_prog_compiler_static_CXX=
15072 fi
15073
15074
15075
15076
15077     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15079 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15080   $as_echo_n "(cached) " >&6
15081 else
15082   lt_cv_prog_compiler_c_o_CXX=no
15083    $RM -r conftest 2>/dev/null
15084    mkdir conftest
15085    cd conftest
15086    mkdir out
15087    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15088
15089    lt_compiler_flag="-o out/conftest2.$ac_objext"
15090    # Insert the option either (1) after the last *FLAGS variable, or
15091    # (2) before a word containing "conftest.", or (3) at the end.
15092    # Note that $ac_compile itself does not contain backslashes and begins
15093    # with a dollar sign (not a hyphen), so the echo should work correctly.
15094    lt_compile=`echo "$ac_compile" | $SED \
15095    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097    -e 's:$: $lt_compiler_flag:'`
15098    (eval echo "\"\$as_me:15098: $lt_compile\"" >&5)
15099    (eval "$lt_compile" 2>out/conftest.err)
15100    ac_status=$?
15101    cat out/conftest.err >&5
15102    echo "$as_me:15102: \$? = $ac_status" >&5
15103    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15104    then
15105      # The compiler can only warn and ignore the option if not recognized
15106      # So say no if there are warnings
15107      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15108      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15109      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15110        lt_cv_prog_compiler_c_o_CXX=yes
15111      fi
15112    fi
15113    chmod u+w . 2>&5
15114    $RM conftest*
15115    # SGI C++ compiler will create directory out/ii_files/ for
15116    # template instantiation
15117    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15118    $RM out/* && rmdir out
15119    cd ..
15120    $RM -r conftest
15121    $RM conftest*
15122
15123 fi
15124 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15125 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15126
15127
15128
15129     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15131 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15132   $as_echo_n "(cached) " >&6
15133 else
15134   lt_cv_prog_compiler_c_o_CXX=no
15135    $RM -r conftest 2>/dev/null
15136    mkdir conftest
15137    cd conftest
15138    mkdir out
15139    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15140
15141    lt_compiler_flag="-o out/conftest2.$ac_objext"
15142    # Insert the option either (1) after the last *FLAGS variable, or
15143    # (2) before a word containing "conftest.", or (3) at the end.
15144    # Note that $ac_compile itself does not contain backslashes and begins
15145    # with a dollar sign (not a hyphen), so the echo should work correctly.
15146    lt_compile=`echo "$ac_compile" | $SED \
15147    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149    -e 's:$: $lt_compiler_flag:'`
15150    (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15151    (eval "$lt_compile" 2>out/conftest.err)
15152    ac_status=$?
15153    cat out/conftest.err >&5
15154    echo "$as_me:15154: \$? = $ac_status" >&5
15155    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15156    then
15157      # The compiler can only warn and ignore the option if not recognized
15158      # So say no if there are warnings
15159      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15160      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15161      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15162        lt_cv_prog_compiler_c_o_CXX=yes
15163      fi
15164    fi
15165    chmod u+w . 2>&5
15166    $RM conftest*
15167    # SGI C++ compiler will create directory out/ii_files/ for
15168    # template instantiation
15169    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15170    $RM out/* && rmdir out
15171    cd ..
15172    $RM -r conftest
15173    $RM conftest*
15174
15175 fi
15176 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15177 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15178
15179
15180
15181
15182 hard_links="nottested"
15183 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15184   # do not overwrite the value of need_locks provided by the user
15185   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15186 $as_echo_n "checking if we can lock with hard links... " >&6; }
15187   hard_links=yes
15188   $RM conftest*
15189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15190   touch conftest.a
15191   ln conftest.a conftest.b 2>&5 || hard_links=no
15192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15193   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15194 $as_echo "$hard_links" >&6; }
15195   if test "$hard_links" = no; then
15196     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15198     need_locks=warn
15199   fi
15200 else
15201   need_locks=no
15202 fi
15203
15204
15205
15206     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15207 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15208
15209   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15210   case $host_os in
15211   aix[4-9]*)
15212     # If we're using GNU nm, then we don't want the "-C" option.
15213     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15214     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15215       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'
15216     else
15217       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'
15218     fi
15219     ;;
15220   pw32*)
15221     export_symbols_cmds_CXX="$ltdll_cmds"
15222   ;;
15223   cygwin* | mingw* | cegcc*)
15224     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'
15225   ;;
15226   *)
15227     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15228   ;;
15229   esac
15230   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15231
15232 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15233 $as_echo "$ld_shlibs_CXX" >&6; }
15234 test "$ld_shlibs_CXX" = no && can_build_shared=no
15235
15236 with_gnu_ld_CXX=$with_gnu_ld
15237
15238
15239
15240
15241
15242
15243 #
15244 # Do we need to explicitly link libc?
15245 #
15246 case "x$archive_cmds_need_lc_CXX" in
15247 x|xyes)
15248   # Assume -lc should be added
15249   archive_cmds_need_lc_CXX=yes
15250
15251   if test "$enable_shared" = yes && test "$GCC" = yes; then
15252     case $archive_cmds_CXX in
15253     *'~'*)
15254       # FIXME: we may have to deal with multi-command sequences.
15255       ;;
15256     '$CC '*)
15257       # Test whether the compiler implicitly links with -lc since on some
15258       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15259       # to ld, don't add -lc before -lgcc.
15260       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15261 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15262       $RM conftest*
15263       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264
15265       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266   (eval $ac_compile) 2>&5
15267   ac_status=$?
15268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } 2>conftest.err; then
15270         soname=conftest
15271         lib=conftest
15272         libobjs=conftest.$ac_objext
15273         deplibs=
15274         wl=$lt_prog_compiler_wl_CXX
15275         pic_flag=$lt_prog_compiler_pic_CXX
15276         compiler_flags=-v
15277         linker_flags=-v
15278         verstring=
15279         output_objdir=.
15280         libname=conftest
15281         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15282         allow_undefined_flag_CXX=
15283         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15284   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15285   ac_status=$?
15286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }
15288         then
15289           archive_cmds_need_lc_CXX=no
15290         else
15291           archive_cmds_need_lc_CXX=yes
15292         fi
15293         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15294       else
15295         cat conftest.err 1>&5
15296       fi
15297       $RM conftest*
15298       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15299 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15300       ;;
15301     esac
15302   fi
15303   ;;
15304 esac
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
15366
15367
15368
15369     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15371
15372 library_names_spec=
15373 libname_spec='lib$name'
15374 soname_spec=
15375 shrext_cmds=".so"
15376 postinstall_cmds=
15377 postuninstall_cmds=
15378 finish_cmds=
15379 finish_eval=
15380 shlibpath_var=
15381 shlibpath_overrides_runpath=unknown
15382 version_type=none
15383 dynamic_linker="$host_os ld.so"
15384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15385 need_lib_prefix=unknown
15386 hardcode_into_libs=no
15387
15388 # when you set need_version to no, make sure it does not cause -set_version
15389 # flags to be left without arguments
15390 need_version=unknown
15391
15392 case $host_os in
15393 aix3*)
15394   version_type=linux
15395   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15396   shlibpath_var=LIBPATH
15397
15398   # AIX 3 has no versioning support, so we append a major version to the name.
15399   soname_spec='${libname}${release}${shared_ext}$major'
15400   ;;
15401
15402 aix[4-9]*)
15403   version_type=linux
15404   need_lib_prefix=no
15405   need_version=no
15406   hardcode_into_libs=yes
15407   if test "$host_cpu" = ia64; then
15408     # AIX 5 supports IA64
15409     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15410     shlibpath_var=LD_LIBRARY_PATH
15411   else
15412     # With GCC up to 2.95.x, collect2 would create an import file
15413     # for dependence libraries.  The import file would start with
15414     # the line `#! .'.  This would cause the generated library to
15415     # depend on `.', always an invalid library.  This was fixed in
15416     # development snapshots of GCC prior to 3.0.
15417     case $host_os in
15418       aix4 | aix4.[01] | aix4.[01].*)
15419       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15420            echo ' yes '
15421            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15422         :
15423       else
15424         can_build_shared=no
15425       fi
15426       ;;
15427     esac
15428     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15429     # soname into executable. Probably we can add versioning support to
15430     # collect2, so additional links can be useful in future.
15431     if test "$aix_use_runtimelinking" = yes; then
15432       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15433       # instead of lib<name>.a to let people know that these are not
15434       # typical AIX shared libraries.
15435       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436     else
15437       # We preserve .a as extension for shared libraries through AIX4.2
15438       # and later when we are not doing run time linking.
15439       library_names_spec='${libname}${release}.a $libname.a'
15440       soname_spec='${libname}${release}${shared_ext}$major'
15441     fi
15442     shlibpath_var=LIBPATH
15443   fi
15444   ;;
15445
15446 amigaos*)
15447   case $host_cpu in
15448   powerpc)
15449     # Since July 2007 AmigaOS4 officially supports .so libraries.
15450     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452     ;;
15453   m68k)
15454     library_names_spec='$libname.ixlibrary $libname.a'
15455     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15456     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'
15457     ;;
15458   esac
15459   ;;
15460
15461 beos*)
15462   library_names_spec='${libname}${shared_ext}'
15463   dynamic_linker="$host_os ld.so"
15464   shlibpath_var=LIBRARY_PATH
15465   ;;
15466
15467 bsdi[45]*)
15468   version_type=linux
15469   need_version=no
15470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471   soname_spec='${libname}${release}${shared_ext}$major'
15472   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15473   shlibpath_var=LD_LIBRARY_PATH
15474   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15475   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15476   # the default ld.so.conf also contains /usr/contrib/lib and
15477   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15478   # libtool to hard-code these into programs
15479   ;;
15480
15481 cygwin* | mingw* | pw32* | cegcc*)
15482   version_type=windows
15483   shrext_cmds=".dll"
15484   need_version=no
15485   need_lib_prefix=no
15486
15487   case $GCC,$host_os in
15488   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15489     library_names_spec='$libname.dll.a'
15490     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15491     postinstall_cmds='base_file=`basename \${file}`~
15492       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15493       dldir=$destdir/`dirname \$dlpath`~
15494       test -d \$dldir || mkdir -p \$dldir~
15495       $install_prog $dir/$dlname \$dldir/$dlname~
15496       chmod a+x \$dldir/$dlname~
15497       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15498         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15499       fi'
15500     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15501       dlpath=$dir/\$dldll~
15502        $RM \$dlpath'
15503     shlibpath_overrides_runpath=yes
15504
15505     case $host_os in
15506     cygwin*)
15507       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15508       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15509       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15510       ;;
15511     mingw* | cegcc*)
15512       # MinGW DLLs use traditional 'lib' prefix
15513       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15514       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15515       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15516         # It is most probably a Windows format PATH printed by
15517         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15518         # path with ; separators, and with drive letters. We can handle the
15519         # drive letters (cygwin fileutils understands them), so leave them,
15520         # especially as we might pass files found there to a mingw objdump,
15521         # which wouldn't understand a cygwinified path. Ahh.
15522         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15523       else
15524         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15525       fi
15526       ;;
15527     pw32*)
15528       # pw32 DLLs use 'pw' prefix rather than 'lib'
15529       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15530       ;;
15531     esac
15532     ;;
15533
15534   *)
15535     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15536     ;;
15537   esac
15538   dynamic_linker='Win32 ld.exe'
15539   # FIXME: first we should search . and the directory the executable is in
15540   shlibpath_var=PATH
15541   ;;
15542
15543 darwin* | rhapsody*)
15544   dynamic_linker="$host_os dyld"
15545   version_type=darwin
15546   need_lib_prefix=no
15547   need_version=no
15548   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15549   soname_spec='${libname}${release}${major}$shared_ext'
15550   shlibpath_overrides_runpath=yes
15551   shlibpath_var=DYLD_LIBRARY_PATH
15552   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15553
15554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15555   ;;
15556
15557 dgux*)
15558   version_type=linux
15559   need_lib_prefix=no
15560   need_version=no
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15562   soname_spec='${libname}${release}${shared_ext}$major'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   ;;
15565
15566 freebsd1*)
15567   dynamic_linker=no
15568   ;;
15569
15570 freebsd* | dragonfly*)
15571   # DragonFly does not have aout.  When/if they implement a new
15572   # versioning mechanism, adjust this.
15573   if test -x /usr/bin/objformat; then
15574     objformat=`/usr/bin/objformat`
15575   else
15576     case $host_os in
15577     freebsd[123]*) objformat=aout ;;
15578     *) objformat=elf ;;
15579     esac
15580   fi
15581   version_type=freebsd-$objformat
15582   case $version_type in
15583     freebsd-elf*)
15584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15585       need_version=no
15586       need_lib_prefix=no
15587       ;;
15588     freebsd-*)
15589       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15590       need_version=yes
15591       ;;
15592   esac
15593   shlibpath_var=LD_LIBRARY_PATH
15594   case $host_os in
15595   freebsd2*)
15596     shlibpath_overrides_runpath=yes
15597     ;;
15598   freebsd3.[01]* | freebsdelf3.[01]*)
15599     shlibpath_overrides_runpath=yes
15600     hardcode_into_libs=yes
15601     ;;
15602   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15603   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15604     shlibpath_overrides_runpath=no
15605     hardcode_into_libs=yes
15606     ;;
15607   *) # from 4.6 on, and DragonFly
15608     shlibpath_overrides_runpath=yes
15609     hardcode_into_libs=yes
15610     ;;
15611   esac
15612   ;;
15613
15614 gnu*)
15615   version_type=linux
15616   need_lib_prefix=no
15617   need_version=no
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   shlibpath_var=LD_LIBRARY_PATH
15621   hardcode_into_libs=yes
15622   ;;
15623
15624 hpux9* | hpux10* | hpux11*)
15625   # Give a soname corresponding to the major version so that dld.sl refuses to
15626   # link against other versions.
15627   version_type=sunos
15628   need_lib_prefix=no
15629   need_version=no
15630   case $host_cpu in
15631   ia64*)
15632     shrext_cmds='.so'
15633     hardcode_into_libs=yes
15634     dynamic_linker="$host_os dld.so"
15635     shlibpath_var=LD_LIBRARY_PATH
15636     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638     soname_spec='${libname}${release}${shared_ext}$major'
15639     if test "X$HPUX_IA64_MODE" = X32; then
15640       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15641     else
15642       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15643     fi
15644     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15645     ;;
15646   hppa*64*)
15647     shrext_cmds='.sl'
15648     hardcode_into_libs=yes
15649     dynamic_linker="$host_os dld.sl"
15650     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15651     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653     soname_spec='${libname}${release}${shared_ext}$major'
15654     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15655     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15656     ;;
15657   *)
15658     shrext_cmds='.sl'
15659     dynamic_linker="$host_os dld.sl"
15660     shlibpath_var=SHLIB_PATH
15661     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663     soname_spec='${libname}${release}${shared_ext}$major'
15664     ;;
15665   esac
15666   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15667   postinstall_cmds='chmod 555 $lib'
15668   ;;
15669
15670 interix[3-9]*)
15671   version_type=linux
15672   need_lib_prefix=no
15673   need_version=no
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15677   shlibpath_var=LD_LIBRARY_PATH
15678   shlibpath_overrides_runpath=no
15679   hardcode_into_libs=yes
15680   ;;
15681
15682 irix5* | irix6* | nonstopux*)
15683   case $host_os in
15684     nonstopux*) version_type=nonstopux ;;
15685     *)
15686         if test "$lt_cv_prog_gnu_ld" = yes; then
15687                 version_type=linux
15688         else
15689                 version_type=irix
15690         fi ;;
15691   esac
15692   need_lib_prefix=no
15693   need_version=no
15694   soname_spec='${libname}${release}${shared_ext}$major'
15695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15696   case $host_os in
15697   irix5* | nonstopux*)
15698     libsuff= shlibsuff=
15699     ;;
15700   *)
15701     case $LD in # libtool.m4 will add one of these switches to LD
15702     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15703       libsuff= shlibsuff= libmagic=32-bit;;
15704     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15705       libsuff=32 shlibsuff=N32 libmagic=N32;;
15706     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15707       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15708     *) libsuff= shlibsuff= libmagic=never-match;;
15709     esac
15710     ;;
15711   esac
15712   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15713   shlibpath_overrides_runpath=no
15714   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15715   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15716   hardcode_into_libs=yes
15717   ;;
15718
15719 # No shared lib support for Linux oldld, aout, or coff.
15720 linux*oldld* | linux*aout* | linux*coff*)
15721   dynamic_linker=no
15722   ;;
15723
15724 # This must be Linux ELF.
15725 linux* | k*bsd*-gnu)
15726   version_type=linux
15727   need_lib_prefix=no
15728   need_version=no
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15732   shlibpath_var=LD_LIBRARY_PATH
15733   shlibpath_overrides_runpath=no
15734   # Some binutils ld are patched to set DT_RUNPATH
15735   save_LDFLAGS=$LDFLAGS
15736   save_libdir=$libdir
15737   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15738        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15739   cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745
15746 int
15747 main ()
15748 {
15749
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15761 $as_echo "$ac_try_echo") >&5
15762   (eval "$ac_link") 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } && {
15769          test -z "$ac_cxx_werror_flag" ||
15770          test ! -s conftest.err
15771        } && test -s conftest$ac_exeext && {
15772          test "$cross_compiling" = yes ||
15773          $as_test_x conftest$ac_exeext
15774        }; then
15775   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15776   shlibpath_overrides_runpath=yes
15777 fi
15778
15779 else
15780   $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783
15784 fi
15785
15786 rm -rf conftest.dSYM
15787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15788       conftest$ac_exeext conftest.$ac_ext
15789   LDFLAGS=$save_LDFLAGS
15790   libdir=$save_libdir
15791
15792   # This implies no fast_install, which is unacceptable.
15793   # Some rework will be needed to allow for fast_install
15794   # before this can be enabled.
15795   hardcode_into_libs=yes
15796
15797   # Append ld.so.conf contents to the search path
15798   if test -f /etc/ld.so.conf; then
15799     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' ' '`
15800     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15801   fi
15802
15803   # We used to test for /lib/ld.so.1 and disable shared libraries on
15804   # powerpc, because MkLinux only supported shared libraries with the
15805   # GNU dynamic linker.  Since this was broken with cross compilers,
15806   # most powerpc-linux boxes support dynamic linking these days and
15807   # people can always --disable-shared, the test was removed, and we
15808   # assume the GNU/Linux dynamic linker is in use.
15809   dynamic_linker='GNU/Linux ld.so'
15810   ;;
15811
15812 netbsd*)
15813   version_type=sunos
15814   need_lib_prefix=no
15815   need_version=no
15816   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15818     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15819     dynamic_linker='NetBSD (a.out) ld.so'
15820   else
15821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822     soname_spec='${libname}${release}${shared_ext}$major'
15823     dynamic_linker='NetBSD ld.elf_so'
15824   fi
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=yes
15827   hardcode_into_libs=yes
15828   ;;
15829
15830 newsos6)
15831   version_type=linux
15832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833   shlibpath_var=LD_LIBRARY_PATH
15834   shlibpath_overrides_runpath=yes
15835   ;;
15836
15837 *nto* | *qnx*)
15838   version_type=qnx
15839   need_lib_prefix=no
15840   need_version=no
15841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842   soname_spec='${libname}${release}${shared_ext}$major'
15843   shlibpath_var=LD_LIBRARY_PATH
15844   shlibpath_overrides_runpath=no
15845   hardcode_into_libs=yes
15846   dynamic_linker='ldqnx.so'
15847   ;;
15848
15849 openbsd*)
15850   version_type=sunos
15851   sys_lib_dlsearch_path_spec="/usr/lib"
15852   need_lib_prefix=no
15853   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15854   case $host_os in
15855     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15856     *)                          need_version=no  ;;
15857   esac
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15860   shlibpath_var=LD_LIBRARY_PATH
15861   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15862     case $host_os in
15863       openbsd2.[89] | openbsd2.[89].*)
15864         shlibpath_overrides_runpath=no
15865         ;;
15866       *)
15867         shlibpath_overrides_runpath=yes
15868         ;;
15869       esac
15870   else
15871     shlibpath_overrides_runpath=yes
15872   fi
15873   ;;
15874
15875 os2*)
15876   libname_spec='$name'
15877   shrext_cmds=".dll"
15878   need_lib_prefix=no
15879   library_names_spec='$libname${shared_ext} $libname.a'
15880   dynamic_linker='OS/2 ld.exe'
15881   shlibpath_var=LIBPATH
15882   ;;
15883
15884 osf3* | osf4* | osf5*)
15885   version_type=osf
15886   need_lib_prefix=no
15887   need_version=no
15888   soname_spec='${libname}${release}${shared_ext}$major'
15889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890   shlibpath_var=LD_LIBRARY_PATH
15891   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15892   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15893   ;;
15894
15895 rdos*)
15896   dynamic_linker=no
15897   ;;
15898
15899 solaris*)
15900   version_type=linux
15901   need_lib_prefix=no
15902   need_version=no
15903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904   soname_spec='${libname}${release}${shared_ext}$major'
15905   shlibpath_var=LD_LIBRARY_PATH
15906   shlibpath_overrides_runpath=yes
15907   hardcode_into_libs=yes
15908   # ldd complains unless libraries are executable
15909   postinstall_cmds='chmod +x $lib'
15910   ;;
15911
15912 sunos4*)
15913   version_type=sunos
15914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   shlibpath_overrides_runpath=yes
15918   if test "$with_gnu_ld" = yes; then
15919     need_lib_prefix=no
15920   fi
15921   need_version=yes
15922   ;;
15923
15924 sysv4 | sysv4.3*)
15925   version_type=linux
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   shlibpath_var=LD_LIBRARY_PATH
15929   case $host_vendor in
15930     sni)
15931       shlibpath_overrides_runpath=no
15932       need_lib_prefix=no
15933       runpath_var=LD_RUN_PATH
15934       ;;
15935     siemens)
15936       need_lib_prefix=no
15937       ;;
15938     motorola)
15939       need_lib_prefix=no
15940       need_version=no
15941       shlibpath_overrides_runpath=no
15942       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15943       ;;
15944   esac
15945   ;;
15946
15947 sysv4*MP*)
15948   if test -d /usr/nec ;then
15949     version_type=linux
15950     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15951     soname_spec='$libname${shared_ext}.$major'
15952     shlibpath_var=LD_LIBRARY_PATH
15953   fi
15954   ;;
15955
15956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15957   version_type=freebsd-elf
15958   need_lib_prefix=no
15959   need_version=no
15960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15961   soname_spec='${libname}${release}${shared_ext}$major'
15962   shlibpath_var=LD_LIBRARY_PATH
15963   shlibpath_overrides_runpath=yes
15964   hardcode_into_libs=yes
15965   if test "$with_gnu_ld" = yes; then
15966     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15967   else
15968     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15969     case $host_os in
15970       sco3.2v5*)
15971         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15972         ;;
15973     esac
15974   fi
15975   sys_lib_dlsearch_path_spec='/usr/lib'
15976   ;;
15977
15978 tpf*)
15979   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15980   version_type=linux
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   shlibpath_var=LD_LIBRARY_PATH
15985   shlibpath_overrides_runpath=no
15986   hardcode_into_libs=yes
15987   ;;
15988
15989 uts4*)
15990   version_type=linux
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   shlibpath_var=LD_LIBRARY_PATH
15994   ;;
15995
15996 *)
15997   dynamic_linker=no
15998   ;;
15999 esac
16000 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16001 $as_echo "$dynamic_linker" >&6; }
16002 test "$dynamic_linker" = no && can_build_shared=no
16003
16004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16005 if test "$GCC" = yes; then
16006   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16007 fi
16008
16009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16010   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16011 fi
16012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16013   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16014 fi
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
16048
16049
16050
16051     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16053 hardcode_action_CXX=
16054 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16055    test -n "$runpath_var_CXX" ||
16056    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16057
16058   # We can hardcode non-existent directories.
16059   if test "$hardcode_direct_CXX" != no &&
16060      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16061      # have to relink, otherwise we might link with an installed library
16062      # when we should be linking with a yet-to-be-installed one
16063      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16064      test "$hardcode_minus_L_CXX" != no; then
16065     # Linking always hardcodes the temporary library directory.
16066     hardcode_action_CXX=relink
16067   else
16068     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16069     hardcode_action_CXX=immediate
16070   fi
16071 else
16072   # We cannot hardcode anything, or else we can only hardcode existing
16073   # directories.
16074   hardcode_action_CXX=unsupported
16075 fi
16076 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16077 $as_echo "$hardcode_action_CXX" >&6; }
16078
16079 if test "$hardcode_action_CXX" = relink ||
16080    test "$inherit_rpath_CXX" = yes; then
16081   # Fast installation is not supported
16082   enable_fast_install=no
16083 elif test "$shlibpath_overrides_runpath" = yes ||
16084      test "$enable_shared" = no; then
16085   # Fast installation is not necessary
16086   enable_fast_install=needless
16087 fi
16088
16089
16090
16091
16092
16093
16094
16095   fi # test -n "$compiler"
16096
16097   CC=$lt_save_CC
16098   LDCXX=$LD
16099   LD=$lt_save_LD
16100   GCC=$lt_save_GCC
16101   with_gnu_ld=$lt_save_with_gnu_ld
16102   lt_cv_path_LDCXX=$lt_cv_path_LD
16103   lt_cv_path_LD=$lt_save_path_LD
16104   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16105   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16106 fi # test "$_lt_caught_CXX_error" != yes
16107
16108 ac_ext=c
16109 ac_cpp='$CPP $CPPFLAGS'
16110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126         ac_config_commands="$ac_config_commands libtool"
16127
16128
16129
16130
16131 # Only expand once:
16132
16133
16134
16135
16136 if test x$use_libtool != xno; then
16137    DEFAULT_OBJECT_TYPE=".lo"
16138    DEFAULT_ARCHIVE_TYPE=".la"
16139    DEFAULT_SHARED_OBJECT_TYPE=".la"
16140    LIBTOOL="\$(LIBTOOL)"
16141    LIBTOOL_INSTALL_TARGET="libtool-install"
16142    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16143    LIBTOOL_CLEAN_TARGET="libtool-clean"
16144    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16145    FD_PLUGIN_DIR="src/plugins/fd"
16146    have_plugins=yes
16147 else
16148    DEFAULT_OBJECT_TYPE=".o"
16149    DEFAULT_ARCHIVE_TYPE=".a"
16150    DEFAULT_SHARED_OBJECT_TYPE=".so"
16151    LIBTOOL="# \$(LIBTOOL)"
16152    LIBTOOL_INSTALL_TARGET=""
16153    LIBTOOL_UNINSTALL_TARGET=""
16154    LIBTOOL_CLEAN_TARGET=""
16155    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16156    FD_PLUGIN_DIR=""
16157    have_plugins=no
16158 fi
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170 # Check whether --enable-includes was given.
16171 if test "${enable_includes+set}" = set; then
16172   enableval=$enable_includes;
16173        if test x$enableval = xyes; then
16174           install_includes=yes
16175        fi
16176
16177
16178 fi
16179
16180
16181
16182 if test x$use_libtool != xno -a x$install_includes = xyes; then
16183    INCLUDE_INSTALL_TARGET="install-includes"
16184    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16185 else
16186    INCLUDE_INSTALL_TARGET=""
16187    INCLUDE_UNINSTALL_TARGET=""
16188 fi
16189
16190
16191
16192
16193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16194 $as_echo_n "checking host system type... " >&6; }
16195 if test "${ac_cv_host+set}" = set; then
16196   $as_echo_n "(cached) " >&6
16197 else
16198   if test "x$host_alias" = x; then
16199   ac_cv_host=$ac_cv_build
16200 else
16201   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16202     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16204    { (exit 1); exit 1; }; }
16205 fi
16206
16207 fi
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16209 $as_echo "$ac_cv_host" >&6; }
16210 case $ac_cv_host in
16211 *-*-*) ;;
16212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16214    { (exit 1); exit 1; }; };;
16215 esac
16216 host=$ac_cv_host
16217 ac_save_IFS=$IFS; IFS='-'
16218 set x $ac_cv_host
16219 shift
16220 host_cpu=$1
16221 host_vendor=$2
16222 shift; shift
16223 # Remember, the first character of IFS is used to create $*,
16224 # except with old shells:
16225 host_os=$*
16226 IFS=$ac_save_IFS
16227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16228
16229
16230 case $host_os in
16231   *cygwin* ) CYGWIN=yes;;
16232          * ) CYGWIN=no;;
16233 esac
16234
16235 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16236 then
16237
16238
16239 if $TRUEPRG; then
16240   HAVE_SUN_OS_TRUE=
16241   HAVE_SUN_OS_FALSE='#'
16242 else
16243   HAVE_SUN_OS_TRUE='#'
16244   HAVE_SUN_OS_FALSE=
16245 fi
16246         cat >>confdefs.h <<\_ACEOF
16247 #define HAVE_SUN_OS 1
16248 _ACEOF
16249
16250 else
16251
16252
16253 if $FALSEPRG; then
16254   HAVE_SUN_OS_TRUE=
16255   HAVE_SUN_OS_FALSE='#'
16256 else
16257   HAVE_SUN_OS_TRUE='#'
16258   HAVE_SUN_OS_FALSE=
16259 fi
16260 fi
16261
16262 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16263 then
16264
16265
16266 if $TRUEPRG; then
16267   HAVE_OSF1_OS_TRUE=
16268   HAVE_OSF1_OS_FALSE='#'
16269 else
16270   HAVE_OSF1_OS_TRUE='#'
16271   HAVE_OSF1_OS_FALSE=
16272 fi
16273         cat >>confdefs.h <<\_ACEOF
16274 #define HAVE_OSF1_OS 1
16275 _ACEOF
16276
16277 else
16278
16279
16280 if $FALSEPRG; then
16281   HAVE_OSF1_OS_TRUE=
16282   HAVE_OSF1_OS_FALSE='#'
16283 else
16284   HAVE_OSF1_OS_TRUE='#'
16285   HAVE_OSF1_OS_FALSE=
16286 fi
16287 fi
16288
16289 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16290 then
16291
16292
16293 if $TRUEPRG; then
16294   HAVE_AIX_OS_TRUE=
16295   HAVE_AIX_OS_FALSE='#'
16296 else
16297   HAVE_AIX_OS_TRUE='#'
16298   HAVE_AIX_OS_FALSE=
16299 fi
16300         cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_AIX_OS 1
16302 _ACEOF
16303
16304 else
16305
16306
16307 if $FALSEPRG; then
16308   HAVE_AIX_OS_TRUE=
16309   HAVE_AIX_OS_FALSE='#'
16310 else
16311   HAVE_AIX_OS_TRUE='#'
16312   HAVE_AIX_OS_FALSE=
16313 fi
16314 fi
16315
16316 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16317 then
16318
16319
16320 if $TRUEPRG; then
16321   HAVE_HPUX_OS_TRUE=
16322   HAVE_HPUX_OS_FALSE='#'
16323 else
16324   HAVE_HPUX_OS_TRUE='#'
16325   HAVE_HPUX_OS_FALSE=
16326 fi
16327         cat >>confdefs.h <<\_ACEOF
16328 #define HAVE_HPUX_OS 1
16329 _ACEOF
16330
16331 else
16332
16333
16334 if $FALSEPRG; then
16335   HAVE_HPUX_OS_TRUE=
16336   HAVE_HPUX_OS_FALSE='#'
16337 else
16338   HAVE_HPUX_OS_TRUE='#'
16339   HAVE_HPUX_OS_FALSE=
16340 fi
16341 fi
16342
16343 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16344 then
16345
16346
16347 if $TRUEPRG; then
16348   HAVE_LINUX_OS_TRUE=
16349   HAVE_LINUX_OS_FALSE='#'
16350 else
16351   HAVE_LINUX_OS_TRUE='#'
16352   HAVE_LINUX_OS_FALSE=
16353 fi
16354         cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_LINUX_OS 1
16356 _ACEOF
16357
16358 else
16359
16360
16361 if $FALSEPRG; then
16362   HAVE_LINUX_OS_TRUE=
16363   HAVE_LINUX_OS_FALSE='#'
16364 else
16365   HAVE_LINUX_OS_TRUE='#'
16366   HAVE_LINUX_OS_FALSE=
16367 fi
16368 fi
16369
16370 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16371 then
16372
16373
16374 if $TRUEPRG; then
16375   HAVE_FREEBSD_OS_TRUE=
16376   HAVE_FREEBSD_OS_FALSE='#'
16377 else
16378   HAVE_FREEBSD_OS_TRUE='#'
16379   HAVE_FREEBSD_OS_FALSE=
16380 fi
16381         cat >>confdefs.h <<\_ACEOF
16382 #define HAVE_FREEBSD_OS 1
16383 _ACEOF
16384
16385 else
16386
16387
16388 if $FALSEPRG; then
16389   HAVE_FREEBSD_OS_TRUE=
16390   HAVE_FREEBSD_OS_FALSE='#'
16391 else
16392   HAVE_FREEBSD_OS_TRUE='#'
16393   HAVE_FREEBSD_OS_FALSE=
16394 fi
16395 fi
16396
16397 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16398 then
16399
16400
16401 if $TRUEPRG; then
16402   HAVE_NETBSD_OS_TRUE=
16403   HAVE_NETBSD_OS_FALSE='#'
16404 else
16405   HAVE_NETBSD_OS_TRUE='#'
16406   HAVE_NETBSD_OS_FALSE=
16407 fi
16408         cat >>confdefs.h <<\_ACEOF
16409 #define HAVE_NETBSD_OS 1
16410 _ACEOF
16411
16412 else
16413
16414
16415 if $FALSEPRG; then
16416   HAVE_NETBSD_OS_TRUE=
16417   HAVE_NETBSD_OS_FALSE='#'
16418 else
16419   HAVE_NETBSD_OS_TRUE='#'
16420   HAVE_NETBSD_OS_FALSE=
16421 fi
16422 fi
16423
16424 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16425 then
16426
16427
16428 if $TRUEPRG; then
16429   HAVE_OPENBSD_OS_TRUE=
16430   HAVE_OPENBSD_OS_FALSE='#'
16431 else
16432   HAVE_OPENBSD_OS_TRUE='#'
16433   HAVE_OPENBSD_OS_FALSE=
16434 fi
16435         cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_OPENBSD_OS 1
16437 _ACEOF
16438
16439 else
16440
16441
16442 if $FALSEPRG; then
16443   HAVE_OPENBSD_OS_TRUE=
16444   HAVE_OPENBSD_OS_FALSE='#'
16445 else
16446   HAVE_OPENBSD_OS_TRUE='#'
16447   HAVE_OPENBSD_OS_FALSE=
16448 fi
16449 fi
16450
16451 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16452 then
16453
16454
16455 if $TRUEPRG; then
16456   HAVE_BSDI_OS_TRUE=
16457   HAVE_BSDI_OS_FALSE='#'
16458 else
16459   HAVE_BSDI_OS_TRUE='#'
16460   HAVE_BSDI_OS_FALSE=
16461 fi
16462         cat >>confdefs.h <<\_ACEOF
16463 #define HAVE_BSDI_OS 1
16464 _ACEOF
16465
16466 else
16467
16468
16469 if $FALSEPRG; then
16470   HAVE_BSDI_OS_TRUE=
16471   HAVE_BSDI_OS_FALSE='#'
16472 else
16473   HAVE_BSDI_OS_TRUE='#'
16474   HAVE_BSDI_OS_FALSE=
16475 fi
16476 fi
16477
16478 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16479 then
16480
16481
16482 if $TRUEPRG; then
16483   HAVE_SGI_OS_TRUE=
16484   HAVE_SGI_OS_FALSE='#'
16485 else
16486   HAVE_SGI_OS_TRUE='#'
16487   HAVE_SGI_OS_FALSE=
16488 fi
16489         cat >>confdefs.h <<\_ACEOF
16490 #define HAVE_SGI_OS 1
16491 _ACEOF
16492
16493 else
16494
16495
16496 if $FALSEPRG; then
16497   HAVE_SGI_OS_TRUE=
16498   HAVE_SGI_OS_FALSE='#'
16499 else
16500   HAVE_SGI_OS_TRUE='#'
16501   HAVE_SGI_OS_FALSE=
16502 fi
16503 fi
16504
16505 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16506 then
16507
16508
16509 if $TRUEPRG; then
16510   HAVE_IRIX_OS_TRUE=
16511   HAVE_IRIX_OS_FALSE='#'
16512 else
16513   HAVE_IRIX_OS_TRUE='#'
16514   HAVE_IRIX_OS_FALSE=
16515 fi
16516         cat >>confdefs.h <<\_ACEOF
16517 #define HAVE_IRIX_OS 1
16518 _ACEOF
16519
16520 else
16521
16522
16523 if $FALSEPRG; then
16524   HAVE_IRIX_OS_TRUE=
16525   HAVE_IRIX_OS_FALSE='#'
16526 else
16527   HAVE_IRIX_OS_TRUE='#'
16528   HAVE_IRIX_OS_FALSE=
16529 fi
16530 fi
16531
16532 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16533 then
16534
16535
16536 if $TRUEPRG; then
16537   HAVE_DARWIN_OS_TRUE=
16538   HAVE_DARWIN_OS_FALSE='#'
16539 else
16540   HAVE_DARWIN_OS_TRUE='#'
16541   HAVE_DARWIN_OS_FALSE=
16542 fi
16543     cat >>confdefs.h <<\_ACEOF
16544 #define HAVE_DARWIN_OS 1
16545 _ACEOF
16546
16547 else
16548
16549
16550 if $FALSEPRG; then
16551   HAVE_DARWIN_OS_TRUE=
16552   HAVE_DARWIN_OS_FALSE='#'
16553 else
16554   HAVE_DARWIN_OS_TRUE='#'
16555   HAVE_DARWIN_OS_FALSE=
16556 fi
16557 fi
16558
16559
16560 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16561 $as_echo_n "checking for Operating System Distribution... " >&6; }
16562 if test "x$DISTNAME" != "x"
16563 then
16564         echo "distname set to $DISTNAME"
16565 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16566 then
16567         DISTNAME=alpha
16568 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16569 then
16570         DISTNAME=aix
16571 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16572 then
16573         DISTNAME=hpux
16574 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16575 then
16576         DISTNAME=solaris
16577 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16578 then
16579         DISTNAME=freebsd
16580 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16581 then
16582         DISTNAME=netbsd
16583 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16584 then
16585         DISTNAME=openbsd
16586 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16587 then
16588         DISTNAME=irix
16589 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16590 then
16591         DISTNAME=bsdi
16592 elif test -f /etc/SuSE-release
16593 then
16594         DISTNAME=suse
16595 elif test -d /etc/SuSEconfig
16596 then
16597         DISTNAME=suse5
16598 elif test -f /etc/mandrake-release
16599 then
16600         DISTNAME=mandrake
16601 elif test -f /etc/whitebox-release
16602 then
16603        DISTNAME=redhat
16604 elif test -f /etc/redhat-release
16605 then
16606         DISTNAME=redhat
16607 elif test -f /etc/gentoo-release
16608 then
16609         DISTNAME=gentoo
16610 elif test -f /etc/debian_version
16611 then
16612         DISTNAME=debian
16613 elif test -f /etc/slackware-version
16614 then
16615         DISTNAME=slackware
16616 elif test x$host_vendor = xapple
16617 then
16618     DISTNAME=osx
16619 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16620 then
16621     DISTNAME=darwin
16622 elif test -f /etc/engarde-version
16623 then
16624         DISTNAME=engarde
16625 elif test "$CYGWIN" = yes
16626 then
16627         DISTNAME=cygwin
16628         cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_CYGWIN 1
16630 _ACEOF
16631
16632 else
16633         DISTNAME=unknown
16634 fi
16635 { $as_echo "$as_me:$LINENO: result: done" >&5
16636 $as_echo "done" >&6; }
16637
16638
16639 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16640 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16641 set x ${MAKE-make}
16642 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16643 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16644   $as_echo_n "(cached) " >&6
16645 else
16646   cat >conftest.make <<\_ACEOF
16647 SHELL = /bin/sh
16648 all:
16649         @echo '@@@%%%=$(MAKE)=@@@%%%'
16650 _ACEOF
16651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16652 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16653   *@@@%%%=?*=@@@%%%*)
16654     eval ac_cv_prog_make_${ac_make}_set=yes;;
16655   *)
16656     eval ac_cv_prog_make_${ac_make}_set=no;;
16657 esac
16658 rm -f conftest.make
16659 fi
16660 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16661   { $as_echo "$as_me:$LINENO: result: yes" >&5
16662 $as_echo "yes" >&6; }
16663   SET_MAKE=
16664 else
16665   { $as_echo "$as_me:$LINENO: result: no" >&5
16666 $as_echo "no" >&6; }
16667   SET_MAKE="MAKE=${MAKE-make}"
16668 fi
16669
16670
16671
16672         MKINSTALLDIRS=
16673   if test -n "$ac_aux_dir"; then
16674     case "$ac_aux_dir" in
16675       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16676       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16677     esac
16678   fi
16679   if test -z "$MKINSTALLDIRS"; then
16680     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16681   fi
16682
16683
16684
16685   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16686 $as_echo_n "checking whether NLS is requested... " >&6; }
16687     # Check whether --enable-nls was given.
16688 if test "${enable_nls+set}" = set; then
16689   enableval=$enable_nls; USE_NLS=$enableval
16690 else
16691   USE_NLS=yes
16692 fi
16693
16694   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16695 $as_echo "$USE_NLS" >&6; }
16696
16697
16698
16699
16700
16701
16702 # Prepare PATH_SEPARATOR.
16703 # The user is always right.
16704 if test "${PATH_SEPARATOR+set}" != set; then
16705   echo "#! /bin/sh" >conf$$.sh
16706   echo  "exit 0"   >>conf$$.sh
16707   chmod +x conf$$.sh
16708   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16709     PATH_SEPARATOR=';'
16710   else
16711     PATH_SEPARATOR=:
16712   fi
16713   rm -f conf$$.sh
16714 fi
16715
16716 # Find out how to test for executable files. Don't use a zero-byte file,
16717 # as systems may use methods other than mode bits to determine executability.
16718 cat >conf$$.file <<_ASEOF
16719 #! /bin/sh
16720 exit 0
16721 _ASEOF
16722 chmod +x conf$$.file
16723 if test -x conf$$.file >/dev/null 2>&1; then
16724   ac_executable_p="test -x"
16725 else
16726   ac_executable_p="test -f"
16727 fi
16728 rm -f conf$$.file
16729
16730 # Extract the first word of "msgfmt", so it can be a program name with args.
16731 set dummy msgfmt; ac_word=$2
16732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16733 $as_echo_n "checking for $ac_word... " >&6; }
16734 if test "${ac_cv_path_MSGFMT+set}" = set; then
16735   $as_echo_n "(cached) " >&6
16736 else
16737   case "$MSGFMT" in
16738   [\\/]* | ?:[\\/]*)
16739     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16740     ;;
16741   *)
16742     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16743     for ac_dir in $PATH; do
16744       IFS="$ac_save_IFS"
16745       test -z "$ac_dir" && ac_dir=.
16746       for ac_exec_ext in '' $ac_executable_extensions; do
16747         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16748           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16749           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16750      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16751             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16752             break 2
16753           fi
16754         fi
16755       done
16756     done
16757     IFS="$ac_save_IFS"
16758   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16759     ;;
16760 esac
16761 fi
16762 MSGFMT="$ac_cv_path_MSGFMT"
16763 if test "$MSGFMT" != ":"; then
16764   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16765 $as_echo "$MSGFMT" >&6; }
16766 else
16767   { $as_echo "$as_me:$LINENO: result: no" >&5
16768 $as_echo "no" >&6; }
16769 fi
16770
16771   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16772 set dummy gmsgfmt; ac_word=$2
16773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16776   $as_echo_n "(cached) " >&6
16777 else
16778   case $GMSGFMT in
16779   [\\/]* | ?:[\\/]*)
16780   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16781   ;;
16782   *)
16783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16785 do
16786   IFS=$as_save_IFS
16787   test -z "$as_dir" && as_dir=.
16788   for ac_exec_ext in '' $ac_executable_extensions; do
16789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16790     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16792     break 2
16793   fi
16794 done
16795 done
16796 IFS=$as_save_IFS
16797
16798   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16799   ;;
16800 esac
16801 fi
16802 GMSGFMT=$ac_cv_path_GMSGFMT
16803 if test -n "$GMSGFMT"; then
16804   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16805 $as_echo "$GMSGFMT" >&6; }
16806 else
16807   { $as_echo "$as_me:$LINENO: result: no" >&5
16808 $as_echo "no" >&6; }
16809 fi
16810
16811
16812
16813
16814 # Prepare PATH_SEPARATOR.
16815 # The user is always right.
16816 if test "${PATH_SEPARATOR+set}" != set; then
16817   echo "#! /bin/sh" >conf$$.sh
16818   echo  "exit 0"   >>conf$$.sh
16819   chmod +x conf$$.sh
16820   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16821     PATH_SEPARATOR=';'
16822   else
16823     PATH_SEPARATOR=:
16824   fi
16825   rm -f conf$$.sh
16826 fi
16827
16828 # Find out how to test for executable files. Don't use a zero-byte file,
16829 # as systems may use methods other than mode bits to determine executability.
16830 cat >conf$$.file <<_ASEOF
16831 #! /bin/sh
16832 exit 0
16833 _ASEOF
16834 chmod +x conf$$.file
16835 if test -x conf$$.file >/dev/null 2>&1; then
16836   ac_executable_p="test -x"
16837 else
16838   ac_executable_p="test -f"
16839 fi
16840 rm -f conf$$.file
16841
16842 # Extract the first word of "xgettext", so it can be a program name with args.
16843 set dummy xgettext; ac_word=$2
16844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16845 $as_echo_n "checking for $ac_word... " >&6; }
16846 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16847   $as_echo_n "(cached) " >&6
16848 else
16849   case "$XGETTEXT" in
16850   [\\/]* | ?:[\\/]*)
16851     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16852     ;;
16853   *)
16854     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16855     for ac_dir in $PATH; do
16856       IFS="$ac_save_IFS"
16857       test -z "$ac_dir" && ac_dir=.
16858       for ac_exec_ext in '' $ac_executable_extensions; do
16859         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16860           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16861           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16862      (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
16863             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16864             break 2
16865           fi
16866         fi
16867       done
16868     done
16869     IFS="$ac_save_IFS"
16870   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16871     ;;
16872 esac
16873 fi
16874 XGETTEXT="$ac_cv_path_XGETTEXT"
16875 if test "$XGETTEXT" != ":"; then
16876   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16877 $as_echo "$XGETTEXT" >&6; }
16878 else
16879   { $as_echo "$as_me:$LINENO: result: no" >&5
16880 $as_echo "no" >&6; }
16881 fi
16882
16883     rm -f messages.po
16884
16885
16886 # Prepare PATH_SEPARATOR.
16887 # The user is always right.
16888 if test "${PATH_SEPARATOR+set}" != set; then
16889   echo "#! /bin/sh" >conf$$.sh
16890   echo  "exit 0"   >>conf$$.sh
16891   chmod +x conf$$.sh
16892   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16893     PATH_SEPARATOR=';'
16894   else
16895     PATH_SEPARATOR=:
16896   fi
16897   rm -f conf$$.sh
16898 fi
16899
16900 # Find out how to test for executable files. Don't use a zero-byte file,
16901 # as systems may use methods other than mode bits to determine executability.
16902 cat >conf$$.file <<_ASEOF
16903 #! /bin/sh
16904 exit 0
16905 _ASEOF
16906 chmod +x conf$$.file
16907 if test -x conf$$.file >/dev/null 2>&1; then
16908   ac_executable_p="test -x"
16909 else
16910   ac_executable_p="test -f"
16911 fi
16912 rm -f conf$$.file
16913
16914 # Extract the first word of "msgmerge", so it can be a program name with args.
16915 set dummy msgmerge; ac_word=$2
16916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16917 $as_echo_n "checking for $ac_word... " >&6; }
16918 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16919   $as_echo_n "(cached) " >&6
16920 else
16921   case "$MSGMERGE" in
16922   [\\/]* | ?:[\\/]*)
16923     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16924     ;;
16925   *)
16926     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16927     for ac_dir in $PATH; do
16928       IFS="$ac_save_IFS"
16929       test -z "$ac_dir" && ac_dir=.
16930       for ac_exec_ext in '' $ac_executable_extensions; do
16931         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16932           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16933           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16934             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16935             break 2
16936           fi
16937         fi
16938       done
16939     done
16940     IFS="$ac_save_IFS"
16941   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16942     ;;
16943 esac
16944 fi
16945 MSGMERGE="$ac_cv_path_MSGMERGE"
16946 if test "$MSGMERGE" != ":"; then
16947   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16948 $as_echo "$MSGMERGE" >&6; }
16949 else
16950   { $as_echo "$as_me:$LINENO: result: no" >&5
16951 $as_echo "no" >&6; }
16952 fi
16953
16954
16955       if test "$GMSGFMT" != ":"; then
16956             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16957        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16958       : ;
16959     else
16960       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16961       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16962 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16963       GMSGFMT=":"
16964     fi
16965   fi
16966
16967       if test "$XGETTEXT" != ":"; then
16968             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16969        (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
16970       : ;
16971     else
16972       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16973 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16974       XGETTEXT=":"
16975     fi
16976         rm -f messages.po
16977   fi
16978
16979   ac_config_commands="$ac_config_commands default-1"
16980
16981
16982
16983       if test "X$prefix" = "XNONE"; then
16984     acl_final_prefix="$ac_default_prefix"
16985   else
16986     acl_final_prefix="$prefix"
16987   fi
16988   if test "X$exec_prefix" = "XNONE"; then
16989     acl_final_exec_prefix='${prefix}'
16990   else
16991     acl_final_exec_prefix="$exec_prefix"
16992   fi
16993   acl_save_prefix="$prefix"
16994   prefix="$acl_final_prefix"
16995   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16996   prefix="$acl_save_prefix"
16997
16998
16999 # Check whether --with-gnu-ld was given.
17000 if test "${with_gnu_ld+set}" = set; then
17001   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17002 else
17003   with_gnu_ld=no
17004 fi
17005
17006 # Prepare PATH_SEPARATOR.
17007 # The user is always right.
17008 if test "${PATH_SEPARATOR+set}" != set; then
17009   echo "#! /bin/sh" >conf$$.sh
17010   echo  "exit 0"   >>conf$$.sh
17011   chmod +x conf$$.sh
17012   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17013     PATH_SEPARATOR=';'
17014   else
17015     PATH_SEPARATOR=:
17016   fi
17017   rm -f conf$$.sh
17018 fi
17019 ac_prog=ld
17020 if test "$GCC" = yes; then
17021   # Check if gcc -print-prog-name=ld gives a path.
17022   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17023 $as_echo_n "checking for ld used by GCC... " >&6; }
17024   case $host in
17025   *-*-mingw*)
17026     # gcc leaves a trailing carriage return which upsets mingw
17027     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17028   *)
17029     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17030   esac
17031   case $ac_prog in
17032     # Accept absolute paths.
17033     [\\/]* | [A-Za-z]:[\\/]*)
17034       re_direlt='/[^/][^/]*/\.\./'
17035       # Canonicalize the path of ld
17036       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17037       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17038         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17039       done
17040       test -z "$LD" && LD="$ac_prog"
17041       ;;
17042   "")
17043     # If it fails, then pretend we aren't using GCC.
17044     ac_prog=ld
17045     ;;
17046   *)
17047     # If it is relative, then search for the first ld in PATH.
17048     with_gnu_ld=unknown
17049     ;;
17050   esac
17051 elif test "$with_gnu_ld" = yes; then
17052   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17053 $as_echo_n "checking for GNU ld... " >&6; }
17054 else
17055   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17056 $as_echo_n "checking for non-GNU ld... " >&6; }
17057 fi
17058 if test "${acl_cv_path_LD+set}" = set; then
17059   $as_echo_n "(cached) " >&6
17060 else
17061   if test -z "$LD"; then
17062   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17063   for ac_dir in $PATH; do
17064     test -z "$ac_dir" && ac_dir=.
17065     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17066       acl_cv_path_LD="$ac_dir/$ac_prog"
17067       # Check to see if the program is GNU ld.  I'd rather use --version,
17068       # but apparently some GNU ld's only accept -v.
17069       # Break only if it was the GNU/non-GNU ld that we prefer.
17070       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17071       *GNU* | *'with BFD'*)
17072         test "$with_gnu_ld" != no && break ;;
17073       *)
17074         test "$with_gnu_ld" != yes && break ;;
17075       esac
17076     fi
17077   done
17078   IFS="$ac_save_ifs"
17079 else
17080   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17081 fi
17082 fi
17083
17084 LD="$acl_cv_path_LD"
17085 if test -n "$LD"; then
17086   { $as_echo "$as_me:$LINENO: result: $LD" >&5
17087 $as_echo "$LD" >&6; }
17088 else
17089   { $as_echo "$as_me:$LINENO: result: no" >&5
17090 $as_echo "no" >&6; }
17091 fi
17092 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17093 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17094    { (exit 1); exit 1; }; }
17095 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17097 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17098   $as_echo_n "(cached) " >&6
17099 else
17100   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17101 case `$LD -v 2>&1 </dev/null` in
17102 *GNU* | *'with BFD'*)
17103   acl_cv_prog_gnu_ld=yes ;;
17104 *)
17105   acl_cv_prog_gnu_ld=no ;;
17106 esac
17107 fi
17108 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17109 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17110 with_gnu_ld=$acl_cv_prog_gnu_ld
17111
17112
17113
17114
17115                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17116 $as_echo_n "checking for shared library run path origin... " >&6; }
17117 if test "${acl_cv_rpath+set}" = set; then
17118   $as_echo_n "(cached) " >&6
17119 else
17120
17121     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17122     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17123     . ./conftest.sh
17124     rm -f ./conftest.sh
17125     acl_cv_rpath=done
17126
17127 fi
17128 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17129 $as_echo "$acl_cv_rpath" >&6; }
17130   wl="$acl_cv_wl"
17131   libext="$acl_cv_libext"
17132   shlibext="$acl_cv_shlibext"
17133   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17134   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17135   hardcode_direct="$acl_cv_hardcode_direct"
17136   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17137     # Check whether --enable-rpath was given.
17138 if test "${enable_rpath+set}" = set; then
17139   enableval=$enable_rpath; :
17140 else
17141   enable_rpath=yes
17142 fi
17143
17144
17145
17146
17147
17148
17149
17150
17151     use_additional=yes
17152
17153   acl_save_prefix="$prefix"
17154   prefix="$acl_final_prefix"
17155   acl_save_exec_prefix="$exec_prefix"
17156   exec_prefix="$acl_final_exec_prefix"
17157
17158     eval additional_includedir=\"$includedir\"
17159     eval additional_libdir=\"$libdir\"
17160
17161   exec_prefix="$acl_save_exec_prefix"
17162   prefix="$acl_save_prefix"
17163
17164
17165 # Check whether --with-libiconv-prefix was given.
17166 if test "${with_libiconv_prefix+set}" = set; then
17167   withval=$with_libiconv_prefix;
17168     if test "X$withval" = "Xno"; then
17169       use_additional=no
17170     else
17171       if test "X$withval" = "X"; then
17172
17173   acl_save_prefix="$prefix"
17174   prefix="$acl_final_prefix"
17175   acl_save_exec_prefix="$exec_prefix"
17176   exec_prefix="$acl_final_exec_prefix"
17177
17178           eval additional_includedir=\"$includedir\"
17179           eval additional_libdir=\"$libdir\"
17180
17181   exec_prefix="$acl_save_exec_prefix"
17182   prefix="$acl_save_prefix"
17183
17184       else
17185         additional_includedir="$withval/include"
17186         additional_libdir="$withval/lib"
17187       fi
17188     fi
17189
17190 fi
17191
17192       LIBICONV=
17193   LTLIBICONV=
17194   INCICONV=
17195   rpathdirs=
17196   ltrpathdirs=
17197   names_already_handled=
17198   names_next_round='iconv '
17199   while test -n "$names_next_round"; do
17200     names_this_round="$names_next_round"
17201     names_next_round=
17202     for name in $names_this_round; do
17203       already_handled=
17204       for n in $names_already_handled; do
17205         if test "$n" = "$name"; then
17206           already_handled=yes
17207           break
17208         fi
17209       done
17210       if test -z "$already_handled"; then
17211         names_already_handled="$names_already_handled $name"
17212                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17213         eval value=\"\$HAVE_LIB$uppername\"
17214         if test -n "$value"; then
17215           if test "$value" = yes; then
17216             eval value=\"\$LIB$uppername\"
17217             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17218             eval value=\"\$LTLIB$uppername\"
17219             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17220           else
17221                                     :
17222           fi
17223         else
17224                               found_dir=
17225           found_la=
17226           found_so=
17227           found_a=
17228           if test $use_additional = yes; then
17229             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17230               found_dir="$additional_libdir"
17231               found_so="$additional_libdir/lib$name.$shlibext"
17232               if test -f "$additional_libdir/lib$name.la"; then
17233                 found_la="$additional_libdir/lib$name.la"
17234               fi
17235             else
17236               if test -f "$additional_libdir/lib$name.$libext"; then
17237                 found_dir="$additional_libdir"
17238                 found_a="$additional_libdir/lib$name.$libext"
17239                 if test -f "$additional_libdir/lib$name.la"; then
17240                   found_la="$additional_libdir/lib$name.la"
17241                 fi
17242               fi
17243             fi
17244           fi
17245           if test "X$found_dir" = "X"; then
17246             for x in $LDFLAGS $LTLIBICONV; do
17247
17248   acl_save_prefix="$prefix"
17249   prefix="$acl_final_prefix"
17250   acl_save_exec_prefix="$exec_prefix"
17251   exec_prefix="$acl_final_exec_prefix"
17252   eval x=\"$x\"
17253   exec_prefix="$acl_save_exec_prefix"
17254   prefix="$acl_save_prefix"
17255
17256               case "$x" in
17257                 -L*)
17258                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17259                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17260                     found_dir="$dir"
17261                     found_so="$dir/lib$name.$shlibext"
17262                     if test -f "$dir/lib$name.la"; then
17263                       found_la="$dir/lib$name.la"
17264                     fi
17265                   else
17266                     if test -f "$dir/lib$name.$libext"; then
17267                       found_dir="$dir"
17268                       found_a="$dir/lib$name.$libext"
17269                       if test -f "$dir/lib$name.la"; then
17270                         found_la="$dir/lib$name.la"
17271                       fi
17272                     fi
17273                   fi
17274                   ;;
17275               esac
17276               if test "X$found_dir" != "X"; then
17277                 break
17278               fi
17279             done
17280           fi
17281           if test "X$found_dir" != "X"; then
17282                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17283             if test "X$found_so" != "X"; then
17284                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17285                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17286               else
17287                                                                                 haveit=
17288                 for x in $ltrpathdirs; do
17289                   if test "X$x" = "X$found_dir"; then
17290                     haveit=yes
17291                     break
17292                   fi
17293                 done
17294                 if test -z "$haveit"; then
17295                   ltrpathdirs="$ltrpathdirs $found_dir"
17296                 fi
17297                                 if test "$hardcode_direct" = yes; then
17298                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17299                 else
17300                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17301                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17302                                                             haveit=
17303                     for x in $rpathdirs; do
17304                       if test "X$x" = "X$found_dir"; then
17305                         haveit=yes
17306                         break
17307                       fi
17308                     done
17309                     if test -z "$haveit"; then
17310                       rpathdirs="$rpathdirs $found_dir"
17311                     fi
17312                   else
17313                                                                                 haveit=
17314                     for x in $LDFLAGS $LIBICONV; do
17315
17316   acl_save_prefix="$prefix"
17317   prefix="$acl_final_prefix"
17318   acl_save_exec_prefix="$exec_prefix"
17319   exec_prefix="$acl_final_exec_prefix"
17320   eval x=\"$x\"
17321   exec_prefix="$acl_save_exec_prefix"
17322   prefix="$acl_save_prefix"
17323
17324                       if test "X$x" = "X-L$found_dir"; then
17325                         haveit=yes
17326                         break
17327                       fi
17328                     done
17329                     if test -z "$haveit"; then
17330                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17331                     fi
17332                     if test "$hardcode_minus_L" != no; then
17333                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17334                     else
17335                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17336                     fi
17337                   fi
17338                 fi
17339               fi
17340             else
17341               if test "X$found_a" != "X"; then
17342                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17343               else
17344                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17345               fi
17346             fi
17347                         additional_includedir=
17348             case "$found_dir" in
17349               */lib | */lib/)
17350                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17351                 additional_includedir="$basedir/include"
17352                 ;;
17353             esac
17354             if test "X$additional_includedir" != "X"; then
17355                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17356                 haveit=
17357                 if test "X$additional_includedir" = "X/usr/local/include"; then
17358                   if test -n "$GCC"; then
17359                     case $host_os in
17360                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17361                     esac
17362                   fi
17363                 fi
17364                 if test -z "$haveit"; then
17365                   for x in $CPPFLAGS $INCICONV; do
17366
17367   acl_save_prefix="$prefix"
17368   prefix="$acl_final_prefix"
17369   acl_save_exec_prefix="$exec_prefix"
17370   exec_prefix="$acl_final_exec_prefix"
17371   eval x=\"$x\"
17372   exec_prefix="$acl_save_exec_prefix"
17373   prefix="$acl_save_prefix"
17374
17375                     if test "X$x" = "X-I$additional_includedir"; then
17376                       haveit=yes
17377                       break
17378                     fi
17379                   done
17380                   if test -z "$haveit"; then
17381                     if test -d "$additional_includedir"; then
17382                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17383                     fi
17384                   fi
17385                 fi
17386               fi
17387             fi
17388                         if test -n "$found_la"; then
17389                                                         save_libdir="$libdir"
17390               case "$found_la" in
17391                 */* | *\\*) . "$found_la" ;;
17392                 *) . "./$found_la" ;;
17393               esac
17394               libdir="$save_libdir"
17395                             for dep in $dependency_libs; do
17396                 case "$dep" in
17397                   -L*)
17398                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17399                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17400                       haveit=
17401                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17402                         if test -n "$GCC"; then
17403                           case $host_os in
17404                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17405                           esac
17406                         fi
17407                       fi
17408                       if test -z "$haveit"; then
17409                         haveit=
17410                         for x in $LDFLAGS $LIBICONV; do
17411
17412   acl_save_prefix="$prefix"
17413   prefix="$acl_final_prefix"
17414   acl_save_exec_prefix="$exec_prefix"
17415   exec_prefix="$acl_final_exec_prefix"
17416   eval x=\"$x\"
17417   exec_prefix="$acl_save_exec_prefix"
17418   prefix="$acl_save_prefix"
17419
17420                           if test "X$x" = "X-L$additional_libdir"; then
17421                             haveit=yes
17422                             break
17423                           fi
17424                         done
17425                         if test -z "$haveit"; then
17426                           if test -d "$additional_libdir"; then
17427                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17428                           fi
17429                         fi
17430                         haveit=
17431                         for x in $LDFLAGS $LTLIBICONV; do
17432
17433   acl_save_prefix="$prefix"
17434   prefix="$acl_final_prefix"
17435   acl_save_exec_prefix="$exec_prefix"
17436   exec_prefix="$acl_final_exec_prefix"
17437   eval x=\"$x\"
17438   exec_prefix="$acl_save_exec_prefix"
17439   prefix="$acl_save_prefix"
17440
17441                           if test "X$x" = "X-L$additional_libdir"; then
17442                             haveit=yes
17443                             break
17444                           fi
17445                         done
17446                         if test -z "$haveit"; then
17447                           if test -d "$additional_libdir"; then
17448                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17449                           fi
17450                         fi
17451                       fi
17452                     fi
17453                     ;;
17454                   -R*)
17455                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17456                     if test "$enable_rpath" != no; then
17457                                                                   haveit=
17458                       for x in $rpathdirs; do
17459                         if test "X$x" = "X$dir"; then
17460                           haveit=yes
17461                           break
17462                         fi
17463                       done
17464                       if test -z "$haveit"; then
17465                         rpathdirs="$rpathdirs $dir"
17466                       fi
17467                                                                   haveit=
17468                       for x in $ltrpathdirs; do
17469                         if test "X$x" = "X$dir"; then
17470                           haveit=yes
17471                           break
17472                         fi
17473                       done
17474                       if test -z "$haveit"; then
17475                         ltrpathdirs="$ltrpathdirs $dir"
17476                       fi
17477                     fi
17478                     ;;
17479                   -l*)
17480                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17481                     ;;
17482                   *.la)
17483                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17484                     ;;
17485                   *)
17486                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17487                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17488                     ;;
17489                 esac
17490               done
17491             fi
17492           else
17493                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17494             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17495           fi
17496         fi
17497       fi
17498     done
17499   done
17500   if test "X$rpathdirs" != "X"; then
17501     if test -n "$hardcode_libdir_separator"; then
17502                         alldirs=
17503       for found_dir in $rpathdirs; do
17504         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17505       done
17506             acl_save_libdir="$libdir"
17507       libdir="$alldirs"
17508       eval flag=\"$hardcode_libdir_flag_spec\"
17509       libdir="$acl_save_libdir"
17510       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17511     else
17512             for found_dir in $rpathdirs; do
17513         acl_save_libdir="$libdir"
17514         libdir="$found_dir"
17515         eval flag=\"$hardcode_libdir_flag_spec\"
17516         libdir="$acl_save_libdir"
17517         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17518       done
17519     fi
17520   fi
17521   if test "X$ltrpathdirs" != "X"; then
17522             for found_dir in $ltrpathdirs; do
17523       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17524     done
17525   fi
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17545 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17546 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17547   $as_echo_n "(cached) " >&6
17548 else
17549   gt_save_CPPFLAGS="$CPPFLAGS"
17550      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17551      gt_save_LIBS="$LIBS"
17552      LIBS="$LIBS -framework CoreFoundation"
17553      cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559 #include <CFPreferences.h>
17560 int
17561 main ()
17562 {
17563 CFPreferencesCopyAppValue(NULL, NULL)
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17575 $as_echo "$ac_try_echo") >&5
17576   (eval "$ac_link") 2>conftest.er1
17577   ac_status=$?
17578   grep -v '^ *+' conftest.er1 >conftest.err
17579   rm -f conftest.er1
17580   cat conftest.err >&5
17581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); } && {
17583          test -z "$ac_c_werror_flag" ||
17584          test ! -s conftest.err
17585        } && test -s conftest$ac_exeext && {
17586          test "$cross_compiling" = yes ||
17587          $as_test_x conftest$ac_exeext
17588        }; then
17589   gt_cv_func_CFPreferencesCopyAppValue=yes
17590 else
17591   $as_echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594         gt_cv_func_CFPreferencesCopyAppValue=no
17595 fi
17596
17597 rm -rf conftest.dSYM
17598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17599       conftest$ac_exeext conftest.$ac_ext
17600      CPPFLAGS="$gt_save_CPPFLAGS"
17601      LIBS="$gt_save_LIBS"
17602 fi
17603 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17604 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17605   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17606
17607 cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17609 _ACEOF
17610
17611   fi
17612     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17613 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17614 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17615   $as_echo_n "(cached) " >&6
17616 else
17617   gt_save_CPPFLAGS="$CPPFLAGS"
17618      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17619      gt_save_LIBS="$LIBS"
17620      LIBS="$LIBS -framework CoreFoundation"
17621      cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 #include <CFLocale.h>
17628 int
17629 main ()
17630 {
17631 CFLocaleCopyCurrent();
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17643 $as_echo "$ac_try_echo") >&5
17644   (eval "$ac_link") 2>conftest.er1
17645   ac_status=$?
17646   grep -v '^ *+' conftest.er1 >conftest.err
17647   rm -f conftest.er1
17648   cat conftest.err >&5
17649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } && {
17651          test -z "$ac_c_werror_flag" ||
17652          test ! -s conftest.err
17653        } && test -s conftest$ac_exeext && {
17654          test "$cross_compiling" = yes ||
17655          $as_test_x conftest$ac_exeext
17656        }; then
17657   gt_cv_func_CFLocaleCopyCurrent=yes
17658 else
17659   $as_echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662         gt_cv_func_CFLocaleCopyCurrent=no
17663 fi
17664
17665 rm -rf conftest.dSYM
17666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17667       conftest$ac_exeext conftest.$ac_ext
17668      CPPFLAGS="$gt_save_CPPFLAGS"
17669      LIBS="$gt_save_LIBS"
17670 fi
17671 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17672 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17673   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17674
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_CFLOCALECOPYCURRENT 1
17677 _ACEOF
17678
17679   fi
17680   INTL_MACOSX_LIBS=
17681   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17682     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17683   fi
17684
17685
17686
17687
17688   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17689 $as_echo_n "checking whether NLS is requested... " >&6; }
17690     # Check whether --enable-nls was given.
17691 if test "${enable_nls+set}" = set; then
17692   enableval=$enable_nls; USE_NLS=$enableval
17693 else
17694   USE_NLS=yes
17695 fi
17696
17697   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17698 $as_echo "$USE_NLS" >&6; }
17699
17700
17701
17702
17703   LIBINTL=
17704   LTLIBINTL=
17705   POSUB=
17706
17707     if test "$USE_NLS" = "yes"; then
17708     gt_use_preinstalled_gnugettext=no
17709
17710
17711
17712
17713
17714
17715         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17716 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17718   $as_echo_n "(cached) " >&6
17719 else
17720   cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 #include <libintl.h>
17727 extern int _nl_msg_cat_cntr;
17728 extern int *_nl_domain_bindings;
17729 int
17730 main ()
17731 {
17732 bindtextdomain ("", "");
17733 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746   (eval "$ac_link") 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && {
17753          test -z "$ac_c_werror_flag" ||
17754          test ! -s conftest.err
17755        } && test -s conftest$ac_exeext && {
17756          test "$cross_compiling" = yes ||
17757          $as_test_x conftest$ac_exeext
17758        }; then
17759   gt_cv_func_gnugettext1_libc=yes
17760 else
17761   $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764         gt_cv_func_gnugettext1_libc=no
17765 fi
17766
17767 rm -rf conftest.dSYM
17768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17769       conftest$ac_exeext conftest.$ac_ext
17770 fi
17771 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17772 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17773
17774         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17775
17776
17777
17778
17779
17780           am_save_CPPFLAGS="$CPPFLAGS"
17781
17782   for element in $INCICONV; do
17783     haveit=
17784     for x in $CPPFLAGS; do
17785
17786   acl_save_prefix="$prefix"
17787   prefix="$acl_final_prefix"
17788   acl_save_exec_prefix="$exec_prefix"
17789   exec_prefix="$acl_final_exec_prefix"
17790   eval x=\"$x\"
17791   exec_prefix="$acl_save_exec_prefix"
17792   prefix="$acl_save_prefix"
17793
17794       if test "X$x" = "X$element"; then
17795         haveit=yes
17796         break
17797       fi
17798     done
17799     if test -z "$haveit"; then
17800       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17801     fi
17802   done
17803
17804
17805   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17806 $as_echo_n "checking for iconv... " >&6; }
17807 if test "${am_cv_func_iconv+set}" = set; then
17808   $as_echo_n "(cached) " >&6
17809 else
17810
17811     am_cv_func_iconv="no, consider installing GNU libiconv"
17812     am_cv_lib_iconv=no
17813     cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819 #include <stdlib.h>
17820 #include <iconv.h>
17821 int
17822 main ()
17823 {
17824 iconv_t cd = iconv_open("","");
17825        iconv(cd,NULL,NULL,NULL,NULL);
17826        iconv_close(cd);
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17838 $as_echo "$ac_try_echo") >&5
17839   (eval "$ac_link") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } && {
17846          test -z "$ac_c_werror_flag" ||
17847          test ! -s conftest.err
17848        } && test -s conftest$ac_exeext && {
17849          test "$cross_compiling" = yes ||
17850          $as_test_x conftest$ac_exeext
17851        }; then
17852   am_cv_func_iconv=yes
17853 else
17854   $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857
17858 fi
17859
17860 rm -rf conftest.dSYM
17861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17862       conftest$ac_exeext conftest.$ac_ext
17863     if test "$am_cv_func_iconv" != yes; then
17864       am_save_LIBS="$LIBS"
17865       LIBS="$LIBS $LIBICONV"
17866       cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 #include <stdlib.h>
17873 #include <iconv.h>
17874 int
17875 main ()
17876 {
17877 iconv_t cd = iconv_open("","");
17878          iconv(cd,NULL,NULL,NULL,NULL);
17879          iconv_close(cd);
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (ac_try="$ac_link"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892   (eval "$ac_link") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } && {
17899          test -z "$ac_c_werror_flag" ||
17900          test ! -s conftest.err
17901        } && test -s conftest$ac_exeext && {
17902          test "$cross_compiling" = yes ||
17903          $as_test_x conftest$ac_exeext
17904        }; then
17905   am_cv_lib_iconv=yes
17906         am_cv_func_iconv=yes
17907 else
17908   $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911
17912 fi
17913
17914 rm -rf conftest.dSYM
17915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916       conftest$ac_exeext conftest.$ac_ext
17917       LIBS="$am_save_LIBS"
17918     fi
17919
17920 fi
17921 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17922 $as_echo "$am_cv_func_iconv" >&6; }
17923   if test "$am_cv_func_iconv" = yes; then
17924
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE_ICONV 1
17927 _ACEOF
17928
17929   fi
17930   if test "$am_cv_lib_iconv" = yes; then
17931     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17932 $as_echo_n "checking how to link with libiconv... " >&6; }
17933     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17934 $as_echo "$LIBICONV" >&6; }
17935   else
17936             CPPFLAGS="$am_save_CPPFLAGS"
17937     LIBICONV=
17938     LTLIBICONV=
17939   fi
17940
17941
17942
17943
17944
17945
17946     use_additional=yes
17947
17948   acl_save_prefix="$prefix"
17949   prefix="$acl_final_prefix"
17950   acl_save_exec_prefix="$exec_prefix"
17951   exec_prefix="$acl_final_exec_prefix"
17952
17953     eval additional_includedir=\"$includedir\"
17954     eval additional_libdir=\"$libdir\"
17955
17956   exec_prefix="$acl_save_exec_prefix"
17957   prefix="$acl_save_prefix"
17958
17959
17960 # Check whether --with-libintl-prefix was given.
17961 if test "${with_libintl_prefix+set}" = set; then
17962   withval=$with_libintl_prefix;
17963     if test "X$withval" = "Xno"; then
17964       use_additional=no
17965     else
17966       if test "X$withval" = "X"; then
17967
17968   acl_save_prefix="$prefix"
17969   prefix="$acl_final_prefix"
17970   acl_save_exec_prefix="$exec_prefix"
17971   exec_prefix="$acl_final_exec_prefix"
17972
17973           eval additional_includedir=\"$includedir\"
17974           eval additional_libdir=\"$libdir\"
17975
17976   exec_prefix="$acl_save_exec_prefix"
17977   prefix="$acl_save_prefix"
17978
17979       else
17980         additional_includedir="$withval/include"
17981         additional_libdir="$withval/lib"
17982       fi
17983     fi
17984
17985 fi
17986
17987       LIBINTL=
17988   LTLIBINTL=
17989   INCINTL=
17990   rpathdirs=
17991   ltrpathdirs=
17992   names_already_handled=
17993   names_next_round='intl '
17994   while test -n "$names_next_round"; do
17995     names_this_round="$names_next_round"
17996     names_next_round=
17997     for name in $names_this_round; do
17998       already_handled=
17999       for n in $names_already_handled; do
18000         if test "$n" = "$name"; then
18001           already_handled=yes
18002           break
18003         fi
18004       done
18005       if test -z "$already_handled"; then
18006         names_already_handled="$names_already_handled $name"
18007                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18008         eval value=\"\$HAVE_LIB$uppername\"
18009         if test -n "$value"; then
18010           if test "$value" = yes; then
18011             eval value=\"\$LIB$uppername\"
18012             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18013             eval value=\"\$LTLIB$uppername\"
18014             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18015           else
18016                                     :
18017           fi
18018         else
18019                               found_dir=
18020           found_la=
18021           found_so=
18022           found_a=
18023           if test $use_additional = yes; then
18024             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18025               found_dir="$additional_libdir"
18026               found_so="$additional_libdir/lib$name.$shlibext"
18027               if test -f "$additional_libdir/lib$name.la"; then
18028                 found_la="$additional_libdir/lib$name.la"
18029               fi
18030             else
18031               if test -f "$additional_libdir/lib$name.$libext"; then
18032                 found_dir="$additional_libdir"
18033                 found_a="$additional_libdir/lib$name.$libext"
18034                 if test -f "$additional_libdir/lib$name.la"; then
18035                   found_la="$additional_libdir/lib$name.la"
18036                 fi
18037               fi
18038             fi
18039           fi
18040           if test "X$found_dir" = "X"; then
18041             for x in $LDFLAGS $LTLIBINTL; do
18042
18043   acl_save_prefix="$prefix"
18044   prefix="$acl_final_prefix"
18045   acl_save_exec_prefix="$exec_prefix"
18046   exec_prefix="$acl_final_exec_prefix"
18047   eval x=\"$x\"
18048   exec_prefix="$acl_save_exec_prefix"
18049   prefix="$acl_save_prefix"
18050
18051               case "$x" in
18052                 -L*)
18053                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18054                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18055                     found_dir="$dir"
18056                     found_so="$dir/lib$name.$shlibext"
18057                     if test -f "$dir/lib$name.la"; then
18058                       found_la="$dir/lib$name.la"
18059                     fi
18060                   else
18061                     if test -f "$dir/lib$name.$libext"; then
18062                       found_dir="$dir"
18063                       found_a="$dir/lib$name.$libext"
18064                       if test -f "$dir/lib$name.la"; then
18065                         found_la="$dir/lib$name.la"
18066                       fi
18067                     fi
18068                   fi
18069                   ;;
18070               esac
18071               if test "X$found_dir" != "X"; then
18072                 break
18073               fi
18074             done
18075           fi
18076           if test "X$found_dir" != "X"; then
18077                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18078             if test "X$found_so" != "X"; then
18079                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18080                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18081               else
18082                                                                                 haveit=
18083                 for x in $ltrpathdirs; do
18084                   if test "X$x" = "X$found_dir"; then
18085                     haveit=yes
18086                     break
18087                   fi
18088                 done
18089                 if test -z "$haveit"; then
18090                   ltrpathdirs="$ltrpathdirs $found_dir"
18091                 fi
18092                                 if test "$hardcode_direct" = yes; then
18093                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18094                 else
18095                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18096                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18097                                                             haveit=
18098                     for x in $rpathdirs; do
18099                       if test "X$x" = "X$found_dir"; then
18100                         haveit=yes
18101                         break
18102                       fi
18103                     done
18104                     if test -z "$haveit"; then
18105                       rpathdirs="$rpathdirs $found_dir"
18106                     fi
18107                   else
18108                                                                                 haveit=
18109                     for x in $LDFLAGS $LIBINTL; do
18110
18111   acl_save_prefix="$prefix"
18112   prefix="$acl_final_prefix"
18113   acl_save_exec_prefix="$exec_prefix"
18114   exec_prefix="$acl_final_exec_prefix"
18115   eval x=\"$x\"
18116   exec_prefix="$acl_save_exec_prefix"
18117   prefix="$acl_save_prefix"
18118
18119                       if test "X$x" = "X-L$found_dir"; then
18120                         haveit=yes
18121                         break
18122                       fi
18123                     done
18124                     if test -z "$haveit"; then
18125                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18126                     fi
18127                     if test "$hardcode_minus_L" != no; then
18128                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18129                     else
18130                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18131                     fi
18132                   fi
18133                 fi
18134               fi
18135             else
18136               if test "X$found_a" != "X"; then
18137                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18138               else
18139                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18140               fi
18141             fi
18142                         additional_includedir=
18143             case "$found_dir" in
18144               */lib | */lib/)
18145                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18146                 additional_includedir="$basedir/include"
18147                 ;;
18148             esac
18149             if test "X$additional_includedir" != "X"; then
18150                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18151                 haveit=
18152                 if test "X$additional_includedir" = "X/usr/local/include"; then
18153                   if test -n "$GCC"; then
18154                     case $host_os in
18155                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18156                     esac
18157                   fi
18158                 fi
18159                 if test -z "$haveit"; then
18160                   for x in $CPPFLAGS $INCINTL; do
18161
18162   acl_save_prefix="$prefix"
18163   prefix="$acl_final_prefix"
18164   acl_save_exec_prefix="$exec_prefix"
18165   exec_prefix="$acl_final_exec_prefix"
18166   eval x=\"$x\"
18167   exec_prefix="$acl_save_exec_prefix"
18168   prefix="$acl_save_prefix"
18169
18170                     if test "X$x" = "X-I$additional_includedir"; then
18171                       haveit=yes
18172                       break
18173                     fi
18174                   done
18175                   if test -z "$haveit"; then
18176                     if test -d "$additional_includedir"; then
18177                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18178                     fi
18179                   fi
18180                 fi
18181               fi
18182             fi
18183                         if test -n "$found_la"; then
18184                                                         save_libdir="$libdir"
18185               case "$found_la" in
18186                 */* | *\\*) . "$found_la" ;;
18187                 *) . "./$found_la" ;;
18188               esac
18189               libdir="$save_libdir"
18190                             for dep in $dependency_libs; do
18191                 case "$dep" in
18192                   -L*)
18193                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18194                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18195                       haveit=
18196                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18197                         if test -n "$GCC"; then
18198                           case $host_os in
18199                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18200                           esac
18201                         fi
18202                       fi
18203                       if test -z "$haveit"; then
18204                         haveit=
18205                         for x in $LDFLAGS $LIBINTL; do
18206
18207   acl_save_prefix="$prefix"
18208   prefix="$acl_final_prefix"
18209   acl_save_exec_prefix="$exec_prefix"
18210   exec_prefix="$acl_final_exec_prefix"
18211   eval x=\"$x\"
18212   exec_prefix="$acl_save_exec_prefix"
18213   prefix="$acl_save_prefix"
18214
18215                           if test "X$x" = "X-L$additional_libdir"; then
18216                             haveit=yes
18217                             break
18218                           fi
18219                         done
18220                         if test -z "$haveit"; then
18221                           if test -d "$additional_libdir"; then
18222                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18223                           fi
18224                         fi
18225                         haveit=
18226                         for x in $LDFLAGS $LTLIBINTL; do
18227
18228   acl_save_prefix="$prefix"
18229   prefix="$acl_final_prefix"
18230   acl_save_exec_prefix="$exec_prefix"
18231   exec_prefix="$acl_final_exec_prefix"
18232   eval x=\"$x\"
18233   exec_prefix="$acl_save_exec_prefix"
18234   prefix="$acl_save_prefix"
18235
18236                           if test "X$x" = "X-L$additional_libdir"; then
18237                             haveit=yes
18238                             break
18239                           fi
18240                         done
18241                         if test -z "$haveit"; then
18242                           if test -d "$additional_libdir"; then
18243                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18244                           fi
18245                         fi
18246                       fi
18247                     fi
18248                     ;;
18249                   -R*)
18250                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18251                     if test "$enable_rpath" != no; then
18252                                                                   haveit=
18253                       for x in $rpathdirs; do
18254                         if test "X$x" = "X$dir"; then
18255                           haveit=yes
18256                           break
18257                         fi
18258                       done
18259                       if test -z "$haveit"; then
18260                         rpathdirs="$rpathdirs $dir"
18261                       fi
18262                                                                   haveit=
18263                       for x in $ltrpathdirs; do
18264                         if test "X$x" = "X$dir"; then
18265                           haveit=yes
18266                           break
18267                         fi
18268                       done
18269                       if test -z "$haveit"; then
18270                         ltrpathdirs="$ltrpathdirs $dir"
18271                       fi
18272                     fi
18273                     ;;
18274                   -l*)
18275                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18276                     ;;
18277                   *.la)
18278                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18279                     ;;
18280                   *)
18281                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18282                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18283                     ;;
18284                 esac
18285               done
18286             fi
18287           else
18288                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18289             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18290           fi
18291         fi
18292       fi
18293     done
18294   done
18295   if test "X$rpathdirs" != "X"; then
18296     if test -n "$hardcode_libdir_separator"; then
18297                         alldirs=
18298       for found_dir in $rpathdirs; do
18299         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18300       done
18301             acl_save_libdir="$libdir"
18302       libdir="$alldirs"
18303       eval flag=\"$hardcode_libdir_flag_spec\"
18304       libdir="$acl_save_libdir"
18305       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18306     else
18307             for found_dir in $rpathdirs; do
18308         acl_save_libdir="$libdir"
18309         libdir="$found_dir"
18310         eval flag=\"$hardcode_libdir_flag_spec\"
18311         libdir="$acl_save_libdir"
18312         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18313       done
18314     fi
18315   fi
18316   if test "X$ltrpathdirs" != "X"; then
18317             for found_dir in $ltrpathdirs; do
18318       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18319     done
18320   fi
18321
18322           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18323 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18324 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18325   $as_echo_n "(cached) " >&6
18326 else
18327   gt_save_CPPFLAGS="$CPPFLAGS"
18328             CPPFLAGS="$CPPFLAGS $INCINTL"
18329             gt_save_LIBS="$LIBS"
18330             LIBS="$LIBS $LIBINTL"
18331                         cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337 #include <libintl.h>
18338 extern int _nl_msg_cat_cntr;
18339 extern
18340 #ifdef __cplusplus
18341 "C"
18342 #endif
18343 const char *_nl_expand_alias (const char *);
18344 int
18345 main ()
18346 {
18347 bindtextdomain ("", "");
18348 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361   (eval "$ac_link") 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } && {
18368          test -z "$ac_c_werror_flag" ||
18369          test ! -s conftest.err
18370        } && test -s conftest$ac_exeext && {
18371          test "$cross_compiling" = yes ||
18372          $as_test_x conftest$ac_exeext
18373        }; then
18374   gt_cv_func_gnugettext1_libintl=yes
18375 else
18376   $as_echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379         gt_cv_func_gnugettext1_libintl=no
18380 fi
18381
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384       conftest$ac_exeext conftest.$ac_ext
18385                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18386               LIBS="$LIBS $LIBICONV"
18387               cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393 #include <libintl.h>
18394 extern int _nl_msg_cat_cntr;
18395 extern
18396 #ifdef __cplusplus
18397 "C"
18398 #endif
18399 const char *_nl_expand_alias (const char *);
18400 int
18401 main ()
18402 {
18403 bindtextdomain ("", "");
18404 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18416 $as_echo "$ac_try_echo") >&5
18417   (eval "$ac_link") 2>conftest.er1
18418   ac_status=$?
18419   grep -v '^ *+' conftest.er1 >conftest.err
18420   rm -f conftest.er1
18421   cat conftest.err >&5
18422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } && {
18424          test -z "$ac_c_werror_flag" ||
18425          test ! -s conftest.err
18426        } && test -s conftest$ac_exeext && {
18427          test "$cross_compiling" = yes ||
18428          $as_test_x conftest$ac_exeext
18429        }; then
18430   LIBINTL="$LIBINTL $LIBICONV"
18431                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18432                 gt_cv_func_gnugettext1_libintl=yes
18433
18434 else
18435   $as_echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438
18439 fi
18440
18441 rm -rf conftest.dSYM
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443       conftest$ac_exeext conftest.$ac_ext
18444             fi
18445             CPPFLAGS="$gt_save_CPPFLAGS"
18446             LIBS="$gt_save_LIBS"
18447 fi
18448 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18449 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18450         fi
18451
18452                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18453            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18454                 && test "$PACKAGE" != gettext-runtime \
18455                 && test "$PACKAGE" != gettext-tools; }; then
18456           gt_use_preinstalled_gnugettext=yes
18457         else
18458                     LIBINTL=
18459           LTLIBINTL=
18460           INCINTL=
18461         fi
18462
18463
18464
18465     if test -n "$INTL_MACOSX_LIBS"; then
18466       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18467          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18468                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18469         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18470       fi
18471     fi
18472
18473     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18474        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18475
18476 cat >>confdefs.h <<\_ACEOF
18477 #define ENABLE_NLS 1
18478 _ACEOF
18479
18480     else
18481       USE_NLS=no
18482     fi
18483   fi
18484
18485   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18486 $as_echo_n "checking whether to use NLS... " >&6; }
18487   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18488 $as_echo "$USE_NLS" >&6; }
18489   if test "$USE_NLS" = "yes"; then
18490     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18491 $as_echo_n "checking where the gettext function comes from... " >&6; }
18492     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18493       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18494         gt_source="external libintl"
18495       else
18496         gt_source="libc"
18497       fi
18498     else
18499       gt_source="included intl directory"
18500     fi
18501     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18502 $as_echo "$gt_source" >&6; }
18503   fi
18504
18505   if test "$USE_NLS" = "yes"; then
18506
18507     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18508       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18509         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18510 $as_echo_n "checking how to link with libintl... " >&6; }
18511         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18512 $as_echo "$LIBINTL" >&6; }
18513
18514   for element in $INCINTL; do
18515     haveit=
18516     for x in $CPPFLAGS; do
18517
18518   acl_save_prefix="$prefix"
18519   prefix="$acl_final_prefix"
18520   acl_save_exec_prefix="$exec_prefix"
18521   exec_prefix="$acl_final_exec_prefix"
18522   eval x=\"$x\"
18523   exec_prefix="$acl_save_exec_prefix"
18524   prefix="$acl_save_prefix"
18525
18526       if test "X$x" = "X$element"; then
18527         haveit=yes
18528         break
18529       fi
18530     done
18531     if test -z "$haveit"; then
18532       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18533     fi
18534   done
18535
18536       fi
18537
18538
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_GETTEXT 1
18541 _ACEOF
18542
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE_DCGETTEXT 1
18546 _ACEOF
18547
18548     fi
18549
18550         POSUB=po
18551   fi
18552
18553
18554
18555     INTLLIBS="$LIBINTL"
18556
18557
18558
18559
18560
18561
18562
18563 os_name=`uname -s 2>/dev/null`
18564 if test x${prefix} = xNONE ; then
18565    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18566       sysconfdir=/etc/bacula
18567    fi
18568
18569    if test `eval echo ${libdir}` = NONE/lib ; then
18570       case ${os_name} in
18571       Linux)
18572          os_processor=`uname -p 2>/dev/null`
18573          case ${os_processor} in
18574          x86_64)
18575             libdir=/usr/lib64
18576             ;;
18577          *)
18578             libdir=/usr/lib
18579             ;;
18580          esac
18581          ;;
18582       *)
18583          libdir=/usr/lib
18584          ;;
18585       esac
18586    fi
18587
18588    if test `eval echo ${includedir}` = NONE/include ; then
18589       includedir=/usr/include
18590    fi
18591
18592    if test `eval echo ${datarootdir}` = NONE/share ; then
18593       datarootdir=/usr/share
18594    fi
18595    prefix=
18596 fi
18597
18598 if test x${exec_prefix} = xNONE ; then
18599    exec_prefix=${prefix}
18600 fi
18601
18602 sysconfdir=`eval echo ${sysconfdir}`
18603 datarootdir=`eval echo ${datarootdir}`
18604 docdir=`eval echo ${docdir}`
18605 htmldir=`eval echo ${htmldir}`
18606 libdir=`eval echo ${libdir}`
18607 includedir=`eval echo ${includedir}`
18608 localedir=`eval echo ${datarootdir}/locale`
18609 cat >>confdefs.h <<_ACEOF
18610 #define SYSCONFDIR "$sysconfdir"
18611 _ACEOF
18612
18613 cat >>confdefs.h <<_ACEOF
18614 #define LOCALEDIR "$localedir"
18615 _ACEOF
18616
18617
18618 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18619    sbindir=${exec_prefix}/sbin
18620 fi
18621 sbindir=`eval echo ${sbindir}`
18622
18623 if test x$mandir = x'${prefix}/man' ; then
18624    mandir=/usr/share/man
18625 fi
18626
18627 if test x$htmldir = x${docdir} ; then
18628    htmldir=`eval echo ${docdir}bacula/html`
18629 fi
18630
18631 if test x$docdir = x'/usr/share/doc/' ; then
18632    docdir=`eval echo ${docdir}bacula`
18633 fi
18634
18635
18636 for ac_prog in msgfmt
18637 do
18638   # Extract the first word of "$ac_prog", so it can be a program name with args.
18639 set dummy $ac_prog; ac_word=$2
18640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18641 $as_echo_n "checking for $ac_word... " >&6; }
18642 if test "${ac_cv_path_MSGFMT+set}" = set; then
18643   $as_echo_n "(cached) " >&6
18644 else
18645   case $MSGFMT in
18646   [\\/]* | ?:[\\/]*)
18647   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18648   ;;
18649   *)
18650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18651 for as_dir in $PATH
18652 do
18653   IFS=$as_save_IFS
18654   test -z "$as_dir" && as_dir=.
18655   for ac_exec_ext in '' $ac_executable_extensions; do
18656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18657     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18659     break 2
18660   fi
18661 done
18662 done
18663 IFS=$as_save_IFS
18664
18665   ;;
18666 esac
18667 fi
18668 MSGFMT=$ac_cv_path_MSGFMT
18669 if test -n "$MSGFMT"; then
18670   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18671 $as_echo "$MSGFMT" >&6; }
18672 else
18673   { $as_echo "$as_me:$LINENO: result: no" >&5
18674 $as_echo "no" >&6; }
18675 fi
18676
18677
18678   test -n "$MSGFMT" && break
18679 done
18680 test -n "$MSGFMT" || MSGFMT="no"
18681
18682 if test "$MSGFMT" = "no"
18683 then
18684    echo 'msgfmt program not found, disabling NLS !'
18685    USE_NLS=no
18686    USE_INCLUDED_LIBINTL=no
18687 #else
18688
18689     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18690 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18691 if test "${ac_cv_gnu_library_2+set}" = set; then
18692   $as_echo_n "(cached) " >&6
18693 else
18694   cat >conftest.$ac_ext <<_ACEOF
18695 /* confdefs.h.  */
18696 _ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h.  */
18700
18701 #include <features.h>
18702 #ifdef __GNU_LIBRARY__
18703  #if (__GLIBC__ >= 2)
18704   Lucky GNU user
18705  #endif
18706 #endif
18707
18708 _ACEOF
18709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18710   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18711   ac_cv_gnu_library_2=yes
18712 else
18713   ac_cv_gnu_library_2=no
18714 fi
18715 rm -f conftest*
18716
18717
18718
18719 fi
18720 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18721 $as_echo "$ac_cv_gnu_library_2" >&6; }
18722
18723     GLIBC2="$ac_cv_gnu_library_2"
18724
18725
18726 if test -n "$ac_tool_prefix"; then
18727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18730 $as_echo_n "checking for $ac_word... " >&6; }
18731 if test "${ac_cv_prog_RANLIB+set}" = set; then
18732   $as_echo_n "(cached) " >&6
18733 else
18734   if test -n "$RANLIB"; then
18735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18736 else
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18739 do
18740   IFS=$as_save_IFS
18741   test -z "$as_dir" && as_dir=.
18742   for ac_exec_ext in '' $ac_executable_extensions; do
18743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18746     break 2
18747   fi
18748 done
18749 done
18750 IFS=$as_save_IFS
18751
18752 fi
18753 fi
18754 RANLIB=$ac_cv_prog_RANLIB
18755 if test -n "$RANLIB"; then
18756   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18757 $as_echo "$RANLIB" >&6; }
18758 else
18759   { $as_echo "$as_me:$LINENO: result: no" >&5
18760 $as_echo "no" >&6; }
18761 fi
18762
18763
18764 fi
18765 if test -z "$ac_cv_prog_RANLIB"; then
18766   ac_ct_RANLIB=$RANLIB
18767   # Extract the first word of "ranlib", so it can be a program name with args.
18768 set dummy ranlib; ac_word=$2
18769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18770 $as_echo_n "checking for $ac_word... " >&6; }
18771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18772   $as_echo_n "(cached) " >&6
18773 else
18774   if test -n "$ac_ct_RANLIB"; then
18775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18776 else
18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 for as_dir in $PATH
18779 do
18780   IFS=$as_save_IFS
18781   test -z "$as_dir" && as_dir=.
18782   for ac_exec_ext in '' $ac_executable_extensions; do
18783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18784     ac_cv_prog_ac_ct_RANLIB="ranlib"
18785     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18786     break 2
18787   fi
18788 done
18789 done
18790 IFS=$as_save_IFS
18791
18792 fi
18793 fi
18794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18795 if test -n "$ac_ct_RANLIB"; then
18796   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18797 $as_echo "$ac_ct_RANLIB" >&6; }
18798 else
18799   { $as_echo "$as_me:$LINENO: result: no" >&5
18800 $as_echo "no" >&6; }
18801 fi
18802
18803   if test "x$ac_ct_RANLIB" = x; then
18804     RANLIB=":"
18805   else
18806     case $cross_compiling:$ac_tool_warned in
18807 yes:)
18808 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18810 ac_tool_warned=yes ;;
18811 esac
18812     RANLIB=$ac_ct_RANLIB
18813   fi
18814 else
18815   RANLIB="$ac_cv_prog_RANLIB"
18816 fi
18817
18818
18819         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18820 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18821 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18822   $as_echo_n "(cached) " >&6
18823 else
18824   ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-lcposix  $LIBS"
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h.  */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h.  */
18832
18833 /* Override any GCC internal prototype to avoid an error.
18834    Use char because int might match the return type of a GCC
18835    builtin and then its argument prototype would still apply.  */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char strerror ();
18840 int
18841 main ()
18842 {
18843 return strerror ();
18844   ;
18845   return 0;
18846 }
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852   *) ac_try_echo=$ac_try;;
18853 esac
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest$ac_exeext && {
18866          test "$cross_compiling" = yes ||
18867          $as_test_x conftest$ac_exeext
18868        }; then
18869   ac_cv_lib_cposix_strerror=yes
18870 else
18871   $as_echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874         ac_cv_lib_cposix_strerror=no
18875 fi
18876
18877 rm -rf conftest.dSYM
18878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18879       conftest$ac_exeext conftest.$ac_ext
18880 LIBS=$ac_check_lib_save_LIBS
18881 fi
18882 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18883 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18884 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18885   LIBS="$LIBS -lcposix"
18886 fi
18887
18888
18889
18890 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18892 if test "${ac_cv_c_const+set}" = set; then
18893   $as_echo_n "(cached) " >&6
18894 else
18895   cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902 int
18903 main ()
18904 {
18905 /* FIXME: Include the comments suggested by Paul. */
18906 #ifndef __cplusplus
18907   /* Ultrix mips cc rejects this.  */
18908   typedef int charset[2];
18909   const charset cs;
18910   /* SunOS 4.1.1 cc rejects this.  */
18911   char const *const *pcpcc;
18912   char **ppc;
18913   /* NEC SVR4.0.2 mips cc rejects this.  */
18914   struct point {int x, y;};
18915   static struct point const zero = {0,0};
18916   /* AIX XL C 1.02.0.0 rejects this.
18917      It does not let you subtract one const X* pointer from another in
18918      an arm of an if-expression whose if-part is not a constant
18919      expression */
18920   const char *g = "string";
18921   pcpcc = &g + (g ? g-g : 0);
18922   /* HPUX 7.0 cc rejects these. */
18923   ++pcpcc;
18924   ppc = (char**) pcpcc;
18925   pcpcc = (char const *const *) ppc;
18926   { /* SCO 3.2v4 cc rejects this.  */
18927     char *t;
18928     char const *s = 0 ? (char *) 0 : (char const *) 0;
18929
18930     *t++ = 0;
18931     if (s) return 0;
18932   }
18933   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18934     int x[] = {25, 17};
18935     const int *foo = &x[0];
18936     ++foo;
18937   }
18938   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18939     typedef const int *iptr;
18940     iptr p = 0;
18941     ++p;
18942   }
18943   { /* AIX XL C 1.02.0.0 rejects this saying
18944        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18945     struct s { int j; const int *ap[3]; };
18946     struct s *b; b->j = 5;
18947   }
18948   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18949     const int foo = 10;
18950     if (!foo) return 0;
18951   }
18952   return !cs[0] && !zero.x;
18953 #endif
18954
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   ac_cv_c_const=yes
18978 else
18979   $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_c_const=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986 fi
18987 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18988 $as_echo "$ac_cv_c_const" >&6; }
18989 if test $ac_cv_c_const = no; then
18990
18991 cat >>confdefs.h <<\_ACEOF
18992 #define const /**/
18993 _ACEOF
18994
18995 fi
18996
18997
18998   { $as_echo "$as_me:$LINENO: checking for signed" >&5
18999 $as_echo_n "checking for signed... " >&6; }
19000 if test "${bh_cv_c_signed+set}" = set; then
19001   $as_echo_n "(cached) " >&6
19002 else
19003   cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009
19010 int
19011 main ()
19012 {
19013 signed char x;
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (ac_try="$ac_compile"
19020 case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19025 $as_echo "$ac_try_echo") >&5
19026   (eval "$ac_compile") 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } && {
19033          test -z "$ac_c_werror_flag" ||
19034          test ! -s conftest.err
19035        } && test -s conftest.$ac_objext; then
19036   bh_cv_c_signed=yes
19037 else
19038   $as_echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         bh_cv_c_signed=no
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 fi
19046 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19047 $as_echo "$bh_cv_c_signed" >&6; }
19048   if test $bh_cv_c_signed = no; then
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define signed /**/
19052 _ACEOF
19053
19054   fi
19055
19056 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19057 $as_echo_n "checking for inline... " >&6; }
19058 if test "${ac_cv_c_inline+set}" = set; then
19059   $as_echo_n "(cached) " >&6
19060 else
19061   ac_cv_c_inline=no
19062 for ac_kw in inline __inline__ __inline; do
19063   cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069 #ifndef __cplusplus
19070 typedef int foo_t;
19071 static $ac_kw foo_t static_foo () {return 0; }
19072 $ac_kw foo_t foo () {return 0; }
19073 #endif
19074
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080   *) ac_try_echo=$ac_try;;
19081 esac
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084   (eval "$ac_compile") 2>conftest.er1
19085   ac_status=$?
19086   grep -v '^ *+' conftest.er1 >conftest.err
19087   rm -f conftest.er1
19088   cat conftest.err >&5
19089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } && {
19091          test -z "$ac_c_werror_flag" ||
19092          test ! -s conftest.err
19093        } && test -s conftest.$ac_objext; then
19094   ac_cv_c_inline=$ac_kw
19095 else
19096   $as_echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103   test "$ac_cv_c_inline" != no && break
19104 done
19105
19106 fi
19107 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19108 $as_echo "$ac_cv_c_inline" >&6; }
19109
19110
19111 case $ac_cv_c_inline in
19112   inline | yes) ;;
19113   *)
19114     case $ac_cv_c_inline in
19115       no) ac_val=;;
19116       *) ac_val=$ac_cv_c_inline;;
19117     esac
19118     cat >>confdefs.h <<_ACEOF
19119 #ifndef __cplusplus
19120 #define inline $ac_val
19121 #endif
19122 _ACEOF
19123     ;;
19124 esac
19125
19126 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19127 $as_echo_n "checking for off_t... " >&6; }
19128 if test "${ac_cv_type_off_t+set}" = set; then
19129   $as_echo_n "(cached) " >&6
19130 else
19131   ac_cv_type_off_t=no
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138 $ac_includes_default
19139 int
19140 main ()
19141 {
19142 if (sizeof (off_t))
19143        return 0;
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 rm -f conftest.$ac_objext
19149 if { (ac_try="$ac_compile"
19150 case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19155 $as_echo "$ac_try_echo") >&5
19156   (eval "$ac_compile") 2>conftest.er1
19157   ac_status=$?
19158   grep -v '^ *+' conftest.er1 >conftest.err
19159   rm -f conftest.er1
19160   cat conftest.err >&5
19161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); } && {
19163          test -z "$ac_c_werror_flag" ||
19164          test ! -s conftest.err
19165        } && test -s conftest.$ac_objext; then
19166   cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172 $ac_includes_default
19173 int
19174 main ()
19175 {
19176 if (sizeof ((off_t)))
19177           return 0;
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186   *) ac_try_echo=$ac_try;;
19187 esac
19188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19189 $as_echo "$ac_try_echo") >&5
19190   (eval "$ac_compile") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } && {
19197          test -z "$ac_c_werror_flag" ||
19198          test ! -s conftest.err
19199        } && test -s conftest.$ac_objext; then
19200   :
19201 else
19202   $as_echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205         ac_cv_type_off_t=yes
19206 fi
19207
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 else
19210   $as_echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 fi
19218 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19219 $as_echo "$ac_cv_type_off_t" >&6; }
19220 if test "x$ac_cv_type_off_t" = x""yes; then
19221   :
19222 else
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define off_t long int
19226 _ACEOF
19227
19228 fi
19229
19230 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19231 $as_echo_n "checking for size_t... " >&6; }
19232 if test "${ac_cv_type_size_t+set}" = set; then
19233   $as_echo_n "(cached) " >&6
19234 else
19235   ac_cv_type_size_t=no
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 $ac_includes_default
19243 int
19244 main ()
19245 {
19246 if (sizeof (size_t))
19247        return 0;
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256   *) ac_try_echo=$ac_try;;
19257 esac
19258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19259 $as_echo "$ac_try_echo") >&5
19260   (eval "$ac_compile") 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } && {
19267          test -z "$ac_c_werror_flag" ||
19268          test ! -s conftest.err
19269        } && test -s conftest.$ac_objext; then
19270   cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276 $ac_includes_default
19277 int
19278 main ()
19279 {
19280 if (sizeof ((size_t)))
19281           return 0;
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19293 $as_echo "$ac_try_echo") >&5
19294   (eval "$ac_compile") 2>conftest.er1
19295   ac_status=$?
19296   grep -v '^ *+' conftest.er1 >conftest.err
19297   rm -f conftest.er1
19298   cat conftest.err >&5
19299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } && {
19301          test -z "$ac_c_werror_flag" ||
19302          test ! -s conftest.err
19303        } && test -s conftest.$ac_objext; then
19304   :
19305 else
19306   $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         ac_cv_type_size_t=yes
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 else
19314   $as_echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 fi
19322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19323 $as_echo "$ac_cv_type_size_t" >&6; }
19324 if test "x$ac_cv_type_size_t" = x""yes; then
19325   :
19326 else
19327
19328 cat >>confdefs.h <<_ACEOF
19329 #define size_t unsigned int
19330 _ACEOF
19331
19332 fi
19333
19334
19335   { $as_echo "$as_me:$LINENO: checking for long long" >&5
19336 $as_echo_n "checking for long long... " >&6; }
19337 if test "${ac_cv_type_long_long+set}" = set; then
19338   $as_echo_n "(cached) " >&6
19339 else
19340   cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346 long long ll = 1LL; int i = 63;
19347 int
19348 main ()
19349 {
19350 long long llmax = (long long) -1;
19351      return ll << i | ll >> i | llmax / ll | llmax % ll;
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19363 $as_echo "$ac_try_echo") >&5
19364   (eval "$ac_link") 2>conftest.er1
19365   ac_status=$?
19366   grep -v '^ *+' conftest.er1 >conftest.err
19367   rm -f conftest.er1
19368   cat conftest.err >&5
19369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } && {
19371          test -z "$ac_c_werror_flag" ||
19372          test ! -s conftest.err
19373        } && test -s conftest$ac_exeext && {
19374          test "$cross_compiling" = yes ||
19375          $as_test_x conftest$ac_exeext
19376        }; then
19377   ac_cv_type_long_long=yes
19378 else
19379   $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         ac_cv_type_long_long=no
19383 fi
19384
19385 rm -rf conftest.dSYM
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387       conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391   if test $ac_cv_type_long_long = yes; then
19392
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_LONG_LONG 1
19395 _ACEOF
19396
19397   fi
19398
19399
19400   { $as_echo "$as_me:$LINENO: checking for long double" >&5
19401 $as_echo_n "checking for long double... " >&6; }
19402 if test "${gt_cv_c_long_double+set}" = set; then
19403   $as_echo_n "(cached) " >&6
19404 else
19405   if test "$GCC" = yes; then
19406        gt_cv_c_long_double=yes
19407      else
19408        cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414
19415          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19416          long double foo = 0.0;
19417          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19418          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19419
19420 int
19421 main ()
19422 {
19423
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19435 $as_echo "$ac_try_echo") >&5
19436   (eval "$ac_compile") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest.$ac_objext; then
19446   gt_cv_c_long_double=yes
19447 else
19448   $as_echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         gt_cv_c_long_double=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455      fi
19456 fi
19457 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19458 $as_echo "$gt_cv_c_long_double" >&6; }
19459   if test $gt_cv_c_long_double = yes; then
19460
19461 cat >>confdefs.h <<\_ACEOF
19462 #define HAVE_LONG_DOUBLE 1
19463 _ACEOF
19464
19465   fi
19466
19467
19468   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19469 $as_echo_n "checking for wchar_t... " >&6; }
19470 if test "${gt_cv_c_wchar_t+set}" = set; then
19471   $as_echo_n "(cached) " >&6
19472 else
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479 #include <stddef.h>
19480        wchar_t foo = (wchar_t)'\0';
19481 int
19482 main ()
19483 {
19484
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 rm -f conftest.$ac_objext
19490 if { (ac_try="$ac_compile"
19491 case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19496 $as_echo "$ac_try_echo") >&5
19497   (eval "$ac_compile") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && {
19504          test -z "$ac_c_werror_flag" ||
19505          test ! -s conftest.err
19506        } && test -s conftest.$ac_objext; then
19507   gt_cv_c_wchar_t=yes
19508 else
19509   $as_echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512         gt_cv_c_wchar_t=no
19513 fi
19514
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 fi
19517 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19518 $as_echo "$gt_cv_c_wchar_t" >&6; }
19519   if test $gt_cv_c_wchar_t = yes; then
19520
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_WCHAR_T 1
19523 _ACEOF
19524
19525   fi
19526
19527
19528   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19529 $as_echo_n "checking for wint_t... " >&6; }
19530 if test "${gt_cv_c_wint_t+set}" = set; then
19531   $as_echo_n "(cached) " >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 #include <wchar.h>
19540        wint_t foo = (wchar_t)'\0';
19541 int
19542 main ()
19543 {
19544
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19556 $as_echo "$ac_try_echo") >&5
19557   (eval "$ac_compile") 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } && {
19564          test -z "$ac_c_werror_flag" ||
19565          test ! -s conftest.err
19566        } && test -s conftest.$ac_objext; then
19567   gt_cv_c_wint_t=yes
19568 else
19569   $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         gt_cv_c_wint_t=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 fi
19577 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19578 $as_echo "$gt_cv_c_wint_t" >&6; }
19579   if test $gt_cv_c_wint_t = yes; then
19580
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_WINT_T 1
19583 _ACEOF
19584
19585   fi
19586
19587
19588   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19589 $as_echo_n "checking for inttypes.h... " >&6; }
19590 if test "${gl_cv_header_inttypes_h+set}" = set; then
19591   $as_echo_n "(cached) " >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #include <sys/types.h>
19600 #include <inttypes.h>
19601 int
19602 main ()
19603 {
19604 uintmax_t i = (uintmax_t) -1;
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext
19610 if { (ac_try="$ac_compile"
19611 case "(($ac_try" in
19612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613   *) ac_try_echo=$ac_try;;
19614 esac
19615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19616 $as_echo "$ac_try_echo") >&5
19617   (eval "$ac_compile") 2>conftest.er1
19618   ac_status=$?
19619   grep -v '^ *+' conftest.er1 >conftest.err
19620   rm -f conftest.er1
19621   cat conftest.err >&5
19622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); } && {
19624          test -z "$ac_c_werror_flag" ||
19625          test ! -s conftest.err
19626        } && test -s conftest.$ac_objext; then
19627   gl_cv_header_inttypes_h=yes
19628 else
19629   $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632         gl_cv_header_inttypes_h=no
19633 fi
19634
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636 fi
19637 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19638 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19639   if test $gl_cv_header_inttypes_h = yes; then
19640
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19643 _ACEOF
19644
19645   fi
19646
19647
19648   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19649 $as_echo_n "checking for stdint.h... " >&6; }
19650 if test "${gl_cv_header_stdint_h+set}" = set; then
19651   $as_echo_n "(cached) " >&6
19652 else
19653   cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h.  */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h.  */
19659 #include <sys/types.h>
19660 #include <stdint.h>
19661 int
19662 main ()
19663 {
19664 uintmax_t i = (uintmax_t) -1;
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19676 $as_echo "$ac_try_echo") >&5
19677   (eval "$ac_compile") 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } && {
19684          test -z "$ac_c_werror_flag" ||
19685          test ! -s conftest.err
19686        } && test -s conftest.$ac_objext; then
19687   gl_cv_header_stdint_h=yes
19688 else
19689   $as_echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692         gl_cv_header_stdint_h=no
19693 fi
19694
19695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19696 fi
19697 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19698 $as_echo "$gl_cv_header_stdint_h" >&6; }
19699   if test $gl_cv_header_stdint_h = yes; then
19700
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_STDINT_H_WITH_UINTMAX 1
19703 _ACEOF
19704
19705   fi
19706
19707
19708
19709
19710   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19711 $as_echo_n "checking for intmax_t... " >&6; }
19712 if test "${gt_cv_c_intmax_t+set}" = set; then
19713   $as_echo_n "(cached) " >&6
19714 else
19715   cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721
19722 #include <stddef.h>
19723 #include <stdlib.h>
19724 #if HAVE_STDINT_H_WITH_UINTMAX
19725 #include <stdint.h>
19726 #endif
19727 #if HAVE_INTTYPES_H_WITH_UINTMAX
19728 #include <inttypes.h>
19729 #endif
19730
19731 int
19732 main ()
19733 {
19734 intmax_t x = -1;
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19746 $as_echo "$ac_try_echo") >&5
19747   (eval "$ac_compile") 2>conftest.er1
19748   ac_status=$?
19749   grep -v '^ *+' conftest.er1 >conftest.err
19750   rm -f conftest.er1
19751   cat conftest.err >&5
19752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); } && {
19754          test -z "$ac_c_werror_flag" ||
19755          test ! -s conftest.err
19756        } && test -s conftest.$ac_objext; then
19757   gt_cv_c_intmax_t=yes
19758 else
19759   $as_echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762         gt_cv_c_intmax_t=no
19763 fi
19764
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766 fi
19767 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19768 $as_echo "$gt_cv_c_intmax_t" >&6; }
19769   if test $gt_cv_c_intmax_t = yes; then
19770
19771 cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_INTMAX_T 1
19773 _ACEOF
19774
19775   fi
19776
19777
19778
19779   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19780 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19781 if test "${gt_cv_func_printf_posix+set}" = set; then
19782   $as_echo_n "(cached) " >&6
19783 else
19784
19785       if test "$cross_compiling" = yes; then
19786
19787         cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793
19794 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19795   notposix
19796 #endif
19797
19798 _ACEOF
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800   $EGREP "notposix" >/dev/null 2>&1; then
19801   gt_cv_func_printf_posix="guessing no"
19802 else
19803   gt_cv_func_printf_posix="guessing yes"
19804 fi
19805 rm -f conftest*
19806
19807
19808 else
19809   cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815
19816 #include <stdio.h>
19817 #include <string.h>
19818 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19819    dollar expansion (possibly an autoconf bug).  */
19820 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19821 static char buf[100];
19822 int main ()
19823 {
19824   sprintf (buf, format, 33, 55);
19825   return (strcmp (buf, "55 33") != 0);
19826 }
19827 _ACEOF
19828 rm -f conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832   *) ac_try_echo=$ac_try;;
19833 esac
19834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19835 $as_echo "$ac_try_echo") >&5
19836   (eval "$ac_link") 2>&5
19837   ac_status=$?
19838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19840   { (case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846   (eval "$ac_try") 2>&5
19847   ac_status=$?
19848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); }; }; then
19850   gt_cv_func_printf_posix=yes
19851 else
19852   $as_echo "$as_me: program exited with status $ac_status" >&5
19853 $as_echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ( exit $ac_status )
19857 gt_cv_func_printf_posix=no
19858 fi
19859 rm -rf conftest.dSYM
19860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19861 fi
19862
19863
19864
19865 fi
19866 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19867 $as_echo "$gt_cv_func_printf_posix" >&6; }
19868   case $gt_cv_func_printf_posix in
19869     *yes)
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_POSIX_PRINTF 1
19873 _ACEOF
19874
19875       ;;
19876   esac
19877
19878 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19879 # for constant arguments.  Useless!
19880 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19881 $as_echo_n "checking for working alloca.h... " >&6; }
19882 if test "${ac_cv_working_alloca_h+set}" = set; then
19883   $as_echo_n "(cached) " >&6
19884 else
19885   cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 #include <alloca.h>
19892 int
19893 main ()
19894 {
19895 char *p = (char *) alloca (2 * sizeof (int));
19896                           if (p) return 0;
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (ac_try="$ac_link"
19903 case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908 $as_echo "$ac_try_echo") >&5
19909   (eval "$ac_link") 2>conftest.er1
19910   ac_status=$?
19911   grep -v '^ *+' conftest.er1 >conftest.err
19912   rm -f conftest.er1
19913   cat conftest.err >&5
19914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); } && {
19916          test -z "$ac_c_werror_flag" ||
19917          test ! -s conftest.err
19918        } && test -s conftest$ac_exeext && {
19919          test "$cross_compiling" = yes ||
19920          $as_test_x conftest$ac_exeext
19921        }; then
19922   ac_cv_working_alloca_h=yes
19923 else
19924   $as_echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927         ac_cv_working_alloca_h=no
19928 fi
19929
19930 rm -rf conftest.dSYM
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932       conftest$ac_exeext conftest.$ac_ext
19933 fi
19934 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19935 $as_echo "$ac_cv_working_alloca_h" >&6; }
19936 if test $ac_cv_working_alloca_h = yes; then
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define HAVE_ALLOCA_H 1
19940 _ACEOF
19941
19942 fi
19943
19944 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19945 $as_echo_n "checking for alloca... " >&6; }
19946 if test "${ac_cv_func_alloca_works+set}" = set; then
19947   $as_echo_n "(cached) " >&6
19948 else
19949   cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 #ifdef __GNUC__
19956 # define alloca __builtin_alloca
19957 #else
19958 # ifdef _MSC_VER
19959 #  include <malloc.h>
19960 #  define alloca _alloca
19961 # else
19962 #  ifdef HAVE_ALLOCA_H
19963 #   include <alloca.h>
19964 #  else
19965 #   ifdef _AIX
19966  #pragma alloca
19967 #   else
19968 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19969 char *alloca ();
19970 #    endif
19971 #   endif
19972 #  endif
19973 # endif
19974 #endif
19975
19976 int
19977 main ()
19978 {
19979 char *p = (char *) alloca (1);
19980                                     if (p) return 0;
19981   ;
19982   return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (ac_try="$ac_link"
19987 case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19992 $as_echo "$ac_try_echo") >&5
19993   (eval "$ac_link") 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } && {
20000          test -z "$ac_c_werror_flag" ||
20001          test ! -s conftest.err
20002        } && test -s conftest$ac_exeext && {
20003          test "$cross_compiling" = yes ||
20004          $as_test_x conftest$ac_exeext
20005        }; then
20006   ac_cv_func_alloca_works=yes
20007 else
20008   $as_echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011         ac_cv_func_alloca_works=no
20012 fi
20013
20014 rm -rf conftest.dSYM
20015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20016       conftest$ac_exeext conftest.$ac_ext
20017 fi
20018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20019 $as_echo "$ac_cv_func_alloca_works" >&6; }
20020
20021 if test $ac_cv_func_alloca_works = yes; then
20022
20023 cat >>confdefs.h <<\_ACEOF
20024 #define HAVE_ALLOCA 1
20025 _ACEOF
20026
20027 else
20028   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20029 # that cause trouble.  Some versions do not even contain alloca or
20030 # contain a buggy version.  If you still want to use their alloca,
20031 # use ar to extract alloca.o from them instead of compiling alloca.c.
20032
20033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20034
20035 cat >>confdefs.h <<\_ACEOF
20036 #define C_ALLOCA 1
20037 _ACEOF
20038
20039
20040 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20041 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20042 if test "${ac_cv_os_cray+set}" = set; then
20043   $as_echo_n "(cached) " >&6
20044 else
20045   cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 #if defined CRAY && ! defined CRAY2
20052 webecray
20053 #else
20054 wenotbecray
20055 #endif
20056
20057 _ACEOF
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059   $EGREP "webecray" >/dev/null 2>&1; then
20060   ac_cv_os_cray=yes
20061 else
20062   ac_cv_os_cray=no
20063 fi
20064 rm -f conftest*
20065
20066 fi
20067 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20068 $as_echo "$ac_cv_os_cray" >&6; }
20069 if test $ac_cv_os_cray = yes; then
20070   for ac_func in _getb67 GETB67 getb67; do
20071     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20073 $as_echo_n "checking for $ac_func... " >&6; }
20074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20075   $as_echo_n "(cached) " >&6
20076 else
20077   cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20085 #define $ac_func innocuous_$ac_func
20086
20087 /* System header to define __stub macros and hopefully few prototypes,
20088     which can conflict with char $ac_func (); below.
20089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090     <limits.h> exists even on freestanding compilers.  */
20091
20092 #ifdef __STDC__
20093 # include <limits.h>
20094 #else
20095 # include <assert.h>
20096 #endif
20097
20098 #undef $ac_func
20099
20100 /* Override any GCC internal prototype to avoid an error.
20101    Use char because int might match the return type of a GCC
20102    builtin and then its argument prototype would still apply.  */
20103 #ifdef __cplusplus
20104 extern "C"
20105 #endif
20106 char $ac_func ();
20107 /* The GNU C library defines this for functions which it implements
20108     to always fail with ENOSYS.  Some functions are actually named
20109     something starting with __ and the normal name is an alias.  */
20110 #if defined __stub_$ac_func || defined __stub___$ac_func
20111 choke me
20112 #endif
20113
20114 int
20115 main ()
20116 {
20117 return $ac_func ();
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126   *) ac_try_echo=$ac_try;;
20127 esac
20128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20129 $as_echo "$ac_try_echo") >&5
20130   (eval "$ac_link") 2>conftest.er1
20131   ac_status=$?
20132   grep -v '^ *+' conftest.er1 >conftest.err
20133   rm -f conftest.er1
20134   cat conftest.err >&5
20135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } && {
20137          test -z "$ac_c_werror_flag" ||
20138          test ! -s conftest.err
20139        } && test -s conftest$ac_exeext && {
20140          test "$cross_compiling" = yes ||
20141          $as_test_x conftest$ac_exeext
20142        }; then
20143   eval "$as_ac_var=yes"
20144 else
20145   $as_echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148         eval "$as_ac_var=no"
20149 fi
20150
20151 rm -rf conftest.dSYM
20152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20153       conftest$ac_exeext conftest.$ac_ext
20154 fi
20155 ac_res=`eval 'as_val=${'$as_ac_var'}
20156                  $as_echo "$as_val"'`
20157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20158 $as_echo "$ac_res" >&6; }
20159 as_val=`eval 'as_val=${'$as_ac_var'}
20160                  $as_echo "$as_val"'`
20161    if test "x$as_val" = x""yes; then
20162
20163 cat >>confdefs.h <<_ACEOF
20164 #define CRAY_STACKSEG_END $ac_func
20165 _ACEOF
20166
20167     break
20168 fi
20169
20170   done
20171 fi
20172
20173 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20174 $as_echo_n "checking stack direction for C alloca... " >&6; }
20175 if test "${ac_cv_c_stack_direction+set}" = set; then
20176   $as_echo_n "(cached) " >&6
20177 else
20178   if test "$cross_compiling" = yes; then
20179   ac_cv_c_stack_direction=0
20180 else
20181   cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 $ac_includes_default
20188 int
20189 find_stack_direction ()
20190 {
20191   static char *addr = 0;
20192   auto char dummy;
20193   if (addr == 0)
20194     {
20195       addr = &dummy;
20196       return find_stack_direction ();
20197     }
20198   else
20199     return (&dummy > addr) ? 1 : -1;
20200 }
20201
20202 int
20203 main ()
20204 {
20205   return find_stack_direction () < 0;
20206 }
20207 _ACEOF
20208 rm -f conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20215 $as_echo "$ac_try_echo") >&5
20216   (eval "$ac_link") 2>&5
20217   ac_status=$?
20218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220   { (case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   ac_cv_c_stack_direction=1
20231 else
20232   $as_echo "$as_me: program exited with status $ac_status" >&5
20233 $as_echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ( exit $ac_status )
20237 ac_cv_c_stack_direction=-1
20238 fi
20239 rm -rf conftest.dSYM
20240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20241 fi
20242
20243
20244 fi
20245 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20246 $as_echo "$ac_cv_c_stack_direction" >&6; }
20247
20248 cat >>confdefs.h <<_ACEOF
20249 #define STACK_DIRECTION $ac_cv_c_stack_direction
20250 _ACEOF
20251
20252
20253 fi
20254
20255
20256
20257 for ac_header in stdlib.h unistd.h
20258 do
20259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20261   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20262 $as_echo_n "checking for $ac_header... " >&6; }
20263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20264   $as_echo_n "(cached) " >&6
20265 fi
20266 ac_res=`eval 'as_val=${'$as_ac_Header'}
20267                  $as_echo "$as_val"'`
20268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20269 $as_echo "$ac_res" >&6; }
20270 else
20271   # Is the header compilable?
20272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 $as_echo_n "checking $ac_header usability... " >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 $ac_includes_default
20281 #include <$ac_header>
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20290 $as_echo "$ac_try_echo") >&5
20291   (eval "$ac_compile") 2>conftest.er1
20292   ac_status=$?
20293   grep -v '^ *+' conftest.er1 >conftest.err
20294   rm -f conftest.er1
20295   cat conftest.err >&5
20296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } && {
20298          test -z "$ac_c_werror_flag" ||
20299          test ! -s conftest.err
20300        } && test -s conftest.$ac_objext; then
20301   ac_header_compiler=yes
20302 else
20303   $as_echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306         ac_header_compiler=no
20307 fi
20308
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20311 $as_echo "$ac_header_compiler" >&6; }
20312
20313 # Is the header present?
20314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20315 $as_echo_n "checking $ac_header presence... " >&6; }
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322 #include <$ac_header>
20323 _ACEOF
20324 if { (ac_try="$ac_cpp conftest.$ac_ext"
20325 case "(($ac_try" in
20326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327   *) ac_try_echo=$ac_try;;
20328 esac
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } >/dev/null && {
20338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20339          test ! -s conftest.err
20340        }; then
20341   ac_header_preproc=yes
20342 else
20343   $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346   ac_header_preproc=no
20347 fi
20348
20349 rm -f conftest.err conftest.$ac_ext
20350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20351 $as_echo "$ac_header_preproc" >&6; }
20352
20353 # So?  What about this header?
20354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20355   yes:no: )
20356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20360     ac_header_preproc=yes
20361     ;;
20362   no:yes:* )
20363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20366 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20370 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20375
20376     ;;
20377 esac
20378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 $as_echo_n "checking for $ac_header... " >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381   $as_echo_n "(cached) " >&6
20382 else
20383   eval "$as_ac_Header=\$ac_header_preproc"
20384 fi
20385 ac_res=`eval 'as_val=${'$as_ac_Header'}
20386                  $as_echo "$as_val"'`
20387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20388 $as_echo "$ac_res" >&6; }
20389
20390 fi
20391 as_val=`eval 'as_val=${'$as_ac_Header'}
20392                  $as_echo "$as_val"'`
20393    if test "x$as_val" = x""yes; then
20394   cat >>confdefs.h <<_ACEOF
20395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20396 _ACEOF
20397
20398 fi
20399
20400 done
20401
20402
20403 for ac_func in getpagesize
20404 do
20405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20407 $as_echo_n "checking for $ac_func... " >&6; }
20408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409   $as_echo_n "(cached) " >&6
20410 else
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20419 #define $ac_func innocuous_$ac_func
20420
20421 /* System header to define __stub macros and hopefully few prototypes,
20422     which can conflict with char $ac_func (); below.
20423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424     <limits.h> exists even on freestanding compilers.  */
20425
20426 #ifdef __STDC__
20427 # include <limits.h>
20428 #else
20429 # include <assert.h>
20430 #endif
20431
20432 #undef $ac_func
20433
20434 /* Override any GCC internal prototype to avoid an error.
20435    Use char because int might match the return type of a GCC
20436    builtin and then its argument prototype would still apply.  */
20437 #ifdef __cplusplus
20438 extern "C"
20439 #endif
20440 char $ac_func ();
20441 /* The GNU C library defines this for functions which it implements
20442     to always fail with ENOSYS.  Some functions are actually named
20443     something starting with __ and the normal name is an alias.  */
20444 #if defined __stub_$ac_func || defined __stub___$ac_func
20445 choke me
20446 #endif
20447
20448 int
20449 main ()
20450 {
20451 return $ac_func ();
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20463 $as_echo "$ac_try_echo") >&5
20464   (eval "$ac_link") 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } && {
20471          test -z "$ac_c_werror_flag" ||
20472          test ! -s conftest.err
20473        } && test -s conftest$ac_exeext && {
20474          test "$cross_compiling" = yes ||
20475          $as_test_x conftest$ac_exeext
20476        }; then
20477   eval "$as_ac_var=yes"
20478 else
20479   $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482         eval "$as_ac_var=no"
20483 fi
20484
20485 rm -rf conftest.dSYM
20486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20487       conftest$ac_exeext conftest.$ac_ext
20488 fi
20489 ac_res=`eval 'as_val=${'$as_ac_var'}
20490                  $as_echo "$as_val"'`
20491                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492 $as_echo "$ac_res" >&6; }
20493 as_val=`eval 'as_val=${'$as_ac_var'}
20494                  $as_echo "$as_val"'`
20495    if test "x$as_val" = x""yes; then
20496   cat >>confdefs.h <<_ACEOF
20497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20498 _ACEOF
20499
20500 fi
20501 done
20502
20503 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20504 $as_echo_n "checking for working mmap... " >&6; }
20505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20506   $as_echo_n "(cached) " >&6
20507 else
20508   if test "$cross_compiling" = yes; then
20509   ac_cv_func_mmap_fixed_mapped=no
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 $ac_includes_default
20518 /* malloc might have been renamed as rpl_malloc. */
20519 #undef malloc
20520
20521 /* Thanks to Mike Haertel and Jim Avera for this test.
20522    Here is a matrix of mmap possibilities:
20523         mmap private not fixed
20524         mmap private fixed at somewhere currently unmapped
20525         mmap private fixed at somewhere already mapped
20526         mmap shared not fixed
20527         mmap shared fixed at somewhere currently unmapped
20528         mmap shared fixed at somewhere already mapped
20529    For private mappings, we should verify that changes cannot be read()
20530    back from the file, nor mmap's back from the file at a different
20531    address.  (There have been systems where private was not correctly
20532    implemented like the infamous i386 svr4.0, and systems where the
20533    VM page cache was not coherent with the file system buffer cache
20534    like early versions of FreeBSD and possibly contemporary NetBSD.)
20535    For shared mappings, we should conversely verify that changes get
20536    propagated back to all the places they're supposed to be.
20537
20538    Grep wants private fixed already mapped.
20539    The main things grep needs to know about mmap are:
20540    * does it exist and is it safe to write into the mmap'd area
20541    * how to use it (BSD variants)  */
20542
20543 #include <fcntl.h>
20544 #include <sys/mman.h>
20545
20546 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20547 char *malloc ();
20548 #endif
20549
20550 /* This mess was copied from the GNU getpagesize.h.  */
20551 #ifndef HAVE_GETPAGESIZE
20552 /* Assume that all systems that can run configure have sys/param.h.  */
20553 # ifndef HAVE_SYS_PARAM_H
20554 #  define HAVE_SYS_PARAM_H 1
20555 # endif
20556
20557 # ifdef _SC_PAGESIZE
20558 #  define getpagesize() sysconf(_SC_PAGESIZE)
20559 # else /* no _SC_PAGESIZE */
20560 #  ifdef HAVE_SYS_PARAM_H
20561 #   include <sys/param.h>
20562 #   ifdef EXEC_PAGESIZE
20563 #    define getpagesize() EXEC_PAGESIZE
20564 #   else /* no EXEC_PAGESIZE */
20565 #    ifdef NBPG
20566 #     define getpagesize() NBPG * CLSIZE
20567 #     ifndef CLSIZE
20568 #      define CLSIZE 1
20569 #     endif /* no CLSIZE */
20570 #    else /* no NBPG */
20571 #     ifdef NBPC
20572 #      define getpagesize() NBPC
20573 #     else /* no NBPC */
20574 #      ifdef PAGESIZE
20575 #       define getpagesize() PAGESIZE
20576 #      endif /* PAGESIZE */
20577 #     endif /* no NBPC */
20578 #    endif /* no NBPG */
20579 #   endif /* no EXEC_PAGESIZE */
20580 #  else /* no HAVE_SYS_PARAM_H */
20581 #   define getpagesize() 8192   /* punt totally */
20582 #  endif /* no HAVE_SYS_PARAM_H */
20583 # endif /* no _SC_PAGESIZE */
20584
20585 #endif /* no HAVE_GETPAGESIZE */
20586
20587 int
20588 main ()
20589 {
20590   char *data, *data2, *data3;
20591   int i, pagesize;
20592   int fd;
20593
20594   pagesize = getpagesize ();
20595
20596   /* First, make a file with some known garbage in it. */
20597   data = (char *) malloc (pagesize);
20598   if (!data)
20599     return 1;
20600   for (i = 0; i < pagesize; ++i)
20601     *(data + i) = rand ();
20602   umask (0);
20603   fd = creat ("conftest.mmap", 0600);
20604   if (fd < 0)
20605     return 1;
20606   if (write (fd, data, pagesize) != pagesize)
20607     return 1;
20608   close (fd);
20609
20610   /* Next, try to mmap the file at a fixed address which already has
20611      something else allocated at it.  If we can, also make sure that
20612      we see the same garbage.  */
20613   fd = open ("conftest.mmap", O_RDWR);
20614   if (fd < 0)
20615     return 1;
20616   data2 = (char *) malloc (2 * pagesize);
20617   if (!data2)
20618     return 1;
20619   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20620   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20621                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20622     return 1;
20623   for (i = 0; i < pagesize; ++i)
20624     if (*(data + i) != *(data2 + i))
20625       return 1;
20626
20627   /* Finally, make sure that changes to the mapped area do not
20628      percolate back to the file as seen by read().  (This is a bug on
20629      some variants of i386 svr4.0.)  */
20630   for (i = 0; i < pagesize; ++i)
20631     *(data2 + i) = *(data2 + i) + 1;
20632   data3 = (char *) malloc (pagesize);
20633   if (!data3)
20634     return 1;
20635   if (read (fd, data3, pagesize) != pagesize)
20636     return 1;
20637   for (i = 0; i < pagesize; ++i)
20638     if (*(data + i) != *(data3 + i))
20639       return 1;
20640   close (fd);
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652   (eval "$ac_link") 2>&5
20653   ac_status=$?
20654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20656   { (case "(($ac_try" in
20657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658   *) ac_try_echo=$ac_try;;
20659 esac
20660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661 $as_echo "$ac_try_echo") >&5
20662   (eval "$ac_try") 2>&5
20663   ac_status=$?
20664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_func_mmap_fixed_mapped=yes
20667 else
20668   $as_echo "$as_me: program exited with status $ac_status" >&5
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ( exit $ac_status )
20673 ac_cv_func_mmap_fixed_mapped=no
20674 fi
20675 rm -rf conftest.dSYM
20676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20677 fi
20678
20679
20680 fi
20681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20682 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_MMAP 1
20687 _ACEOF
20688
20689 fi
20690 rm -f conftest.mmap
20691
20692
20693     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20694 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20695 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20696   $as_echo_n "(cached) " >&6
20697 else
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704
20705 #include <features.h>
20706 #ifdef __GNU_LIBRARY__
20707  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20708   Lucky GNU user
20709  #endif
20710 #endif
20711
20712 _ACEOF
20713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20714   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20715   ac_cv_gnu_library_2_1=yes
20716 else
20717   ac_cv_gnu_library_2_1=no
20718 fi
20719 rm -f conftest*
20720
20721
20722
20723 fi
20724 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20725 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20726
20727     GLIBC21="$ac_cv_gnu_library_2_1"
20728
20729
20730
20731
20732   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20733 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20734 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20735   $as_echo_n "(cached) " >&6
20736 else
20737
20738       if test "$cross_compiling" = yes; then
20739
20740           # Guess based on the CPU.
20741           case "$host_cpu" in
20742             alpha* | i3456786 | m68k | s390*)
20743               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20744             *)
20745               gt_cv_int_divbyzero_sigfpe="guessing no";;
20746           esac
20747
20748 else
20749   cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755
20756 #include <stdlib.h>
20757 #include <signal.h>
20758
20759 static void
20760 #ifdef __cplusplus
20761 sigfpe_handler (int sig)
20762 #else
20763 sigfpe_handler (sig) int sig;
20764 #endif
20765 {
20766   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20767   exit (sig != SIGFPE);
20768 }
20769
20770 int x = 1;
20771 int y = 0;
20772 int z;
20773 int nan;
20774
20775 int main ()
20776 {
20777   signal (SIGFPE, sigfpe_handler);
20778 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20779 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20780   signal (SIGTRAP, sigfpe_handler);
20781 #endif
20782 /* Linux/SPARC yields signal SIGILL.  */
20783 #if defined (__sparc__) && defined (__linux__)
20784   signal (SIGILL, sigfpe_handler);
20785 #endif
20786
20787   z = x / y;
20788   nan = y / y;
20789   exit (1);
20790 }
20791
20792 _ACEOF
20793 rm -f conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801   (eval "$ac_link") 2>&5
20802   ac_status=$?
20803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20805   { (case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811   (eval "$ac_try") 2>&5
20812   ac_status=$?
20813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; }; then
20815   gt_cv_int_divbyzero_sigfpe=yes
20816 else
20817   $as_echo "$as_me: program exited with status $ac_status" >&5
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ( exit $ac_status )
20822 gt_cv_int_divbyzero_sigfpe=no
20823 fi
20824 rm -rf conftest.dSYM
20825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20826 fi
20827
20828
20829
20830 fi
20831 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20832 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20833   case "$gt_cv_int_divbyzero_sigfpe" in
20834     *yes) value=1;;
20835     *) value=0;;
20836   esac
20837
20838 cat >>confdefs.h <<_ACEOF
20839 #define INTDIV0_RAISES_SIGFPE $value
20840 _ACEOF
20841
20842
20843
20844   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20845 $as_echo_n "checking for unsigned long long... " >&6; }
20846 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20847   $as_echo_n "(cached) " >&6
20848 else
20849   cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855 unsigned long long ull = 1ULL; int i = 63;
20856 int
20857 main ()
20858 {
20859 unsigned long long ullmax = (unsigned long long) -1;
20860      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20861   ;
20862   return 0;
20863 }
20864 _ACEOF
20865 rm -f conftest.$ac_objext conftest$ac_exeext
20866 if { (ac_try="$ac_link"
20867 case "(($ac_try" in
20868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869   *) ac_try_echo=$ac_try;;
20870 esac
20871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20872 $as_echo "$ac_try_echo") >&5
20873   (eval "$ac_link") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && {
20880          test -z "$ac_c_werror_flag" ||
20881          test ! -s conftest.err
20882        } && test -s conftest$ac_exeext && {
20883          test "$cross_compiling" = yes ||
20884          $as_test_x conftest$ac_exeext
20885        }; then
20886   ac_cv_type_unsigned_long_long=yes
20887 else
20888   $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         ac_cv_type_unsigned_long_long=no
20892 fi
20893
20894 rm -rf conftest.dSYM
20895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896       conftest$ac_exeext conftest.$ac_ext
20897 fi
20898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20899 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20900   if test $ac_cv_type_unsigned_long_long = yes; then
20901
20902 cat >>confdefs.h <<\_ACEOF
20903 #define HAVE_UNSIGNED_LONG_LONG 1
20904 _ACEOF
20905
20906   fi
20907
20908
20909
20910
20911   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20912
20913     test $ac_cv_type_unsigned_long_long = yes \
20914       && ac_type='unsigned long long' \
20915       || ac_type='unsigned long'
20916
20917 cat >>confdefs.h <<_ACEOF
20918 #define uintmax_t $ac_type
20919 _ACEOF
20920
20921   else
20922
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_UINTMAX_T 1
20925 _ACEOF
20926
20927   fi
20928
20929
20930   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20931 $as_echo_n "checking for inttypes.h... " >&6; }
20932 if test "${gt_cv_header_inttypes_h+set}" = set; then
20933   $as_echo_n "(cached) " >&6
20934 else
20935
20936     cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 #include <sys/types.h>
20943 #include <inttypes.h>
20944 int
20945 main ()
20946 {
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20959 $as_echo "$ac_try_echo") >&5
20960   (eval "$ac_compile") 2>conftest.er1
20961   ac_status=$?
20962   grep -v '^ *+' conftest.er1 >conftest.err
20963   rm -f conftest.er1
20964   cat conftest.err >&5
20965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } && {
20967          test -z "$ac_c_werror_flag" ||
20968          test ! -s conftest.err
20969        } && test -s conftest.$ac_objext; then
20970   gt_cv_header_inttypes_h=yes
20971 else
20972   $as_echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975         gt_cv_header_inttypes_h=no
20976 fi
20977
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979
20980 fi
20981 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20982 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20983   if test $gt_cv_header_inttypes_h = yes; then
20984
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_INTTYPES_H 1
20987 _ACEOF
20988
20989   fi
20990
20991
20992
20993   if test $gt_cv_header_inttypes_h = yes; then
20994     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20995 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20996 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20997   $as_echo_n "(cached) " >&6
20998 else
20999
21000         cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 #include <inttypes.h>
21007 #ifdef PRId32
21008 char *p = PRId32;
21009 #endif
21010
21011 int
21012 main ()
21013 {
21014
21015   ;
21016   return 0;
21017 }
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026 $as_echo "$ac_try_echo") >&5
21027   (eval "$ac_compile") 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } && {
21034          test -z "$ac_c_werror_flag" ||
21035          test ! -s conftest.err
21036        } && test -s conftest.$ac_objext; then
21037   gt_cv_inttypes_pri_broken=no
21038 else
21039   $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042         gt_cv_inttypes_pri_broken=yes
21043 fi
21044
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046
21047 fi
21048 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21049 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21050   fi
21051   if test "$gt_cv_inttypes_pri_broken" = yes; then
21052
21053 cat >>confdefs.h <<_ACEOF
21054 #define PRI_MACROS_BROKEN 1
21055 _ACEOF
21056
21057   fi
21058
21059
21060
21061 for ac_header in stdint.h
21062 do
21063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21066 $as_echo_n "checking for $ac_header... " >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068   $as_echo_n "(cached) " >&6
21069 fi
21070 ac_res=`eval 'as_val=${'$as_ac_Header'}
21071                  $as_echo "$as_val"'`
21072                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21073 $as_echo "$ac_res" >&6; }
21074 else
21075   # Is the header compilable?
21076 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21077 $as_echo_n "checking $ac_header usability... " >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084 $ac_includes_default
21085 #include <$ac_header>
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21094 $as_echo "$ac_try_echo") >&5
21095   (eval "$ac_compile") 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } && {
21102          test -z "$ac_c_werror_flag" ||
21103          test ! -s conftest.err
21104        } && test -s conftest.$ac_objext; then
21105   ac_header_compiler=yes
21106 else
21107   $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         ac_header_compiler=no
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21115 $as_echo "$ac_header_compiler" >&6; }
21116
21117 # Is the header present?
21118 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21119 $as_echo_n "checking $ac_header presence... " >&6; }
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include <$ac_header>
21127 _ACEOF
21128 if { (ac_try="$ac_cpp conftest.$ac_ext"
21129 case "(($ac_try" in
21130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131   *) ac_try_echo=$ac_try;;
21132 esac
21133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21134 $as_echo "$ac_try_echo") >&5
21135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } >/dev/null && {
21142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21143          test ! -s conftest.err
21144        }; then
21145   ac_header_preproc=yes
21146 else
21147   $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150   ac_header_preproc=no
21151 fi
21152
21153 rm -f conftest.err conftest.$ac_ext
21154 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21155 $as_echo "$ac_header_preproc" >&6; }
21156
21157 # So?  What about this header?
21158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21159   yes:no: )
21160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21161 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21164     ac_header_preproc=yes
21165     ;;
21166   no:yes:* )
21167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21168 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21170 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21172 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21174 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21178 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21179
21180     ;;
21181 esac
21182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21183 $as_echo_n "checking for $ac_header... " >&6; }
21184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21185   $as_echo_n "(cached) " >&6
21186 else
21187   eval "$as_ac_Header=\$ac_header_preproc"
21188 fi
21189 ac_res=`eval 'as_val=${'$as_ac_Header'}
21190                  $as_echo "$as_val"'`
21191                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21192 $as_echo "$ac_res" >&6; }
21193
21194 fi
21195 as_val=`eval 'as_val=${'$as_ac_Header'}
21196                  $as_echo "$as_val"'`
21197    if test "x$as_val" = x""yes; then
21198   cat >>confdefs.h <<_ACEOF
21199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21200 _ACEOF
21201
21202 fi
21203
21204 done
21205
21206     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21207 $as_echo_n "checking for SIZE_MAX... " >&6; }
21208   result=
21209   cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215
21216 #include <limits.h>
21217 #if HAVE_STDINT_H
21218 #include <stdint.h>
21219 #endif
21220 #ifdef SIZE_MAX
21221 Found it
21222 #endif
21223
21224 _ACEOF
21225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21226   $EGREP "Found it" >/dev/null 2>&1; then
21227   result=yes
21228 fi
21229 rm -f conftest*
21230
21231   if test -z "$result"; then
21232                     if test "$cross_compiling" = yes; then
21233   # Depending upon the size, compute the lo and hi bounds.
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <stddef.h>
21241 int
21242 main ()
21243 {
21244 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21245 test_array [0] = 0
21246
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259   (eval "$ac_compile") 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } && {
21266          test -z "$ac_c_werror_flag" ||
21267          test ! -s conftest.err
21268        } && test -s conftest.$ac_objext; then
21269   ac_lo=0 ac_mid=0
21270   while :; do
21271     cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include <stddef.h>
21278 int
21279 main ()
21280 {
21281 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21282 test_array [0] = 0
21283
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296   (eval "$ac_compile") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } && {
21303          test -z "$ac_c_werror_flag" ||
21304          test ! -s conftest.err
21305        } && test -s conftest.$ac_objext; then
21306   ac_hi=$ac_mid; break
21307 else
21308   $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311         ac_lo=`expr $ac_mid + 1`
21312                         if test $ac_lo -le $ac_mid; then
21313                           ac_lo= ac_hi=
21314                           break
21315                         fi
21316                         ac_mid=`expr 2 '*' $ac_mid + 1`
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320   done
21321 else
21322   $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325         cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 #include <stddef.h>
21332 int
21333 main ()
21334 {
21335 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21336 test_array [0] = 0
21337
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346   *) ac_try_echo=$ac_try;;
21347 esac
21348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21349 $as_echo "$ac_try_echo") >&5
21350   (eval "$ac_compile") 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && {
21357          test -z "$ac_c_werror_flag" ||
21358          test ! -s conftest.err
21359        } && test -s conftest.$ac_objext; then
21360   ac_hi=-1 ac_mid=-1
21361   while :; do
21362     cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h.  */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h.  */
21368 #include <stddef.h>
21369 int
21370 main ()
21371 {
21372 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21373 test_array [0] = 0
21374
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383   *) ac_try_echo=$ac_try;;
21384 esac
21385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21386 $as_echo "$ac_try_echo") >&5
21387   (eval "$ac_compile") 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } && {
21394          test -z "$ac_c_werror_flag" ||
21395          test ! -s conftest.err
21396        } && test -s conftest.$ac_objext; then
21397   ac_lo=$ac_mid; break
21398 else
21399   $as_echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21401
21402         ac_hi=`expr '(' $ac_mid ')' - 1`
21403                         if test $ac_mid -le $ac_hi; then
21404                           ac_lo= ac_hi=
21405                           break
21406                         fi
21407                         ac_mid=`expr 2 '*' $ac_mid`
21408 fi
21409
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411   done
21412 else
21413   $as_echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416         ac_lo= ac_hi=
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 fi
21421
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 # Binary search between lo and hi bounds.
21424 while test "x$ac_lo" != "x$ac_hi"; do
21425   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21426   cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 #include <stddef.h>
21433 int
21434 main ()
21435 {
21436 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21437 test_array [0] = 0
21438
21439   ;
21440   return 0;
21441 }
21442 _ACEOF
21443 rm -f conftest.$ac_objext
21444 if { (ac_try="$ac_compile"
21445 case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451   (eval "$ac_compile") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest.$ac_objext; then
21461   ac_hi=$ac_mid
21462 else
21463   $as_echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466         ac_lo=`expr '(' $ac_mid ')' + 1`
21467 fi
21468
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 done
21471 case $ac_lo in
21472 ?*) res_hi=$ac_lo;;
21473 '') result=? ;;
21474 esac
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482 #include <stddef.h>
21483 static long int longval () { return ~(size_t)0 / 10; }
21484 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21485 #include <stdio.h>
21486 #include <stdlib.h>
21487 int
21488 main ()
21489 {
21490
21491   FILE *f = fopen ("conftest.val", "w");
21492   if (! f)
21493     return 1;
21494   if ((~(size_t)0 / 10) < 0)
21495     {
21496       long int i = longval ();
21497       if (i != (~(size_t)0 / 10))
21498         return 1;
21499       fprintf (f, "%ld", i);
21500     }
21501   else
21502     {
21503       unsigned long int i = ulongval ();
21504       if (i != (~(size_t)0 / 10))
21505         return 1;
21506       fprintf (f, "%lu", i);
21507     }
21508   /* Do not output a trailing newline, as this causes \r\n confusion
21509      on some platforms.  */
21510   return ferror (f) || fclose (f) != 0;
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21523 $as_echo "$ac_try_echo") >&5
21524   (eval "$ac_link") 2>&5
21525   ac_status=$?
21526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528   { (case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   res_hi=`cat conftest.val`
21539 else
21540   $as_echo "$as_me: program exited with status $ac_status" >&5
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ( exit $ac_status )
21545 result=?
21546 fi
21547 rm -rf conftest.dSYM
21548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21549 fi
21550 rm -f conftest.val
21551
21552     if test "$cross_compiling" = yes; then
21553   # Depending upon the size, compute the lo and hi bounds.
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560 #include <stddef.h>
21561 int
21562 main ()
21563 {
21564 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21565 test_array [0] = 0
21566
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578 $as_echo "$ac_try_echo") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_lo=0 ac_mid=0
21590   while :; do
21591     cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 #include <stddef.h>
21598 int
21599 main ()
21600 {
21601 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21602 test_array [0] = 0
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21615 $as_echo "$ac_try_echo") >&5
21616   (eval "$ac_compile") 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } && {
21623          test -z "$ac_c_werror_flag" ||
21624          test ! -s conftest.err
21625        } && test -s conftest.$ac_objext; then
21626   ac_hi=$ac_mid; break
21627 else
21628   $as_echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631         ac_lo=`expr $ac_mid + 1`
21632                         if test $ac_lo -le $ac_mid; then
21633                           ac_lo= ac_hi=
21634                           break
21635                         fi
21636                         ac_mid=`expr 2 '*' $ac_mid + 1`
21637 fi
21638
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640   done
21641 else
21642   $as_echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645         cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 #include <stddef.h>
21652 int
21653 main ()
21654 {
21655 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21656 test_array [0] = 0
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21669 $as_echo "$ac_try_echo") >&5
21670   (eval "$ac_compile") 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } && {
21677          test -z "$ac_c_werror_flag" ||
21678          test ! -s conftest.err
21679        } && test -s conftest.$ac_objext; then
21680   ac_hi=-1 ac_mid=-1
21681   while :; do
21682     cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 #include <stddef.h>
21689 int
21690 main ()
21691 {
21692 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21693 test_array [0] = 0
21694
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21706 $as_echo "$ac_try_echo") >&5
21707   (eval "$ac_compile") 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } && {
21714          test -z "$ac_c_werror_flag" ||
21715          test ! -s conftest.err
21716        } && test -s conftest.$ac_objext; then
21717   ac_lo=$ac_mid; break
21718 else
21719   $as_echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         ac_hi=`expr '(' $ac_mid ')' - 1`
21723                         if test $ac_mid -le $ac_hi; then
21724                           ac_lo= ac_hi=
21725                           break
21726                         fi
21727                         ac_mid=`expr 2 '*' $ac_mid`
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731   done
21732 else
21733   $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736         ac_lo= ac_hi=
21737 fi
21738
21739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21740 fi
21741
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 # Binary search between lo and hi bounds.
21744 while test "x$ac_lo" != "x$ac_hi"; do
21745   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21746   cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752 #include <stddef.h>
21753 int
21754 main ()
21755 {
21756 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21757 test_array [0] = 0
21758
21759   ;
21760   return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21770 $as_echo "$ac_try_echo") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_hi=$ac_mid
21782 else
21783   $as_echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_lo=`expr '(' $ac_mid ')' + 1`
21787 fi
21788
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 done
21791 case $ac_lo in
21792 ?*) res_lo=$ac_lo;;
21793 '') result=? ;;
21794 esac
21795 else
21796   cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <stddef.h>
21803 static long int longval () { return ~(size_t)0 % 10; }
21804 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21805 #include <stdio.h>
21806 #include <stdlib.h>
21807 int
21808 main ()
21809 {
21810
21811   FILE *f = fopen ("conftest.val", "w");
21812   if (! f)
21813     return 1;
21814   if ((~(size_t)0 % 10) < 0)
21815     {
21816       long int i = longval ();
21817       if (i != (~(size_t)0 % 10))
21818         return 1;
21819       fprintf (f, "%ld", i);
21820     }
21821   else
21822     {
21823       unsigned long int i = ulongval ();
21824       if (i != (~(size_t)0 % 10))
21825         return 1;
21826       fprintf (f, "%lu", i);
21827     }
21828   /* Do not output a trailing newline, as this causes \r\n confusion
21829      on some platforms.  */
21830   return ferror (f) || fclose (f) != 0;
21831
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 rm -f conftest$ac_exeext
21837 if { (ac_try="$ac_link"
21838 case "(($ac_try" in
21839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840   *) ac_try_echo=$ac_try;;
21841 esac
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844   (eval "$ac_link") 2>&5
21845   ac_status=$?
21846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21848   { (case "(($ac_try" in
21849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850   *) ac_try_echo=$ac_try;;
21851 esac
21852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21853 $as_echo "$ac_try_echo") >&5
21854   (eval "$ac_try") 2>&5
21855   ac_status=$?
21856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); }; }; then
21858   res_lo=`cat conftest.val`
21859 else
21860   $as_echo "$as_me: program exited with status $ac_status" >&5
21861 $as_echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 ( exit $ac_status )
21865 result=?
21866 fi
21867 rm -rf conftest.dSYM
21868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21869 fi
21870 rm -f conftest.val
21871
21872     if test "$cross_compiling" = yes; then
21873   # Depending upon the size, compute the lo and hi bounds.
21874 cat >conftest.$ac_ext <<_ACEOF
21875 /* confdefs.h.  */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h.  */
21880 #include <stddef.h>
21881 int
21882 main ()
21883 {
21884 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21885 test_array [0] = 0
21886
21887   ;
21888   return 0;
21889 }
21890 _ACEOF
21891 rm -f conftest.$ac_objext
21892 if { (ac_try="$ac_compile"
21893 case "(($ac_try" in
21894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895   *) ac_try_echo=$ac_try;;
21896 esac
21897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21898 $as_echo "$ac_try_echo") >&5
21899   (eval "$ac_compile") 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } && {
21906          test -z "$ac_c_werror_flag" ||
21907          test ! -s conftest.err
21908        } && test -s conftest.$ac_objext; then
21909   ac_lo=0 ac_mid=0
21910   while :; do
21911     cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 #include <stddef.h>
21918 int
21919 main ()
21920 {
21921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21922 test_array [0] = 0
21923
21924   ;
21925   return 0;
21926 }
21927 _ACEOF
21928 rm -f conftest.$ac_objext
21929 if { (ac_try="$ac_compile"
21930 case "(($ac_try" in
21931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932   *) ac_try_echo=$ac_try;;
21933 esac
21934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21935 $as_echo "$ac_try_echo") >&5
21936   (eval "$ac_compile") 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } && {
21943          test -z "$ac_c_werror_flag" ||
21944          test ! -s conftest.err
21945        } && test -s conftest.$ac_objext; then
21946   ac_hi=$ac_mid; break
21947 else
21948   $as_echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951         ac_lo=`expr $ac_mid + 1`
21952                         if test $ac_lo -le $ac_mid; then
21953                           ac_lo= ac_hi=
21954                           break
21955                         fi
21956                         ac_mid=`expr 2 '*' $ac_mid + 1`
21957 fi
21958
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960   done
21961 else
21962   $as_echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965         cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 #include <stddef.h>
21972 int
21973 main ()
21974 {
21975 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21976 test_array [0] = 0
21977
21978   ;
21979   return 0;
21980 }
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986   *) ac_try_echo=$ac_try;;
21987 esac
21988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21989 $as_echo "$ac_try_echo") >&5
21990   (eval "$ac_compile") 2>conftest.er1
21991   ac_status=$?
21992   grep -v '^ *+' conftest.er1 >conftest.err
21993   rm -f conftest.er1
21994   cat conftest.err >&5
21995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } && {
21997          test -z "$ac_c_werror_flag" ||
21998          test ! -s conftest.err
21999        } && test -s conftest.$ac_objext; then
22000   ac_hi=-1 ac_mid=-1
22001   while :; do
22002     cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 #include <stddef.h>
22009 int
22010 main ()
22011 {
22012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22013 test_array [0] = 0
22014
22015   ;
22016   return 0;
22017 }
22018 _ACEOF
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023   *) ac_try_echo=$ac_try;;
22024 esac
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } && {
22034          test -z "$ac_c_werror_flag" ||
22035          test ! -s conftest.err
22036        } && test -s conftest.$ac_objext; then
22037   ac_lo=$ac_mid; break
22038 else
22039   $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042         ac_hi=`expr '(' $ac_mid ')' - 1`
22043                         if test $ac_mid -le $ac_hi; then
22044                           ac_lo= ac_hi=
22045                           break
22046                         fi
22047                         ac_mid=`expr 2 '*' $ac_mid`
22048 fi
22049
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051   done
22052 else
22053   $as_echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056         ac_lo= ac_hi=
22057 fi
22058
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 fi
22061
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 # Binary search between lo and hi bounds.
22064 while test "x$ac_lo" != "x$ac_hi"; do
22065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22066   cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 #include <stddef.h>
22073 int
22074 main ()
22075 {
22076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22077 test_array [0] = 0
22078
22079   ;
22080   return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087   *) ac_try_echo=$ac_try;;
22088 esac
22089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22090 $as_echo "$ac_try_echo") >&5
22091   (eval "$ac_compile") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && {
22098          test -z "$ac_c_werror_flag" ||
22099          test ! -s conftest.err
22100        } && test -s conftest.$ac_objext; then
22101   ac_hi=$ac_mid
22102 else
22103   $as_echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106         ac_lo=`expr '(' $ac_mid ')' + 1`
22107 fi
22108
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 done
22111 case $ac_lo in
22112 ?*) fits_in_uint=$ac_lo;;
22113 '') result=? ;;
22114 esac
22115 else
22116   cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 #include <stddef.h>
22123 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22124 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22125 #include <stdio.h>
22126 #include <stdlib.h>
22127 int
22128 main ()
22129 {
22130
22131   FILE *f = fopen ("conftest.val", "w");
22132   if (! f)
22133     return 1;
22134   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22135     {
22136       long int i = longval ();
22137       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22138         return 1;
22139       fprintf (f, "%ld", i);
22140     }
22141   else
22142     {
22143       unsigned long int i = ulongval ();
22144       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22145         return 1;
22146       fprintf (f, "%lu", i);
22147     }
22148   /* Do not output a trailing newline, as this causes \r\n confusion
22149      on some platforms.  */
22150   return ferror (f) || fclose (f) != 0;
22151
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164   (eval "$ac_link") 2>&5
22165   ac_status=$?
22166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168   { (case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22173 $as_echo "$ac_try_echo") >&5
22174   (eval "$ac_try") 2>&5
22175   ac_status=$?
22176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   fits_in_uint=`cat conftest.val`
22179 else
22180   $as_echo "$as_me: program exited with status $ac_status" >&5
22181 $as_echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184 ( exit $ac_status )
22185 result=?
22186 fi
22187 rm -rf conftest.dSYM
22188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189 fi
22190 rm -f conftest.val
22191
22192     if test "$fits_in_uint" = 1; then
22193                   cat >conftest.$ac_ext <<_ACEOF
22194 /* confdefs.h.  */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h.  */
22199 #include <stddef.h>
22200         extern size_t foo;
22201         extern unsigned long foo;
22202
22203 int
22204 main ()
22205 {
22206
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219   (eval "$ac_compile") 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } && {
22226          test -z "$ac_c_werror_flag" ||
22227          test ! -s conftest.err
22228        } && test -s conftest.$ac_objext; then
22229   fits_in_uint=0
22230 else
22231   $as_echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234
22235 fi
22236
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238     fi
22239     if test -z "$result"; then
22240       if test "$fits_in_uint" = 1; then
22241         result="$res_hi$res_lo"U
22242       else
22243         result="$res_hi$res_lo"UL
22244       fi
22245     else
22246             result='~(size_t)0'
22247     fi
22248   fi
22249   { $as_echo "$as_me:$LINENO: result: $result" >&5
22250 $as_echo "$result" >&6; }
22251   if test "$result" != yes; then
22252
22253 cat >>confdefs.h <<_ACEOF
22254 #define SIZE_MAX $result
22255 _ACEOF
22256
22257   fi
22258
22259
22260
22261
22262
22263 for ac_header in stdint.h
22264 do
22265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22267   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22268 $as_echo_n "checking for $ac_header... " >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270   $as_echo_n "(cached) " >&6
22271 fi
22272 ac_res=`eval 'as_val=${'$as_ac_Header'}
22273                  $as_echo "$as_val"'`
22274                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22275 $as_echo "$ac_res" >&6; }
22276 else
22277   # Is the header compilable?
22278 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22279 $as_echo_n "checking $ac_header usability... " >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 $ac_includes_default
22287 #include <$ac_header>
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22296 $as_echo "$ac_try_echo") >&5
22297   (eval "$ac_compile") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest.$ac_objext; then
22307   ac_header_compiler=yes
22308 else
22309   $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312         ac_header_compiler=no
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22317 $as_echo "$ac_header_compiler" >&6; }
22318
22319 # Is the header present?
22320 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22321 $as_echo_n "checking $ac_header presence... " >&6; }
22322 cat >conftest.$ac_ext <<_ACEOF
22323 /* confdefs.h.  */
22324 _ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h.  */
22328 #include <$ac_header>
22329 _ACEOF
22330 if { (ac_try="$ac_cpp conftest.$ac_ext"
22331 case "(($ac_try" in
22332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333   *) ac_try_echo=$ac_try;;
22334 esac
22335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22336 $as_echo "$ac_try_echo") >&5
22337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22338   ac_status=$?
22339   grep -v '^ *+' conftest.er1 >conftest.err
22340   rm -f conftest.er1
22341   cat conftest.err >&5
22342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); } >/dev/null && {
22344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22345          test ! -s conftest.err
22346        }; then
22347   ac_header_preproc=yes
22348 else
22349   $as_echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352   ac_header_preproc=no
22353 fi
22354
22355 rm -f conftest.err conftest.$ac_ext
22356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22357 $as_echo "$ac_header_preproc" >&6; }
22358
22359 # So?  What about this header?
22360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22361   yes:no: )
22362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22363 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22366     ac_header_preproc=yes
22367     ;;
22368   no:yes:* )
22369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22370 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22372 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22374 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22376 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22380 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22381
22382     ;;
22383 esac
22384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22385 $as_echo_n "checking for $ac_header... " >&6; }
22386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22387   $as_echo_n "(cached) " >&6
22388 else
22389   eval "$as_ac_Header=\$ac_header_preproc"
22390 fi
22391 ac_res=`eval 'as_val=${'$as_ac_Header'}
22392                  $as_echo "$as_val"'`
22393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22394 $as_echo "$ac_res" >&6; }
22395
22396 fi
22397 as_val=`eval 'as_val=${'$as_ac_Header'}
22398                  $as_echo "$as_val"'`
22399    if test "x$as_val" = x""yes; then
22400   cat >>confdefs.h <<_ACEOF
22401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22402 _ACEOF
22403
22404 fi
22405
22406 done
22407
22408
22409
22410
22411
22412
22413
22414
22415   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22416 $as_echo_n "checking for ptrdiff_t... " >&6; }
22417 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22418   $as_echo_n "(cached) " >&6
22419 else
22420   ac_cv_type_ptrdiff_t=no
22421 cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h.  */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h.  */
22427 $ac_includes_default
22428 int
22429 main ()
22430 {
22431 if (sizeof (ptrdiff_t))
22432        return 0;
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441   *) ac_try_echo=$ac_try;;
22442 esac
22443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444 $as_echo "$ac_try_echo") >&5
22445   (eval "$ac_compile") 2>conftest.er1
22446   ac_status=$?
22447   grep -v '^ *+' conftest.er1 >conftest.err
22448   rm -f conftest.er1
22449   cat conftest.err >&5
22450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); } && {
22452          test -z "$ac_c_werror_flag" ||
22453          test ! -s conftest.err
22454        } && test -s conftest.$ac_objext; then
22455   cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 $ac_includes_default
22462 int
22463 main ()
22464 {
22465 if (sizeof ((ptrdiff_t)))
22466           return 0;
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22478 $as_echo "$ac_try_echo") >&5
22479   (eval "$ac_compile") 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } && {
22486          test -z "$ac_c_werror_flag" ||
22487          test ! -s conftest.err
22488        } && test -s conftest.$ac_objext; then
22489   :
22490 else
22491   $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494         ac_cv_type_ptrdiff_t=yes
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 else
22499   $as_echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22508 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22509 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22510   :
22511 else
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define ptrdiff_t long
22515 _ACEOF
22516
22517
22518 fi
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22531 stdlib.h string.h unistd.h sys/param.h
22532 do
22533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 $as_echo_n "checking for $ac_header... " >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538   $as_echo_n "(cached) " >&6
22539 fi
22540 ac_res=`eval 'as_val=${'$as_ac_Header'}
22541                  $as_echo "$as_val"'`
22542                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22544 else
22545   # Is the header compilable?
22546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22547 $as_echo_n "checking $ac_header usability... " >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 $ac_includes_default
22555 #include <$ac_header>
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22564 $as_echo "$ac_try_echo") >&5
22565   (eval "$ac_compile") 2>conftest.er1
22566   ac_status=$?
22567   grep -v '^ *+' conftest.er1 >conftest.err
22568   rm -f conftest.er1
22569   cat conftest.err >&5
22570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } && {
22572          test -z "$ac_c_werror_flag" ||
22573          test ! -s conftest.err
22574        } && test -s conftest.$ac_objext; then
22575   ac_header_compiler=yes
22576 else
22577   $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580         ac_header_compiler=no
22581 fi
22582
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 $as_echo "$ac_header_compiler" >&6; }
22586
22587 # Is the header present?
22588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 $as_echo_n "checking $ac_header presence... " >&6; }
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 #include <$ac_header>
22597 _ACEOF
22598 if { (ac_try="$ac_cpp conftest.$ac_ext"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604 $as_echo "$ac_try_echo") >&5
22605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } >/dev/null && {
22612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        }; then
22615   ac_header_preproc=yes
22616 else
22617   $as_echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620   ac_header_preproc=no
22621 fi
22622
22623 rm -f conftest.err conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 $as_echo "$ac_header_preproc" >&6; }
22626
22627 # So?  What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22629   yes:no: )
22630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634     ac_header_preproc=yes
22635     ;;
22636   no:yes:* )
22637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22640 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22644 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22649
22650     ;;
22651 esac
22652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 $as_echo_n "checking for $ac_header... " >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655   $as_echo_n "(cached) " >&6
22656 else
22657   eval "$as_ac_Header=\$ac_header_preproc"
22658 fi
22659 ac_res=`eval 'as_val=${'$as_ac_Header'}
22660                  $as_echo "$as_val"'`
22661                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22662 $as_echo "$ac_res" >&6; }
22663
22664 fi
22665 as_val=`eval 'as_val=${'$as_ac_Header'}
22666                  $as_echo "$as_val"'`
22667    if test "x$as_val" = x""yes; then
22668   cat >>confdefs.h <<_ACEOF
22669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22670 _ACEOF
22671
22672 fi
22673
22674 done
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22700 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22701 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22702 __fsetlocking
22703 do
22704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22706 $as_echo_n "checking for $ac_func... " >&6; }
22707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22708   $as_echo_n "(cached) " >&6
22709 else
22710   cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22718 #define $ac_func innocuous_$ac_func
22719
22720 /* System header to define __stub macros and hopefully few prototypes,
22721     which can conflict with char $ac_func (); below.
22722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22723     <limits.h> exists even on freestanding compilers.  */
22724
22725 #ifdef __STDC__
22726 # include <limits.h>
22727 #else
22728 # include <assert.h>
22729 #endif
22730
22731 #undef $ac_func
22732
22733 /* Override any GCC internal prototype to avoid an error.
22734    Use char because int might match the return type of a GCC
22735    builtin and then its argument prototype would still apply.  */
22736 #ifdef __cplusplus
22737 extern "C"
22738 #endif
22739 char $ac_func ();
22740 /* The GNU C library defines this for functions which it implements
22741     to always fail with ENOSYS.  Some functions are actually named
22742     something starting with __ and the normal name is an alias.  */
22743 #if defined __stub_$ac_func || defined __stub___$ac_func
22744 choke me
22745 #endif
22746
22747 int
22748 main ()
22749 {
22750 return $ac_func ();
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext conftest$ac_exeext
22756 if { (ac_try="$ac_link"
22757 case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763   (eval "$ac_link") 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } && {
22770          test -z "$ac_c_werror_flag" ||
22771          test ! -s conftest.err
22772        } && test -s conftest$ac_exeext && {
22773          test "$cross_compiling" = yes ||
22774          $as_test_x conftest$ac_exeext
22775        }; then
22776   eval "$as_ac_var=yes"
22777 else
22778   $as_echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781         eval "$as_ac_var=no"
22782 fi
22783
22784 rm -rf conftest.dSYM
22785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22786       conftest$ac_exeext conftest.$ac_ext
22787 fi
22788 ac_res=`eval 'as_val=${'$as_ac_var'}
22789                  $as_echo "$as_val"'`
22790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22791 $as_echo "$ac_res" >&6; }
22792 as_val=`eval 'as_val=${'$as_ac_var'}
22793                  $as_echo "$as_val"'`
22794    if test "x$as_val" = x""yes; then
22795   cat >>confdefs.h <<_ACEOF
22796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22797 _ACEOF
22798
22799 fi
22800 done
22801
22802
22803
22804   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22805 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22806 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22807   $as_echo_n "(cached) " >&6
22808 else
22809   cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h.  */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h.  */
22815 #include <stdio.h>
22816 int
22817 main ()
22818 {
22819
22820 #ifndef _snprintf
22821   char *p = (char *) _snprintf;
22822 #endif
22823
22824   ;
22825   return 0;
22826 }
22827 _ACEOF
22828 rm -f conftest.$ac_objext
22829 if { (ac_try="$ac_compile"
22830 case "(($ac_try" in
22831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832   *) ac_try_echo=$ac_try;;
22833 esac
22834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835 $as_echo "$ac_try_echo") >&5
22836   (eval "$ac_compile") 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } && {
22843          test -z "$ac_c_werror_flag" ||
22844          test ! -s conftest.err
22845        } && test -s conftest.$ac_objext; then
22846   ac_cv_have_decl__snprintf=yes
22847 else
22848   $as_echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851         ac_cv_have_decl__snprintf=no
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855 fi
22856 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22857 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22858   if test $ac_cv_have_decl__snprintf = yes; then
22859     gt_value=1
22860   else
22861     gt_value=0
22862   fi
22863
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_DECL__SNPRINTF $gt_value
22866 _ACEOF
22867
22868
22869
22870   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22871 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22872 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22873   $as_echo_n "(cached) " >&6
22874 else
22875   cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 #include <stdio.h>
22882 int
22883 main ()
22884 {
22885
22886 #ifndef _snwprintf
22887   char *p = (char *) _snwprintf;
22888 #endif
22889
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898   *) ac_try_echo=$ac_try;;
22899 esac
22900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22901 $as_echo "$ac_try_echo") >&5
22902   (eval "$ac_compile") 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } && {
22909          test -z "$ac_c_werror_flag" ||
22910          test ! -s conftest.err
22911        } && test -s conftest.$ac_objext; then
22912   ac_cv_have_decl__snwprintf=yes
22913 else
22914   $as_echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22916
22917         ac_cv_have_decl__snwprintf=no
22918 fi
22919
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 fi
22922 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22923 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22924   if test $ac_cv_have_decl__snwprintf = yes; then
22925     gt_value=1
22926   else
22927     gt_value=0
22928   fi
22929
22930 cat >>confdefs.h <<_ACEOF
22931 #define HAVE_DECL__SNWPRINTF $gt_value
22932 _ACEOF
22933
22934
22935
22936
22937   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22938 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22939 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22940   $as_echo_n "(cached) " >&6
22941 else
22942   cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h.  */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h.  */
22948 #include <stdio.h>
22949 int
22950 main ()
22951 {
22952
22953 #ifndef feof_unlocked
22954   char *p = (char *) feof_unlocked;
22955 #endif
22956
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965   *) ac_try_echo=$ac_try;;
22966 esac
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969   (eval "$ac_compile") 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } && {
22976          test -z "$ac_c_werror_flag" ||
22977          test ! -s conftest.err
22978        } && test -s conftest.$ac_objext; then
22979   ac_cv_have_decl_feof_unlocked=yes
22980 else
22981   $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984         ac_cv_have_decl_feof_unlocked=no
22985 fi
22986
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 fi
22989 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22990 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22991   if test $ac_cv_have_decl_feof_unlocked = yes; then
22992     gt_value=1
22993   else
22994     gt_value=0
22995   fi
22996
22997 cat >>confdefs.h <<_ACEOF
22998 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22999 _ACEOF
23000
23001
23002
23003   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23004 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23005 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23006   $as_echo_n "(cached) " >&6
23007 else
23008   cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 #include <stdio.h>
23015 int
23016 main ()
23017 {
23018
23019 #ifndef fgets_unlocked
23020   char *p = (char *) fgets_unlocked;
23021 #endif
23022
23023   ;
23024   return 0;
23025 }
23026 _ACEOF
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035   (eval "$ac_compile") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest.$ac_objext; then
23045   ac_cv_have_decl_fgets_unlocked=yes
23046 else
23047   $as_echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23049
23050         ac_cv_have_decl_fgets_unlocked=no
23051 fi
23052
23053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23054 fi
23055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23056 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23057   if test $ac_cv_have_decl_fgets_unlocked = yes; then
23058     gt_value=1
23059   else
23060     gt_value=0
23061   fi
23062
23063 cat >>confdefs.h <<_ACEOF
23064 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23065 _ACEOF
23066
23067
23068
23069   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23070 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23071 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23072   $as_echo_n "(cached) " >&6
23073 else
23074   cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080 #include <stdio.h>
23081 int
23082 main ()
23083 {
23084
23085 #ifndef getc_unlocked
23086   char *p = (char *) getc_unlocked;
23087 #endif
23088
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext
23094 if { (ac_try="$ac_compile"
23095 case "(($ac_try" in
23096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097   *) ac_try_echo=$ac_try;;
23098 esac
23099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23100 $as_echo "$ac_try_echo") >&5
23101   (eval "$ac_compile") 2>conftest.er1
23102   ac_status=$?
23103   grep -v '^ *+' conftest.er1 >conftest.err
23104   rm -f conftest.er1
23105   cat conftest.err >&5
23106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); } && {
23108          test -z "$ac_c_werror_flag" ||
23109          test ! -s conftest.err
23110        } && test -s conftest.$ac_objext; then
23111   ac_cv_have_decl_getc_unlocked=yes
23112 else
23113   $as_echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116         ac_cv_have_decl_getc_unlocked=no
23117 fi
23118
23119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23120 fi
23121 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23122 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23123   if test $ac_cv_have_decl_getc_unlocked = yes; then
23124     gt_value=1
23125   else
23126     gt_value=0
23127   fi
23128
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23131 _ACEOF
23132
23133
23134
23135   case $gt_cv_func_printf_posix in
23136     *yes) HAVE_POSIX_PRINTF=1 ;;
23137     *) HAVE_POSIX_PRINTF=0 ;;
23138   esac
23139
23140   if test "$ac_cv_func_asprintf" = yes; then
23141     HAVE_ASPRINTF=1
23142   else
23143     HAVE_ASPRINTF=0
23144   fi
23145
23146   if test "$ac_cv_func_snprintf" = yes; then
23147     HAVE_SNPRINTF=1
23148   else
23149     HAVE_SNPRINTF=0
23150   fi
23151
23152   if test "$ac_cv_func_wprintf" = yes; then
23153     HAVE_WPRINTF=1
23154   else
23155     HAVE_WPRINTF=0
23156   fi
23157
23158
23159
23160
23161
23162
23163
23164           am_save_CPPFLAGS="$CPPFLAGS"
23165
23166   for element in $INCICONV; do
23167     haveit=
23168     for x in $CPPFLAGS; do
23169
23170   acl_save_prefix="$prefix"
23171   prefix="$acl_final_prefix"
23172   acl_save_exec_prefix="$exec_prefix"
23173   exec_prefix="$acl_final_exec_prefix"
23174   eval x=\"$x\"
23175   exec_prefix="$acl_save_exec_prefix"
23176   prefix="$acl_save_prefix"
23177
23178       if test "X$x" = "X$element"; then
23179         haveit=yes
23180         break
23181       fi
23182     done
23183     if test -z "$haveit"; then
23184       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23185     fi
23186   done
23187
23188
23189   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23190 $as_echo_n "checking for iconv... " >&6; }
23191 if test "${am_cv_func_iconv+set}" = set; then
23192   $as_echo_n "(cached) " >&6
23193 else
23194
23195     am_cv_func_iconv="no, consider installing GNU libiconv"
23196     am_cv_lib_iconv=no
23197     cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h.  */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h.  */
23203 #include <stdlib.h>
23204 #include <iconv.h>
23205 int
23206 main ()
23207 {
23208 iconv_t cd = iconv_open("","");
23209        iconv(cd,NULL,NULL,NULL,NULL);
23210        iconv_close(cd);
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (ac_try="$ac_link"
23217 case "(($ac_try" in
23218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219   *) ac_try_echo=$ac_try;;
23220 esac
23221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23222 $as_echo "$ac_try_echo") >&5
23223   (eval "$ac_link") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest$ac_exeext && {
23233          test "$cross_compiling" = yes ||
23234          $as_test_x conftest$ac_exeext
23235        }; then
23236   am_cv_func_iconv=yes
23237 else
23238   $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241
23242 fi
23243
23244 rm -rf conftest.dSYM
23245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23246       conftest$ac_exeext conftest.$ac_ext
23247     if test "$am_cv_func_iconv" != yes; then
23248       am_save_LIBS="$LIBS"
23249       LIBS="$LIBS $LIBICONV"
23250       cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256 #include <stdlib.h>
23257 #include <iconv.h>
23258 int
23259 main ()
23260 {
23261 iconv_t cd = iconv_open("","");
23262          iconv(cd,NULL,NULL,NULL,NULL);
23263          iconv_close(cd);
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23275 $as_echo "$ac_try_echo") >&5
23276   (eval "$ac_link") 2>conftest.er1
23277   ac_status=$?
23278   grep -v '^ *+' conftest.er1 >conftest.err
23279   rm -f conftest.er1
23280   cat conftest.err >&5
23281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); } && {
23283          test -z "$ac_c_werror_flag" ||
23284          test ! -s conftest.err
23285        } && test -s conftest$ac_exeext && {
23286          test "$cross_compiling" = yes ||
23287          $as_test_x conftest$ac_exeext
23288        }; then
23289   am_cv_lib_iconv=yes
23290         am_cv_func_iconv=yes
23291 else
23292   $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23294
23295
23296 fi
23297
23298 rm -rf conftest.dSYM
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300       conftest$ac_exeext conftest.$ac_ext
23301       LIBS="$am_save_LIBS"
23302     fi
23303
23304 fi
23305 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23306 $as_echo "$am_cv_func_iconv" >&6; }
23307   if test "$am_cv_func_iconv" = yes; then
23308
23309 cat >>confdefs.h <<\_ACEOF
23310 #define HAVE_ICONV 1
23311 _ACEOF
23312
23313   fi
23314   if test "$am_cv_lib_iconv" = yes; then
23315     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23316 $as_echo_n "checking how to link with libiconv... " >&6; }
23317     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23318 $as_echo "$LIBICONV" >&6; }
23319   else
23320             CPPFLAGS="$am_save_CPPFLAGS"
23321     LIBICONV=
23322     LTLIBICONV=
23323   fi
23324
23325
23326
23327   if test "$am_cv_func_iconv" = yes; then
23328     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23329 $as_echo_n "checking for iconv declaration... " >&6; }
23330     if test "${am_cv_proto_iconv+set}" = set; then
23331   $as_echo_n "(cached) " >&6
23332 else
23333
23334       cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h.  */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h.  */
23340
23341 #include <stdlib.h>
23342 #include <iconv.h>
23343 extern
23344 #ifdef __cplusplus
23345 "C"
23346 #endif
23347 #if defined(__STDC__) || defined(__cplusplus)
23348 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23349 #else
23350 size_t iconv();
23351 #endif
23352
23353 int
23354 main ()
23355 {
23356
23357   ;
23358   return 0;
23359 }
23360 _ACEOF
23361 rm -f conftest.$ac_objext
23362 if { (ac_try="$ac_compile"
23363 case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369   (eval "$ac_compile") 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } && {
23376          test -z "$ac_c_werror_flag" ||
23377          test ! -s conftest.err
23378        } && test -s conftest.$ac_objext; then
23379   am_cv_proto_iconv_arg1=""
23380 else
23381   $as_echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384         am_cv_proto_iconv_arg1="const"
23385 fi
23386
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388       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);"
23389 fi
23390
23391     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23392     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23393          }$am_cv_proto_iconv" >&5
23394 $as_echo "${ac_t:-
23395          }$am_cv_proto_iconv" >&6; }
23396
23397 cat >>confdefs.h <<_ACEOF
23398 #define ICONV_CONST $am_cv_proto_iconv_arg1
23399 _ACEOF
23400
23401   fi
23402
23403
23404   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23405 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23406 if test "${am_cv_langinfo_codeset+set}" = set; then
23407   $as_echo_n "(cached) " >&6
23408 else
23409   cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 #include <langinfo.h>
23416 int
23417 main ()
23418 {
23419 char* cs = nl_langinfo(CODESET);
23420   ;
23421   return 0;
23422 }
23423 _ACEOF
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (ac_try="$ac_link"
23426 case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23431 $as_echo "$ac_try_echo") >&5
23432   (eval "$ac_link") 2>conftest.er1
23433   ac_status=$?
23434   grep -v '^ *+' conftest.er1 >conftest.err
23435   rm -f conftest.er1
23436   cat conftest.err >&5
23437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); } && {
23439          test -z "$ac_c_werror_flag" ||
23440          test ! -s conftest.err
23441        } && test -s conftest$ac_exeext && {
23442          test "$cross_compiling" = yes ||
23443          $as_test_x conftest$ac_exeext
23444        }; then
23445   am_cv_langinfo_codeset=yes
23446 else
23447   $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23449
23450         am_cv_langinfo_codeset=no
23451 fi
23452
23453 rm -rf conftest.dSYM
23454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23455       conftest$ac_exeext conftest.$ac_ext
23456
23457 fi
23458 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23459 $as_echo "$am_cv_langinfo_codeset" >&6; }
23460   if test $am_cv_langinfo_codeset = yes; then
23461
23462 cat >>confdefs.h <<\_ACEOF
23463 #define HAVE_LANGINFO_CODESET 1
23464 _ACEOF
23465
23466   fi
23467
23468   if test $ac_cv_header_locale_h = yes; then
23469
23470   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23471 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23472 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23473   $as_echo_n "(cached) " >&6
23474 else
23475   cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h.  */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h.  */
23481 #include <locale.h>
23482 int
23483 main ()
23484 {
23485 return LC_MESSAGES
23486   ;
23487   return 0;
23488 }
23489 _ACEOF
23490 rm -f conftest.$ac_objext conftest$ac_exeext
23491 if { (ac_try="$ac_link"
23492 case "(($ac_try" in
23493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494   *) ac_try_echo=$ac_try;;
23495 esac
23496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23497 $as_echo "$ac_try_echo") >&5
23498   (eval "$ac_link") 2>conftest.er1
23499   ac_status=$?
23500   grep -v '^ *+' conftest.er1 >conftest.err
23501   rm -f conftest.er1
23502   cat conftest.err >&5
23503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); } && {
23505          test -z "$ac_c_werror_flag" ||
23506          test ! -s conftest.err
23507        } && test -s conftest$ac_exeext && {
23508          test "$cross_compiling" = yes ||
23509          $as_test_x conftest$ac_exeext
23510        }; then
23511   gt_cv_val_LC_MESSAGES=yes
23512 else
23513   $as_echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516         gt_cv_val_LC_MESSAGES=no
23517 fi
23518
23519 rm -rf conftest.dSYM
23520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23521       conftest$ac_exeext conftest.$ac_ext
23522 fi
23523 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23524 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23525   if test $gt_cv_val_LC_MESSAGES = yes; then
23526
23527 cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_LC_MESSAGES 1
23529 _ACEOF
23530
23531   fi
23532
23533   fi
23534
23535   if test -n "$INTL_MACOSX_LIBS"; then
23536     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23537   fi
23538
23539                       for ac_prog in bison
23540 do
23541   # Extract the first word of "$ac_prog", so it can be a program name with args.
23542 set dummy $ac_prog; ac_word=$2
23543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23544 $as_echo_n "checking for $ac_word... " >&6; }
23545 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23546   $as_echo_n "(cached) " >&6
23547 else
23548   if test -n "$INTLBISON"; then
23549   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23550 else
23551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23552 for as_dir in $PATH
23553 do
23554   IFS=$as_save_IFS
23555   test -z "$as_dir" && as_dir=.
23556   for ac_exec_ext in '' $ac_executable_extensions; do
23557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23558     ac_cv_prog_INTLBISON="$ac_prog"
23559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23560     break 2
23561   fi
23562 done
23563 done
23564 IFS=$as_save_IFS
23565
23566 fi
23567 fi
23568 INTLBISON=$ac_cv_prog_INTLBISON
23569 if test -n "$INTLBISON"; then
23570   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23571 $as_echo "$INTLBISON" >&6; }
23572 else
23573   { $as_echo "$as_me:$LINENO: result: no" >&5
23574 $as_echo "no" >&6; }
23575 fi
23576
23577
23578   test -n "$INTLBISON" && break
23579 done
23580
23581   if test -z "$INTLBISON"; then
23582     ac_verc_fail=yes
23583   else
23584         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23585 $as_echo_n "checking version of bison... " >&6; }
23586     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23587     case $ac_prog_version in
23588       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23589       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23590          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23591       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23592     esac
23593     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23594 $as_echo "$ac_prog_version" >&6; }
23595   fi
23596   if test $ac_verc_fail = yes; then
23597     INTLBISON=:
23598   fi
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23616 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23617 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23618   $as_echo_n "(cached) " >&6
23619 else
23620   gt_save_CPPFLAGS="$CPPFLAGS"
23621      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23622      gt_save_LIBS="$LIBS"
23623      LIBS="$LIBS -framework CoreFoundation"
23624      cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 #include <CFPreferences.h>
23631 int
23632 main ()
23633 {
23634 CFPreferencesCopyAppValue(NULL, NULL)
23635   ;
23636   return 0;
23637 }
23638 _ACEOF
23639 rm -f conftest.$ac_objext conftest$ac_exeext
23640 if { (ac_try="$ac_link"
23641 case "(($ac_try" in
23642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643   *) ac_try_echo=$ac_try;;
23644 esac
23645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23646 $as_echo "$ac_try_echo") >&5
23647   (eval "$ac_link") 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } && {
23654          test -z "$ac_c_werror_flag" ||
23655          test ! -s conftest.err
23656        } && test -s conftest$ac_exeext && {
23657          test "$cross_compiling" = yes ||
23658          $as_test_x conftest$ac_exeext
23659        }; then
23660   gt_cv_func_CFPreferencesCopyAppValue=yes
23661 else
23662   $as_echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665         gt_cv_func_CFPreferencesCopyAppValue=no
23666 fi
23667
23668 rm -rf conftest.dSYM
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670       conftest$ac_exeext conftest.$ac_ext
23671      CPPFLAGS="$gt_save_CPPFLAGS"
23672      LIBS="$gt_save_LIBS"
23673 fi
23674 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23675 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23680 _ACEOF
23681
23682   fi
23683     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23684 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23685 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23686   $as_echo_n "(cached) " >&6
23687 else
23688   gt_save_CPPFLAGS="$CPPFLAGS"
23689      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23690      gt_save_LIBS="$LIBS"
23691      LIBS="$LIBS -framework CoreFoundation"
23692      cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698 #include <CFLocale.h>
23699 int
23700 main ()
23701 {
23702 CFLocaleCopyCurrent();
23703   ;
23704   return 0;
23705 }
23706 _ACEOF
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (ac_try="$ac_link"
23709 case "(($ac_try" in
23710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711   *) ac_try_echo=$ac_try;;
23712 esac
23713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23714 $as_echo "$ac_try_echo") >&5
23715   (eval "$ac_link") 2>conftest.er1
23716   ac_status=$?
23717   grep -v '^ *+' conftest.er1 >conftest.err
23718   rm -f conftest.er1
23719   cat conftest.err >&5
23720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); } && {
23722          test -z "$ac_c_werror_flag" ||
23723          test ! -s conftest.err
23724        } && test -s conftest$ac_exeext && {
23725          test "$cross_compiling" = yes ||
23726          $as_test_x conftest$ac_exeext
23727        }; then
23728   gt_cv_func_CFLocaleCopyCurrent=yes
23729 else
23730   $as_echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733         gt_cv_func_CFLocaleCopyCurrent=no
23734 fi
23735
23736 rm -rf conftest.dSYM
23737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23738       conftest$ac_exeext conftest.$ac_ext
23739      CPPFLAGS="$gt_save_CPPFLAGS"
23740      LIBS="$gt_save_LIBS"
23741 fi
23742 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23743 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23744   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23745
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_CFLOCALECOPYCURRENT 1
23748 _ACEOF
23749
23750   fi
23751   INTL_MACOSX_LIBS=
23752   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23753     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23754   fi
23755
23756
23757
23758
23759   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23760 $as_echo_n "checking whether NLS is requested... " >&6; }
23761     # Check whether --enable-nls was given.
23762 if test "${enable_nls+set}" = set; then
23763   enableval=$enable_nls; USE_NLS=$enableval
23764 else
23765   USE_NLS=yes
23766 fi
23767
23768   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23769 $as_echo "$USE_NLS" >&6; }
23770
23771
23772
23773
23774     BUILD_INCLUDED_LIBINTL=no
23775     USE_INCLUDED_LIBINTL=no
23776
23777   LIBINTL=
23778   LTLIBINTL=
23779   POSUB=
23780
23781     if test "$USE_NLS" = "yes"; then
23782     gt_use_preinstalled_gnugettext=no
23783
23784       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23785 $as_echo_n "checking whether included gettext is requested... " >&6; }
23786
23787 # Check whether --with-included-gettext was given.
23788 if test "${with_included_gettext+set}" = set; then
23789   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23790 else
23791   nls_cv_force_use_gnu_gettext=no
23792 fi
23793
23794       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23795 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23796
23797       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23798       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23799
23800
23801
23802
23803
23804
23805         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23806 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23807 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23808   $as_echo_n "(cached) " >&6
23809 else
23810   cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816 #include <libintl.h>
23817 extern int _nl_msg_cat_cntr;
23818 extern int *_nl_domain_bindings;
23819 int
23820 main ()
23821 {
23822 bindtextdomain ("", "");
23823 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23824   ;
23825   return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (ac_try="$ac_link"
23830 case "(($ac_try" in
23831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832   *) ac_try_echo=$ac_try;;
23833 esac
23834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835 $as_echo "$ac_try_echo") >&5
23836   (eval "$ac_link") 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } && {
23843          test -z "$ac_c_werror_flag" ||
23844          test ! -s conftest.err
23845        } && test -s conftest$ac_exeext && {
23846          test "$cross_compiling" = yes ||
23847          $as_test_x conftest$ac_exeext
23848        }; then
23849   gt_cv_func_gnugettext1_libc=yes
23850 else
23851   $as_echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854         gt_cv_func_gnugettext1_libc=no
23855 fi
23856
23857 rm -rf conftest.dSYM
23858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23859       conftest$ac_exeext conftest.$ac_ext
23860 fi
23861 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23862 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23863
23864         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23865
23866
23867
23868     use_additional=yes
23869
23870   acl_save_prefix="$prefix"
23871   prefix="$acl_final_prefix"
23872   acl_save_exec_prefix="$exec_prefix"
23873   exec_prefix="$acl_final_exec_prefix"
23874
23875     eval additional_includedir=\"$includedir\"
23876     eval additional_libdir=\"$libdir\"
23877
23878   exec_prefix="$acl_save_exec_prefix"
23879   prefix="$acl_save_prefix"
23880
23881
23882 # Check whether --with-libintl-prefix was given.
23883 if test "${with_libintl_prefix+set}" = set; then
23884   withval=$with_libintl_prefix;
23885     if test "X$withval" = "Xno"; then
23886       use_additional=no
23887     else
23888       if test "X$withval" = "X"; then
23889
23890   acl_save_prefix="$prefix"
23891   prefix="$acl_final_prefix"
23892   acl_save_exec_prefix="$exec_prefix"
23893   exec_prefix="$acl_final_exec_prefix"
23894
23895           eval additional_includedir=\"$includedir\"
23896           eval additional_libdir=\"$libdir\"
23897
23898   exec_prefix="$acl_save_exec_prefix"
23899   prefix="$acl_save_prefix"
23900
23901       else
23902         additional_includedir="$withval/include"
23903         additional_libdir="$withval/lib"
23904       fi
23905     fi
23906
23907 fi
23908
23909       LIBINTL=
23910   LTLIBINTL=
23911   INCINTL=
23912   rpathdirs=
23913   ltrpathdirs=
23914   names_already_handled=
23915   names_next_round='intl '
23916   while test -n "$names_next_round"; do
23917     names_this_round="$names_next_round"
23918     names_next_round=
23919     for name in $names_this_round; do
23920       already_handled=
23921       for n in $names_already_handled; do
23922         if test "$n" = "$name"; then
23923           already_handled=yes
23924           break
23925         fi
23926       done
23927       if test -z "$already_handled"; then
23928         names_already_handled="$names_already_handled $name"
23929                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23930         eval value=\"\$HAVE_LIB$uppername\"
23931         if test -n "$value"; then
23932           if test "$value" = yes; then
23933             eval value=\"\$LIB$uppername\"
23934             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23935             eval value=\"\$LTLIB$uppername\"
23936             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23937           else
23938                                     :
23939           fi
23940         else
23941                               found_dir=
23942           found_la=
23943           found_so=
23944           found_a=
23945           if test $use_additional = yes; then
23946             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23947               found_dir="$additional_libdir"
23948               found_so="$additional_libdir/lib$name.$shlibext"
23949               if test -f "$additional_libdir/lib$name.la"; then
23950                 found_la="$additional_libdir/lib$name.la"
23951               fi
23952             else
23953               if test -f "$additional_libdir/lib$name.$libext"; then
23954                 found_dir="$additional_libdir"
23955                 found_a="$additional_libdir/lib$name.$libext"
23956                 if test -f "$additional_libdir/lib$name.la"; then
23957                   found_la="$additional_libdir/lib$name.la"
23958                 fi
23959               fi
23960             fi
23961           fi
23962           if test "X$found_dir" = "X"; then
23963             for x in $LDFLAGS $LTLIBINTL; do
23964
23965   acl_save_prefix="$prefix"
23966   prefix="$acl_final_prefix"
23967   acl_save_exec_prefix="$exec_prefix"
23968   exec_prefix="$acl_final_exec_prefix"
23969   eval x=\"$x\"
23970   exec_prefix="$acl_save_exec_prefix"
23971   prefix="$acl_save_prefix"
23972
23973               case "$x" in
23974                 -L*)
23975                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23976                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23977                     found_dir="$dir"
23978                     found_so="$dir/lib$name.$shlibext"
23979                     if test -f "$dir/lib$name.la"; then
23980                       found_la="$dir/lib$name.la"
23981                     fi
23982                   else
23983                     if test -f "$dir/lib$name.$libext"; then
23984                       found_dir="$dir"
23985                       found_a="$dir/lib$name.$libext"
23986                       if test -f "$dir/lib$name.la"; then
23987                         found_la="$dir/lib$name.la"
23988                       fi
23989                     fi
23990                   fi
23991                   ;;
23992               esac
23993               if test "X$found_dir" != "X"; then
23994                 break
23995               fi
23996             done
23997           fi
23998           if test "X$found_dir" != "X"; then
23999                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24000             if test "X$found_so" != "X"; then
24001                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24002                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24003               else
24004                                                                                 haveit=
24005                 for x in $ltrpathdirs; do
24006                   if test "X$x" = "X$found_dir"; then
24007                     haveit=yes
24008                     break
24009                   fi
24010                 done
24011                 if test -z "$haveit"; then
24012                   ltrpathdirs="$ltrpathdirs $found_dir"
24013                 fi
24014                                 if test "$hardcode_direct" = yes; then
24015                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24016                 else
24017                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24018                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24019                                                             haveit=
24020                     for x in $rpathdirs; do
24021                       if test "X$x" = "X$found_dir"; then
24022                         haveit=yes
24023                         break
24024                       fi
24025                     done
24026                     if test -z "$haveit"; then
24027                       rpathdirs="$rpathdirs $found_dir"
24028                     fi
24029                   else
24030                                                                                 haveit=
24031                     for x in $LDFLAGS $LIBINTL; do
24032
24033   acl_save_prefix="$prefix"
24034   prefix="$acl_final_prefix"
24035   acl_save_exec_prefix="$exec_prefix"
24036   exec_prefix="$acl_final_exec_prefix"
24037   eval x=\"$x\"
24038   exec_prefix="$acl_save_exec_prefix"
24039   prefix="$acl_save_prefix"
24040
24041                       if test "X$x" = "X-L$found_dir"; then
24042                         haveit=yes
24043                         break
24044                       fi
24045                     done
24046                     if test -z "$haveit"; then
24047                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24048                     fi
24049                     if test "$hardcode_minus_L" != no; then
24050                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24051                     else
24052                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24053                     fi
24054                   fi
24055                 fi
24056               fi
24057             else
24058               if test "X$found_a" != "X"; then
24059                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24060               else
24061                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24062               fi
24063             fi
24064                         additional_includedir=
24065             case "$found_dir" in
24066               */lib | */lib/)
24067                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24068                 additional_includedir="$basedir/include"
24069                 ;;
24070             esac
24071             if test "X$additional_includedir" != "X"; then
24072                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24073                 haveit=
24074                 if test "X$additional_includedir" = "X/usr/local/include"; then
24075                   if test -n "$GCC"; then
24076                     case $host_os in
24077                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24078                     esac
24079                   fi
24080                 fi
24081                 if test -z "$haveit"; then
24082                   for x in $CPPFLAGS $INCINTL; do
24083
24084   acl_save_prefix="$prefix"
24085   prefix="$acl_final_prefix"
24086   acl_save_exec_prefix="$exec_prefix"
24087   exec_prefix="$acl_final_exec_prefix"
24088   eval x=\"$x\"
24089   exec_prefix="$acl_save_exec_prefix"
24090   prefix="$acl_save_prefix"
24091
24092                     if test "X$x" = "X-I$additional_includedir"; then
24093                       haveit=yes
24094                       break
24095                     fi
24096                   done
24097                   if test -z "$haveit"; then
24098                     if test -d "$additional_includedir"; then
24099                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24100                     fi
24101                   fi
24102                 fi
24103               fi
24104             fi
24105                         if test -n "$found_la"; then
24106                                                         save_libdir="$libdir"
24107               case "$found_la" in
24108                 */* | *\\*) . "$found_la" ;;
24109                 *) . "./$found_la" ;;
24110               esac
24111               libdir="$save_libdir"
24112                             for dep in $dependency_libs; do
24113                 case "$dep" in
24114                   -L*)
24115                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24116                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24117                       haveit=
24118                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24119                         if test -n "$GCC"; then
24120                           case $host_os in
24121                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24122                           esac
24123                         fi
24124                       fi
24125                       if test -z "$haveit"; then
24126                         haveit=
24127                         for x in $LDFLAGS $LIBINTL; do
24128
24129   acl_save_prefix="$prefix"
24130   prefix="$acl_final_prefix"
24131   acl_save_exec_prefix="$exec_prefix"
24132   exec_prefix="$acl_final_exec_prefix"
24133   eval x=\"$x\"
24134   exec_prefix="$acl_save_exec_prefix"
24135   prefix="$acl_save_prefix"
24136
24137                           if test "X$x" = "X-L$additional_libdir"; then
24138                             haveit=yes
24139                             break
24140                           fi
24141                         done
24142                         if test -z "$haveit"; then
24143                           if test -d "$additional_libdir"; then
24144                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24145                           fi
24146                         fi
24147                         haveit=
24148                         for x in $LDFLAGS $LTLIBINTL; do
24149
24150   acl_save_prefix="$prefix"
24151   prefix="$acl_final_prefix"
24152   acl_save_exec_prefix="$exec_prefix"
24153   exec_prefix="$acl_final_exec_prefix"
24154   eval x=\"$x\"
24155   exec_prefix="$acl_save_exec_prefix"
24156   prefix="$acl_save_prefix"
24157
24158                           if test "X$x" = "X-L$additional_libdir"; then
24159                             haveit=yes
24160                             break
24161                           fi
24162                         done
24163                         if test -z "$haveit"; then
24164                           if test -d "$additional_libdir"; then
24165                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24166                           fi
24167                         fi
24168                       fi
24169                     fi
24170                     ;;
24171                   -R*)
24172                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24173                     if test "$enable_rpath" != no; then
24174                                                                   haveit=
24175                       for x in $rpathdirs; do
24176                         if test "X$x" = "X$dir"; then
24177                           haveit=yes
24178                           break
24179                         fi
24180                       done
24181                       if test -z "$haveit"; then
24182                         rpathdirs="$rpathdirs $dir"
24183                       fi
24184                                                                   haveit=
24185                       for x in $ltrpathdirs; do
24186                         if test "X$x" = "X$dir"; then
24187                           haveit=yes
24188                           break
24189                         fi
24190                       done
24191                       if test -z "$haveit"; then
24192                         ltrpathdirs="$ltrpathdirs $dir"
24193                       fi
24194                     fi
24195                     ;;
24196                   -l*)
24197                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24198                     ;;
24199                   *.la)
24200                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24201                     ;;
24202                   *)
24203                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24204                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24205                     ;;
24206                 esac
24207               done
24208             fi
24209           else
24210                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24211             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24212           fi
24213         fi
24214       fi
24215     done
24216   done
24217   if test "X$rpathdirs" != "X"; then
24218     if test -n "$hardcode_libdir_separator"; then
24219                         alldirs=
24220       for found_dir in $rpathdirs; do
24221         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24222       done
24223             acl_save_libdir="$libdir"
24224       libdir="$alldirs"
24225       eval flag=\"$hardcode_libdir_flag_spec\"
24226       libdir="$acl_save_libdir"
24227       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24228     else
24229             for found_dir in $rpathdirs; do
24230         acl_save_libdir="$libdir"
24231         libdir="$found_dir"
24232         eval flag=\"$hardcode_libdir_flag_spec\"
24233         libdir="$acl_save_libdir"
24234         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24235       done
24236     fi
24237   fi
24238   if test "X$ltrpathdirs" != "X"; then
24239             for found_dir in $ltrpathdirs; do
24240       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24241     done
24242   fi
24243
24244           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24245 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24246 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24247   $as_echo_n "(cached) " >&6
24248 else
24249   gt_save_CPPFLAGS="$CPPFLAGS"
24250             CPPFLAGS="$CPPFLAGS $INCINTL"
24251             gt_save_LIBS="$LIBS"
24252             LIBS="$LIBS $LIBINTL"
24253                         cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259 #include <libintl.h>
24260 extern int _nl_msg_cat_cntr;
24261 extern
24262 #ifdef __cplusplus
24263 "C"
24264 #endif
24265 const char *_nl_expand_alias (const char *);
24266 int
24267 main ()
24268 {
24269 bindtextdomain ("", "");
24270 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24271   ;
24272   return 0;
24273 }
24274 _ACEOF
24275 rm -f conftest.$ac_objext conftest$ac_exeext
24276 if { (ac_try="$ac_link"
24277 case "(($ac_try" in
24278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279   *) ac_try_echo=$ac_try;;
24280 esac
24281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283   (eval "$ac_link") 2>conftest.er1
24284   ac_status=$?
24285   grep -v '^ *+' conftest.er1 >conftest.err
24286   rm -f conftest.er1
24287   cat conftest.err >&5
24288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } && {
24290          test -z "$ac_c_werror_flag" ||
24291          test ! -s conftest.err
24292        } && test -s conftest$ac_exeext && {
24293          test "$cross_compiling" = yes ||
24294          $as_test_x conftest$ac_exeext
24295        }; then
24296   gt_cv_func_gnugettext1_libintl=yes
24297 else
24298   $as_echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300
24301         gt_cv_func_gnugettext1_libintl=no
24302 fi
24303
24304 rm -rf conftest.dSYM
24305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24306       conftest$ac_exeext conftest.$ac_ext
24307                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24308               LIBS="$LIBS $LIBICONV"
24309               cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315 #include <libintl.h>
24316 extern int _nl_msg_cat_cntr;
24317 extern
24318 #ifdef __cplusplus
24319 "C"
24320 #endif
24321 const char *_nl_expand_alias (const char *);
24322 int
24323 main ()
24324 {
24325 bindtextdomain ("", "");
24326 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24327   ;
24328   return 0;
24329 }
24330 _ACEOF
24331 rm -f conftest.$ac_objext conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339   (eval "$ac_link") 2>conftest.er1
24340   ac_status=$?
24341   grep -v '^ *+' conftest.er1 >conftest.err
24342   rm -f conftest.er1
24343   cat conftest.err >&5
24344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } && {
24346          test -z "$ac_c_werror_flag" ||
24347          test ! -s conftest.err
24348        } && test -s conftest$ac_exeext && {
24349          test "$cross_compiling" = yes ||
24350          $as_test_x conftest$ac_exeext
24351        }; then
24352   LIBINTL="$LIBINTL $LIBICONV"
24353                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24354                 gt_cv_func_gnugettext1_libintl=yes
24355
24356 else
24357   $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360
24361 fi
24362
24363 rm -rf conftest.dSYM
24364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24365       conftest$ac_exeext conftest.$ac_ext
24366             fi
24367             CPPFLAGS="$gt_save_CPPFLAGS"
24368             LIBS="$gt_save_LIBS"
24369 fi
24370 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24371 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24372         fi
24373
24374                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24375            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24376                 && test "$PACKAGE" != gettext-runtime \
24377                 && test "$PACKAGE" != gettext-tools; }; then
24378           gt_use_preinstalled_gnugettext=yes
24379         else
24380                     LIBINTL=
24381           LTLIBINTL=
24382           INCINTL=
24383         fi
24384
24385
24386         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24387                               nls_cv_use_gnu_gettext=yes
24388         fi
24389       fi
24390
24391       if test "$nls_cv_use_gnu_gettext" = "yes"; then
24392                 BUILD_INCLUDED_LIBINTL=yes
24393         USE_INCLUDED_LIBINTL=yes
24394         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24395         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24396         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24397       fi
24398
24399       CATOBJEXT=
24400       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24401          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24402                 CATOBJEXT=.gmo
24403       fi
24404
24405
24406     if test -n "$INTL_MACOSX_LIBS"; then
24407       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24408          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24409                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24410         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24411       fi
24412     fi
24413
24414     if test "$gt_use_preinstalled_gnugettext" = "yes" \
24415        || test "$nls_cv_use_gnu_gettext" = "yes"; then
24416
24417 cat >>confdefs.h <<\_ACEOF
24418 #define ENABLE_NLS 1
24419 _ACEOF
24420
24421     else
24422       USE_NLS=no
24423     fi
24424   fi
24425
24426   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24427 $as_echo_n "checking whether to use NLS... " >&6; }
24428   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24429 $as_echo "$USE_NLS" >&6; }
24430   if test "$USE_NLS" = "yes"; then
24431     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24432 $as_echo_n "checking where the gettext function comes from... " >&6; }
24433     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24434       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24435         gt_source="external libintl"
24436       else
24437         gt_source="libc"
24438       fi
24439     else
24440       gt_source="included intl directory"
24441     fi
24442     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24443 $as_echo "$gt_source" >&6; }
24444   fi
24445
24446   if test "$USE_NLS" = "yes"; then
24447
24448     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24449       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24450         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24451 $as_echo_n "checking how to link with libintl... " >&6; }
24452         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24453 $as_echo "$LIBINTL" >&6; }
24454
24455   for element in $INCINTL; do
24456     haveit=
24457     for x in $CPPFLAGS; do
24458
24459   acl_save_prefix="$prefix"
24460   prefix="$acl_final_prefix"
24461   acl_save_exec_prefix="$exec_prefix"
24462   exec_prefix="$acl_final_exec_prefix"
24463   eval x=\"$x\"
24464   exec_prefix="$acl_save_exec_prefix"
24465   prefix="$acl_save_prefix"
24466
24467       if test "X$x" = "X$element"; then
24468         haveit=yes
24469         break
24470       fi
24471     done
24472     if test -z "$haveit"; then
24473       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24474     fi
24475   done
24476
24477       fi
24478
24479
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_GETTEXT 1
24482 _ACEOF
24483
24484
24485 cat >>confdefs.h <<\_ACEOF
24486 #define HAVE_DCGETTEXT 1
24487 _ACEOF
24488
24489     fi
24490
24491         POSUB=po
24492   fi
24493
24494
24495             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24496       BUILD_INCLUDED_LIBINTL=yes
24497     fi
24498
24499
24500
24501
24502
24503         nls_cv_header_intl=
24504     nls_cv_header_libgt=
24505
24506         DATADIRNAME=share
24507
24508
24509         INSTOBJEXT=.mo
24510
24511
24512         GENCAT=gencat
24513
24514
24515         INTLOBJS=
24516     if test "$USE_INCLUDED_LIBINTL" = yes; then
24517       INTLOBJS="\$(GETTOBJS)"
24518     fi
24519
24520
24521         INTL_LIBTOOL_SUFFIX_PREFIX=
24522
24523
24524
24525     INTLLIBS="$LIBINTL"
24526
24527
24528
24529
24530
24531
24532 fi
24533
24534 support_mysql=no
24535 support_sqlite=no
24536 support_sqlite3=no
24537 support_postgresql=no
24538 support_ingres=no
24539 support_dbi=no
24540 support_smartalloc=yes
24541 support_readline=yes
24542 support_conio=yes
24543 support_gnome=no
24544 support_bat=no
24545 support_wx_console=no
24546 support_tray_monitor=no
24547 support_tls=no
24548 support_crypto=no
24549 gnome_version=
24550 wx_version=
24551 support_static_tools=no
24552 support_static_fd=no
24553 support_static_sd=no
24554 support_static_dir=no
24555 support_static_cons=no
24556 support_python=no
24557 build_client_only=no
24558 build_dird=yes
24559 build_stored=yes
24560 cats=
24561 db_type=Internal
24562 support_lockmgr=no
24563 DB_TYPE=bdb
24564
24565
24566 # Check whether --enable-gnome was given.
24567 if test "${enable_gnome+set}" = set; then
24568   enableval=$enable_gnome;
24569        if test x$enableval = xyes; then
24570           support_gnome=yes
24571        fi
24572
24573
24574 fi
24575
24576
24577 GNOME_DIR=
24578 if test x$support_gnome = xyes; then
24579    { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24580 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24581    { (exit 1); exit 1; }; }
24582    { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24583 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24584    { (exit 1); exit 1; }; }
24585 fi
24586 # AC_SUBST(GNOME_DIR)
24587
24588 # Check whether --enable-bat was given.
24589 if test "${enable_bat+set}" = set; then
24590   enableval=$enable_bat;
24591        if test x$enableval = xyes; then
24592
24593 cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_BAT 1
24595 _ACEOF
24596
24597           support_bat=yes
24598        fi
24599
24600
24601 fi
24602
24603
24604 BAT_DIR=
24605 if test x$support_bat = xyes; then
24606    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24607    pkg=$?
24608    if test $pkg = 0; then
24609       BAT_DIR=src/qt-console
24610    else
24611       { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24612 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24613    { (exit 1); exit 1; }; }
24614    fi
24615 fi
24616
24617 got_qwt=no
24618 QWT_INC=
24619 QWT_LDFLAGS=
24620 QWT_LIB=
24621 QWT=
24622 no_qwt=no
24623
24624
24625
24626
24627
24628
24629
24630
24631 # Check whether --enable-bwx-console was given.
24632 if test "${enable_bwx_console+set}" = set; then
24633   enableval=$enable_bwx_console;
24634        if test x$enableval = xyes; then
24635           support_wx_console=yes
24636        fi
24637
24638
24639 fi
24640
24641
24642 WX_DIR=
24643 if test x$support_wx_console = xyes; then
24644    abc=`$WXCONFIG $WXFLAGS --cppflags`
24645    pkg=$?
24646    if test $pkg = 0; then
24647       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24648       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24649       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24650
24651
24652
24653       WX_DIR="src/wx-console"
24654    else
24655       echo " "
24656       echo "wx-config program not found. bwx-console disabled."
24657       echo " "
24658       support_wx_console=no
24659    fi
24660 fi
24661
24662
24663 # Check whether --enable-tray-monitor was given.
24664 if test "${enable_tray_monitor+set}" = set; then
24665   enableval=$enable_tray_monitor;
24666        if test x$enableval = xyes; then
24667           support_tray_monitor=yes
24668        fi
24669
24670
24671 fi
24672
24673
24674 TRAY_MONITOR_DIR=
24675 if test x$support_tray_monitor = xyes; then
24676    abc=`$PKGCONFIG --exists gtk+-2.0`
24677    pkg=$?
24678    if test $pkg = 0; then
24679       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24680       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24681
24682
24683       TRAY_MONITOR_DIR=src/tray-monitor
24684       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24685       pkg=$?
24686       if test $pkg = 0; then
24687
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_GTK_2_4 1
24690 _ACEOF
24691
24692       fi
24693    fi
24694 fi
24695
24696
24697 # Check whether --enable-smartalloc was given.
24698 if test "${enable_smartalloc+set}" = set; then
24699   enableval=$enable_smartalloc;
24700        if test x$enableval = xno; then
24701           support_smartalloc=no
24702        fi
24703
24704
24705 fi
24706
24707
24708 if test x$support_smartalloc = xyes; then
24709
24710 cat >>confdefs.h <<\_ACEOF
24711 #define SMARTALLOC 1
24712 _ACEOF
24713
24714 fi
24715
24716 # Check whether --enable-lockmgr was given.
24717 if test "${enable_lockmgr+set}" = set; then
24718   enableval=$enable_lockmgr;
24719        if test x$enableval = xyes; then
24720           support_lockmgr=yes
24721        fi
24722
24723
24724 fi
24725
24726
24727 if test x$support_lockmgr = xyes; then
24728
24729 cat >>confdefs.h <<\_ACEOF
24730 #define _USE_LOCKMGR 1
24731 _ACEOF
24732
24733 fi
24734
24735
24736 # Check whether --enable-static-tools was given.
24737 if test "${enable_static_tools+set}" = set; then
24738   enableval=$enable_static_tools;
24739        if test x$enableval = xyes; then
24740           if test x$use_libtool = xyes; then
24741              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24742   please rerun configure with --disable-libtool" >&5
24743 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24744   please rerun configure with --disable-libtool" >&2;}
24745    { (exit 1); exit 1; }; }
24746           fi
24747           support_static_tools=yes
24748        fi
24749
24750
24751 fi
24752
24753
24754 TTOOL_LDFLAGS=
24755 if test x$support_static_tools = xyes; then
24756    TTOOL_LDFLAGS="-static"
24757 fi
24758
24759
24760 # Check whether --enable-static-fd was given.
24761 if test "${enable_static_fd+set}" = set; then
24762   enableval=$enable_static_fd;
24763        if test x$enableval = xyes; then
24764           if test x$use_libtool = xyes; then
24765              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24766   please rerun configure with --disable-libtool" >&5
24767 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24768   please rerun configure with --disable-libtool" >&2;}
24769    { (exit 1); exit 1; }; }
24770           fi
24771           support_static_fd=yes
24772        fi
24773
24774
24775 fi
24776
24777
24778 STATIC_FD=
24779 if test x$support_static_fd = xyes; then
24780    STATIC_FD="static-bacula-fd"
24781 fi
24782
24783
24784 # Check whether --enable-static-sd was given.
24785 if test "${enable_static_sd+set}" = set; then
24786   enableval=$enable_static_sd;
24787        if test x$enableval = xyes; then
24788           if test x$use_libtool = xyes; then
24789              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24790   please rerun configure with --disable-libtool" >&5
24791 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24792   please rerun configure with --disable-libtool" >&2;}
24793    { (exit 1); exit 1; }; }
24794           fi
24795           support_static_sd=yes
24796        fi
24797
24798
24799 fi
24800
24801
24802 STATIC_SD=
24803 if test x$support_static_sd = xyes; then
24804    STATIC_SD="static-bacula-sd"
24805 fi
24806
24807
24808 # Check whether --enable-static-dir was given.
24809 if test "${enable_static_dir+set}" = set; then
24810   enableval=$enable_static_dir;
24811        if test x$enableval = xyes; then
24812           if test x$use_libtool = xyes; then
24813              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24814   please rerun configure with --disable-libtool" >&5
24815 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24816   please rerun configure with --disable-libtool" >&2;}
24817    { (exit 1); exit 1; }; }
24818           fi
24819           support_static_dir=yes
24820        fi
24821
24822
24823 fi
24824
24825
24826 STATIC_DIR=
24827 if test x$support_static_dir = xyes; then
24828    STATIC_DIR="static-bacula-dir"
24829 fi
24830
24831
24832 # Check whether --enable-static-cons was given.
24833 if test "${enable_static_cons+set}" = set; then
24834   enableval=$enable_static_cons;
24835        if test x$enableval = xyes; then
24836           if test x$use_libtool = xyes; then
24837              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24838   please rerun configure with --disable-libtool" >&5
24839 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24840   please rerun configure with --disable-libtool" >&2;}
24841    { (exit 1); exit 1; }; }
24842           fi
24843           support_static_cons=yes
24844        fi
24845
24846
24847 fi
24848
24849
24850 STATIC_CONS=
24851 STATIC_GNOME_CONS=
24852 STATIC_WX_CONS=
24853 if test x$support_static_cons = xyes; then
24854    STATIC_CONS="static-bconsole"
24855    STATIC_GNOME_CONS="static-bgnome-console"
24856    STATIC_WX_CONS="static-bwx-console"
24857 fi
24858
24859
24860
24861
24862 # Check whether --enable-client-only was given.
24863 if test "${enable_client_only+set}" = set; then
24864   enableval=$enable_client_only;
24865        if test x$enableval = xyes; then
24866           build_client_only=yes
24867           db_type=None
24868           DB_TYPE=none
24869        fi
24870
24871
24872 fi
24873
24874 if test x$build_client_only = xno; then
24875    ALL_DIRS="subdirs"
24876 else
24877    ALL_DIRS=""
24878 fi
24879
24880
24881 # Check whether --enable-build-dird was given.
24882 if test "${enable_build_dird+set}" = set; then
24883   enableval=$enable_build_dird;
24884        if test x$enableval = xno; then
24885           build_dird=no
24886        fi
24887
24888
24889 fi
24890
24891 if test x$build_dird = xyes; then
24892    DIRD_DIR="src/dird"
24893    DIR_TOOLS="DIRTOOLS"
24894 else
24895    DIRD_DIR=""
24896    DIR_TOOLS="NODIRTOOLS"
24897 fi
24898
24899
24900
24901 # Check whether --enable-build-stored was given.
24902 if test "${enable_build_stored+set}" = set; then
24903   enableval=$enable_build_stored;
24904       if test x$enableval = xno; then
24905          build_stored=no
24906       fi
24907
24908
24909 fi
24910
24911 if test x$build_stored = xyes; then
24912    STORED_DIR="src/stored"
24913 else
24914    STORED_DIR=""
24915 fi
24916
24917
24918 # Check whether --enable-conio was given.
24919 if test "${enable_conio+set}" = set; then
24920   enableval=$enable_conio;
24921        if test x$enableval = xno; then
24922           support_conio=no
24923        fi
24924
24925
24926 fi
24927
24928
24929
24930 support_ipv6=yes
24931 # Check whether --enable-ipv6 was given.
24932 if test "${enable_ipv6+set}" = set; then
24933   enableval=$enable_ipv6;
24934        if test x$enableval = xno; then
24935           support_ipv6=no
24936        fi
24937
24938
24939 fi
24940
24941
24942 if test x$support_ipv6 = xyes; then
24943     cat >conftest.$ac_ext <<_ACEOF
24944 /* confdefs.h.  */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h.  */
24949  #include <sys/types.h>
24950 #include <sys/socket.h>
24951 #include <netinet/in.h>
24952 int
24953 main ()
24954 {
24955 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24956   ;
24957   return 0;
24958 }
24959 _ACEOF
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (ac_try="$ac_link"
24962 case "(($ac_try" in
24963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964   *) ac_try_echo=$ac_try;;
24965 esac
24966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24967 $as_echo "$ac_try_echo") >&5
24968   (eval "$ac_link") 2>conftest.er1
24969   ac_status=$?
24970   grep -v '^ *+' conftest.er1 >conftest.err
24971   rm -f conftest.er1
24972   cat conftest.err >&5
24973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } && {
24975          test -z "$ac_c_werror_flag" ||
24976          test ! -s conftest.err
24977        } && test -s conftest$ac_exeext && {
24978          test "$cross_compiling" = yes ||
24979          $as_test_x conftest$ac_exeext
24980        }; then
24981   support_ipv6=yes
24982 else
24983   $as_echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986         support_ipv6=no
24987 fi
24988
24989 rm -rf conftest.dSYM
24990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24991       conftest$ac_exeext conftest.$ac_ext
24992 fi
24993
24994 if test x$support_ipv6 = xyes; then
24995
24996 cat >>confdefs.h <<\_ACEOF
24997 #define HAVE_IPV6 1
24998 _ACEOF
24999
25000 fi
25001
25002 TERM_LIB=""
25003 if test "${ac_cv_header_curses_h+set}" = set; then
25004   { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25005 $as_echo_n "checking for curses.h... " >&6; }
25006 if test "${ac_cv_header_curses_h+set}" = set; then
25007   $as_echo_n "(cached) " >&6
25008 fi
25009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25010 $as_echo "$ac_cv_header_curses_h" >&6; }
25011 else
25012   # Is the header compilable?
25013 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25014 $as_echo_n "checking curses.h usability... " >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 $ac_includes_default
25022 #include <curses.h>
25023 _ACEOF
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028   *) ac_try_echo=$ac_try;;
25029 esac
25030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032   (eval "$ac_compile") 2>conftest.er1
25033   ac_status=$?
25034   grep -v '^ *+' conftest.er1 >conftest.err
25035   rm -f conftest.er1
25036   cat conftest.err >&5
25037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); } && {
25039          test -z "$ac_c_werror_flag" ||
25040          test ! -s conftest.err
25041        } && test -s conftest.$ac_objext; then
25042   ac_header_compiler=yes
25043 else
25044   $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047         ac_header_compiler=no
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25052 $as_echo "$ac_header_compiler" >&6; }
25053
25054 # Is the header present?
25055 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25056 $as_echo_n "checking curses.h presence... " >&6; }
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h.  */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h.  */
25063 #include <curses.h>
25064 _ACEOF
25065 if { (ac_try="$ac_cpp conftest.$ac_ext"
25066 case "(($ac_try" in
25067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068   *) ac_try_echo=$ac_try;;
25069 esac
25070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25071 $as_echo "$ac_try_echo") >&5
25072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25073   ac_status=$?
25074   grep -v '^ *+' conftest.er1 >conftest.err
25075   rm -f conftest.er1
25076   cat conftest.err >&5
25077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); } >/dev/null && {
25079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080          test ! -s conftest.err
25081        }; then
25082   ac_header_preproc=yes
25083 else
25084   $as_echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25086
25087   ac_header_preproc=no
25088 fi
25089
25090 rm -f conftest.err conftest.$ac_ext
25091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 $as_echo "$ac_header_preproc" >&6; }
25093
25094 # So?  What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25096   yes:no: )
25097     { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25098 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25099     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25100 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25101     ac_header_preproc=yes
25102     ;;
25103   no:yes:* )
25104     { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25105 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25106     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
25107 $as_echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
25108     { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25109 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25110     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
25111 $as_echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25112     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25113 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25114     { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25115 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25116
25117     ;;
25118 esac
25119 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25120 $as_echo_n "checking for curses.h... " >&6; }
25121 if test "${ac_cv_header_curses_h+set}" = set; then
25122   $as_echo_n "(cached) " >&6
25123 else
25124   ac_cv_header_curses_h=$ac_header_preproc
25125 fi
25126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25127 $as_echo "$ac_cv_header_curses_h" >&6; }
25128
25129 fi
25130 if test "x$ac_cv_header_curses_h" = x""yes; then
25131    { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25132 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25133 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25134   $as_echo_n "(cached) " >&6
25135 else
25136   ac_check_lib_save_LIBS=$LIBS
25137 LIBS="-lncurses  $LIBS"
25138 cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144
25145 /* Override any GCC internal prototype to avoid an error.
25146    Use char because int might match the return type of a GCC
25147    builtin and then its argument prototype would still apply.  */
25148 #ifdef __cplusplus
25149 extern "C"
25150 #endif
25151 char tgetent ();
25152 int
25153 main ()
25154 {
25155 return tgetent ();
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 rm -f conftest.$ac_objext conftest$ac_exeext
25161 if { (ac_try="$ac_link"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168   (eval "$ac_link") 2>conftest.er1
25169   ac_status=$?
25170   grep -v '^ *+' conftest.er1 >conftest.err
25171   rm -f conftest.er1
25172   cat conftest.err >&5
25173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } && {
25175          test -z "$ac_c_werror_flag" ||
25176          test ! -s conftest.err
25177        } && test -s conftest$ac_exeext && {
25178          test "$cross_compiling" = yes ||
25179          $as_test_x conftest$ac_exeext
25180        }; then
25181   ac_cv_lib_ncurses_tgetent=yes
25182 else
25183   $as_echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186         ac_cv_lib_ncurses_tgetent=no
25187 fi
25188
25189 rm -rf conftest.dSYM
25190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25191       conftest$ac_exeext conftest.$ac_ext
25192 LIBS=$ac_check_lib_save_LIBS
25193 fi
25194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25195 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25196 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25197    TERM_LIB="-lncurses"
25198 else
25199    { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25200 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25201 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25202   $as_echo_n "(cached) " >&6
25203 else
25204   ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-ltermcap  $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212
25213 /* Override any GCC internal prototype to avoid an error.
25214    Use char because int might match the return type of a GCC
25215    builtin and then its argument prototype would still apply.  */
25216 #ifdef __cplusplus
25217 extern "C"
25218 #endif
25219 char tgetent ();
25220 int
25221 main ()
25222 {
25223 return tgetent ();
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232   *) ac_try_echo=$ac_try;;
25233 esac
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236   (eval "$ac_link") 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } && {
25243          test -z "$ac_c_werror_flag" ||
25244          test ! -s conftest.err
25245        } && test -s conftest$ac_exeext && {
25246          test "$cross_compiling" = yes ||
25247          $as_test_x conftest$ac_exeext
25248        }; then
25249   ac_cv_lib_termcap_tgetent=yes
25250 else
25251   $as_echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254         ac_cv_lib_termcap_tgetent=no
25255 fi
25256
25257 rm -rf conftest.dSYM
25258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25259       conftest$ac_exeext conftest.$ac_ext
25260 LIBS=$ac_check_lib_save_LIBS
25261 fi
25262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25263 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25264 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25265    TERM_LIB="-ltermcap"
25266 fi
25267
25268
25269 fi
25270
25271
25272 else
25273
25274 for ac_header in curses.h
25275 do
25276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25278   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25279 $as_echo_n "checking for $ac_header... " >&6; }
25280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25281   $as_echo_n "(cached) " >&6
25282 fi
25283 ac_res=`eval 'as_val=${'$as_ac_Header'}
25284                  $as_echo "$as_val"'`
25285                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25286 $as_echo "$ac_res" >&6; }
25287 else
25288   # Is the header compilable?
25289 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25290 $as_echo_n "checking $ac_header usability... " >&6; }
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297 $ac_includes_default
25298 #include <$ac_header>
25299 _ACEOF
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304   *) ac_try_echo=$ac_try;;
25305 esac
25306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25307 $as_echo "$ac_try_echo") >&5
25308   (eval "$ac_compile") 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && {
25315          test -z "$ac_c_werror_flag" ||
25316          test ! -s conftest.err
25317        } && test -s conftest.$ac_objext; then
25318   ac_header_compiler=yes
25319 else
25320   $as_echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25322
25323         ac_header_compiler=no
25324 fi
25325
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25328 $as_echo "$ac_header_compiler" >&6; }
25329
25330 # Is the header present?
25331 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25332 $as_echo_n "checking $ac_header presence... " >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h.  */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h.  */
25339 #include <$ac_header>
25340 _ACEOF
25341 if { (ac_try="$ac_cpp conftest.$ac_ext"
25342 case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25347 $as_echo "$ac_try_echo") >&5
25348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } >/dev/null && {
25355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25356          test ! -s conftest.err
25357        }; then
25358   ac_header_preproc=yes
25359 else
25360   $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363   ac_header_preproc=no
25364 fi
25365
25366 rm -f conftest.err conftest.$ac_ext
25367 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25368 $as_echo "$ac_header_preproc" >&6; }
25369
25370 # So?  What about this header?
25371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25372   yes:no: )
25373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25374 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25377     ac_header_preproc=yes
25378     ;;
25379   no:yes:* )
25380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25381 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25383 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25387 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25391 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25392
25393     ;;
25394 esac
25395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25396 $as_echo_n "checking for $ac_header... " >&6; }
25397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25398   $as_echo_n "(cached) " >&6
25399 else
25400   eval "$as_ac_Header=\$ac_header_preproc"
25401 fi
25402 ac_res=`eval 'as_val=${'$as_ac_Header'}
25403                  $as_echo "$as_val"'`
25404                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25405 $as_echo "$ac_res" >&6; }
25406
25407 fi
25408 as_val=`eval 'as_val=${'$as_ac_Header'}
25409                  $as_echo "$as_val"'`
25410    if test "x$as_val" = x""yes; then
25411   cat >>confdefs.h <<_ACEOF
25412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25413 _ACEOF
25414
25415 fi
25416
25417 done
25418
25419      if test "${ac_cv_header_term_h+set}" = set; then
25420   { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25421 $as_echo_n "checking for term.h... " >&6; }
25422 if test "${ac_cv_header_term_h+set}" = set; then
25423   $as_echo_n "(cached) " >&6
25424 fi
25425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25426 $as_echo "$ac_cv_header_term_h" >&6; }
25427 else
25428   # Is the header compilable?
25429 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25430 $as_echo_n "checking term.h usability... " >&6; }
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437 $ac_includes_default
25438 #include <term.h>
25439 _ACEOF
25440 rm -f conftest.$ac_objext
25441 if { (ac_try="$ac_compile"
25442 case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25447 $as_echo "$ac_try_echo") >&5
25448   (eval "$ac_compile") 2>conftest.er1
25449   ac_status=$?
25450   grep -v '^ *+' conftest.er1 >conftest.err
25451   rm -f conftest.er1
25452   cat conftest.err >&5
25453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); } && {
25455          test -z "$ac_c_werror_flag" ||
25456          test ! -s conftest.err
25457        } && test -s conftest.$ac_objext; then
25458   ac_header_compiler=yes
25459 else
25460   $as_echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463         ac_header_compiler=no
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 $as_echo "$ac_header_compiler" >&6; }
25469
25470 # Is the header present?
25471 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25472 $as_echo_n "checking term.h presence... " >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 #include <term.h>
25480 _ACEOF
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25487 $as_echo "$ac_try_echo") >&5
25488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25489   ac_status=$?
25490   grep -v '^ *+' conftest.er1 >conftest.err
25491   rm -f conftest.er1
25492   cat conftest.err >&5
25493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } >/dev/null && {
25495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496          test ! -s conftest.err
25497        }; then
25498   ac_header_preproc=yes
25499 else
25500   $as_echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503   ac_header_preproc=no
25504 fi
25505
25506 rm -f conftest.err conftest.$ac_ext
25507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 $as_echo "$ac_header_preproc" >&6; }
25509
25510 # So?  What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512   yes:no: )
25513     { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25516 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25517     ac_header_preproc=yes
25518     ;;
25519   no:yes:* )
25520     { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25521 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25522     { $as_echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
25523 $as_echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
25524     { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25525 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25526     { $as_echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
25527 $as_echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25528     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25529 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25530     { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25531 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25532
25533     ;;
25534 esac
25535 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25536 $as_echo_n "checking for term.h... " >&6; }
25537 if test "${ac_cv_header_term_h+set}" = set; then
25538   $as_echo_n "(cached) " >&6
25539 else
25540   ac_cv_header_term_h=$ac_header_preproc
25541 fi
25542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25543 $as_echo "$ac_cv_header_term_h" >&6; }
25544
25545 fi
25546 if test "x$ac_cv_header_term_h" = x""yes; then
25547    { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25548 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25549 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25550   $as_echo_n "(cached) " >&6
25551 else
25552   ac_check_lib_save_LIBS=$LIBS
25553 LIBS="-lcurses  $LIBS"
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560
25561 /* Override any GCC internal prototype to avoid an error.
25562    Use char because int might match the return type of a GCC
25563    builtin and then its argument prototype would still apply.  */
25564 #ifdef __cplusplus
25565 extern "C"
25566 #endif
25567 char tgetent ();
25568 int
25569 main ()
25570 {
25571 return tgetent ();
25572   ;
25573   return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext conftest$ac_exeext
25577 if { (ac_try="$ac_link"
25578 case "(($ac_try" in
25579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580   *) ac_try_echo=$ac_try;;
25581 esac
25582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25583 $as_echo "$ac_try_echo") >&5
25584   (eval "$ac_link") 2>conftest.er1
25585   ac_status=$?
25586   grep -v '^ *+' conftest.er1 >conftest.err
25587   rm -f conftest.er1
25588   cat conftest.err >&5
25589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); } && {
25591          test -z "$ac_c_werror_flag" ||
25592          test ! -s conftest.err
25593        } && test -s conftest$ac_exeext && {
25594          test "$cross_compiling" = yes ||
25595          $as_test_x conftest$ac_exeext
25596        }; then
25597   ac_cv_lib_curses_tgetent=yes
25598 else
25599   $as_echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602         ac_cv_lib_curses_tgetent=no
25603 fi
25604
25605 rm -rf conftest.dSYM
25606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25607       conftest$ac_exeext conftest.$ac_ext
25608 LIBS=$ac_check_lib_save_LIBS
25609 fi
25610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25611 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25612 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25613    TERM_LIB="-lcurses"
25614 fi
25615
25616
25617 fi
25618
25619
25620
25621 fi
25622
25623
25624
25625
25626 got_conio="no"
25627 if test x$support_conio = xyes; then
25628    if test x$TERM_LIB != x; then
25629       CONS_LIBS=$TERM_LIB
25630       CONS_OBJ="conio.o"
25631       CONS_SRC="conio.c"
25632       got_conio="yes"
25633       support_readline=no
25634
25635 cat >>confdefs.h <<\_ACEOF
25636 #define HAVE_CONIO 1
25637 _ACEOF
25638
25639    else
25640       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25641    fi
25642 fi
25643
25644
25645 # Check whether --enable-readline was given.
25646 if test "${enable_readline+set}" = set; then
25647   enableval=$enable_readline;
25648        if test x$enableval = xno; then
25649           support_readline=no
25650        fi
25651
25652
25653 fi
25654
25655 if test x$TERM_LIB = x ; then
25656    support_readline=no
25657 fi
25658
25659 got_readline="no"
25660 READLINE_SRC=
25661 if test x$support_readline = xyes; then
25662
25663 # Check whether --with-readline was given.
25664 if test "${with_readline+set}" = set; then
25665   withval=$with_readline;
25666           case "$with_readline" in
25667           no)
25668              :
25669              ;;
25670           yes|*)
25671              if test -f ${with_readline}/readline.h; then
25672                 CONS_INC="-I${with_readline}"
25673                 CONS_LDFLAGS="-L$with_readline"
25674              elif test -f ${with_readline}/include/readline/readline.h; then
25675                 CONS_INC="-I${with_readline}/include/readline"
25676                 CONS_LDFLAGS="-L${with_readline}/lib"
25677                 with_readline="${with_readline}/include/readline"
25678              else
25679                 with_readline="/usr/include/readline"
25680              fi
25681
25682              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25684   { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25685 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25687   $as_echo_n "(cached) " >&6
25688 fi
25689 ac_res=`eval 'as_val=${'$as_ac_Header'}
25690                  $as_echo "$as_val"'`
25691                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25692 $as_echo "$ac_res" >&6; }
25693 else
25694   # Is the header compilable?
25695 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25696 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25697 cat >conftest.$ac_ext <<_ACEOF
25698 /* confdefs.h.  */
25699 _ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h.  */
25703 $ac_includes_default
25704 #include <${with_readline}/readline.h>
25705 _ACEOF
25706 rm -f conftest.$ac_objext
25707 if { (ac_try="$ac_compile"
25708 case "(($ac_try" in
25709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710   *) ac_try_echo=$ac_try;;
25711 esac
25712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25713 $as_echo "$ac_try_echo") >&5
25714   (eval "$ac_compile") 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } && {
25721          test -z "$ac_c_werror_flag" ||
25722          test ! -s conftest.err
25723        } && test -s conftest.$ac_objext; then
25724   ac_header_compiler=yes
25725 else
25726   $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729         ac_header_compiler=no
25730 fi
25731
25732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25734 $as_echo "$ac_header_compiler" >&6; }
25735
25736 # Is the header present?
25737 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25738 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745 #include <${with_readline}/readline.h>
25746 _ACEOF
25747 if { (ac_try="$ac_cpp conftest.$ac_ext"
25748 case "(($ac_try" in
25749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750   *) ac_try_echo=$ac_try;;
25751 esac
25752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25753 $as_echo "$ac_try_echo") >&5
25754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } >/dev/null && {
25761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25762          test ! -s conftest.err
25763        }; then
25764   ac_header_preproc=yes
25765 else
25766   $as_echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769   ac_header_preproc=no
25770 fi
25771
25772 rm -f conftest.err conftest.$ac_ext
25773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25774 $as_echo "$ac_header_preproc" >&6; }
25775
25776 # So?  What about this header?
25777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25778   yes:no: )
25779     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25780 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25781     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25782 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25783     ac_header_preproc=yes
25784     ;;
25785   no:yes:* )
25786     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25787 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25788     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25789 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25790     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25791 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25792     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25793 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25794     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25795 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25796     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25797 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25798
25799     ;;
25800 esac
25801 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25802 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25804   $as_echo_n "(cached) " >&6
25805 else
25806   eval "$as_ac_Header=\$ac_header_preproc"
25807 fi
25808 ac_res=`eval 'as_val=${'$as_ac_Header'}
25809                  $as_echo "$as_val"'`
25810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25811 $as_echo "$ac_res" >&6; }
25812
25813 fi
25814 as_val=`eval 'as_val=${'$as_ac_Header'}
25815                  $as_echo "$as_val"'`
25816    if test "x$as_val" = x""yes; then
25817
25818
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_READLINE 1
25821 _ACEOF
25822
25823                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25824                     got_readline="yes"
25825
25826 else
25827
25828                     echo " "
25829                     echo "readline.h not found. readline turned off ..."
25830                     echo " "
25831
25832
25833 fi
25834
25835
25836              ;;
25837           esac
25838
25839 else
25840
25841                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25842   { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25843 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25844 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25845   $as_echo_n "(cached) " >&6
25846 fi
25847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25848 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25849 else
25850   # Is the header compilable?
25851 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25852 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859 $ac_includes_default
25860 #include </usr/include/readline/readline.h>
25861 _ACEOF
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25869 $as_echo "$ac_try_echo") >&5
25870   (eval "$ac_compile") 2>conftest.er1
25871   ac_status=$?
25872   grep -v '^ *+' conftest.er1 >conftest.err
25873   rm -f conftest.er1
25874   cat conftest.err >&5
25875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); } && {
25877          test -z "$ac_c_werror_flag" ||
25878          test ! -s conftest.err
25879        } && test -s conftest.$ac_objext; then
25880   ac_header_compiler=yes
25881 else
25882   $as_echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885         ac_header_compiler=no
25886 fi
25887
25888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25890 $as_echo "$ac_header_compiler" >&6; }
25891
25892 # Is the header present?
25893 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25894 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25895 cat >conftest.$ac_ext <<_ACEOF
25896 /* confdefs.h.  */
25897 _ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h.  */
25901 #include </usr/include/readline/readline.h>
25902 _ACEOF
25903 if { (ac_try="$ac_cpp conftest.$ac_ext"
25904 case "(($ac_try" in
25905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906   *) ac_try_echo=$ac_try;;
25907 esac
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } >/dev/null && {
25917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25918          test ! -s conftest.err
25919        }; then
25920   ac_header_preproc=yes
25921 else
25922   $as_echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.$ac_ext >&5
25924
25925   ac_header_preproc=no
25926 fi
25927
25928 rm -f conftest.err conftest.$ac_ext
25929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25930 $as_echo "$ac_header_preproc" >&6; }
25931
25932 # So?  What about this header?
25933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25934   yes:no: )
25935     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25936 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25937     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25938 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25939     ac_header_preproc=yes
25940     ;;
25941   no:yes:* )
25942     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25943 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25944     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25945 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25946     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25947 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25948     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25949 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25950     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25951 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25952     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25953 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25954
25955     ;;
25956 esac
25957 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25958 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25959 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25960   $as_echo_n "(cached) " >&6
25961 else
25962   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25963 fi
25964 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25965 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25966
25967 fi
25968 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
25969
25970
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_READLINE 1
25973 _ACEOF
25974
25975                 got_readline="yes"
25976                 CONS_INC="-I/usr/include/readline"
25977                 CONS_LIBS="-lreadline $TERM_LIB"
25978
25979 else
25980
25981                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25983   { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25984 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
25985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25986   $as_echo_n "(cached) " >&6
25987 fi
25988 ac_res=`eval 'as_val=${'$as_ac_Header'}
25989                  $as_echo "$as_val"'`
25990                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25991 $as_echo "$ac_res" >&6; }
25992 else
25993   # Is the header compilable?
25994 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25995 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
25996 cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 $ac_includes_default
26003 #include <${TOP_DIR}/depkgs/readline/readline.h>
26004 _ACEOF
26005 rm -f conftest.$ac_objext
26006 if { (ac_try="$ac_compile"
26007 case "(($ac_try" in
26008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009   *) ac_try_echo=$ac_try;;
26010 esac
26011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26012 $as_echo "$ac_try_echo") >&5
26013   (eval "$ac_compile") 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } && {
26020          test -z "$ac_c_werror_flag" ||
26021          test ! -s conftest.err
26022        } && test -s conftest.$ac_objext; then
26023   ac_header_compiler=yes
26024 else
26025   $as_echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028         ac_header_compiler=no
26029 fi
26030
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26033 $as_echo "$ac_header_compiler" >&6; }
26034
26035 # Is the header present?
26036 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26037 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26038 cat >conftest.$ac_ext <<_ACEOF
26039 /* confdefs.h.  */
26040 _ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h.  */
26044 #include <${TOP_DIR}/depkgs/readline/readline.h>
26045 _ACEOF
26046 if { (ac_try="$ac_cpp conftest.$ac_ext"
26047 case "(($ac_try" in
26048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049   *) ac_try_echo=$ac_try;;
26050 esac
26051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26052 $as_echo "$ac_try_echo") >&5
26053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } >/dev/null && {
26060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26061          test ! -s conftest.err
26062        }; then
26063   ac_header_preproc=yes
26064 else
26065   $as_echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068   ac_header_preproc=no
26069 fi
26070
26071 rm -f conftest.err conftest.$ac_ext
26072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26073 $as_echo "$ac_header_preproc" >&6; }
26074
26075 # So?  What about this header?
26076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26077   yes:no: )
26078     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26079 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26080     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26081 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26082     ac_header_preproc=yes
26083     ;;
26084   no:yes:* )
26085     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26086 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26087     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
26088 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
26089     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26090 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26091     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
26092 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26093     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26094 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26095     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26096 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26097
26098     ;;
26099 esac
26100 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26101 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   $as_echo_n "(cached) " >&6
26104 else
26105   eval "$as_ac_Header=\$ac_header_preproc"
26106 fi
26107 ac_res=`eval 'as_val=${'$as_ac_Header'}
26108                  $as_echo "$as_val"'`
26109                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26110 $as_echo "$ac_res" >&6; }
26111
26112 fi
26113 as_val=`eval 'as_val=${'$as_ac_Header'}
26114                  $as_echo "$as_val"'`
26115    if test "x$as_val" = x""yes; then
26116
26117
26118 cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_READLINE 1
26120 _ACEOF
26121
26122                         got_readline="yes"
26123                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
26124                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26125                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26126                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26127
26128 else
26129
26130                         echo " "
26131                         echo "readline.h not found. readline turned off ..."
26132                         echo " "
26133
26134
26135 fi
26136
26137
26138
26139
26140 fi
26141
26142
26143
26144
26145 fi
26146
26147 fi
26148
26149
26150
26151
26152
26153
26154
26155
26156 MAKE_SHELL=/bin/sh
26157
26158 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26159 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26160 if test "${ac_cv_header_stat_broken+set}" = set; then
26161   $as_echo_n "(cached) " >&6
26162 else
26163   cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 #include <sys/types.h>
26170 #include <sys/stat.h>
26171
26172 #if defined S_ISBLK && defined S_IFDIR
26173 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26174 #endif
26175
26176 #if defined S_ISBLK && defined S_IFCHR
26177 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26178 #endif
26179
26180 #if defined S_ISLNK && defined S_IFREG
26181 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26182 #endif
26183
26184 #if defined S_ISSOCK && defined S_IFREG
26185 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26186 #endif
26187
26188 _ACEOF
26189 rm -f conftest.$ac_objext
26190 if { (ac_try="$ac_compile"
26191 case "(($ac_try" in
26192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193   *) ac_try_echo=$ac_try;;
26194 esac
26195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26196 $as_echo "$ac_try_echo") >&5
26197   (eval "$ac_compile") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && {
26204          test -z "$ac_c_werror_flag" ||
26205          test ! -s conftest.err
26206        } && test -s conftest.$ac_objext; then
26207   ac_cv_header_stat_broken=no
26208 else
26209   $as_echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212         ac_cv_header_stat_broken=yes
26213 fi
26214
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 fi
26217 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26218 $as_echo "$ac_cv_header_stat_broken" >&6; }
26219 if test $ac_cv_header_stat_broken = yes; then
26220
26221 cat >>confdefs.h <<\_ACEOF
26222 #define STAT_MACROS_BROKEN 1
26223 _ACEOF
26224
26225 fi
26226
26227
26228
26229
26230
26231
26232 ac_header_dirent=no
26233 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26234   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26235 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26236 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26238   $as_echo_n "(cached) " >&6
26239 else
26240   cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 #include <sys/types.h>
26247 #include <$ac_hdr>
26248
26249 int
26250 main ()
26251 {
26252 if ((DIR *) 0)
26253 return 0;
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266   (eval "$ac_compile") 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } && {
26273          test -z "$ac_c_werror_flag" ||
26274          test ! -s conftest.err
26275        } && test -s conftest.$ac_objext; then
26276   eval "$as_ac_Header=yes"
26277 else
26278   $as_echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281         eval "$as_ac_Header=no"
26282 fi
26283
26284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26285 fi
26286 ac_res=`eval 'as_val=${'$as_ac_Header'}
26287                  $as_echo "$as_val"'`
26288                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26289 $as_echo "$ac_res" >&6; }
26290 as_val=`eval 'as_val=${'$as_ac_Header'}
26291                  $as_echo "$as_val"'`
26292    if test "x$as_val" = x""yes; then
26293   cat >>confdefs.h <<_ACEOF
26294 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26295 _ACEOF
26296
26297 ac_header_dirent=$ac_hdr; break
26298 fi
26299
26300 done
26301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26302 if test $ac_header_dirent = dirent.h; then
26303   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26304 $as_echo_n "checking for library containing opendir... " >&6; }
26305 if test "${ac_cv_search_opendir+set}" = set; then
26306   $as_echo_n "(cached) " >&6
26307 else
26308   ac_func_search_save_LIBS=$LIBS
26309 cat >conftest.$ac_ext <<_ACEOF
26310 /* confdefs.h.  */
26311 _ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h.  */
26315
26316 /* Override any GCC internal prototype to avoid an error.
26317    Use char because int might match the return type of a GCC
26318    builtin and then its argument prototype would still apply.  */
26319 #ifdef __cplusplus
26320 extern "C"
26321 #endif
26322 char opendir ();
26323 int
26324 main ()
26325 {
26326 return opendir ();
26327   ;
26328   return 0;
26329 }
26330 _ACEOF
26331 for ac_lib in '' dir; do
26332   if test -z "$ac_lib"; then
26333     ac_res="none required"
26334   else
26335     ac_res=-l$ac_lib
26336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26337   fi
26338   rm -f conftest.$ac_objext conftest$ac_exeext
26339 if { (ac_try="$ac_link"
26340 case "(($ac_try" in
26341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342   *) ac_try_echo=$ac_try;;
26343 esac
26344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26345 $as_echo "$ac_try_echo") >&5
26346   (eval "$ac_link") 2>conftest.er1
26347   ac_status=$?
26348   grep -v '^ *+' conftest.er1 >conftest.err
26349   rm -f conftest.er1
26350   cat conftest.err >&5
26351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); } && {
26353          test -z "$ac_c_werror_flag" ||
26354          test ! -s conftest.err
26355        } && test -s conftest$ac_exeext && {
26356          test "$cross_compiling" = yes ||
26357          $as_test_x conftest$ac_exeext
26358        }; then
26359   ac_cv_search_opendir=$ac_res
26360 else
26361   $as_echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364
26365 fi
26366
26367 rm -rf conftest.dSYM
26368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26369       conftest$ac_exeext
26370   if test "${ac_cv_search_opendir+set}" = set; then
26371   break
26372 fi
26373 done
26374 if test "${ac_cv_search_opendir+set}" = set; then
26375   :
26376 else
26377   ac_cv_search_opendir=no
26378 fi
26379 rm conftest.$ac_ext
26380 LIBS=$ac_func_search_save_LIBS
26381 fi
26382 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26383 $as_echo "$ac_cv_search_opendir" >&6; }
26384 ac_res=$ac_cv_search_opendir
26385 if test "$ac_res" != no; then
26386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26387
26388 fi
26389
26390 else
26391   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26392 $as_echo_n "checking for library containing opendir... " >&6; }
26393 if test "${ac_cv_search_opendir+set}" = set; then
26394   $as_echo_n "(cached) " >&6
26395 else
26396   ac_func_search_save_LIBS=$LIBS
26397 cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403
26404 /* Override any GCC internal prototype to avoid an error.
26405    Use char because int might match the return type of a GCC
26406    builtin and then its argument prototype would still apply.  */
26407 #ifdef __cplusplus
26408 extern "C"
26409 #endif
26410 char opendir ();
26411 int
26412 main ()
26413 {
26414 return opendir ();
26415   ;
26416   return 0;
26417 }
26418 _ACEOF
26419 for ac_lib in '' x; do
26420   if test -z "$ac_lib"; then
26421     ac_res="none required"
26422   else
26423     ac_res=-l$ac_lib
26424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26425   fi
26426   rm -f conftest.$ac_objext conftest$ac_exeext
26427 if { (ac_try="$ac_link"
26428 case "(($ac_try" in
26429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26430   *) ac_try_echo=$ac_try;;
26431 esac
26432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26433 $as_echo "$ac_try_echo") >&5
26434   (eval "$ac_link") 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && {
26441          test -z "$ac_c_werror_flag" ||
26442          test ! -s conftest.err
26443        } && test -s conftest$ac_exeext && {
26444          test "$cross_compiling" = yes ||
26445          $as_test_x conftest$ac_exeext
26446        }; then
26447   ac_cv_search_opendir=$ac_res
26448 else
26449   $as_echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26451
26452
26453 fi
26454
26455 rm -rf conftest.dSYM
26456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26457       conftest$ac_exeext
26458   if test "${ac_cv_search_opendir+set}" = set; then
26459   break
26460 fi
26461 done
26462 if test "${ac_cv_search_opendir+set}" = set; then
26463   :
26464 else
26465   ac_cv_search_opendir=no
26466 fi
26467 rm conftest.$ac_ext
26468 LIBS=$ac_func_search_save_LIBS
26469 fi
26470 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26471 $as_echo "$ac_cv_search_opendir" >&6; }
26472 ac_res=$ac_cv_search_opendir
26473 if test "$ac_res" != no; then
26474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26475
26476 fi
26477
26478 fi
26479
26480
26481
26482
26483
26484
26485
26486
26487 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26488 do
26489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26490 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26491 $as_echo_n "checking for $ac_func... " >&6; }
26492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26493   $as_echo_n "(cached) " >&6
26494 else
26495   cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h.  */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h.  */
26501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26503 #define $ac_func innocuous_$ac_func
26504
26505 /* System header to define __stub macros and hopefully few prototypes,
26506     which can conflict with char $ac_func (); below.
26507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26508     <limits.h> exists even on freestanding compilers.  */
26509
26510 #ifdef __STDC__
26511 # include <limits.h>
26512 #else
26513 # include <assert.h>
26514 #endif
26515
26516 #undef $ac_func
26517
26518 /* Override any GCC internal prototype to avoid an error.
26519    Use char because int might match the return type of a GCC
26520    builtin and then its argument prototype would still apply.  */
26521 #ifdef __cplusplus
26522 extern "C"
26523 #endif
26524 char $ac_func ();
26525 /* The GNU C library defines this for functions which it implements
26526     to always fail with ENOSYS.  Some functions are actually named
26527     something starting with __ and the normal name is an alias.  */
26528 #if defined __stub_$ac_func || defined __stub___$ac_func
26529 choke me
26530 #endif
26531
26532 int
26533 main ()
26534 {
26535 return $ac_func ();
26536   ;
26537   return 0;
26538 }
26539 _ACEOF
26540 rm -f conftest.$ac_objext conftest$ac_exeext
26541 if { (ac_try="$ac_link"
26542 case "(($ac_try" in
26543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544   *) ac_try_echo=$ac_try;;
26545 esac
26546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26547 $as_echo "$ac_try_echo") >&5
26548   (eval "$ac_link") 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } && {
26555          test -z "$ac_c_werror_flag" ||
26556          test ! -s conftest.err
26557        } && test -s conftest$ac_exeext && {
26558          test "$cross_compiling" = yes ||
26559          $as_test_x conftest$ac_exeext
26560        }; then
26561   eval "$as_ac_var=yes"
26562 else
26563   $as_echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         eval "$as_ac_var=no"
26567 fi
26568
26569 rm -rf conftest.dSYM
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571       conftest$ac_exeext conftest.$ac_ext
26572 fi
26573 ac_res=`eval 'as_val=${'$as_ac_var'}
26574                  $as_echo "$as_val"'`
26575                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26576 $as_echo "$ac_res" >&6; }
26577 as_val=`eval 'as_val=${'$as_ac_var'}
26578                  $as_echo "$as_val"'`
26579    if test "x$as_val" = x""yes; then
26580   cat >>confdefs.h <<_ACEOF
26581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26582 _ACEOF
26583
26584 fi
26585 done
26586
26587
26588
26589 for ac_func in nanosleep nl_langinfo
26590 do
26591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26592 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26593 $as_echo_n "checking for $ac_func... " >&6; }
26594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26595   $as_echo_n "(cached) " >&6
26596 else
26597   cat >conftest.$ac_ext <<_ACEOF
26598 /* confdefs.h.  */
26599 _ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h.  */
26603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26605 #define $ac_func innocuous_$ac_func
26606
26607 /* System header to define __stub macros and hopefully few prototypes,
26608     which can conflict with char $ac_func (); below.
26609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26610     <limits.h> exists even on freestanding compilers.  */
26611
26612 #ifdef __STDC__
26613 # include <limits.h>
26614 #else
26615 # include <assert.h>
26616 #endif
26617
26618 #undef $ac_func
26619
26620 /* Override any GCC internal prototype to avoid an error.
26621    Use char because int might match the return type of a GCC
26622    builtin and then its argument prototype would still apply.  */
26623 #ifdef __cplusplus
26624 extern "C"
26625 #endif
26626 char $ac_func ();
26627 /* The GNU C library defines this for functions which it implements
26628     to always fail with ENOSYS.  Some functions are actually named
26629     something starting with __ and the normal name is an alias.  */
26630 #if defined __stub_$ac_func || defined __stub___$ac_func
26631 choke me
26632 #endif
26633
26634 int
26635 main ()
26636 {
26637 return $ac_func ();
26638   ;
26639   return 0;
26640 }
26641 _ACEOF
26642 rm -f conftest.$ac_objext conftest$ac_exeext
26643 if { (ac_try="$ac_link"
26644 case "(($ac_try" in
26645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646   *) ac_try_echo=$ac_try;;
26647 esac
26648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26649 $as_echo "$ac_try_echo") >&5
26650   (eval "$ac_link") 2>conftest.er1
26651   ac_status=$?
26652   grep -v '^ *+' conftest.er1 >conftest.err
26653   rm -f conftest.er1
26654   cat conftest.err >&5
26655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); } && {
26657          test -z "$ac_c_werror_flag" ||
26658          test ! -s conftest.err
26659        } && test -s conftest$ac_exeext && {
26660          test "$cross_compiling" = yes ||
26661          $as_test_x conftest$ac_exeext
26662        }; then
26663   eval "$as_ac_var=yes"
26664 else
26665   $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668         eval "$as_ac_var=no"
26669 fi
26670
26671 rm -rf conftest.dSYM
26672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26673       conftest$ac_exeext conftest.$ac_ext
26674 fi
26675 ac_res=`eval 'as_val=${'$as_ac_var'}
26676                  $as_echo "$as_val"'`
26677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26678 $as_echo "$ac_res" >&6; }
26679 as_val=`eval 'as_val=${'$as_ac_var'}
26680                  $as_echo "$as_val"'`
26681    if test "x$as_val" = x""yes; then
26682   cat >>confdefs.h <<_ACEOF
26683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26684 _ACEOF
26685
26686 fi
26687 done
26688
26689
26690 for ac_header in varargs.h
26691 do
26692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26695 $as_echo_n "checking for $ac_header... " >&6; }
26696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26697   $as_echo_n "(cached) " >&6
26698 fi
26699 ac_res=`eval 'as_val=${'$as_ac_Header'}
26700                  $as_echo "$as_val"'`
26701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26702 $as_echo "$ac_res" >&6; }
26703 else
26704   # Is the header compilable?
26705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26706 $as_echo_n "checking $ac_header usability... " >&6; }
26707 cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h.  */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h.  */
26713 $ac_includes_default
26714 #include <$ac_header>
26715 _ACEOF
26716 rm -f conftest.$ac_objext
26717 if { (ac_try="$ac_compile"
26718 case "(($ac_try" in
26719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720   *) ac_try_echo=$ac_try;;
26721 esac
26722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26723 $as_echo "$ac_try_echo") >&5
26724   (eval "$ac_compile") 2>conftest.er1
26725   ac_status=$?
26726   grep -v '^ *+' conftest.er1 >conftest.err
26727   rm -f conftest.er1
26728   cat conftest.err >&5
26729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); } && {
26731          test -z "$ac_c_werror_flag" ||
26732          test ! -s conftest.err
26733        } && test -s conftest.$ac_objext; then
26734   ac_header_compiler=yes
26735 else
26736   $as_echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26738
26739         ac_header_compiler=no
26740 fi
26741
26742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26744 $as_echo "$ac_header_compiler" >&6; }
26745
26746 # Is the header present?
26747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26748 $as_echo_n "checking $ac_header presence... " >&6; }
26749 cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h.  */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h.  */
26755 #include <$ac_header>
26756 _ACEOF
26757 if { (ac_try="$ac_cpp conftest.$ac_ext"
26758 case "(($ac_try" in
26759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760   *) ac_try_echo=$ac_try;;
26761 esac
26762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763 $as_echo "$ac_try_echo") >&5
26764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } >/dev/null && {
26771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26772          test ! -s conftest.err
26773        }; then
26774   ac_header_preproc=yes
26775 else
26776   $as_echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26778
26779   ac_header_preproc=no
26780 fi
26781
26782 rm -f conftest.err conftest.$ac_ext
26783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26784 $as_echo "$ac_header_preproc" >&6; }
26785
26786 # So?  What about this header?
26787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26788   yes:no: )
26789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26793     ac_header_preproc=yes
26794     ;;
26795   no:yes:* )
26796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26808
26809     ;;
26810 esac
26811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26812 $as_echo_n "checking for $ac_header... " >&6; }
26813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26814   $as_echo_n "(cached) " >&6
26815 else
26816   eval "$as_ac_Header=\$ac_header_preproc"
26817 fi
26818 ac_res=`eval 'as_val=${'$as_ac_Header'}
26819                  $as_echo "$as_val"'`
26820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26821 $as_echo "$ac_res" >&6; }
26822
26823 fi
26824 as_val=`eval 'as_val=${'$as_ac_Header'}
26825                  $as_echo "$as_val"'`
26826    if test "x$as_val" = x""yes; then
26827   cat >>confdefs.h <<_ACEOF
26828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26829 _ACEOF
26830
26831 fi
26832
26833 done
26834
26835
26836
26837 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26838 $as_echo_n "checking for Python support... " >&6; }
26839
26840 # Check whether --with-python was given.
26841 if test "${with_python+set}" = set; then
26842   withval=$with_python;
26843        PYTHON_INCDIR=
26844        PYTHON_LIBS=
26845        if test "$withval" != "no"; then
26846           if test "$withval" = "yes"; then
26847              if test -e /usr/bin/python-config ; then
26848                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26849                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26850              else
26851                 for python_root in /usr /usr/local /usr/sfw; do
26852                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26853                       if test -f $python_root/include/${ver}/Python.h; then
26854                          PYTHON_INCDIR=-I$python_root/include/${ver}
26855                          if test -d $python_root/lib64/${ver}/config; then
26856                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26857                          else
26858                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26859                          fi
26860                          break
26861                       fi
26862                    done
26863                 done
26864
26865                 if test x$PYTHON_INCDIR = x; then
26866                    if test -f $prefix/include/Python.h; then
26867                       PYTHON_INCDIR=-I$prefix/include
26868                       if test -d $prefix/lib64/config; then
26869                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26870                       else
26871                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26872                       fi
26873                    else
26874                       { $as_echo "$as_me:$LINENO: result: no" >&5
26875 $as_echo "no" >&6; }
26876                       { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26877 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26878    { (exit 1); exit 1; }; }
26879                    fi
26880                 fi
26881              fi
26882           else
26883              if test -e $withval/bin/python-config ; then
26884                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26885                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26886              elif test -f $withval/Python.h; then
26887                 PYTHON_INCDIR=-I$withval
26888                 PYTHON_LIBS="-L$withval/config -lpython"
26889              elif test -f $withval/include/Python.h; then
26890                 PYTHON_INCDIR=-I$withval/include
26891                 if test -d $withval/lib64/config; then
26892                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26893                 else
26894                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26895                 fi
26896              elif test -f $withval/include/python/Python.h; then
26897                 PYTHON_INCDIR=-I$withval/include/python
26898                 if test -d $withval/lib64/python/config; then
26899                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26900                 else
26901                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26902                 fi
26903              else
26904                 { $as_echo "$as_me:$LINENO: result: no" >&5
26905 $as_echo "no" >&6; }
26906                 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26907 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26908    { (exit 1); exit 1; }; }
26909              fi
26910           fi
26911
26912           cat >>confdefs.h <<\_ACEOF
26913 #define HAVE_PYTHON 1
26914 _ACEOF
26915
26916           { $as_echo "$as_me:$LINENO: result: yes" >&5
26917 $as_echo "yes" >&6; }
26918           support_python=yes
26919           { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
26920 $as_echo "$as_me: checking for more Python libs" >&6;}
26921           saved_LIBS="$LIBS"; LIBS=
26922           { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26923 $as_echo_n "checking for library containing shm_open... " >&6; }
26924 if test "${ac_cv_search_shm_open+set}" = set; then
26925   $as_echo_n "(cached) " >&6
26926 else
26927   ac_func_search_save_LIBS=$LIBS
26928 cat >conftest.$ac_ext <<_ACEOF
26929 /* confdefs.h.  */
26930 _ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h.  */
26934
26935 /* Override any GCC internal prototype to avoid an error.
26936    Use char because int might match the return type of a GCC
26937    builtin and then its argument prototype would still apply.  */
26938 #ifdef __cplusplus
26939 extern "C"
26940 #endif
26941 char shm_open ();
26942 int
26943 main ()
26944 {
26945 return shm_open ();
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 for ac_lib in '' rt; do
26951   if test -z "$ac_lib"; then
26952     ac_res="none required"
26953   else
26954     ac_res=-l$ac_lib
26955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26956   fi
26957   rm -f conftest.$ac_objext conftest$ac_exeext
26958 if { (ac_try="$ac_link"
26959 case "(($ac_try" in
26960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26961   *) ac_try_echo=$ac_try;;
26962 esac
26963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26964 $as_echo "$ac_try_echo") >&5
26965   (eval "$ac_link") 2>conftest.er1
26966   ac_status=$?
26967   grep -v '^ *+' conftest.er1 >conftest.err
26968   rm -f conftest.er1
26969   cat conftest.err >&5
26970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); } && {
26972          test -z "$ac_c_werror_flag" ||
26973          test ! -s conftest.err
26974        } && test -s conftest$ac_exeext && {
26975          test "$cross_compiling" = yes ||
26976          $as_test_x conftest$ac_exeext
26977        }; then
26978   ac_cv_search_shm_open=$ac_res
26979 else
26980   $as_echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26982
26983
26984 fi
26985
26986 rm -rf conftest.dSYM
26987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26988       conftest$ac_exeext
26989   if test "${ac_cv_search_shm_open+set}" = set; then
26990   break
26991 fi
26992 done
26993 if test "${ac_cv_search_shm_open+set}" = set; then
26994   :
26995 else
26996   ac_cv_search_shm_open=no
26997 fi
26998 rm conftest.$ac_ext
26999 LIBS=$ac_func_search_save_LIBS
27000 fi
27001 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
27002 $as_echo "$ac_cv_search_shm_open" >&6; }
27003 ac_res=$ac_cv_search_shm_open
27004 if test "$ac_res" != no; then
27005   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27006
27007 fi
27008
27009
27010 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27011 $as_echo_n "checking for openpty in -lutil... " >&6; }
27012 if test "${ac_cv_lib_util_openpty+set}" = set; then
27013   $as_echo_n "(cached) " >&6
27014 else
27015   ac_check_lib_save_LIBS=$LIBS
27016 LIBS="-lutil  $LIBS"
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023
27024 /* Override any GCC internal prototype to avoid an error.
27025    Use char because int might match the return type of a GCC
27026    builtin and then its argument prototype would still apply.  */
27027 #ifdef __cplusplus
27028 extern "C"
27029 #endif
27030 char openpty ();
27031 int
27032 main ()
27033 {
27034 return openpty ();
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043   *) ac_try_echo=$ac_try;;
27044 esac
27045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27046 $as_echo "$ac_try_echo") >&5
27047   (eval "$ac_link") 2>conftest.er1
27048   ac_status=$?
27049   grep -v '^ *+' conftest.er1 >conftest.err
27050   rm -f conftest.er1
27051   cat conftest.err >&5
27052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); } && {
27054          test -z "$ac_c_werror_flag" ||
27055          test ! -s conftest.err
27056        } && test -s conftest$ac_exeext && {
27057          test "$cross_compiling" = yes ||
27058          $as_test_x conftest$ac_exeext
27059        }; then
27060   ac_cv_lib_util_openpty=yes
27061 else
27062   $as_echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27064
27065         ac_cv_lib_util_openpty=no
27066 fi
27067
27068 rm -rf conftest.dSYM
27069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27070       conftest$ac_exeext conftest.$ac_ext
27071 LIBS=$ac_check_lib_save_LIBS
27072 fi
27073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27074 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27075 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27076   cat >>confdefs.h <<_ACEOF
27077 #define HAVE_LIBUTIL 1
27078 _ACEOF
27079
27080   LIBS="-lutil $LIBS"
27081
27082 fi
27083
27084           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27085           LIBS="$saved_LIBS"
27086        else
27087           { $as_echo "$as_me:$LINENO: result: no" >&5
27088 $as_echo "no" >&6; }
27089        fi
27090
27091 else
27092
27093        { $as_echo "$as_me:$LINENO: result: no" >&5
27094 $as_echo "no" >&6; }
27095
27096
27097 fi
27098
27099
27100
27101
27102 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27103 $as_echo_n "checking for socket... " >&6; }
27104 if test "${ac_cv_func_socket+set}" = set; then
27105   $as_echo_n "(cached) " >&6
27106 else
27107   cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27115 #define socket innocuous_socket
27116
27117 /* System header to define __stub macros and hopefully few prototypes,
27118     which can conflict with char socket (); below.
27119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27120     <limits.h> exists even on freestanding compilers.  */
27121
27122 #ifdef __STDC__
27123 # include <limits.h>
27124 #else
27125 # include <assert.h>
27126 #endif
27127
27128 #undef socket
27129
27130 /* Override any GCC internal prototype to avoid an error.
27131    Use char because int might match the return type of a GCC
27132    builtin and then its argument prototype would still apply.  */
27133 #ifdef __cplusplus
27134 extern "C"
27135 #endif
27136 char socket ();
27137 /* The GNU C library defines this for functions which it implements
27138     to always fail with ENOSYS.  Some functions are actually named
27139     something starting with __ and the normal name is an alias.  */
27140 #if defined __stub_socket || defined __stub___socket
27141 choke me
27142 #endif
27143
27144 int
27145 main ()
27146 {
27147 return socket ();
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (ac_try="$ac_link"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27159 $as_echo "$ac_try_echo") >&5
27160   (eval "$ac_link") 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } && {
27167          test -z "$ac_c_werror_flag" ||
27168          test ! -s conftest.err
27169        } && test -s conftest$ac_exeext && {
27170          test "$cross_compiling" = yes ||
27171          $as_test_x conftest$ac_exeext
27172        }; then
27173   ac_cv_func_socket=yes
27174 else
27175   $as_echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27177
27178         ac_cv_func_socket=no
27179 fi
27180
27181 rm -rf conftest.dSYM
27182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27183       conftest$ac_exeext conftest.$ac_ext
27184 fi
27185 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27186 $as_echo "$ac_cv_func_socket" >&6; }
27187 if test "x$ac_cv_func_socket" = x""yes; then
27188   { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27189 $as_echo "using libc's socket" >&6; }
27190 else
27191
27192 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27193 $as_echo_n "checking for socket in -lxnet... " >&6; }
27194 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27195   $as_echo_n "(cached) " >&6
27196 else
27197   ac_check_lib_save_LIBS=$LIBS
27198 LIBS="-lxnet  $LIBS"
27199 cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h.  */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h.  */
27205
27206 /* Override any GCC internal prototype to avoid an error.
27207    Use char because int might match the return type of a GCC
27208    builtin and then its argument prototype would still apply.  */
27209 #ifdef __cplusplus
27210 extern "C"
27211 #endif
27212 char socket ();
27213 int
27214 main ()
27215 {
27216 return socket ();
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 rm -f conftest.$ac_objext conftest$ac_exeext
27222 if { (ac_try="$ac_link"
27223 case "(($ac_try" in
27224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225   *) ac_try_echo=$ac_try;;
27226 esac
27227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27228 $as_echo "$ac_try_echo") >&5
27229   (eval "$ac_link") 2>conftest.er1
27230   ac_status=$?
27231   grep -v '^ *+' conftest.er1 >conftest.err
27232   rm -f conftest.er1
27233   cat conftest.err >&5
27234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); } && {
27236          test -z "$ac_c_werror_flag" ||
27237          test ! -s conftest.err
27238        } && test -s conftest$ac_exeext && {
27239          test "$cross_compiling" = yes ||
27240          $as_test_x conftest$ac_exeext
27241        }; then
27242   ac_cv_lib_xnet_socket=yes
27243 else
27244   $as_echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27246
27247         ac_cv_lib_xnet_socket=no
27248 fi
27249
27250 rm -rf conftest.dSYM
27251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27252       conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27254 fi
27255 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27256 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27257 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27258   cat >>confdefs.h <<_ACEOF
27259 #define HAVE_LIBXNET 1
27260 _ACEOF
27261
27262   LIBS="-lxnet $LIBS"
27263
27264 fi
27265
27266
27267 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27268 $as_echo_n "checking for socket in -lsocket... " >&6; }
27269 if test "${ac_cv_lib_socket_socket+set}" = set; then
27270   $as_echo_n "(cached) " >&6
27271 else
27272   ac_check_lib_save_LIBS=$LIBS
27273 LIBS="-lsocket  $LIBS"
27274 cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280
27281 /* Override any GCC internal prototype to avoid an error.
27282    Use char because int might match the return type of a GCC
27283    builtin and then its argument prototype would still apply.  */
27284 #ifdef __cplusplus
27285 extern "C"
27286 #endif
27287 char socket ();
27288 int
27289 main ()
27290 {
27291 return socket ();
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext conftest$ac_exeext
27297 if { (ac_try="$ac_link"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304   (eval "$ac_link") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest$ac_exeext && {
27314          test "$cross_compiling" = yes ||
27315          $as_test_x conftest$ac_exeext
27316        }; then
27317   ac_cv_lib_socket_socket=yes
27318 else
27319   $as_echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322         ac_cv_lib_socket_socket=no
27323 fi
27324
27325 rm -rf conftest.dSYM
27326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27327       conftest$ac_exeext conftest.$ac_ext
27328 LIBS=$ac_check_lib_save_LIBS
27329 fi
27330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27331 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27332 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27333   cat >>confdefs.h <<_ACEOF
27334 #define HAVE_LIBSOCKET 1
27335 _ACEOF
27336
27337   LIBS="-lsocket $LIBS"
27338
27339 fi
27340
27341
27342 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27343 $as_echo_n "checking for socket in -linet... " >&6; }
27344 if test "${ac_cv_lib_inet_socket+set}" = set; then
27345   $as_echo_n "(cached) " >&6
27346 else
27347   ac_check_lib_save_LIBS=$LIBS
27348 LIBS="-linet  $LIBS"
27349 cat >conftest.$ac_ext <<_ACEOF
27350 /* confdefs.h.  */
27351 _ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h.  */
27355
27356 /* Override any GCC internal prototype to avoid an error.
27357    Use char because int might match the return type of a GCC
27358    builtin and then its argument prototype would still apply.  */
27359 #ifdef __cplusplus
27360 extern "C"
27361 #endif
27362 char socket ();
27363 int
27364 main ()
27365 {
27366 return socket ();
27367   ;
27368   return 0;
27369 }
27370 _ACEOF
27371 rm -f conftest.$ac_objext conftest$ac_exeext
27372 if { (ac_try="$ac_link"
27373 case "(($ac_try" in
27374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375   *) ac_try_echo=$ac_try;;
27376 esac
27377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27378 $as_echo "$ac_try_echo") >&5
27379   (eval "$ac_link") 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } && {
27386          test -z "$ac_c_werror_flag" ||
27387          test ! -s conftest.err
27388        } && test -s conftest$ac_exeext && {
27389          test "$cross_compiling" = yes ||
27390          $as_test_x conftest$ac_exeext
27391        }; then
27392   ac_cv_lib_inet_socket=yes
27393 else
27394   $as_echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27396
27397         ac_cv_lib_inet_socket=no
27398 fi
27399
27400 rm -rf conftest.dSYM
27401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27402       conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27404 fi
27405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27406 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27407 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27408   cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBINET 1
27410 _ACEOF
27411
27412   LIBS="-linet $LIBS"
27413
27414 fi
27415
27416 fi
27417
27418
27419 TCPW_MSG="no"
27420 WRAPLIBS=""
27421
27422 # Check whether --with-tcp-wrappers was given.
27423 if test "${with_tcp_wrappers+set}" = set; then
27424   withval=$with_tcp_wrappers;
27425        if test "x$withval" != "xno" ; then
27426           saved_LIBS="$LIBS"
27427           LIBS="$saved_LIBS -lwrap"
27428           { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27429 $as_echo_n "checking for library containing nanosleep... " >&6; }
27430 if test "${ac_cv_search_nanosleep+set}" = set; then
27431   $as_echo_n "(cached) " >&6
27432 else
27433   ac_func_search_save_LIBS=$LIBS
27434 cat >conftest.$ac_ext <<_ACEOF
27435 /* confdefs.h.  */
27436 _ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h.  */
27440
27441 /* Override any GCC internal prototype to avoid an error.
27442    Use char because int might match the return type of a GCC
27443    builtin and then its argument prototype would still apply.  */
27444 #ifdef __cplusplus
27445 extern "C"
27446 #endif
27447 char nanosleep ();
27448 int
27449 main ()
27450 {
27451 return nanosleep ();
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 for ac_lib in '' rt; do
27457   if test -z "$ac_lib"; then
27458     ac_res="none required"
27459   else
27460     ac_res=-l$ac_lib
27461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27462   fi
27463   rm -f conftest.$ac_objext conftest$ac_exeext
27464 if { (ac_try="$ac_link"
27465 case "(($ac_try" in
27466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467   *) ac_try_echo=$ac_try;;
27468 esac
27469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27470 $as_echo "$ac_try_echo") >&5
27471   (eval "$ac_link") 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } && {
27478          test -z "$ac_c_werror_flag" ||
27479          test ! -s conftest.err
27480        } && test -s conftest$ac_exeext && {
27481          test "$cross_compiling" = yes ||
27482          $as_test_x conftest$ac_exeext
27483        }; then
27484   ac_cv_search_nanosleep=$ac_res
27485 else
27486   $as_echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27488
27489
27490 fi
27491
27492 rm -rf conftest.dSYM
27493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27494       conftest$ac_exeext
27495   if test "${ac_cv_search_nanosleep+set}" = set; then
27496   break
27497 fi
27498 done
27499 if test "${ac_cv_search_nanosleep+set}" = set; then
27500   :
27501 else
27502   ac_cv_search_nanosleep=no
27503 fi
27504 rm conftest.$ac_ext
27505 LIBS=$ac_func_search_save_LIBS
27506 fi
27507 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27508 $as_echo "$ac_cv_search_nanosleep" >&6; }
27509 ac_res=$ac_cv_search_nanosleep
27510 if test "$ac_res" != no; then
27511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27512
27513 fi
27514
27515           { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27516 $as_echo_n "checking for libwrap... " >&6; }
27517           cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523
27524                #include <sys/types.h>
27525                #include <tcpd.h>
27526                int deny_severity = 0;
27527                int allow_severity = 0;
27528                struct request_info *req;
27529
27530 int
27531 main ()
27532 {
27533
27534                 hosts_access(req);
27535
27536   ;
27537   return 0;
27538 }
27539 _ACEOF
27540 rm -f conftest.$ac_objext conftest$ac_exeext
27541 if { (ac_try="$ac_link"
27542 case "(($ac_try" in
27543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544   *) ac_try_echo=$ac_try;;
27545 esac
27546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27547 $as_echo "$ac_try_echo") >&5
27548   (eval "$ac_link") 2>conftest.er1
27549   ac_status=$?
27550   grep -v '^ *+' conftest.er1 >conftest.err
27551   rm -f conftest.er1
27552   cat conftest.err >&5
27553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); } && {
27555          test -z "$ac_c_werror_flag" ||
27556          test ! -s conftest.err
27557        } && test -s conftest$ac_exeext && {
27558          test "$cross_compiling" = yes ||
27559          $as_test_x conftest$ac_exeext
27560        }; then
27561
27562                  { $as_echo "$as_me:$LINENO: result: yes" >&5
27563 $as_echo "yes" >&6; }
27564
27565 cat >>confdefs.h <<\_ACEOF
27566 #define HAVE_LIBWRAP 1
27567 _ACEOF
27568
27569                  TCPW_MSG="yes"
27570                  LIBS="$saved_LIBS"
27571                  WRAPLIBS="-lwrap"
27572
27573 else
27574   $as_echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577
27578                  LIBS="$saved_LIBS -lwrap -lnsl"
27579                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27580                  cat >conftest.$ac_ext <<_ACEOF
27581 /* confdefs.h.  */
27582 _ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h.  */
27586
27587                        #include <sys/types.h>
27588                        #include <tcpd.h>
27589                        int deny_severity = 0;
27590                        int allow_severity = 0;
27591                        struct request_info *req;
27592
27593 int
27594 main ()
27595 {
27596
27597                        hosts_access(req);
27598
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext conftest$ac_exeext
27604 if { (ac_try="$ac_link"
27605 case "(($ac_try" in
27606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607   *) ac_try_echo=$ac_try;;
27608 esac
27609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27610 $as_echo "$ac_try_echo") >&5
27611   (eval "$ac_link") 2>conftest.er1
27612   ac_status=$?
27613   grep -v '^ *+' conftest.er1 >conftest.err
27614   rm -f conftest.er1
27615   cat conftest.err >&5
27616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); } && {
27618          test -z "$ac_c_werror_flag" ||
27619          test ! -s conftest.err
27620        } && test -s conftest$ac_exeext && {
27621          test "$cross_compiling" = yes ||
27622          $as_test_x conftest$ac_exeext
27623        }; then
27624
27625                       { $as_echo "$as_me:$LINENO: result: yes" >&5
27626 $as_echo "yes" >&6; }
27627
27628 cat >>confdefs.h <<\_ACEOF
27629 #define HAVE_LIBWRAP 1
27630 _ACEOF
27631
27632                       TCPW_MSG="yes"
27633                       LIBS="$saved_LIBS"
27634                       WRAPLIBS="-lwrap"
27635
27636 else
27637   $as_echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27639
27640
27641                       { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27642 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27643    { (exit 1); exit 1; }; }
27644
27645
27646 fi
27647
27648 rm -rf conftest.dSYM
27649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27650       conftest$ac_exeext conftest.$ac_ext
27651
27652
27653 fi
27654
27655 rm -rf conftest.dSYM
27656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27657       conftest$ac_exeext conftest.$ac_ext
27658        fi
27659
27660
27661 fi
27662
27663
27664 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27665 $as_echo_n "checking for OpenSSL... " >&6; }
27666
27667 # Check whether --with-openssl was given.
27668 if test "${with_openssl+set}" = set; then
27669   withval=$with_openssl;
27670         with_openssl_directory=${withval}
27671
27672
27673 fi
27674
27675
27676 if test "x$with_openssl_directory" != "xno"; then
27677    OPENSSL_LIBS="-lssl -lcrypto"
27678    OPENSSL_INC=""
27679
27680    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27681       #
27682       # Make sure the $with_openssl_directory also makes sense
27683       #
27684       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27685          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27686          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27687       fi
27688    fi
27689
27690    saved_LIBS="${LIBS}"
27691    saved_CFLAGS="${CFLAGS}"
27692    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27693    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27694
27695    cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h.  */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h.  */
27701
27702           #include <openssl/ssl.h>
27703
27704 int
27705 main ()
27706 {
27707
27708            CRYPTO_set_id_callback(NULL);
27709
27710   ;
27711   return 0;
27712 }
27713 _ACEOF
27714 rm -f conftest.$ac_objext conftest$ac_exeext
27715 if { (ac_try="$ac_link"
27716 case "(($ac_try" in
27717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718   *) ac_try_echo=$ac_try;;
27719 esac
27720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27721 $as_echo "$ac_try_echo") >&5
27722   (eval "$ac_link") 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } && {
27729          test -z "$ac_c_werror_flag" ||
27730          test ! -s conftest.err
27731        } && test -s conftest$ac_exeext && {
27732          test "$cross_compiling" = yes ||
27733          $as_test_x conftest$ac_exeext
27734        }; then
27735
27736           support_tls="yes"
27737           support_crypto="yes"
27738
27739 else
27740   $as_echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743
27744           support_tls="no"
27745           support_crypto="no"
27746
27747
27748 fi
27749
27750 rm -rf conftest.dSYM
27751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27752       conftest$ac_exeext conftest.$ac_ext
27753
27754    cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h.  */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h.  */
27760
27761           #include <openssl/evp.h>
27762
27763 int
27764 main ()
27765 {
27766
27767           EVP_sha512();
27768
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext conftest$ac_exeext
27774 if { (ac_try="$ac_link"
27775 case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27780 $as_echo "$ac_try_echo") >&5
27781   (eval "$ac_link") 2>conftest.er1
27782   ac_status=$?
27783   grep -v '^ *+' conftest.er1 >conftest.err
27784   rm -f conftest.er1
27785   cat conftest.err >&5
27786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); } && {
27788          test -z "$ac_c_werror_flag" ||
27789          test ! -s conftest.err
27790        } && test -s conftest$ac_exeext && {
27791          test "$cross_compiling" = yes ||
27792          $as_test_x conftest$ac_exeext
27793        }; then
27794
27795           ac_cv_openssl_sha2="yes"
27796
27797 else
27798   $as_echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801
27802           ac_cv_openssl_sha2="no"
27803
27804
27805 fi
27806
27807 rm -rf conftest.dSYM
27808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27809       conftest$ac_exeext conftest.$ac_ext
27810
27811                cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817
27818           #include <openssl/evp.h>
27819
27820 int
27821 main ()
27822 {
27823
27824           EVP_aes_192_cbc();
27825
27826   ;
27827   return 0;
27828 }
27829 _ACEOF
27830 rm -f conftest.$ac_objext conftest$ac_exeext
27831 if { (ac_try="$ac_link"
27832 case "(($ac_try" in
27833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834   *) ac_try_echo=$ac_try;;
27835 esac
27836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27837 $as_echo "$ac_try_echo") >&5
27838   (eval "$ac_link") 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } && {
27845          test -z "$ac_c_werror_flag" ||
27846          test ! -s conftest.err
27847        } && test -s conftest$ac_exeext && {
27848          test "$cross_compiling" = yes ||
27849          $as_test_x conftest$ac_exeext
27850        }; then
27851
27852           ac_cv_openssl_export="no"
27853
27854 else
27855   $as_echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858
27859           ac_cv_openssl_export="yes"
27860
27861
27862 fi
27863
27864 rm -rf conftest.dSYM
27865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27866       conftest$ac_exeext conftest.$ac_ext
27867
27868    LIBS="${saved_LIBS}"
27869    CFLAGS="${saved_CFLAGS}"
27870
27871    if test "$support_tls" = "yes"; then
27872
27873 cat >>confdefs.h <<\_ACEOF
27874 #define HAVE_OPENSSL 1
27875 _ACEOF
27876
27877
27878 cat >>confdefs.h <<\_ACEOF
27879 #define HAVE_TLS 1
27880 _ACEOF
27881
27882
27883 cat >>confdefs.h <<\_ACEOF
27884 #define HAVE_CRYPTO 1
27885 _ACEOF
27886
27887    fi
27888
27889    if test "$ac_cv_openssl_sha2" = "yes"; then
27890
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_SHA2 1
27893 _ACEOF
27894
27895    fi
27896
27897    if test "$ac_cv_openssl_export" = "yes"; then
27898
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27901 _ACEOF
27902
27903    fi
27904 else
27905    support_tls="no"
27906    support_crypto="no"
27907    OPENSSL_LIBS=""
27908    OPENSSL_INC=""
27909 fi
27910 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
27911 $as_echo "$support_tls" >&6; }
27912
27913 if test "$support_tls" = "no"; then
27914    OPENSSL_LIBS=""
27915    OPENSSL_INC=""
27916 fi
27917 if test "$support_crypto" = "no"; then
27918    OPENSSL_LIBS=""
27919    OPENSSL_INC=""
27920 else
27921    { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27922 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
27923 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27924   $as_echo_n "(cached) " >&6
27925 else
27926   ac_check_lib_save_LIBS=$LIBS
27927 LIBS="-lssl  $LIBS"
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934
27935 /* Override any GCC internal prototype to avoid an error.
27936    Use char because int might match the return type of a GCC
27937    builtin and then its argument prototype would still apply.  */
27938 #ifdef __cplusplus
27939 extern "C"
27940 #endif
27941 char EVP_PKEY_encrypt_old ();
27942 int
27943 main ()
27944 {
27945 return EVP_PKEY_encrypt_old ();
27946   ;
27947   return 0;
27948 }
27949 _ACEOF
27950 rm -f conftest.$ac_objext conftest$ac_exeext
27951 if { (ac_try="$ac_link"
27952 case "(($ac_try" in
27953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954   *) ac_try_echo=$ac_try;;
27955 esac
27956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27957 $as_echo "$ac_try_echo") >&5
27958   (eval "$ac_link") 2>conftest.er1
27959   ac_status=$?
27960   grep -v '^ *+' conftest.er1 >conftest.err
27961   rm -f conftest.er1
27962   cat conftest.err >&5
27963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); } && {
27965          test -z "$ac_c_werror_flag" ||
27966          test ! -s conftest.err
27967        } && test -s conftest$ac_exeext && {
27968          test "$cross_compiling" = yes ||
27969          $as_test_x conftest$ac_exeext
27970        }; then
27971   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27972 else
27973   $as_echo "$as_me: failed program was:" >&5
27974 sed 's/^/| /' conftest.$ac_ext >&5
27975
27976         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27977 fi
27978
27979 rm -rf conftest.dSYM
27980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27981       conftest$ac_exeext conftest.$ac_ext
27982 LIBS=$ac_check_lib_save_LIBS
27983 fi
27984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27985 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27986 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then
27987
27988 cat >>confdefs.h <<\_ACEOF
27989 #define HAVE_OPENSSLv1 1
27990 _ACEOF
27991
27992 fi
27993
27994 fi
27995
27996
27997
27998
27999 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
28000 $as_echo_n "checking for library containing dlopen... " >&6; }
28001 if test "${ac_cv_search_dlopen+set}" = set; then
28002   $as_echo_n "(cached) " >&6
28003 else
28004   ac_func_search_save_LIBS=$LIBS
28005 cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h.  */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h.  */
28011
28012 /* Override any GCC internal prototype to avoid an error.
28013    Use char because int might match the return type of a GCC
28014    builtin and then its argument prototype would still apply.  */
28015 #ifdef __cplusplus
28016 extern "C"
28017 #endif
28018 char dlopen ();
28019 int
28020 main ()
28021 {
28022 return dlopen ();
28023   ;
28024   return 0;
28025 }
28026 _ACEOF
28027 for ac_lib in '' dl; do
28028   if test -z "$ac_lib"; then
28029     ac_res="none required"
28030   else
28031     ac_res=-l$ac_lib
28032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28033   fi
28034   rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28041 $as_echo "$ac_try_echo") >&5
28042   (eval "$ac_link") 2>conftest.er1
28043   ac_status=$?
28044   grep -v '^ *+' conftest.er1 >conftest.err
28045   rm -f conftest.er1
28046   cat conftest.err >&5
28047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048   (exit $ac_status); } && {
28049          test -z "$ac_c_werror_flag" ||
28050          test ! -s conftest.err
28051        } && test -s conftest$ac_exeext && {
28052          test "$cross_compiling" = yes ||
28053          $as_test_x conftest$ac_exeext
28054        }; then
28055   ac_cv_search_dlopen=$ac_res
28056 else
28057   $as_echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28059
28060
28061 fi
28062
28063 rm -rf conftest.dSYM
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065       conftest$ac_exeext
28066   if test "${ac_cv_search_dlopen+set}" = set; then
28067   break
28068 fi
28069 done
28070 if test "${ac_cv_search_dlopen+set}" = set; then
28071   :
28072 else
28073   ac_cv_search_dlopen=no
28074 fi
28075 rm conftest.$ac_ext
28076 LIBS=$ac_func_search_save_LIBS
28077 fi
28078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28079 $as_echo "$ac_cv_search_dlopen" >&6; }
28080 ac_res=$ac_cv_search_dlopen
28081 if test "$ac_res" != no; then
28082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28083
28084 fi
28085
28086
28087 working_dir=`eval echo ${prefix}/var/bacula/working`
28088
28089 # Check whether --with-working-dir was given.
28090 if test "${with_working_dir+set}" = set; then
28091   withval=$with_working_dir;
28092        if test "x$withval" != "xno" ; then
28093          working_dir=$withval
28094        fi
28095
28096
28097 fi
28098
28099
28100
28101
28102 archivedir=/tmp
28103
28104 # Check whether --with-archivedir was given.
28105 if test "${with_archivedir+set}" = set; then
28106   withval=$with_archivedir;
28107        if test "x$withval" != "xno" ; then
28108           archivedir=$withval
28109        fi
28110
28111
28112 fi
28113
28114
28115
28116
28117 basename=`hostname`
28118
28119 # Check whether --with-basename was given.
28120 if test "${with_basename+set}" = set; then
28121   withval=$with_basename;
28122        if test "x$withval" != "xno" ; then
28123           basename=$withval
28124        fi
28125
28126
28127 fi
28128
28129
28130
28131
28132 hostname=`uname -n | cut -d '.' -f 1`
28133 if test x${hostname} = x ; then
28134   hostname="localhost"
28135 fi
28136
28137 # Check whether --with-hostname was given.
28138 if test "${with_hostname+set}" = set; then
28139   withval=$with_hostname;
28140        if test "x$withval" != "xno" ; then
28141          hostname=$withval
28142        fi
28143
28144
28145 fi
28146
28147
28148
28149
28150
28151 scriptdir=`eval echo ${sysconfdir}`
28152
28153 # Check whether --with-scriptdir was given.
28154 if test "${with_scriptdir+set}" = set; then
28155   withval=$with_scriptdir;
28156        if test "x$withval" != "xno" ; then
28157           scriptdir=$withval
28158        fi
28159
28160
28161 fi
28162
28163
28164
28165
28166
28167 bsrdir=/tmp
28168
28169 # Check whether --with-bsrdir was given.
28170 if test "${with_bsrdir+set}" = set; then
28171   withval=$with_bsrdir;
28172        if test "x$withval" != "xno" ; then
28173           bsrdir=$withval
28174        fi
28175
28176
28177 fi
28178
28179
28180
28181
28182 logdir=/tmp
28183
28184 # Check whether --with-logdir was given.
28185 if test "${with_logdir+set}" = set; then
28186   withval=$with_logdir;
28187        if test "x$withval" != "xno" ; then
28188           logdir=$withval
28189        fi
28190
28191
28192 fi
28193
28194
28195
28196
28197
28198 # ------------------------------------------
28199 # Where to place plugindir (plugin files)
28200 # ------------------------------------------
28201 plugindir=`eval echo ${libdir}`
28202
28203 # Check whether --with-plugindir was given.
28204 if test "${with_plugindir+set}" = set; then
28205   withval=$with_plugindir;
28206        if test "x$withval" != "xno" ; then
28207           plugindir=$withval
28208        fi
28209
28210
28211 fi
28212
28213
28214
28215
28216 dump_email=root@localhost
28217
28218 # Check whether --with-dump-email was given.
28219 if test "${with_dump_email+set}" = set; then
28220   withval=$with_dump_email;
28221        if test "x$withval" != "xno" ; then
28222           dump_email=$withval
28223        fi
28224
28225
28226 fi
28227
28228
28229
28230
28231 job_email=root@localhost
28232
28233 # Check whether --with-job-email was given.
28234 if test "${with_job_email+set}" = set; then
28235   withval=$with_job_email;
28236        if test "x$withval" != "xno" ; then
28237           job_email=$withval
28238        fi
28239
28240
28241 fi
28242
28243
28244
28245
28246 smtp_host=localhost
28247
28248 # Check whether --with-smtp_host was given.
28249 if test "${with_smtp_host+set}" = set; then
28250   withval=$with_smtp_host;
28251        if test "x$withval" != "xno" ; then
28252           smtp_host=$withval
28253        fi
28254
28255
28256 fi
28257
28258
28259
28260
28261 piddir=/var/run
28262
28263 # Check whether --with-pid-dir was given.
28264 if test "${with_pid_dir+set}" = set; then
28265   withval=$with_pid_dir;
28266        if test "x$withval" != "xno" ; then
28267           piddir=$withval
28268        fi
28269
28270
28271 fi
28272
28273
28274 cat >>confdefs.h <<_ACEOF
28275 #define _PATH_BACULA_PIDDIR "$piddir"
28276 _ACEOF
28277
28278
28279
28280 subsysdir=/var/run/subsys
28281 if test -d /var/run/subsys; then
28282    subsysdir=/var/run/subsys
28283 elif test -d /var/lock/subsys; then
28284    subsysdir=/var/lock/subsys
28285 else
28286    subsysdir=/var/run/subsys
28287 fi
28288
28289 # Check whether --with-subsys-dir was given.
28290 if test "${with_subsys_dir+set}" = set; then
28291   withval=$with_subsys_dir;
28292        if test "x$withval" != "xno" ; then
28293           subsysdir=$withval
28294        fi
28295
28296
28297 fi
28298
28299
28300
28301
28302 baseport=9101
28303
28304 # Check whether --with-baseport was given.
28305 if test "${with_baseport+set}" = set; then
28306   withval=$with_baseport;
28307        if test "x$withval" != "xno" ; then
28308           baseport=$withval
28309        fi
28310
28311
28312 fi
28313
28314
28315
28316 dir_port=`expr $baseport`
28317 fd_port=`expr $baseport + 1`
28318 sd_port=`expr $fd_port + 1`
28319
28320
28321
28322
28323
28324 dir_password=
28325
28326 # Check whether --with-dir-password was given.
28327 if test "${with_dir_password+set}" = set; then
28328   withval=$with_dir_password;
28329        if test "x$withval" != "xno" ; then
28330           dir_password=$withval
28331        fi
28332
28333
28334 fi
28335
28336
28337 if test "x$dir_password" = "x" ; then
28338    if test "x$OPENSSL" = "xnone" ; then
28339       key=`autoconf/randpass 33`
28340    else
28341       key=`openssl rand -base64 33`
28342    fi
28343    dir_password=$key
28344 fi
28345
28346 fd_password=
28347
28348 # Check whether --with-fd-password was given.
28349 if test "${with_fd_password+set}" = set; then
28350   withval=$with_fd_password;
28351        if test "x$withval" != "xno" ; then
28352           fd_password=$withval
28353        fi
28354
28355
28356 fi
28357
28358
28359 if test "x$fd_password" = "x" ; then
28360    if test "x$OPENSSL" = "xnone" ; then
28361       key=`autoconf/randpass 37`
28362    else
28363       key=`openssl rand -base64 33`
28364    fi
28365    fd_password=$key
28366 fi
28367
28368 sd_password=
28369
28370 # Check whether --with-sd-password was given.
28371 if test "${with_sd_password+set}" = set; then
28372   withval=$with_sd_password;
28373        if test "x$withval" != "xno" ; then
28374           sd_password=$withval
28375        fi
28376
28377
28378 fi
28379
28380
28381 if test "x$sd_password" = "x" ; then
28382    if test "x$OPENSSL" = "xnone" ; then
28383       key=`autoconf/randpass 41`
28384    else
28385       key=`openssl rand -base64 33`
28386    fi
28387    sd_password=$key
28388 fi
28389
28390 mon_dir_password=
28391
28392 # Check whether --with-mon-dir-password was given.
28393 if test "${with_mon_dir_password+set}" = set; then
28394   withval=$with_mon_dir_password;
28395        if test "x$withval" != "xno" ; then
28396           mon_dir_password=$withval
28397        fi
28398
28399
28400 fi
28401
28402
28403 if test "x$mon_dir_password" = "x" ; then
28404    if test "x$OPENSSL" = "xnone" ; then
28405       key=`autoconf/randpass 33`
28406    else
28407       key=`openssl rand -base64 33`
28408    fi
28409    mon_dir_password=$key
28410 fi
28411
28412 mon_fd_password=
28413
28414 # Check whether --with-mon-fd-password was given.
28415 if test "${with_mon_fd_password+set}" = set; then
28416   withval=$with_mon_fd_password;
28417        if test "x$withval" != "xno" ; then
28418           mon_fd_password=$withval
28419        fi
28420
28421
28422 fi
28423
28424
28425 if test "x$mon_fd_password" = "x" ; then
28426    if test "x$OPENSSL" = "xnone" ; then
28427       key=`autoconf/randpass 37`
28428    else
28429       key=`openssl rand -base64 33`
28430    fi
28431    mon_fd_password=$key
28432 fi
28433
28434 mon_sd_password=
28435
28436 # Check whether --with-mon-sd-password was given.
28437 if test "${with_mon_sd_password+set}" = set; then
28438   withval=$with_mon_sd_password;
28439        if test "x$withval" != "xno" ; then
28440           mon_sd_password=$withval
28441        fi
28442
28443
28444 fi
28445
28446
28447 if test "x$mon_sd_password" = "x" ; then
28448    if test "x$OPENSSL" = "xnone" ; then
28449       key=`autoconf/randpass 41`
28450    else
28451       key=`openssl rand -base64 33`
28452    fi
28453    mon_sd_password=$key
28454 fi
28455
28456
28457
28458
28459
28460
28461
28462
28463 db_name=bacula
28464
28465 # Check whether --with-db_name was given.
28466 if test "${with_db_name+set}" = set; then
28467   withval=$with_db_name;
28468        if test "x$withval" != "x" ; then
28469           db_name=$withval
28470        fi
28471
28472
28473 fi
28474
28475
28476
28477 db_user=bacula
28478
28479 # Check whether --with-db_user was given.
28480 if test "${with_db_user+set}" = set; then
28481   withval=$with_db_user;
28482        if test "x$withval" != "x" ; then
28483           db_user=$withval
28484        fi
28485
28486
28487 fi
28488
28489
28490
28491 db_password=
28492
28493 # Check whether --with-db_password was given.
28494 if test "${with_db_password+set}" = set; then
28495   withval=$with_db_password;
28496        if test "x$withval" != "x" ; then
28497           db_password=$withval
28498        fi
28499
28500
28501 fi
28502
28503
28504
28505 db_port=" "
28506
28507 # Check whether --with-db_port was given.
28508 if test "${with_db_port+set}" = set; then
28509   withval=$with_db_port;
28510        if test "x$withval" != "x" ; then
28511           db_port=$withval
28512        fi
28513
28514
28515 fi
28516
28517
28518
28519 #
28520 # Handle users and groups for each daemon
28521 #
28522 dir_user=
28523
28524 # Check whether --with-dir_user was given.
28525 if test "${with_dir_user+set}" = set; then
28526   withval=$with_dir_user;
28527        if test "x$withval" != "x" ; then
28528            dir_user=$withval
28529        fi
28530
28531
28532 fi
28533
28534
28535 dir_group=
28536
28537 # Check whether --with-dir_group was given.
28538 if test "${with_dir_group+set}" = set; then
28539   withval=$with_dir_group;
28540        if test "x$withval" != "x" ; then
28541           dir_group=$withval
28542        fi
28543
28544
28545 fi
28546
28547
28548 sd_user=
28549
28550 # Check whether --with-sd_user was given.
28551 if test "${with_sd_user+set}" = set; then
28552   withval=$with_sd_user;
28553        if test "x$withval" != "x" ; then
28554           sd_user=$withval
28555        fi
28556
28557
28558 fi
28559
28560
28561 sd_group=
28562
28563 # Check whether --with-sd_group was given.
28564 if test "${with_sd_group+set}" = set; then
28565   withval=$with_sd_group;
28566        if test "x$withval" != "x" ; then
28567           sd_group=$withval
28568        fi
28569
28570
28571 fi
28572
28573
28574 fd_user=
28575
28576 # Check whether --with-fd_user was given.
28577 if test "${with_fd_user+set}" = set; then
28578   withval=$with_fd_user;
28579        if test "x$withval" != "x" ; then
28580           fd_user=$withval
28581        fi
28582
28583
28584 fi
28585
28586
28587 fd_group=
28588
28589 # Check whether --with-fd_group was given.
28590 if test "${with_fd_group+set}" = set; then
28591   withval=$with_fd_group;
28592        if test "x$withval" != "x" ; then
28593           fd_group=$withval
28594        fi
28595
28596
28597 fi
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607 SBINPERM=0750
28608
28609 # Check whether --with-sbin-perm was given.
28610 if test "${with_sbin_perm+set}" = set; then
28611   withval=$with_sbin_perm;
28612        if test "x$withval" != "x" ; then
28613           SBINPERM=$withval
28614        fi
28615
28616
28617 fi
28618
28619
28620
28621
28622 SQL_LIB=
28623
28624 db_found=no
28625 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28626 $as_echo_n "checking for PostgreSQL support... " >&6; }
28627
28628 # Check whether --with-postgresql was given.
28629 if test "${with_postgresql+set}" = set; then
28630   withval=$with_postgresql;
28631   if test "$withval" != "no"; then
28632       if test "$db_found" = "yes"; then
28633           { $as_echo "$as_me:$LINENO: result: error" >&5
28634 $as_echo "error" >&6; }
28635           { { $as_echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
28636 $as_echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
28637    { (exit 1); exit 1; }; };
28638       fi
28639       if test "$withval" = "yes"; then
28640           PG_CONFIG=`which pg_config`
28641           if test -n "$PG_CONFIG";then
28642               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28643               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28644               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28645           elif test -f /usr/local/include/libpq-fe.h; then
28646               POSTGRESQL_INCDIR=/usr/local/include
28647               if test -d /usr/local/lib64; then
28648                  POSTGRESQL_LIBDIR=/usr/local/lib64
28649               else
28650                  POSTGRESQL_LIBDIR=/usr/local/lib
28651               fi
28652               POSTGRESQL_BINDIR=/usr/local/bin
28653           elif test -f /usr/include/libpq-fe.h; then
28654               POSTGRESQL_INCDIR=/usr/include
28655               if test -d /usr/lib64; then
28656                  POSTGRESQL_LIBDIR=/usr/lib64
28657               else
28658                  POSTGRESQL_LIBDIR=/usr/lib
28659               fi
28660               POSTGRESQL_BINDIR=/usr/bin
28661           elif test -f /usr/include/pgsql/libpq-fe.h; then
28662               POSTGRESQL_INCDIR=/usr/include/pgsql
28663               if test -d /usr/lib64/pgsql; then
28664                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28665               else
28666                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28667               fi
28668               POSTGRESQL_BINDIR=/usr/bin
28669           elif test -f /usr/include/postgresql/libpq-fe.h; then
28670               POSTGRESQL_INCDIR=/usr/include/postgresql
28671               if test -d /usr/lib64/postgresql; then
28672                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28673               else
28674                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28675               fi
28676               POSTGRESQL_BINDIR=/usr/bin
28677           else
28678               { $as_echo "$as_me:$LINENO: result: no" >&5
28679 $as_echo "no" >&6; }
28680               { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28681 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28682    { (exit 1); exit 1; }; }
28683           fi
28684       elif test -f $withval/include/libpq-fe.h; then
28685           POSTGRESQL_INCDIR=$withval/include
28686           POSTGRESQL_LIBDIR=$withval/lib
28687           POSTGRESQL_BINDIR=$withval/bin
28688       elif test -f $withval/include/postgresql/libpq-fe.h; then
28689           POSTGRESQL_INCDIR=$withval/include/postgresql
28690      if test -d $withval/lib64; then
28691          POSTGRESQL_LIBDIR=$withval/lib64
28692      else
28693          POSTGRESQL_LIBDIR=$withval/lib
28694      fi
28695           POSTGRESQL_BINDIR=$withval/bin
28696       else
28697           { $as_echo "$as_me:$LINENO: result: no" >&5
28698 $as_echo "no" >&6; }
28699           { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28700 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28701    { (exit 1); exit 1; }; }
28702       fi
28703       cat >>confdefs.h <<\_ACEOF
28704 #define HAVE_POSTGRESQL 1
28705 _ACEOF
28706
28707       { $as_echo "$as_me:$LINENO: result: yes" >&5
28708 $as_echo "yes" >&6; }
28709       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28710       { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28711 $as_echo_n "checking for crypt... " >&6; }
28712 if test "${ac_cv_func_crypt+set}" = set; then
28713   $as_echo_n "(cached) " >&6
28714 else
28715   cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h.  */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h.  */
28721 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28723 #define crypt innocuous_crypt
28724
28725 /* System header to define __stub macros and hopefully few prototypes,
28726     which can conflict with char crypt (); below.
28727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28728     <limits.h> exists even on freestanding compilers.  */
28729
28730 #ifdef __STDC__
28731 # include <limits.h>
28732 #else
28733 # include <assert.h>
28734 #endif
28735
28736 #undef crypt
28737
28738 /* Override any GCC internal prototype to avoid an error.
28739    Use char because int might match the return type of a GCC
28740    builtin and then its argument prototype would still apply.  */
28741 #ifdef __cplusplus
28742 extern "C"
28743 #endif
28744 char crypt ();
28745 /* The GNU C library defines this for functions which it implements
28746     to always fail with ENOSYS.  Some functions are actually named
28747     something starting with __ and the normal name is an alias.  */
28748 #if defined __stub_crypt || defined __stub___crypt
28749 choke me
28750 #endif
28751
28752 int
28753 main ()
28754 {
28755 return crypt ();
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28767 $as_echo "$ac_try_echo") >&5
28768   (eval "$ac_link") 2>conftest.er1
28769   ac_status=$?
28770   grep -v '^ *+' conftest.er1 >conftest.err
28771   rm -f conftest.er1
28772   cat conftest.err >&5
28773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); } && {
28775          test -z "$ac_c_werror_flag" ||
28776          test ! -s conftest.err
28777        } && test -s conftest$ac_exeext && {
28778          test "$cross_compiling" = yes ||
28779          $as_test_x conftest$ac_exeext
28780        }; then
28781   ac_cv_func_crypt=yes
28782 else
28783   $as_echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28785
28786         ac_cv_func_crypt=no
28787 fi
28788
28789 rm -rf conftest.dSYM
28790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28791       conftest$ac_exeext conftest.$ac_ext
28792 fi
28793 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28794 $as_echo "$ac_cv_func_crypt" >&6; }
28795 if test "x$ac_cv_func_crypt" = x""yes; then
28796   :
28797 else
28798   { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28799 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28800 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28801   $as_echo_n "(cached) " >&6
28802 else
28803   ac_check_lib_save_LIBS=$LIBS
28804 LIBS="-lcrypt  $LIBS"
28805 cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811
28812 /* Override any GCC internal prototype to avoid an error.
28813    Use char because int might match the return type of a GCC
28814    builtin and then its argument prototype would still apply.  */
28815 #ifdef __cplusplus
28816 extern "C"
28817 #endif
28818 char crypt ();
28819 int
28820 main ()
28821 {
28822 return crypt ();
28823   ;
28824   return 0;
28825 }
28826 _ACEOF
28827 rm -f conftest.$ac_objext conftest$ac_exeext
28828 if { (ac_try="$ac_link"
28829 case "(($ac_try" in
28830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831   *) ac_try_echo=$ac_try;;
28832 esac
28833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28834 $as_echo "$ac_try_echo") >&5
28835   (eval "$ac_link") 2>conftest.er1
28836   ac_status=$?
28837   grep -v '^ *+' conftest.er1 >conftest.err
28838   rm -f conftest.er1
28839   cat conftest.err >&5
28840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); } && {
28842          test -z "$ac_c_werror_flag" ||
28843          test ! -s conftest.err
28844        } && test -s conftest$ac_exeext && {
28845          test "$cross_compiling" = yes ||
28846          $as_test_x conftest$ac_exeext
28847        }; then
28848   ac_cv_lib_crypt_crypt=yes
28849 else
28850   $as_echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853         ac_cv_lib_crypt_crypt=no
28854 fi
28855
28856 rm -rf conftest.dSYM
28857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28858       conftest$ac_exeext conftest.$ac_ext
28859 LIBS=$ac_check_lib_save_LIBS
28860 fi
28861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28862 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28863 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28864   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28865 fi
28866
28867 fi
28868
28869       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28870       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28871       SQL_BINDIR=$POSTGRESQL_BINDIR
28872       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28873
28874       db_found=yes
28875       support_postgresql=yes
28876       db_type=PostgreSQL
28877       DB_TYPE=postgresql
28878   else
28879       { $as_echo "$as_me:$LINENO: result: no" >&5
28880 $as_echo "no" >&6; }
28881   fi
28882
28883 else
28884
28885   { $as_echo "$as_me:$LINENO: result: no" >&5
28886 $as_echo "no" >&6; }
28887
28888 fi
28889
28890
28891
28892
28893
28894
28895
28896
28897 db_found=no
28898 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28899 $as_echo_n "checking for MySQL support... " >&6; }
28900
28901 # Check whether --with-mysql was given.
28902 if test "${with_mysql+set}" = set; then
28903   withval=$with_mysql;
28904   if test "$withval" != "no"; then
28905         if test "$withval" = "yes"; then
28906            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28907                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28908                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28909                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28910                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28911                    else
28912                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28913                    fi
28914                    MYSQL_BINDIR=/usr/local/mysql/bin
28915            elif test -f /usr/include/mysql/mysql.h; then
28916                    MYSQL_INCDIR=/usr/include/mysql
28917                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28918                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28919                            MYSQL_LIBDIR=/usr/lib64/mysql
28920                    elif test -f /usr/lib64/libmysqlclient_r.a \
28921                         -o -f /usr/lib64/libmysqlclient_r.so; then
28922                            MYSQL_LIBDIR=/usr/lib64
28923                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28924                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28925                            MYSQL_LIBDIR=/usr/lib/mysql
28926                    else
28927                            MYSQL_LIBDIR=/usr/lib
28928                    fi
28929                    MYSQL_BINDIR=/usr/bin
28930            elif test -f /usr/include/mysql.h; then
28931                    MYSQL_INCDIR=/usr/include
28932                    if test -f /usr/lib64/libmysqlclient_r.a \
28933                         -o -f /usr/lib64/libmysqlclient_r.so; then
28934                            MYSQL_LIBDIR=/usr/lib64
28935                    else
28936                            MYSQL_LIBDIR=/usr/lib
28937                    fi
28938                    MYSQL_BINDIR=/usr/bin
28939            elif test -f /usr/local/include/mysql/mysql.h; then
28940                    MYSQL_INCDIR=/usr/local/include/mysql
28941                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28942                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28943                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28944                    else
28945                            MYSQL_LIBDIR=/usr/local/lib/mysql
28946                    fi
28947                    MYSQL_BINDIR=/usr/local/bin
28948            elif test -f /usr/local/include/mysql.h; then
28949                    MYSQL_INCDIR=/usr/local/include
28950                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28951                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28952                            MYSQL_LIBDIR=/usr/local/lib64
28953                    else
28954                            MYSQL_LIBDIR=/usr/local/lib
28955                    fi
28956                    MYSQL_BINDIR=/usr/local/bin
28957            else
28958               { $as_echo "$as_me:$LINENO: result: no" >&5
28959 $as_echo "no" >&6; }
28960               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28961 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28962    { (exit 1); exit 1; }; }
28963            fi
28964         else
28965            if test -f $withval/include/mysql/mysql.h; then
28966               MYSQL_INCDIR=$withval/include/mysql
28967               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28968                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28969                  MYSQL_LIBDIR=$withval/lib64/mysql
28970               elif test -f $withval/lib64/libmysqlclient_r.a \
28971                    -o -f $withval/lib64/libmysqlclient_r.so; then
28972                  MYSQL_LIBDIR=$withval/lib64
28973               elif test -f $withval/lib/libmysqlclient_r.a \
28974                    -o -f $withval/lib/libmysqlclient_r.so; then
28975                  MYSQL_LIBDIR=$withval/lib
28976               else
28977                  MYSQL_LIBDIR=$withval/lib/mysql
28978               fi
28979               MYSQL_BINDIR=$withval/bin
28980            elif test -f $withval/include/mysql.h; then
28981               MYSQL_INCDIR=$withval/include
28982               if test -f $withval/lib64/libmysqlclient_r.a \
28983                    -o -f $withval/lib64/libmysqlclient_r.so; then
28984                  MYSQL_LIBDIR=$withval/lib64
28985               else
28986                  MYSQL_LIBDIR=$withval/lib
28987               fi
28988               MYSQL_BINDIR=$withval/bin
28989            else
28990               { $as_echo "$as_me:$LINENO: result: no" >&5
28991 $as_echo "no" >&6; }
28992               { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28993 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28994    { (exit 1); exit 1; }; }
28995            fi
28996         fi
28997     SQL_INCLUDE=-I$MYSQL_INCDIR
28998     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28999          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
29000        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
29001        cat >>confdefs.h <<\_ACEOF
29002 #define HAVE_THREAD_SAFE_MYSQL 1
29003 _ACEOF
29004
29005     fi
29006     SQL_BINDIR=$MYSQL_BINDIR
29007     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29008
29009
29010 cat >>confdefs.h <<\_ACEOF
29011 #define HAVE_MYSQL 1
29012 _ACEOF
29013
29014     { $as_echo "$as_me:$LINENO: result: yes" >&5
29015 $as_echo "yes" >&6; }
29016     db_found=yes
29017     support_mysql=yes
29018     db_type=MySQL
29019     DB_TYPE=mysql
29020
29021   else
29022         { $as_echo "$as_me:$LINENO: result: no" >&5
29023 $as_echo "no" >&6; }
29024   fi
29025
29026
29027 fi
29028
29029
29030
29031 # Check whether --with-embedded-mysql was given.
29032 if test "${with_embedded_mysql+set}" = set; then
29033   withval=$with_embedded_mysql;
29034   if test "$withval" != "no"; then
29035         if test "$withval" = "yes"; then
29036                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29037                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
29038                         if test -d /usr/local/mysql/lib64/mysql; then
29039                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29040                         else
29041                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29042                         fi
29043                         MYSQL_BINDIR=/usr/local/mysql/bin
29044                 elif test -f /usr/include/mysql/mysql.h; then
29045                         MYSQL_INCDIR=/usr/include/mysql
29046                         if test -d /usr/lib64/mysql; then
29047                                 MYSQL_LIBDIR=/usr/lib64/mysql
29048                         else
29049                                 MYSQL_LIBDIR=/usr/lib/mysql
29050                         fi
29051                         MYSQL_BINDIR=/usr/bin
29052                 elif test -f /usr/include/mysql.h; then
29053                         MYSQL_INCDIR=/usr/include
29054                         if test -d /usr/lib64; then
29055                                 MYSQL_LIBDIR=/usr/lib64
29056                         else
29057                                 MYSQL_LIBDIR=/usr/lib
29058                         fi
29059                         MYSQL_BINDIR=/usr/bin
29060                 elif test -f /usr/local/include/mysql/mysql.h; then
29061                         MYSQL_INCDIR=/usr/local/include/mysql
29062                         if test -d /usr/local/lib64/mysql; then
29063                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
29064                         else
29065                                 MYSQL_LIBDIR=/usr/local/lib/mysql
29066                         fi
29067                         MYSQL_BINDIR=/usr/local/bin
29068                 elif test -f /usr/local/include/mysql.h; then
29069                         MYSQL_INCDIR=/usr/local/include
29070                         if test -d /usr/local/lib64; then
29071                                 MYSQL_LIBDIR=/usr/local/lib64
29072                         else
29073                                 MYSQL_LIBDIR=/usr/local/lib
29074                         fi
29075                         MYSQL_BINDIR=/usr/local/bin
29076                 else
29077                    { $as_echo "$as_me:$LINENO: result: no" >&5
29078 $as_echo "no" >&6; }
29079                    { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29080 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29081    { (exit 1); exit 1; }; }
29082                 fi
29083         else
29084                 if test -f $withval/include/mysql/mysql.h; then
29085                         MYSQL_INCDIR=$withval/include/mysql
29086                         if test -d $withval/lib64/mysql; then
29087                                 MYSQL_LIBDIR=$withval/lib64/mysql
29088                         else
29089                                 MYSQL_LIBDIR=$withval/lib/mysql
29090                         fi
29091                         MYSQL_BINDIR=$withval/bin
29092                 elif test -f $withval/include/mysql.h; then
29093                         MYSQL_INCDIR=$withval/include
29094                         if test -d $withval/lib64; then
29095                                 MYSQL_LIBDIR=$withval/lib64
29096                         else
29097                                 MYSQL_LIBDIR=$withval/lib
29098                         fi
29099                         MYSQL_BINDIR=$withval/bin
29100                 else
29101                    { $as_echo "$as_me:$LINENO: result: no" >&5
29102 $as_echo "no" >&6; }
29103                    { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29104 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29105    { (exit 1); exit 1; }; }
29106                 fi
29107         fi
29108     SQL_INCLUDE=-I$MYSQL_INCDIR
29109     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29110     SQL_BINDIR=$MYSQL_BINDIR
29111     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29112
29113     cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_MYSQL 1
29115 _ACEOF
29116
29117     cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_EMBEDDED_MYSQL 1
29119 _ACEOF
29120
29121     { $as_echo "$as_me:$LINENO: result: yes" >&5
29122 $as_echo "yes" >&6; }
29123     db_found=yes
29124     support_mysql=yes
29125     db_type=MySQL
29126     DB_TYPE=mysql
29127
29128   else
29129         { $as_echo "$as_me:$LINENO: result: no" >&5
29130 $as_echo "no" >&6; }
29131   fi
29132
29133
29134 fi
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145 db_found=no
29146 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29147 $as_echo_n "checking for Ingres support... " >&6; }
29148
29149 # Check whether --with-ingres was given.
29150 if test "${with_ingres+set}" = set; then
29151   withval=$with_ingres;
29152   if test "$withval" != "no"; then
29153      if test "$withval" = "yes"; then
29154         if test -f ${II_SYSTEM}/files/eqdefc.h; then
29155            INGRES_INCDIR=${II_SYSTEM}/files
29156            INGRES_LIBDIR=${II_SYSTEM}/lib
29157            INGRES_BINDIR=${II_SYSTEM}/bin
29158         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29159            INGRES_INCDIR=${II_SYSTEM}/ingres/files
29160            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29161            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29162         else
29163            { $as_echo "$as_me:$LINENO: result: no" >&5
29164 $as_echo "no" >&6; }
29165            { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29166 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29167    { (exit 1); exit 1; }; }
29168         fi
29169      else
29170         if test -f $withval/files/eqdefc.h; then
29171            INGRES_INCDIR=$withval/files
29172            INGRES_LIBDIR=$withval/lib
29173            INGRES_BINDIR=$withval/bin
29174         else
29175            { $as_echo "$as_me:$LINENO: result: no" >&5
29176 $as_echo "no" >&6; }
29177            { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29178 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29179    { (exit 1); exit 1; }; }
29180         fi
29181      fi
29182      SQL_INCLUDE=-I$INGRES_INCDIR
29183      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29184      SQL_BINDIR=$INGRES_BINDIR
29185      SQL_LIB=$INGRES_LIBDIR/libingres.a
29186
29187 cat >>confdefs.h <<\_ACEOF
29188 #define HAVE_INGRES 1
29189 _ACEOF
29190
29191      { $as_echo "$as_me:$LINENO: result: yes" >&5
29192 $as_echo "yes" >&6; }
29193      db_found=yes
29194      support_ingres=yes
29195      db_type=Ingres
29196      DB_TYPE=ingres
29197
29198   else
29199      { $as_echo "$as_me:$LINENO: result: no" >&5
29200 $as_echo "no" >&6; }
29201   fi
29202
29203 else
29204
29205   { $as_echo "$as_me:$LINENO: result: no" >&5
29206 $as_echo "no" >&6; }
29207
29208 fi
29209
29210
29211
29212
29213
29214
29215
29216
29217 db_found=no
29218 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29219 $as_echo_n "checking for SQLite3 support... " >&6; }
29220
29221 # Check whether --with-sqlite3 was given.
29222 if test "${with_sqlite3+set}" = set; then
29223   withval=$with_sqlite3;
29224   if test "$withval" != "no"; then
29225      if test "$withval" = "yes"; then
29226         if test -f /usr/local/include/sqlite3.h; then
29227            SQLITE_INCDIR=/usr/local/include
29228            if test -d /usr/local/lib64; then
29229               SQLITE_LIBDIR=/usr/local/lib64
29230            else
29231               SQLITE_LIBDIR=/usr/local/lib
29232            fi
29233            SQLITE_BINDIR=/usr/local/bin
29234         elif test -f /usr/include/sqlite3.h; then
29235            SQLITE_INCDIR=/usr/include
29236            if test -d /usr/lib64; then
29237               SQLITE_LIBDIR=/usr/lib64
29238            else
29239               SQLITE_LIBDIR=/usr/lib
29240            fi
29241            SQLITE_BINDIR=/usr/bin
29242         elif test -f $prefix/include/sqlite3.h; then
29243            SQLITE_INCDIR=$prefix/include
29244            if test -d $prefix/lib64; then
29245               SQLITE_LIBDIR=$prefix/lib64
29246            else
29247               SQLITE_LIBDIR=$prefix/lib
29248            fi
29249            SQLITE_BINDIR=$prefix/bin
29250         else
29251            { $as_echo "$as_me:$LINENO: result: no" >&5
29252 $as_echo "no" >&6; }
29253            { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29254 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29255    { (exit 1); exit 1; }; }
29256         fi
29257      else
29258         if test -f $withval/sqlite3.h; then
29259            SQLITE_INCDIR=$withval
29260            SQLITE_LIBDIR=$withval
29261            SQLITE_BINDIR=$withval
29262         elif test -f $withval/include/sqlite3.h; then
29263            SQLITE_INCDIR=$withval/include
29264            if test -d $withval/lib64; then
29265               SQLITE_LIBDIR=$withval/lib64
29266            else
29267               SQLITE_LIBDIR=$withval/lib
29268            fi
29269            SQLITE_BINDIR=$withval/bin
29270         else
29271            { $as_echo "$as_me:$LINENO: result: no" >&5
29272 $as_echo "no" >&6; }
29273            { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29274 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29275    { (exit 1); exit 1; }; }
29276         fi
29277      fi
29278      SQL_INCLUDE=-I$SQLITE_INCDIR
29279      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
29280      SQL_BINDIR=$SQLITE_BINDIR
29281      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
29282
29283      cat >>confdefs.h <<\_ACEOF
29284 #define HAVE_SQLITE3 1
29285 _ACEOF
29286
29287      { $as_echo "$as_me:$LINENO: result: yes" >&5
29288 $as_echo "yes" >&6; }
29289      db_found=yes
29290      support_sqlite3=yes
29291      db_type=SQLite3
29292      DB_TYPE=sqlite3
29293
29294   else
29295      { $as_echo "$as_me:$LINENO: result: no" >&5
29296 $as_echo "no" >&6; }
29297   fi
29298
29299 else
29300
29301   { $as_echo "$as_me:$LINENO: result: no" >&5
29302 $as_echo "no" >&6; }
29303
29304 fi
29305
29306
29307
29308
29309
29310
29311
29312 # BA_CHECK_SQLITE_DB
29313
29314
29315 db_found=no
29316 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29317 $as_echo_n "checking for DBI support... " >&6; }
29318
29319 # Check whether --with-dbi was given.
29320 if test "${with_dbi+set}" = set; then
29321   withval=$with_dbi;
29322   if test "$withval" != "no"; then
29323      if test "$withval" = "yes"; then
29324         if test -f /usr/local/include/dbi/dbi.h; then
29325            DBI_INCDIR=/usr/local/dbi/include
29326            if test -d /usr/local/lib64; then
29327               DBI_LIBDIR=/usr/local/lib64
29328            else
29329               DBI_LIBDIR=/usr/local/lib
29330            fi
29331            DBI_BINDIR=/usr/local/bin
29332         elif test -f /usr/include/dbi/dbi.h; then
29333            DBI_INCDIR=/usr/include
29334            if test -d /usr/lib64; then
29335               DBI_LIBDIR=/usr/lib64
29336            else
29337               DBI_LIBDIR=/usr/lib
29338            fi
29339            DBI_BINDIR=/usr/bin
29340         elif test -f $prefix/include/dbi/dbi.h; then
29341            DBI_INCDIR=$prefix/include
29342            if test -d $prefix/lib64; then
29343               DBI_LIBDIR=$prefix/lib64
29344            else
29345               DBI_LIBDIR=$prefix/lib
29346            fi
29347            DBI_BINDIR=$prefix/bin
29348         else
29349            { $as_echo "$as_me:$LINENO: result: no" >&5
29350 $as_echo "no" >&6; }
29351            { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29352 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29353    { (exit 1); exit 1; }; }
29354         fi
29355         if test -d /usr/local/lib/dbd; then
29356            DRIVERDIR=/usr/local/lib/dbd
29357            if test -d /usr/local/lib64/dbd; then
29358               DRIVERDIR=/usr/local/lib64/dbd
29359            else
29360               DRIVERDIR=/usr/local/lib/dbd
29361            fi
29362         elif test -d /usr/lib/dbd; then
29363            DRIVERDIR=/usr/lib/dbd
29364            if test -d /usr/lib64/dbd; then
29365               DRIVERDIR=/usr/lib64/dbd
29366            else
29367               DRIVERDIR=/usr/lib/dbd
29368            fi
29369         elif test -d $prefix/lib/dbd; then
29370            if test -d $prefix/lib64/dbd; then
29371               DRIVERDIR=$prefix/lib64/dbd
29372            else
29373               DRIVERDIR=$prefix/lib/dbd
29374            fi
29375         elif test -d /usr/local/lib64/dbd; then
29376            DRIVERDIR=/usr/local/lib64/dbd
29377         elif test -d /usr/lib64/dbd; then
29378            DRIVERDIR=/usr/lib64/dbd
29379         elif test -d $prefix/lib64/dbd; then
29380            DRIVERDIR=$prefix/lib64/dbd
29381         else
29382            { $as_echo "$as_me:$LINENO: result: no" >&5
29383 $as_echo "no" >&6; }
29384            { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29385 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29386    { (exit 1); exit 1; }; }
29387         fi
29388      else
29389         if test -f $withval/dbi.h; then
29390            DBI_INCDIR=$withval
29391            DBI_LIBDIR=$withval
29392            DBI_BINDIR=$withval
29393         elif test -f $withval/include/dbi/dbi.h; then
29394            DBI_INCDIR=$withval/include
29395            if test -d $withval/lib64; then
29396               DBI_LIBDIR=$withval/lib64
29397            else
29398               DBI_LIBDIR=$withval/lib
29399            fi
29400            DBI_BINDIR=$withval/bin
29401         else
29402            { $as_echo "$as_me:$LINENO: result: no" >&5
29403 $as_echo "no" >&6; }
29404            { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29405 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29406    { (exit 1); exit 1; }; }
29407         fi
29408         if test -d $withval/dbd; then
29409            DRIVERDIR=$withval/dbd
29410         elif test -d $withval/lib/; then
29411            if test -d $withval/lib64/dbd; then
29412               DRIVERDIR=$withval/lib64/dbd
29413            else
29414               DRIVERDIR=$withval/lib/dbd
29415            fi
29416         elif test -d $withval/lib64/dbd; then
29417            DRIVERDIR=$withval/lib64/dbd
29418         else
29419            { $as_echo "$as_me:$LINENO: result: no" >&5
29420 $as_echo "no" >&6; }
29421            { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29422 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29423    { (exit 1); exit 1; }; }
29424         fi
29425      fi
29426      SQL_INCLUDE=-I$DBI_INCDIR
29427      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
29428      SQL_BINDIR=$DBI_BINDIR
29429      SQL_LIB=$DBI_LIBDIR/libdbi.a
29430      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29431
29432
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_DBI 1
29435 _ACEOF
29436
29437      { $as_echo "$as_me:$LINENO: result: yes" >&5
29438 $as_echo "yes" >&6; }
29439      db_found=yes
29440      support_dbi=yes
29441      db_type=DBI
29442      DB_TYPE=dbi
29443      uncomment_dbi=" "
29444
29445   else
29446      { $as_echo "$as_me:$LINENO: result: no" >&5
29447 $as_echo "no" >&6; }
29448   fi
29449
29450 else
29451
29452   { $as_echo "$as_me:$LINENO: result: no" >&5
29453 $as_echo "no" >&6; }
29454
29455 fi
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466 db_found=no
29467 db_prog=no
29468 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29469 $as_echo_n "checking for DBI drivers support... " >&6; }
29470
29471 # Check whether --with-dbi-driver was given.
29472 if test "${with_dbi_driver+set}" = set; then
29473   withval=$with_dbi_driver;
29474   if test "$withval" != "no"; then
29475      case $withval in
29476         "mysql")
29477            db_prog="mysql"
29478            if test -f /usr/local/mysql/bin/mysql; then
29479               SQL_BINDIR=/usr/local/mysql/bin
29480               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29481                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29482                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
29483               else
29484                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
29485               fi
29486            elif test -f /usr/bin/mysql; then
29487               SQL_BINDIR=/usr/bin
29488               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29489                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29490                   SQL_LIBDIR=/usr/lib64/mysql
29491               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29492                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29493                   SQL_LIBDIR=/usr/lib/mysql
29494               else
29495                   SQL_LIBDIR=/usr/lib
29496               fi
29497            elif test -f /usr/local/bin/mysql; then
29498               SQL_BINDIR=/usr/local/bin
29499               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29500                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29501                   SQL_LIBDIR=/usr/local/lib64/mysql
29502               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29503                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29504                   SQL_LIBDIR=/usr/local/lib/mysql
29505               else
29506                   SQL_LIBDIR=/usr/local/lib
29507               fi
29508            elif test -f $withval/bin/mysql; then
29509               SQL_BINDIR=$withval/bin
29510               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29511                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29512                   SQL_LIBDIR=$withval/lib64/mysql
29513               elif test -f $withval/lib64/libmysqlclient_r.a \
29514                   -o -f $withval/lib64/libmysqlclient_r.so; then
29515                   SQL_LIBDIR=$withval/lib64
29516               elif test -f $withval/lib/libmysqlclient_r.a \
29517                   -o -f $withval/lib/libmysqlclient_r.so; then
29518                   SQL_LIBDIR=$withval/lib/
29519               else
29520                   SQL_LIBDIR=$withval/lib/mysql
29521               fi
29522            else
29523               { $as_echo "$as_me:$LINENO: result: no" >&5
29524 $as_echo "no" >&6; }
29525               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29526 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29527    { (exit 1); exit 1; }; }
29528            fi
29529            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29530               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29531            else
29532               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29533            fi
29534         ;;
29535         "postgresql")
29536            db_prog="postgresql"
29537            PG_CONFIG=`which pg_config`
29538            if test -n "$PG_CONFIG"; then
29539               SQL_BINDIR=`"$PG_CONFIG" --bindir`
29540               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
29541            elif test -f /usr/local/bin/psql; then
29542               SQL_BINDIR=/usr/local/bin
29543               if test -d /usr/local/lib64; then
29544                  SQL_LIBDIR=/usr/local/lib64
29545               else
29546                  SQL_LIBDIR=/usr/local/lib
29547               fi
29548            elif test -f /usr/bin/psql; then
29549               SQL_BINDIR=/usr/local/bin
29550               if test -d /usr/lib64/postgresql; then
29551                  SQL_LIBDIR=/usr/lib64/postgresql
29552               elif test -d /usr/lib/postgresql; then
29553                  SQL_LIBDIR=/usr/lib/postgresql
29554               elif test -d /usr/lib64; then
29555                  SQL_LIBDIR=/usr/lib64
29556               else
29557                  SQL_LIBDIR=/usr/lib
29558               fi
29559            elif test -f $withval/bin/psql; then
29560               SQL_BINDIR=$withval/bin
29561               if test -d $withval/lib64; then
29562                  SQL_LIBDIR=$withval/lib64
29563               else
29564                  SQL_LIBDIR=$withval/lib
29565               fi
29566            else
29567               { $as_echo "$as_me:$LINENO: result: no" >&5
29568 $as_echo "no" >&6; }
29569               { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29570 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29571    { (exit 1); exit 1; }; }
29572            fi
29573            if test -f $SQL_LIBDIR/libpq.so; then
29574               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
29575            else
29576               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
29577            fi
29578         ;;
29579         "sqlite")
29580            db_prog="sqlite"
29581            if test -f /usr/local/bin/sqlite; then
29582               SQL_BINDIR=/usr/local/bin
29583               if test -d /usr/local/lib64; then
29584                  SQL_LIBDIR=/usr/local/lib64
29585               else
29586                  SQL_LIBDIR=/usr/local/lib
29587               fi
29588            elif test -f /usr/bin/sqlite; then
29589               SQL_BINDIR=/usr/bin
29590               if test -d /usr/lib64; then
29591                  SQL_LIBDIR=/usr/lib64
29592               else
29593                  SQL_LIBDIR=/usr/lib
29594               fi
29595            elif test -f $withval/bin/sqlite; then
29596               SQL_BINDIR=$withval/bin
29597               if test -d $withval/lib64; then
29598                  SQL_LIBDIR=$withval/lib64
29599               else
29600                  SQL_LIBDIR=$withval/lib
29601               fi
29602            else
29603               { $as_echo "$as_me:$LINENO: result: no" >&5
29604 $as_echo "no" >&6; }
29605               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29606 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29607    { (exit 1); exit 1; }; }
29608            fi
29609            if test -f $SQL_LIBDIR/libsqlite.so; then
29610               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
29611            else
29612               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
29613            fi
29614         ;;
29615         "sqlite3")
29616            db_prog="sqlite3"
29617            if test -f /usr/local/bin/sqlite3; then
29618               SQL_BINDIR=/usr/local/bin
29619               if test -d /usr/local/lib64; then
29620                  SQL_LIBDIR=/usr/local/lib64
29621               else
29622                  SQL_LIBDIR=/usr/local/lib
29623               fi
29624            elif test -f /usr/bin/sqlite3; then
29625               SQL_BINDIR=/usr/bin
29626               if test -d /usr/lib64; then
29627                  SQL_LIBDIR=/usr/lib64
29628               else
29629                  SQL_LIBDIR=/usr/lib
29630               fi
29631            elif test -f $withval/bin/sqlite3; then
29632               SQL_BINDIR=$withval/bin
29633               if test -d $withval/lib64; then
29634                  SQL_LIBDIR=$withval/lib64
29635               else
29636                  SQL_LIBDIR=$withval/lib
29637               fi
29638            else
29639               { $as_echo "$as_me:$LINENO: result: no" >&5
29640 $as_echo "no" >&6; }
29641               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29642 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29643    { (exit 1); exit 1; }; }
29644            fi
29645            if test -f $SQL_LIBDIR/libsqlite3.so; then
29646               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
29647            else
29648               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
29649            fi
29650         ;;
29651         *)
29652            { $as_echo "$as_me:$LINENO: result: no" >&5
29653 $as_echo "no" >&6; }
29654            { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29655 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29656    { (exit 1); exit 1; }; }
29657         ;;
29658      esac
29659
29660      { $as_echo "$as_me:$LINENO: result: yes" >&5
29661 $as_echo "yes" >&6; }
29662      DB_PROG=$db_prog
29663   else
29664      { $as_echo "$as_me:$LINENO: result: no" >&5
29665 $as_echo "no" >&6; }
29666   fi
29667
29668 else
29669
29670   { $as_echo "$as_me:$LINENO: result: no" >&5
29671 $as_echo "no" >&6; }
29672
29673 fi
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684 support_batch_insert=no
29685 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29686 pkg=$?
29687 if test $pkg = 0; then
29688    support_batch_insert=yes
29689    # Check whether --enable-batch-insert was given.
29690 if test "${enable_batch_insert+set}" = set; then
29691   enableval=$enable_batch_insert;
29692           if test x$enableval = xno; then
29693              support_batch_insert=no
29694           else
29695              support_batch_insert=yes
29696           fi
29697
29698
29699 fi
29700
29701 fi
29702
29703 if test x$DB_TYPE = xpostgresql; then
29704    { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29705 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29706 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29707   $as_echo_n "(cached) " >&6
29708 else
29709   ac_check_lib_save_LIBS=$LIBS
29710 LIBS="-lpq  $LIBS"
29711 cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h.  */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h.  */
29717
29718 /* Override any GCC internal prototype to avoid an error.
29719    Use char because int might match the return type of a GCC
29720    builtin and then its argument prototype would still apply.  */
29721 #ifdef __cplusplus
29722 extern "C"
29723 #endif
29724 char PQisthreadsafe ();
29725 int
29726 main ()
29727 {
29728 return PQisthreadsafe ();
29729   ;
29730   return 0;
29731 }
29732 _ACEOF
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (ac_try="$ac_link"
29735 case "(($ac_try" in
29736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737   *) ac_try_echo=$ac_try;;
29738 esac
29739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29740 $as_echo "$ac_try_echo") >&5
29741   (eval "$ac_link") 2>conftest.er1
29742   ac_status=$?
29743   grep -v '^ *+' conftest.er1 >conftest.err
29744   rm -f conftest.er1
29745   cat conftest.err >&5
29746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); } && {
29748          test -z "$ac_c_werror_flag" ||
29749          test ! -s conftest.err
29750        } && test -s conftest$ac_exeext && {
29751          test "$cross_compiling" = yes ||
29752          $as_test_x conftest$ac_exeext
29753        }; then
29754   ac_cv_lib_pq_PQisthreadsafe=yes
29755 else
29756   $as_echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759         ac_cv_lib_pq_PQisthreadsafe=no
29760 fi
29761
29762 rm -rf conftest.dSYM
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764       conftest$ac_exeext conftest.$ac_ext
29765 LIBS=$ac_check_lib_save_LIBS
29766 fi
29767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29768 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29769 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29770
29771 cat >>confdefs.h <<\_ACEOF
29772 #define HAVE_PQISTHREADSAFE 1
29773 _ACEOF
29774
29775 fi
29776
29777    { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29778 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29779 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29780   $as_echo_n "(cached) " >&6
29781 else
29782   ac_check_lib_save_LIBS=$LIBS
29783 LIBS="-lpq  $LIBS"
29784 cat >conftest.$ac_ext <<_ACEOF
29785 /* confdefs.h.  */
29786 _ACEOF
29787 cat confdefs.h >>conftest.$ac_ext
29788 cat >>conftest.$ac_ext <<_ACEOF
29789 /* end confdefs.h.  */
29790
29791 /* Override any GCC internal prototype to avoid an error.
29792    Use char because int might match the return type of a GCC
29793    builtin and then its argument prototype would still apply.  */
29794 #ifdef __cplusplus
29795 extern "C"
29796 #endif
29797 char PQputCopyData ();
29798 int
29799 main ()
29800 {
29801 return PQputCopyData ();
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (ac_try="$ac_link"
29808 case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29813 $as_echo "$ac_try_echo") >&5
29814   (eval "$ac_link") 2>conftest.er1
29815   ac_status=$?
29816   grep -v '^ *+' conftest.er1 >conftest.err
29817   rm -f conftest.er1
29818   cat conftest.err >&5
29819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); } && {
29821          test -z "$ac_c_werror_flag" ||
29822          test ! -s conftest.err
29823        } && test -s conftest$ac_exeext && {
29824          test "$cross_compiling" = yes ||
29825          $as_test_x conftest$ac_exeext
29826        }; then
29827   ac_cv_lib_pq_PQputCopyData=yes
29828 else
29829   $as_echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29831
29832         ac_cv_lib_pq_PQputCopyData=no
29833 fi
29834
29835 rm -rf conftest.dSYM
29836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29837       conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29839 fi
29840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29841 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29842 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29843
29844 cat >>confdefs.h <<\_ACEOF
29845 #define HAVE_PQ_COPY 1
29846 _ACEOF
29847
29848 fi
29849
29850    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29851     then
29852         support_batch_insert=no
29853    fi
29854 fi
29855
29856 if test x$DB_TYPE = xdbi; then
29857    DB_TYPE=$DB_PROG
29858    db_type=$DB_PROG
29859    pkg=1
29860       if test $DB_PROG = postgresql; then
29861       { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29862 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29863 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29864   $as_echo_n "(cached) " >&6
29865 else
29866   ac_check_lib_save_LIBS=$LIBS
29867 LIBS="-lpq  $LIBS"
29868 cat >conftest.$ac_ext <<_ACEOF
29869 /* confdefs.h.  */
29870 _ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h.  */
29874
29875 /* Override any GCC internal prototype to avoid an error.
29876    Use char because int might match the return type of a GCC
29877    builtin and then its argument prototype would still apply.  */
29878 #ifdef __cplusplus
29879 extern "C"
29880 #endif
29881 char PQisthreadsafe ();
29882 int
29883 main ()
29884 {
29885 return PQisthreadsafe ();
29886   ;
29887   return 0;
29888 }
29889 _ACEOF
29890 rm -f conftest.$ac_objext conftest$ac_exeext
29891 if { (ac_try="$ac_link"
29892 case "(($ac_try" in
29893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894   *) ac_try_echo=$ac_try;;
29895 esac
29896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29897 $as_echo "$ac_try_echo") >&5
29898   (eval "$ac_link") 2>conftest.er1
29899   ac_status=$?
29900   grep -v '^ *+' conftest.er1 >conftest.err
29901   rm -f conftest.er1
29902   cat conftest.err >&5
29903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); } && {
29905          test -z "$ac_c_werror_flag" ||
29906          test ! -s conftest.err
29907        } && test -s conftest$ac_exeext && {
29908          test "$cross_compiling" = yes ||
29909          $as_test_x conftest$ac_exeext
29910        }; then
29911   ac_cv_lib_pq_PQisthreadsafe=yes
29912 else
29913   $as_echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29915
29916         ac_cv_lib_pq_PQisthreadsafe=no
29917 fi
29918
29919 rm -rf conftest.dSYM
29920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29921       conftest$ac_exeext conftest.$ac_ext
29922 LIBS=$ac_check_lib_save_LIBS
29923 fi
29924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29925 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29926 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29927   cat >>confdefs.h <<\_ACEOF
29928 #define HAVE_PQISTHREADSAFE 1
29929 _ACEOF
29930
29931 fi
29932
29933       { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29934 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29935 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29936   $as_echo_n "(cached) " >&6
29937 else
29938   ac_check_lib_save_LIBS=$LIBS
29939 LIBS="-lpq  $LIBS"
29940 cat >conftest.$ac_ext <<_ACEOF
29941 /* confdefs.h.  */
29942 _ACEOF
29943 cat confdefs.h >>conftest.$ac_ext
29944 cat >>conftest.$ac_ext <<_ACEOF
29945 /* end confdefs.h.  */
29946
29947 /* Override any GCC internal prototype to avoid an error.
29948    Use char because int might match the return type of a GCC
29949    builtin and then its argument prototype would still apply.  */
29950 #ifdef __cplusplus
29951 extern "C"
29952 #endif
29953 char PQputCopyData ();
29954 int
29955 main ()
29956 {
29957 return PQputCopyData ();
29958   ;
29959   return 0;
29960 }
29961 _ACEOF
29962 rm -f conftest.$ac_objext conftest$ac_exeext
29963 if { (ac_try="$ac_link"
29964 case "(($ac_try" in
29965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966   *) ac_try_echo=$ac_try;;
29967 esac
29968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29969 $as_echo "$ac_try_echo") >&5
29970   (eval "$ac_link") 2>conftest.er1
29971   ac_status=$?
29972   grep -v '^ *+' conftest.er1 >conftest.err
29973   rm -f conftest.er1
29974   cat conftest.err >&5
29975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); } && {
29977          test -z "$ac_c_werror_flag" ||
29978          test ! -s conftest.err
29979        } && test -s conftest$ac_exeext && {
29980          test "$cross_compiling" = yes ||
29981          $as_test_x conftest$ac_exeext
29982        }; then
29983   ac_cv_lib_pq_PQputCopyData=yes
29984 else
29985   $as_echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_lib_pq_PQputCopyData=no
29989 fi
29990
29991 rm -rf conftest.dSYM
29992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29993       conftest$ac_exeext conftest.$ac_ext
29994 LIBS=$ac_check_lib_save_LIBS
29995 fi
29996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29997 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29998 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29999   cat >>confdefs.h <<\_ACEOF
30000 #define HAVE_PQ_COPY 1
30001 _ACEOF
30002
30003 fi
30004
30005       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
30006       pkg=$?
30007    fi
30008
30009    if test $DB_PROG = mysql; then
30010       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30011       pkg=$?
30012    fi
30013
30014    if test $DB_PROG = sqlite3; then
30015       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30016       pkg=$?
30017       { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
30018 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
30019 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
30020   $as_echo_n "(cached) " >&6
30021 else
30022   ac_check_lib_save_LIBS=$LIBS
30023 LIBS="-lsqlite3  $LIBS"
30024 cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h.  */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h.  */
30030
30031 /* Override any GCC internal prototype to avoid an error.
30032    Use char because int might match the return type of a GCC
30033    builtin and then its argument prototype would still apply.  */
30034 #ifdef __cplusplus
30035 extern "C"
30036 #endif
30037 char sqlite3_threadsafe ();
30038 int
30039 main ()
30040 {
30041 return sqlite3_threadsafe ();
30042   ;
30043   return 0;
30044 }
30045 _ACEOF
30046 rm -f conftest.$ac_objext conftest$ac_exeext
30047 if { (ac_try="$ac_link"
30048 case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30053 $as_echo "$ac_try_echo") >&5
30054   (eval "$ac_link") 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } && {
30061          test -z "$ac_c_werror_flag" ||
30062          test ! -s conftest.err
30063        } && test -s conftest$ac_exeext && {
30064          test "$cross_compiling" = yes ||
30065          $as_test_x conftest$ac_exeext
30066        }; then
30067   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
30068 else
30069   $as_echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30071
30072         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
30073 fi
30074
30075 rm -rf conftest.dSYM
30076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30077       conftest$ac_exeext conftest.$ac_ext
30078 LIBS=$ac_check_lib_save_LIBS
30079 fi
30080 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
30081 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
30082 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
30083
30084 cat >>confdefs.h <<\_ACEOF
30085 #define HAVE_SQLITE3_THREADSAFE 1
30086 _ACEOF
30087
30088 fi
30089
30090    fi
30091
30092    if test $pkg = 0; then
30093       # Check whether --enable-batch-insert was given.
30094 if test "${enable_batch_insert+set}" = set; then
30095   enableval=$enable_batch_insert;
30096              if test x$enableval = xno; then
30097                 support_batch_insert=no
30098              else
30099                 support_batch_insert=yes
30100              fi
30101
30102
30103 fi
30104
30105    fi
30106 else
30107       uncomment_dbi="#"
30108 fi
30109
30110
30111
30112 if test x$DB_TYPE = xingres; then
30113    support_batch_insert=yes
30114 fi
30115
30116 if test $support_batch_insert = yes ; then
30117
30118 cat >>confdefs.h <<\_ACEOF
30119 #define HAVE_BATCH_FILE_INSERT 1
30120 _ACEOF
30121
30122 fi
30123
30124 cat >>confdefs.h <<\_ACEOF
30125 #define PROTOTYPES 1
30126 _ACEOF
30127
30128
30129 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30130    if test -z "$CCOPTS"; then
30131       CCOPTS='-g -O2 -Wall'
30132    fi
30133    CFLAGS="$CCOPTS"
30134 fi
30135
30136
30137
30138 largefile_support="no"
30139
30140    # Check whether --enable-largefile was given.
30141 if test "${enable_largefile+set}" = set; then
30142   enableval=$enable_largefile;
30143 fi
30144
30145    if test "$enable_largefile" != no; then
30146      if test -n "$ac_tool_prefix"; then
30147   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30148 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30150 $as_echo_n "checking for $ac_word... " >&6; }
30151 if test "${ac_cv_prog_GETCONF+set}" = set; then
30152   $as_echo_n "(cached) " >&6
30153 else
30154   if test -n "$GETCONF"; then
30155   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30156 else
30157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30158 for as_dir in $PATH
30159 do
30160   IFS=$as_save_IFS
30161   test -z "$as_dir" && as_dir=.
30162   for ac_exec_ext in '' $ac_executable_extensions; do
30163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30164     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30166     break 2
30167   fi
30168 done
30169 done
30170 IFS=$as_save_IFS
30171
30172 fi
30173 fi
30174 GETCONF=$ac_cv_prog_GETCONF
30175 if test -n "$GETCONF"; then
30176   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30177 $as_echo "$GETCONF" >&6; }
30178 else
30179   { $as_echo "$as_me:$LINENO: result: no" >&5
30180 $as_echo "no" >&6; }
30181 fi
30182
30183
30184 fi
30185 if test -z "$ac_cv_prog_GETCONF"; then
30186   ac_ct_GETCONF=$GETCONF
30187   # Extract the first word of "getconf", so it can be a program name with args.
30188 set dummy getconf; ac_word=$2
30189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30190 $as_echo_n "checking for $ac_word... " >&6; }
30191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30192   $as_echo_n "(cached) " >&6
30193 else
30194   if test -n "$ac_ct_GETCONF"; then
30195   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30196 else
30197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30199 do
30200   IFS=$as_save_IFS
30201   test -z "$as_dir" && as_dir=.
30202   for ac_exec_ext in '' $ac_executable_extensions; do
30203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30204     ac_cv_prog_ac_ct_GETCONF="getconf"
30205     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30206     break 2
30207   fi
30208 done
30209 done
30210 IFS=$as_save_IFS
30211
30212 fi
30213 fi
30214 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30215 if test -n "$ac_ct_GETCONF"; then
30216   { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30217 $as_echo "$ac_ct_GETCONF" >&6; }
30218 else
30219   { $as_echo "$as_me:$LINENO: result: no" >&5
30220 $as_echo "no" >&6; }
30221 fi
30222
30223   if test "x$ac_ct_GETCONF" = x; then
30224     GETCONF=""
30225   else
30226     case $cross_compiling:$ac_tool_warned in
30227 yes:)
30228 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30230 ac_tool_warned=yes ;;
30231 esac
30232     GETCONF=$ac_ct_GETCONF
30233   fi
30234 else
30235   GETCONF="$ac_cv_prog_GETCONF"
30236 fi
30237
30238      { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30239 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30240 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30241   $as_echo_n "(cached) " >&6
30242 else
30243   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30244         ac_cv_sys_largefile_CFLAGS=no
30245         case "$host_os" in
30246            # IRIX 6.2 and later require cc -n32.
30247            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30248              if test "$GCC" != yes; then
30249                ac_cv_sys_largefile_CFLAGS=-n32
30250              fi
30251              ac_save_CC="$CC"
30252              CC="$CC $ac_cv_sys_largefile_CFLAGS"
30253              cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259
30260 int
30261 main ()
30262 {
30263
30264   ;
30265   return 0;
30266 }
30267 _ACEOF
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272   *) ac_try_echo=$ac_try;;
30273 esac
30274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30275 $as_echo "$ac_try_echo") >&5
30276   (eval "$ac_link") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } && {
30283          test -z "$ac_c_werror_flag" ||
30284          test ! -s conftest.err
30285        } && test -s conftest$ac_exeext && {
30286          test "$cross_compiling" = yes ||
30287          $as_test_x conftest$ac_exeext
30288        }; then
30289   :
30290 else
30291   $as_echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294         ac_cv_sys_largefile_CFLAGS=no
30295 fi
30296
30297 rm -rf conftest.dSYM
30298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30299       conftest$ac_exeext conftest.$ac_ext
30300              CC="$ac_save_CC"
30301            esac
30302       }
30303 fi
30304 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30305 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30306      { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30307 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30308 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30309   $as_echo_n "(cached) " >&6
30310 else
30311   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30312         ac_cv_sys_largefile_LDFLAGS=no
30313
30314       }
30315 fi
30316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30317 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30318      { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30319 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30320 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30321   $as_echo_n "(cached) " >&6
30322 else
30323   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30324         ac_cv_sys_largefile_LIBS=no
30325
30326       }
30327 fi
30328 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30329 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30330
30331      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30332        case "$ac_flag" in
30333        no) ;;
30334        -D_FILE_OFFSET_BITS=*) ;;
30335        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30336        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30337        -D?* | -I?*)
30338          case "$ac_flag" in
30339    no) ;;
30340    ?*)
30341      case "$CPPFLAGS" in
30342      '') CPPFLAGS="$ac_flag" ;;
30343      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30344      esac ;;
30345    esac ;;
30346        *)
30347          case "$ac_flag" in
30348    no) ;;
30349    ?*)
30350      case "$CFLAGS" in
30351      '') CFLAGS="$ac_flag" ;;
30352      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30353      esac ;;
30354    esac ;;
30355        esac
30356      done
30357      case "$ac_cv_sys_largefile_LDFLAGS" in
30358    no) ;;
30359    ?*)
30360      case "$LDFLAGS" in
30361      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30362      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30363      esac ;;
30364    esac
30365      case "$ac_cv_sys_largefile_LIBS" in
30366    no) ;;
30367    ?*)
30368      case "$LIBS" in
30369      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30370      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30371      esac ;;
30372    esac
30373      { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30374 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30375 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30376   $as_echo_n "(cached) " >&6
30377 else
30378   ac_cv_sys_file_offset_bits=no
30379       ac_cv_sys_file_offset_bits=64
30380       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30381         case "$ac_flag" in
30382         -D_FILE_OFFSET_BITS)
30383           ac_cv_sys_file_offset_bits=1 ;;
30384         -D_FILE_OFFSET_BITS=*)
30385           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30386         esac
30387       done
30388
30389 fi
30390 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30391 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30392    if test "$ac_cv_sys_file_offset_bits" != no; then
30393
30394 cat >>confdefs.h <<_ACEOF
30395 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30396 _ACEOF
30397
30398    fi
30399      { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30400 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30401 if test "${ac_cv_sys_largefile_source+set}" = set; then
30402   $as_echo_n "(cached) " >&6
30403 else
30404   ac_cv_sys_largefile_source=no
30405       ac_cv_sys_largefile_source=1
30406       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30407         case "$ac_flag" in
30408         -D_LARGEFILE_SOURCE)
30409           ac_cv_sys_largefile_source=1 ;;
30410         -D_LARGEFILE_SOURCE=*)
30411           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30412         esac
30413       done
30414
30415 fi
30416 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30417 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30418    if test "$ac_cv_sys_largefile_source" != no; then
30419
30420 cat >>confdefs.h <<_ACEOF
30421 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30422 _ACEOF
30423
30424    fi
30425      { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30426 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30427 if test "${ac_cv_sys_large_files+set}" = set; then
30428   $as_echo_n "(cached) " >&6
30429 else
30430   ac_cv_sys_large_files=no
30431       ac_cv_sys_large_files=1
30432       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30433         case "$ac_flag" in
30434         -D_LARGE_FILES)
30435           ac_cv_sys_large_files=1 ;;
30436         -D_LARGE_FILES=*)
30437           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30438         esac
30439       done
30440
30441 fi
30442 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30443 $as_echo "$ac_cv_sys_large_files" >&6; }
30444    if test "$ac_cv_sys_large_files" != no; then
30445
30446 cat >>confdefs.h <<_ACEOF
30447 #define _LARGE_FILES $ac_cv_sys_large_files
30448 _ACEOF
30449
30450    fi
30451    fi
30452
30453
30454 { $as_echo "$as_me:$LINENO: checking for X" >&5
30455 $as_echo_n "checking for X... " >&6; }
30456
30457
30458 # Check whether --with-x was given.
30459 if test "${with_x+set}" = set; then
30460   withval=$with_x;
30461 fi
30462
30463 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30464 if test "x$with_x" = xno; then
30465   # The user explicitly disabled X.
30466   have_x=disabled
30467 else
30468   case $x_includes,$x_libraries in #(
30469     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30470 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30471    { (exit 1); exit 1; }; };; #(
30472     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30473   $as_echo_n "(cached) " >&6
30474 else
30475   # One or both of the vars are not set, and there is no cached value.
30476 ac_x_includes=no ac_x_libraries=no
30477 rm -f -r conftest.dir
30478 if mkdir conftest.dir; then
30479   cd conftest.dir
30480   cat >Imakefile <<'_ACEOF'
30481 incroot:
30482         @echo incroot='${INCROOT}'
30483 usrlibdir:
30484         @echo usrlibdir='${USRLIBDIR}'
30485 libdir:
30486         @echo libdir='${LIBDIR}'
30487 _ACEOF
30488   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30489     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30490     for ac_var in incroot usrlibdir libdir; do
30491       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30492     done
30493     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30494     for ac_extension in a so sl dylib la dll; do
30495       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30496          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30497         ac_im_usrlibdir=$ac_im_libdir; break
30498       fi
30499     done
30500     # Screen out bogus values from the imake configuration.  They are
30501     # bogus both because they are the default anyway, and because
30502     # using them would break gcc on systems where it needs fixed includes.
30503     case $ac_im_incroot in
30504         /usr/include) ac_x_includes= ;;
30505         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30506     esac
30507     case $ac_im_usrlibdir in
30508         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30509         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30510     esac
30511   fi
30512   cd ..
30513   rm -f -r conftest.dir
30514 fi
30515
30516 # Standard set of common directories for X headers.
30517 # Check X11 before X11Rn because it is often a symlink to the current release.
30518 ac_x_header_dirs='
30519 /usr/X11/include
30520 /usr/X11R6/include
30521 /usr/X11R5/include
30522 /usr/X11R4/include
30523
30524 /usr/include/X11
30525 /usr/include/X11R6
30526 /usr/include/X11R5
30527 /usr/include/X11R4
30528
30529 /usr/local/X11/include
30530 /usr/local/X11R6/include
30531 /usr/local/X11R5/include
30532 /usr/local/X11R4/include
30533
30534 /usr/local/include/X11
30535 /usr/local/include/X11R6
30536 /usr/local/include/X11R5
30537 /usr/local/include/X11R4
30538
30539 /usr/X386/include
30540 /usr/x386/include
30541 /usr/XFree86/include/X11
30542
30543 /usr/include
30544 /usr/local/include
30545 /usr/unsupported/include
30546 /usr/athena/include
30547 /usr/local/x11r5/include
30548 /usr/lpp/Xamples/include
30549
30550 /usr/openwin/include
30551 /usr/openwin/share/include'
30552
30553 if test "$ac_x_includes" = no; then
30554   # Guess where to find include files, by looking for Xlib.h.
30555   # First, try using that file with no special directory specified.
30556   cat >conftest.$ac_ext <<_ACEOF
30557 /* confdefs.h.  */
30558 _ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h.  */
30562 #include <X11/Xlib.h>
30563 _ACEOF
30564 if { (ac_try="$ac_cpp conftest.$ac_ext"
30565 case "(($ac_try" in
30566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567   *) ac_try_echo=$ac_try;;
30568 esac
30569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30570 $as_echo "$ac_try_echo") >&5
30571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30572   ac_status=$?
30573   grep -v '^ *+' conftest.er1 >conftest.err
30574   rm -f conftest.er1
30575   cat conftest.err >&5
30576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577   (exit $ac_status); } >/dev/null && {
30578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30579          test ! -s conftest.err
30580        }; then
30581   # We can compile using X headers with no special include directory.
30582 ac_x_includes=
30583 else
30584   $as_echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587   for ac_dir in $ac_x_header_dirs; do
30588   if test -r "$ac_dir/X11/Xlib.h"; then
30589     ac_x_includes=$ac_dir
30590     break
30591   fi
30592 done
30593 fi
30594
30595 rm -f conftest.err conftest.$ac_ext
30596 fi # $ac_x_includes = no
30597
30598 if test "$ac_x_libraries" = no; then
30599   # Check for the libraries.
30600   # See if we find them without any special options.
30601   # Don't add to $LIBS permanently.
30602   ac_save_LIBS=$LIBS
30603   LIBS="-lX11 $LIBS"
30604   cat >conftest.$ac_ext <<_ACEOF
30605 /* confdefs.h.  */
30606 _ACEOF
30607 cat confdefs.h >>conftest.$ac_ext
30608 cat >>conftest.$ac_ext <<_ACEOF
30609 /* end confdefs.h.  */
30610 #include <X11/Xlib.h>
30611 int
30612 main ()
30613 {
30614 XrmInitialize ()
30615   ;
30616   return 0;
30617 }
30618 _ACEOF
30619 rm -f conftest.$ac_objext conftest$ac_exeext
30620 if { (ac_try="$ac_link"
30621 case "(($ac_try" in
30622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30623   *) ac_try_echo=$ac_try;;
30624 esac
30625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30626 $as_echo "$ac_try_echo") >&5
30627   (eval "$ac_link") 2>conftest.er1
30628   ac_status=$?
30629   grep -v '^ *+' conftest.er1 >conftest.err
30630   rm -f conftest.er1
30631   cat conftest.err >&5
30632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); } && {
30634          test -z "$ac_c_werror_flag" ||
30635          test ! -s conftest.err
30636        } && test -s conftest$ac_exeext && {
30637          test "$cross_compiling" = yes ||
30638          $as_test_x conftest$ac_exeext
30639        }; then
30640   LIBS=$ac_save_LIBS
30641 # We can link X programs with no special library path.
30642 ac_x_libraries=
30643 else
30644   $as_echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30646
30647         LIBS=$ac_save_LIBS
30648 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30649 do
30650   # Don't even attempt the hair of trying to link an X program!
30651   for ac_extension in a so sl dylib la dll; do
30652     if test -r "$ac_dir/libX11.$ac_extension"; then
30653       ac_x_libraries=$ac_dir
30654       break 2
30655     fi
30656   done
30657 done
30658 fi
30659
30660 rm -rf conftest.dSYM
30661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30662       conftest$ac_exeext conftest.$ac_ext
30663 fi # $ac_x_libraries = no
30664
30665 case $ac_x_includes,$ac_x_libraries in #(
30666   no,* | *,no | *\'*)
30667     # Didn't find X, or a directory has "'" in its name.
30668     ac_cv_have_x="have_x=no";; #(
30669   *)
30670     # Record where we found X for the cache.
30671     ac_cv_have_x="have_x=yes\
30672         ac_x_includes='$ac_x_includes'\
30673         ac_x_libraries='$ac_x_libraries'"
30674 esac
30675 fi
30676 ;; #(
30677     *) have_x=yes;;
30678   esac
30679   eval "$ac_cv_have_x"
30680 fi # $with_x != no
30681
30682 if test "$have_x" != yes; then
30683   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30684 $as_echo "$have_x" >&6; }
30685   no_x=yes
30686 else
30687   # If each of the values was on the command line, it overrides each guess.
30688   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30689   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30690   # Update the cache value to reflect the command line values.
30691   ac_cv_have_x="have_x=yes\
30692         ac_x_includes='$x_includes'\
30693         ac_x_libraries='$x_libraries'"
30694   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30695 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30696 fi
30697
30698 if test "$no_x" = yes; then
30699   # Not all programs may use this symbol, but it does not hurt to define it.
30700
30701 cat >>confdefs.h <<\_ACEOF
30702 #define X_DISPLAY_MISSING 1
30703 _ACEOF
30704
30705   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30706 else
30707   if test -n "$x_includes"; then
30708     X_CFLAGS="$X_CFLAGS -I$x_includes"
30709   fi
30710
30711   # It would also be nice to do this for all -L options, not just this one.
30712   if test -n "$x_libraries"; then
30713     X_LIBS="$X_LIBS -L$x_libraries"
30714     # For Solaris; some versions of Sun CC require a space after -R and
30715     # others require no space.  Words are not sufficient . . . .
30716     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30717 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30718     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30719     ac_xsave_c_werror_flag=$ac_c_werror_flag
30720     ac_c_werror_flag=yes
30721     cat >conftest.$ac_ext <<_ACEOF
30722 /* confdefs.h.  */
30723 _ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h.  */
30727
30728 int
30729 main ()
30730 {
30731
30732   ;
30733   return 0;
30734 }
30735 _ACEOF
30736 rm -f conftest.$ac_objext conftest$ac_exeext
30737 if { (ac_try="$ac_link"
30738 case "(($ac_try" in
30739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740   *) ac_try_echo=$ac_try;;
30741 esac
30742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30743 $as_echo "$ac_try_echo") >&5
30744   (eval "$ac_link") 2>conftest.er1
30745   ac_status=$?
30746   grep -v '^ *+' conftest.er1 >conftest.err
30747   rm -f conftest.er1
30748   cat conftest.err >&5
30749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); } && {
30751          test -z "$ac_c_werror_flag" ||
30752          test ! -s conftest.err
30753        } && test -s conftest$ac_exeext && {
30754          test "$cross_compiling" = yes ||
30755          $as_test_x conftest$ac_exeext
30756        }; then
30757   { $as_echo "$as_me:$LINENO: result: no" >&5
30758 $as_echo "no" >&6; }
30759        X_LIBS="$X_LIBS -R$x_libraries"
30760 else
30761   $as_echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30763
30764         LIBS="$ac_xsave_LIBS -R $x_libraries"
30765        cat >conftest.$ac_ext <<_ACEOF
30766 /* confdefs.h.  */
30767 _ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h.  */
30771
30772 int
30773 main ()
30774 {
30775
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30787 $as_echo "$ac_try_echo") >&5
30788   (eval "$ac_link") 2>conftest.er1
30789   ac_status=$?
30790   grep -v '^ *+' conftest.er1 >conftest.err
30791   rm -f conftest.er1
30792   cat conftest.err >&5
30793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); } && {
30795          test -z "$ac_c_werror_flag" ||
30796          test ! -s conftest.err
30797        } && test -s conftest$ac_exeext && {
30798          test "$cross_compiling" = yes ||
30799          $as_test_x conftest$ac_exeext
30800        }; then
30801   { $as_echo "$as_me:$LINENO: result: yes" >&5
30802 $as_echo "yes" >&6; }
30803           X_LIBS="$X_LIBS -R $x_libraries"
30804 else
30805   $as_echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30807
30808         { $as_echo "$as_me:$LINENO: result: neither works" >&5
30809 $as_echo "neither works" >&6; }
30810 fi
30811
30812 rm -rf conftest.dSYM
30813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30814       conftest$ac_exeext conftest.$ac_ext
30815 fi
30816
30817 rm -rf conftest.dSYM
30818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30819       conftest$ac_exeext conftest.$ac_ext
30820     ac_c_werror_flag=$ac_xsave_c_werror_flag
30821     LIBS=$ac_xsave_LIBS
30822   fi
30823
30824   # Check for system-dependent libraries X programs must link with.
30825   # Do this before checking for the system-independent R6 libraries
30826   # (-lICE), since we may need -lsocket or whatever for X linking.
30827
30828   if test "$ISC" = yes; then
30829     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30830   else
30831     # Martyn Johnson says this is needed for Ultrix, if the X
30832     # libraries were built with DECnet support.  And Karl Berry says
30833     # the Alpha needs dnet_stub (dnet does not exist).
30834     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30835     cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841
30842 /* Override any GCC internal prototype to avoid an error.
30843    Use char because int might match the return type of a GCC
30844    builtin and then its argument prototype would still apply.  */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char XOpenDisplay ();
30849 int
30850 main ()
30851 {
30852 return XOpenDisplay ();
30853   ;
30854   return 0;
30855 }
30856 _ACEOF
30857 rm -f conftest.$ac_objext conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861   *) ac_try_echo=$ac_try;;
30862 esac
30863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30864 $as_echo "$ac_try_echo") >&5
30865   (eval "$ac_link") 2>conftest.er1
30866   ac_status=$?
30867   grep -v '^ *+' conftest.er1 >conftest.err
30868   rm -f conftest.er1
30869   cat conftest.err >&5
30870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871   (exit $ac_status); } && {
30872          test -z "$ac_c_werror_flag" ||
30873          test ! -s conftest.err
30874        } && test -s conftest$ac_exeext && {
30875          test "$cross_compiling" = yes ||
30876          $as_test_x conftest$ac_exeext
30877        }; then
30878   :
30879 else
30880   $as_echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30882
30883         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30884 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30885 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30886   $as_echo_n "(cached) " >&6
30887 else
30888   ac_check_lib_save_LIBS=$LIBS
30889 LIBS="-ldnet  $LIBS"
30890 cat >conftest.$ac_ext <<_ACEOF
30891 /* confdefs.h.  */
30892 _ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h.  */
30896
30897 /* Override any GCC internal prototype to avoid an error.
30898    Use char because int might match the return type of a GCC
30899    builtin and then its argument prototype would still apply.  */
30900 #ifdef __cplusplus
30901 extern "C"
30902 #endif
30903 char dnet_ntoa ();
30904 int
30905 main ()
30906 {
30907 return dnet_ntoa ();
30908   ;
30909   return 0;
30910 }
30911 _ACEOF
30912 rm -f conftest.$ac_objext conftest$ac_exeext
30913 if { (ac_try="$ac_link"
30914 case "(($ac_try" in
30915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30916   *) ac_try_echo=$ac_try;;
30917 esac
30918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30919 $as_echo "$ac_try_echo") >&5
30920   (eval "$ac_link") 2>conftest.er1
30921   ac_status=$?
30922   grep -v '^ *+' conftest.er1 >conftest.err
30923   rm -f conftest.er1
30924   cat conftest.err >&5
30925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); } && {
30927          test -z "$ac_c_werror_flag" ||
30928          test ! -s conftest.err
30929        } && test -s conftest$ac_exeext && {
30930          test "$cross_compiling" = yes ||
30931          $as_test_x conftest$ac_exeext
30932        }; then
30933   ac_cv_lib_dnet_dnet_ntoa=yes
30934 else
30935   $as_echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30937
30938         ac_cv_lib_dnet_dnet_ntoa=no
30939 fi
30940
30941 rm -rf conftest.dSYM
30942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943       conftest$ac_exeext conftest.$ac_ext
30944 LIBS=$ac_check_lib_save_LIBS
30945 fi
30946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30947 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30948 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30949   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30950 fi
30951
30952     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30953       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30954 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30955 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30956   $as_echo_n "(cached) " >&6
30957 else
30958   ac_check_lib_save_LIBS=$LIBS
30959 LIBS="-ldnet_stub  $LIBS"
30960 cat >conftest.$ac_ext <<_ACEOF
30961 /* confdefs.h.  */
30962 _ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h.  */
30966
30967 /* Override any GCC internal prototype to avoid an error.
30968    Use char because int might match the return type of a GCC
30969    builtin and then its argument prototype would still apply.  */
30970 #ifdef __cplusplus
30971 extern "C"
30972 #endif
30973 char dnet_ntoa ();
30974 int
30975 main ()
30976 {
30977 return dnet_ntoa ();
30978   ;
30979   return 0;
30980 }
30981 _ACEOF
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (ac_try="$ac_link"
30984 case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30989 $as_echo "$ac_try_echo") >&5
30990   (eval "$ac_link") 2>conftest.er1
30991   ac_status=$?
30992   grep -v '^ *+' conftest.er1 >conftest.err
30993   rm -f conftest.er1
30994   cat conftest.err >&5
30995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); } && {
30997          test -z "$ac_c_werror_flag" ||
30998          test ! -s conftest.err
30999        } && test -s conftest$ac_exeext && {
31000          test "$cross_compiling" = yes ||
31001          $as_test_x conftest$ac_exeext
31002        }; then
31003   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31004 else
31005   $as_echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31007
31008         ac_cv_lib_dnet_stub_dnet_ntoa=no
31009 fi
31010
31011 rm -rf conftest.dSYM
31012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31013       conftest$ac_exeext conftest.$ac_ext
31014 LIBS=$ac_check_lib_save_LIBS
31015 fi
31016 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31017 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31018 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31019   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31020 fi
31021
31022     fi
31023 fi
31024
31025 rm -rf conftest.dSYM
31026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31027       conftest$ac_exeext conftest.$ac_ext
31028     LIBS="$ac_xsave_LIBS"
31029
31030     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31031     # to get the SysV transport functions.
31032     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31033     # needs -lnsl.
31034     # The nsl library prevents programs from opening the X display
31035     # on Irix 5.2, according to T.E. Dickey.
31036     # The functions gethostbyname, getservbyname, and inet_addr are
31037     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31038     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31039 $as_echo_n "checking for gethostbyname... " >&6; }
31040 if test "${ac_cv_func_gethostbyname+set}" = set; then
31041   $as_echo_n "(cached) " >&6
31042 else
31043   cat >conftest.$ac_ext <<_ACEOF
31044 /* confdefs.h.  */
31045 _ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h.  */
31049 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31051 #define gethostbyname innocuous_gethostbyname
31052
31053 /* System header to define __stub macros and hopefully few prototypes,
31054     which can conflict with char gethostbyname (); below.
31055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31056     <limits.h> exists even on freestanding compilers.  */
31057
31058 #ifdef __STDC__
31059 # include <limits.h>
31060 #else
31061 # include <assert.h>
31062 #endif
31063
31064 #undef gethostbyname
31065
31066 /* Override any GCC internal prototype to avoid an error.
31067    Use char because int might match the return type of a GCC
31068    builtin and then its argument prototype would still apply.  */
31069 #ifdef __cplusplus
31070 extern "C"
31071 #endif
31072 char gethostbyname ();
31073 /* The GNU C library defines this for functions which it implements
31074     to always fail with ENOSYS.  Some functions are actually named
31075     something starting with __ and the normal name is an alias.  */
31076 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31077 choke me
31078 #endif
31079
31080 int
31081 main ()
31082 {
31083 return gethostbyname ();
31084   ;
31085   return 0;
31086 }
31087 _ACEOF
31088 rm -f conftest.$ac_objext conftest$ac_exeext
31089 if { (ac_try="$ac_link"
31090 case "(($ac_try" in
31091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092   *) ac_try_echo=$ac_try;;
31093 esac
31094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31095 $as_echo "$ac_try_echo") >&5
31096   (eval "$ac_link") 2>conftest.er1
31097   ac_status=$?
31098   grep -v '^ *+' conftest.er1 >conftest.err
31099   rm -f conftest.er1
31100   cat conftest.err >&5
31101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102   (exit $ac_status); } && {
31103          test -z "$ac_c_werror_flag" ||
31104          test ! -s conftest.err
31105        } && test -s conftest$ac_exeext && {
31106          test "$cross_compiling" = yes ||
31107          $as_test_x conftest$ac_exeext
31108        }; then
31109   ac_cv_func_gethostbyname=yes
31110 else
31111   $as_echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31113
31114         ac_cv_func_gethostbyname=no
31115 fi
31116
31117 rm -rf conftest.dSYM
31118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31119       conftest$ac_exeext conftest.$ac_ext
31120 fi
31121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31122 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31123
31124     if test $ac_cv_func_gethostbyname = no; then
31125       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31126 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31127 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31128   $as_echo_n "(cached) " >&6
31129 else
31130   ac_check_lib_save_LIBS=$LIBS
31131 LIBS="-lnsl  $LIBS"
31132 cat >conftest.$ac_ext <<_ACEOF
31133 /* confdefs.h.  */
31134 _ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h.  */
31138
31139 /* Override any GCC internal prototype to avoid an error.
31140    Use char because int might match the return type of a GCC
31141    builtin and then its argument prototype would still apply.  */
31142 #ifdef __cplusplus
31143 extern "C"
31144 #endif
31145 char gethostbyname ();
31146 int
31147 main ()
31148 {
31149 return gethostbyname ();
31150   ;
31151   return 0;
31152 }
31153 _ACEOF
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158   *) ac_try_echo=$ac_try;;
31159 esac
31160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31161 $as_echo "$ac_try_echo") >&5
31162   (eval "$ac_link") 2>conftest.er1
31163   ac_status=$?
31164   grep -v '^ *+' conftest.er1 >conftest.err
31165   rm -f conftest.er1
31166   cat conftest.err >&5
31167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); } && {
31169          test -z "$ac_c_werror_flag" ||
31170          test ! -s conftest.err
31171        } && test -s conftest$ac_exeext && {
31172          test "$cross_compiling" = yes ||
31173          $as_test_x conftest$ac_exeext
31174        }; then
31175   ac_cv_lib_nsl_gethostbyname=yes
31176 else
31177   $as_echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31179
31180         ac_cv_lib_nsl_gethostbyname=no
31181 fi
31182
31183 rm -rf conftest.dSYM
31184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31185       conftest$ac_exeext conftest.$ac_ext
31186 LIBS=$ac_check_lib_save_LIBS
31187 fi
31188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31189 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31190 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31191   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31192 fi
31193
31194       if test $ac_cv_lib_nsl_gethostbyname = no; then
31195         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31196 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31197 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31198   $as_echo_n "(cached) " >&6
31199 else
31200   ac_check_lib_save_LIBS=$LIBS
31201 LIBS="-lbsd  $LIBS"
31202 cat >conftest.$ac_ext <<_ACEOF
31203 /* confdefs.h.  */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h.  */
31208
31209 /* Override any GCC internal prototype to avoid an error.
31210    Use char because int might match the return type of a GCC
31211    builtin and then its argument prototype would still apply.  */
31212 #ifdef __cplusplus
31213 extern "C"
31214 #endif
31215 char gethostbyname ();
31216 int
31217 main ()
31218 {
31219 return gethostbyname ();
31220   ;
31221   return 0;
31222 }
31223 _ACEOF
31224 rm -f conftest.$ac_objext conftest$ac_exeext
31225 if { (ac_try="$ac_link"
31226 case "(($ac_try" in
31227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228   *) ac_try_echo=$ac_try;;
31229 esac
31230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31231 $as_echo "$ac_try_echo") >&5
31232   (eval "$ac_link") 2>conftest.er1
31233   ac_status=$?
31234   grep -v '^ *+' conftest.er1 >conftest.err
31235   rm -f conftest.er1
31236   cat conftest.err >&5
31237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238   (exit $ac_status); } && {
31239          test -z "$ac_c_werror_flag" ||
31240          test ! -s conftest.err
31241        } && test -s conftest$ac_exeext && {
31242          test "$cross_compiling" = yes ||
31243          $as_test_x conftest$ac_exeext
31244        }; then
31245   ac_cv_lib_bsd_gethostbyname=yes
31246 else
31247   $as_echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31249
31250         ac_cv_lib_bsd_gethostbyname=no
31251 fi
31252
31253 rm -rf conftest.dSYM
31254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31255       conftest$ac_exeext conftest.$ac_ext
31256 LIBS=$ac_check_lib_save_LIBS
31257 fi
31258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31259 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31260 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31261   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31262 fi
31263
31264       fi
31265     fi
31266
31267     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31268     # socket/setsockopt and other routines are undefined under SCO ODT
31269     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31270     # on later versions), says Simon Leinen: it contains gethostby*
31271     # variants that don't use the name server (or something).  -lsocket
31272     # must be given before -lnsl if both are needed.  We assume that
31273     # if connect needs -lnsl, so does gethostbyname.
31274     { $as_echo "$as_me:$LINENO: checking for connect" >&5
31275 $as_echo_n "checking for connect... " >&6; }
31276 if test "${ac_cv_func_connect+set}" = set; then
31277   $as_echo_n "(cached) " >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31287 #define connect innocuous_connect
31288
31289 /* System header to define __stub macros and hopefully few prototypes,
31290     which can conflict with char connect (); below.
31291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292     <limits.h> exists even on freestanding compilers.  */
31293
31294 #ifdef __STDC__
31295 # include <limits.h>
31296 #else
31297 # include <assert.h>
31298 #endif
31299
31300 #undef connect
31301
31302 /* Override any GCC internal prototype to avoid an error.
31303    Use char because int might match the return type of a GCC
31304    builtin and then its argument prototype would still apply.  */
31305 #ifdef __cplusplus
31306 extern "C"
31307 #endif
31308 char connect ();
31309 /* The GNU C library defines this for functions which it implements
31310     to always fail with ENOSYS.  Some functions are actually named
31311     something starting with __ and the normal name is an alias.  */
31312 #if defined __stub_connect || defined __stub___connect
31313 choke me
31314 #endif
31315
31316 int
31317 main ()
31318 {
31319 return connect ();
31320   ;
31321   return 0;
31322 }
31323 _ACEOF
31324 rm -f conftest.$ac_objext conftest$ac_exeext
31325 if { (ac_try="$ac_link"
31326 case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31331 $as_echo "$ac_try_echo") >&5
31332   (eval "$ac_link") 2>conftest.er1
31333   ac_status=$?
31334   grep -v '^ *+' conftest.er1 >conftest.err
31335   rm -f conftest.er1
31336   cat conftest.err >&5
31337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } && {
31339          test -z "$ac_c_werror_flag" ||
31340          test ! -s conftest.err
31341        } && test -s conftest$ac_exeext && {
31342          test "$cross_compiling" = yes ||
31343          $as_test_x conftest$ac_exeext
31344        }; then
31345   ac_cv_func_connect=yes
31346 else
31347   $as_echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31349
31350         ac_cv_func_connect=no
31351 fi
31352
31353 rm -rf conftest.dSYM
31354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31355       conftest$ac_exeext conftest.$ac_ext
31356 fi
31357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31358 $as_echo "$ac_cv_func_connect" >&6; }
31359
31360     if test $ac_cv_func_connect = no; then
31361       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31362 $as_echo_n "checking for connect in -lsocket... " >&6; }
31363 if test "${ac_cv_lib_socket_connect+set}" = set; then
31364   $as_echo_n "(cached) " >&6
31365 else
31366   ac_check_lib_save_LIBS=$LIBS
31367 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31368 cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h.  */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h.  */
31374
31375 /* Override any GCC internal prototype to avoid an error.
31376    Use char because int might match the return type of a GCC
31377    builtin and then its argument prototype would still apply.  */
31378 #ifdef __cplusplus
31379 extern "C"
31380 #endif
31381 char connect ();
31382 int
31383 main ()
31384 {
31385 return connect ();
31386   ;
31387   return 0;
31388 }
31389 _ACEOF
31390 rm -f conftest.$ac_objext conftest$ac_exeext
31391 if { (ac_try="$ac_link"
31392 case "(($ac_try" in
31393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31394   *) ac_try_echo=$ac_try;;
31395 esac
31396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31397 $as_echo "$ac_try_echo") >&5
31398   (eval "$ac_link") 2>conftest.er1
31399   ac_status=$?
31400   grep -v '^ *+' conftest.er1 >conftest.err
31401   rm -f conftest.er1
31402   cat conftest.err >&5
31403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); } && {
31405          test -z "$ac_c_werror_flag" ||
31406          test ! -s conftest.err
31407        } && test -s conftest$ac_exeext && {
31408          test "$cross_compiling" = yes ||
31409          $as_test_x conftest$ac_exeext
31410        }; then
31411   ac_cv_lib_socket_connect=yes
31412 else
31413   $as_echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31415
31416         ac_cv_lib_socket_connect=no
31417 fi
31418
31419 rm -rf conftest.dSYM
31420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31421       conftest$ac_exeext conftest.$ac_ext
31422 LIBS=$ac_check_lib_save_LIBS
31423 fi
31424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31425 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31426 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31427   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31428 fi
31429
31430     fi
31431
31432     # Guillermo Gomez says -lposix is necessary on A/UX.
31433     { $as_echo "$as_me:$LINENO: checking for remove" >&5
31434 $as_echo_n "checking for remove... " >&6; }
31435 if test "${ac_cv_func_remove+set}" = set; then
31436   $as_echo_n "(cached) " >&6
31437 else
31438   cat >conftest.$ac_ext <<_ACEOF
31439 /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31446 #define remove innocuous_remove
31447
31448 /* System header to define __stub macros and hopefully few prototypes,
31449     which can conflict with char remove (); below.
31450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31451     <limits.h> exists even on freestanding compilers.  */
31452
31453 #ifdef __STDC__
31454 # include <limits.h>
31455 #else
31456 # include <assert.h>
31457 #endif
31458
31459 #undef remove
31460
31461 /* Override any GCC internal prototype to avoid an error.
31462    Use char because int might match the return type of a GCC
31463    builtin and then its argument prototype would still apply.  */
31464 #ifdef __cplusplus
31465 extern "C"
31466 #endif
31467 char remove ();
31468 /* The GNU C library defines this for functions which it implements
31469     to always fail with ENOSYS.  Some functions are actually named
31470     something starting with __ and the normal name is an alias.  */
31471 #if defined __stub_remove || defined __stub___remove
31472 choke me
31473 #endif
31474
31475 int
31476 main ()
31477 {
31478 return remove ();
31479   ;
31480   return 0;
31481 }
31482 _ACEOF
31483 rm -f conftest.$ac_objext conftest$ac_exeext
31484 if { (ac_try="$ac_link"
31485 case "(($ac_try" in
31486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487   *) ac_try_echo=$ac_try;;
31488 esac
31489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31490 $as_echo "$ac_try_echo") >&5
31491   (eval "$ac_link") 2>conftest.er1
31492   ac_status=$?
31493   grep -v '^ *+' conftest.er1 >conftest.err
31494   rm -f conftest.er1
31495   cat conftest.err >&5
31496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497   (exit $ac_status); } && {
31498          test -z "$ac_c_werror_flag" ||
31499          test ! -s conftest.err
31500        } && test -s conftest$ac_exeext && {
31501          test "$cross_compiling" = yes ||
31502          $as_test_x conftest$ac_exeext
31503        }; then
31504   ac_cv_func_remove=yes
31505 else
31506   $as_echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31508
31509         ac_cv_func_remove=no
31510 fi
31511
31512 rm -rf conftest.dSYM
31513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31514       conftest$ac_exeext conftest.$ac_ext
31515 fi
31516 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31517 $as_echo "$ac_cv_func_remove" >&6; }
31518
31519     if test $ac_cv_func_remove = no; then
31520       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31521 $as_echo_n "checking for remove in -lposix... " >&6; }
31522 if test "${ac_cv_lib_posix_remove+set}" = set; then
31523   $as_echo_n "(cached) " >&6
31524 else
31525   ac_check_lib_save_LIBS=$LIBS
31526 LIBS="-lposix  $LIBS"
31527 cat >conftest.$ac_ext <<_ACEOF
31528 /* confdefs.h.  */
31529 _ACEOF
31530 cat confdefs.h >>conftest.$ac_ext
31531 cat >>conftest.$ac_ext <<_ACEOF
31532 /* end confdefs.h.  */
31533
31534 /* Override any GCC internal prototype to avoid an error.
31535    Use char because int might match the return type of a GCC
31536    builtin and then its argument prototype would still apply.  */
31537 #ifdef __cplusplus
31538 extern "C"
31539 #endif
31540 char remove ();
31541 int
31542 main ()
31543 {
31544 return remove ();
31545   ;
31546   return 0;
31547 }
31548 _ACEOF
31549 rm -f conftest.$ac_objext conftest$ac_exeext
31550 if { (ac_try="$ac_link"
31551 case "(($ac_try" in
31552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553   *) ac_try_echo=$ac_try;;
31554 esac
31555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31556 $as_echo "$ac_try_echo") >&5
31557   (eval "$ac_link") 2>conftest.er1
31558   ac_status=$?
31559   grep -v '^ *+' conftest.er1 >conftest.err
31560   rm -f conftest.er1
31561   cat conftest.err >&5
31562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563   (exit $ac_status); } && {
31564          test -z "$ac_c_werror_flag" ||
31565          test ! -s conftest.err
31566        } && test -s conftest$ac_exeext && {
31567          test "$cross_compiling" = yes ||
31568          $as_test_x conftest$ac_exeext
31569        }; then
31570   ac_cv_lib_posix_remove=yes
31571 else
31572   $as_echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31574
31575         ac_cv_lib_posix_remove=no
31576 fi
31577
31578 rm -rf conftest.dSYM
31579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31580       conftest$ac_exeext conftest.$ac_ext
31581 LIBS=$ac_check_lib_save_LIBS
31582 fi
31583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31584 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31585 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31586   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31587 fi
31588
31589     fi
31590
31591     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31592     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31593 $as_echo_n "checking for shmat... " >&6; }
31594 if test "${ac_cv_func_shmat+set}" = set; then
31595   $as_echo_n "(cached) " >&6
31596 else
31597   cat >conftest.$ac_ext <<_ACEOF
31598 /* confdefs.h.  */
31599 _ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h.  */
31603 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31605 #define shmat innocuous_shmat
31606
31607 /* System header to define __stub macros and hopefully few prototypes,
31608     which can conflict with char shmat (); below.
31609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31610     <limits.h> exists even on freestanding compilers.  */
31611
31612 #ifdef __STDC__
31613 # include <limits.h>
31614 #else
31615 # include <assert.h>
31616 #endif
31617
31618 #undef shmat
31619
31620 /* Override any GCC internal prototype to avoid an error.
31621    Use char because int might match the return type of a GCC
31622    builtin and then its argument prototype would still apply.  */
31623 #ifdef __cplusplus
31624 extern "C"
31625 #endif
31626 char shmat ();
31627 /* The GNU C library defines this for functions which it implements
31628     to always fail with ENOSYS.  Some functions are actually named
31629     something starting with __ and the normal name is an alias.  */
31630 #if defined __stub_shmat || defined __stub___shmat
31631 choke me
31632 #endif
31633
31634 int
31635 main ()
31636 {
31637 return shmat ();
31638   ;
31639   return 0;
31640 }
31641 _ACEOF
31642 rm -f conftest.$ac_objext conftest$ac_exeext
31643 if { (ac_try="$ac_link"
31644 case "(($ac_try" in
31645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646   *) ac_try_echo=$ac_try;;
31647 esac
31648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31649 $as_echo "$ac_try_echo") >&5
31650   (eval "$ac_link") 2>conftest.er1
31651   ac_status=$?
31652   grep -v '^ *+' conftest.er1 >conftest.err
31653   rm -f conftest.er1
31654   cat conftest.err >&5
31655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); } && {
31657          test -z "$ac_c_werror_flag" ||
31658          test ! -s conftest.err
31659        } && test -s conftest$ac_exeext && {
31660          test "$cross_compiling" = yes ||
31661          $as_test_x conftest$ac_exeext
31662        }; then
31663   ac_cv_func_shmat=yes
31664 else
31665   $as_echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31667
31668         ac_cv_func_shmat=no
31669 fi
31670
31671 rm -rf conftest.dSYM
31672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31673       conftest$ac_exeext conftest.$ac_ext
31674 fi
31675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31676 $as_echo "$ac_cv_func_shmat" >&6; }
31677
31678     if test $ac_cv_func_shmat = no; then
31679       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31680 $as_echo_n "checking for shmat in -lipc... " >&6; }
31681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31682   $as_echo_n "(cached) " >&6
31683 else
31684   ac_check_lib_save_LIBS=$LIBS
31685 LIBS="-lipc  $LIBS"
31686 cat >conftest.$ac_ext <<_ACEOF
31687 /* confdefs.h.  */
31688 _ACEOF
31689 cat confdefs.h >>conftest.$ac_ext
31690 cat >>conftest.$ac_ext <<_ACEOF
31691 /* end confdefs.h.  */
31692
31693 /* Override any GCC internal prototype to avoid an error.
31694    Use char because int might match the return type of a GCC
31695    builtin and then its argument prototype would still apply.  */
31696 #ifdef __cplusplus
31697 extern "C"
31698 #endif
31699 char shmat ();
31700 int
31701 main ()
31702 {
31703 return shmat ();
31704   ;
31705   return 0;
31706 }
31707 _ACEOF
31708 rm -f conftest.$ac_objext conftest$ac_exeext
31709 if { (ac_try="$ac_link"
31710 case "(($ac_try" in
31711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712   *) ac_try_echo=$ac_try;;
31713 esac
31714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31715 $as_echo "$ac_try_echo") >&5
31716   (eval "$ac_link") 2>conftest.er1
31717   ac_status=$?
31718   grep -v '^ *+' conftest.er1 >conftest.err
31719   rm -f conftest.er1
31720   cat conftest.err >&5
31721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); } && {
31723          test -z "$ac_c_werror_flag" ||
31724          test ! -s conftest.err
31725        } && test -s conftest$ac_exeext && {
31726          test "$cross_compiling" = yes ||
31727          $as_test_x conftest$ac_exeext
31728        }; then
31729   ac_cv_lib_ipc_shmat=yes
31730 else
31731   $as_echo "$as_me: failed program was:" >&5
31732 sed 's/^/| /' conftest.$ac_ext >&5
31733
31734         ac_cv_lib_ipc_shmat=no
31735 fi
31736
31737 rm -rf conftest.dSYM
31738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31739       conftest$ac_exeext conftest.$ac_ext
31740 LIBS=$ac_check_lib_save_LIBS
31741 fi
31742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31743 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31744 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31745   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31746 fi
31747
31748     fi
31749   fi
31750
31751   # Check for libraries that X11R6 Xt/Xaw programs need.
31752   ac_save_LDFLAGS=$LDFLAGS
31753   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31754   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31755   # check for ICE first), but we must link in the order -lSM -lICE or
31756   # we get undefined symbols.  So assume we have SM if we have ICE.
31757   # These have to be linked with before -lX11, unlike the other
31758   # libraries we check for below, so use a different variable.
31759   # John Interrante, Karl Berry
31760   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31761 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31762 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31763   $as_echo_n "(cached) " >&6
31764 else
31765   ac_check_lib_save_LIBS=$LIBS
31766 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31767 cat >conftest.$ac_ext <<_ACEOF
31768 /* confdefs.h.  */
31769 _ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h.  */
31773
31774 /* Override any GCC internal prototype to avoid an error.
31775    Use char because int might match the return type of a GCC
31776    builtin and then its argument prototype would still apply.  */
31777 #ifdef __cplusplus
31778 extern "C"
31779 #endif
31780 char IceConnectionNumber ();
31781 int
31782 main ()
31783 {
31784 return IceConnectionNumber ();
31785   ;
31786   return 0;
31787 }
31788 _ACEOF
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (ac_try="$ac_link"
31791 case "(($ac_try" in
31792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793   *) ac_try_echo=$ac_try;;
31794 esac
31795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31796 $as_echo "$ac_try_echo") >&5
31797   (eval "$ac_link") 2>conftest.er1
31798   ac_status=$?
31799   grep -v '^ *+' conftest.er1 >conftest.err
31800   rm -f conftest.er1
31801   cat conftest.err >&5
31802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803   (exit $ac_status); } && {
31804          test -z "$ac_c_werror_flag" ||
31805          test ! -s conftest.err
31806        } && test -s conftest$ac_exeext && {
31807          test "$cross_compiling" = yes ||
31808          $as_test_x conftest$ac_exeext
31809        }; then
31810   ac_cv_lib_ICE_IceConnectionNumber=yes
31811 else
31812   $as_echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815         ac_cv_lib_ICE_IceConnectionNumber=no
31816 fi
31817
31818 rm -rf conftest.dSYM
31819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31820       conftest$ac_exeext conftest.$ac_ext
31821 LIBS=$ac_check_lib_save_LIBS
31822 fi
31823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31824 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31825 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31826   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31827 fi
31828
31829   LDFLAGS=$ac_save_LDFLAGS
31830
31831 fi
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
31860
31861
31862
31863 for ac_header in \
31864    assert.h \
31865    fcntl.h \
31866    grp.h \
31867    pwd.h \
31868    libc.h \
31869    limits.h \
31870    stdarg.h \
31871    stdlib.h \
31872    stdint.h \
31873    string.h \
31874    strings.h \
31875    termios.h \
31876    termcap.h \
31877    term.h \
31878    unistd.h \
31879    sys/bitypes.h \
31880    sys/byteorder.h \
31881    sys/ioctl.h \
31882    sys/select.h \
31883    sys/socket.h \
31884    sys/sockio.h \
31885    sys/stat.h \
31886    sys/time.h \
31887    sys/types.h \
31888    arpa/nameser.h \
31889    mtio.h \
31890    sys/mtio.h \
31891    sys/tape.h \
31892    regex.h \
31893
31894 do
31895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31897   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31898 $as_echo_n "checking for $ac_header... " >&6; }
31899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31900   $as_echo_n "(cached) " >&6
31901 fi
31902 ac_res=`eval 'as_val=${'$as_ac_Header'}
31903                  $as_echo "$as_val"'`
31904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31905 $as_echo "$ac_res" >&6; }
31906 else
31907   # Is the header compilable?
31908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31909 $as_echo_n "checking $ac_header usability... " >&6; }
31910 cat >conftest.$ac_ext <<_ACEOF
31911 /* confdefs.h.  */
31912 _ACEOF
31913 cat confdefs.h >>conftest.$ac_ext
31914 cat >>conftest.$ac_ext <<_ACEOF
31915 /* end confdefs.h.  */
31916 $ac_includes_default
31917 #include <$ac_header>
31918 _ACEOF
31919 rm -f conftest.$ac_objext
31920 if { (ac_try="$ac_compile"
31921 case "(($ac_try" in
31922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923   *) ac_try_echo=$ac_try;;
31924 esac
31925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31926 $as_echo "$ac_try_echo") >&5
31927   (eval "$ac_compile") 2>conftest.er1
31928   ac_status=$?
31929   grep -v '^ *+' conftest.er1 >conftest.err
31930   rm -f conftest.er1
31931   cat conftest.err >&5
31932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); } && {
31934          test -z "$ac_c_werror_flag" ||
31935          test ! -s conftest.err
31936        } && test -s conftest.$ac_objext; then
31937   ac_header_compiler=yes
31938 else
31939   $as_echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31941
31942         ac_header_compiler=no
31943 fi
31944
31945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31947 $as_echo "$ac_header_compiler" >&6; }
31948
31949 # Is the header present?
31950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31951 $as_echo_n "checking $ac_header presence... " >&6; }
31952 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958 #include <$ac_header>
31959 _ACEOF
31960 if { (ac_try="$ac_cpp conftest.$ac_ext"
31961 case "(($ac_try" in
31962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963   *) ac_try_echo=$ac_try;;
31964 esac
31965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31966 $as_echo "$ac_try_echo") >&5
31967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31968   ac_status=$?
31969   grep -v '^ *+' conftest.er1 >conftest.err
31970   rm -f conftest.er1
31971   cat conftest.err >&5
31972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); } >/dev/null && {
31974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31975          test ! -s conftest.err
31976        }; then
31977   ac_header_preproc=yes
31978 else
31979   $as_echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31981
31982   ac_header_preproc=no
31983 fi
31984
31985 rm -f conftest.err conftest.$ac_ext
31986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31987 $as_echo "$ac_header_preproc" >&6; }
31988
31989 # So?  What about this header?
31990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31991   yes:no: )
31992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31996     ac_header_preproc=yes
31997     ;;
31998   no:yes:* )
31999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32002 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32006 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32011
32012     ;;
32013 esac
32014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32015 $as_echo_n "checking for $ac_header... " >&6; }
32016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32017   $as_echo_n "(cached) " >&6
32018 else
32019   eval "$as_ac_Header=\$ac_header_preproc"
32020 fi
32021 ac_res=`eval 'as_val=${'$as_ac_Header'}
32022                  $as_echo "$as_val"'`
32023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32024 $as_echo "$ac_res" >&6; }
32025
32026 fi
32027 as_val=`eval 'as_val=${'$as_ac_Header'}
32028                  $as_echo "$as_val"'`
32029    if test "x$as_val" = x""yes; then
32030   cat >>confdefs.h <<_ACEOF
32031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32032 _ACEOF
32033
32034 fi
32035
32036 done
32037
32038 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32039 $as_echo_n "checking for ANSI C header files... " >&6; }
32040 if test "${ac_cv_header_stdc+set}" = set; then
32041   $as_echo_n "(cached) " >&6
32042 else
32043   cat >conftest.$ac_ext <<_ACEOF
32044 /* confdefs.h.  */
32045 _ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h.  */
32049 #include <stdlib.h>
32050 #include <stdarg.h>
32051 #include <string.h>
32052 #include <float.h>
32053
32054 int
32055 main ()
32056 {
32057
32058   ;
32059   return 0;
32060 }
32061 _ACEOF
32062 rm -f conftest.$ac_objext
32063 if { (ac_try="$ac_compile"
32064 case "(($ac_try" in
32065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066   *) ac_try_echo=$ac_try;;
32067 esac
32068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32069 $as_echo "$ac_try_echo") >&5
32070   (eval "$ac_compile") 2>conftest.er1
32071   ac_status=$?
32072   grep -v '^ *+' conftest.er1 >conftest.err
32073   rm -f conftest.er1
32074   cat conftest.err >&5
32075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); } && {
32077          test -z "$ac_c_werror_flag" ||
32078          test ! -s conftest.err
32079        } && test -s conftest.$ac_objext; then
32080   ac_cv_header_stdc=yes
32081 else
32082   $as_echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32084
32085         ac_cv_header_stdc=no
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089
32090 if test $ac_cv_header_stdc = yes; then
32091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32092   cat >conftest.$ac_ext <<_ACEOF
32093 /* confdefs.h.  */
32094 _ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h.  */
32098 #include <string.h>
32099
32100 _ACEOF
32101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32102   $EGREP "memchr" >/dev/null 2>&1; then
32103   :
32104 else
32105   ac_cv_header_stdc=no
32106 fi
32107 rm -f conftest*
32108
32109 fi
32110
32111 if test $ac_cv_header_stdc = yes; then
32112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32113   cat >conftest.$ac_ext <<_ACEOF
32114 /* confdefs.h.  */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h.  */
32119 #include <stdlib.h>
32120
32121 _ACEOF
32122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32123   $EGREP "free" >/dev/null 2>&1; then
32124   :
32125 else
32126   ac_cv_header_stdc=no
32127 fi
32128 rm -f conftest*
32129
32130 fi
32131
32132 if test $ac_cv_header_stdc = yes; then
32133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32134   if test "$cross_compiling" = yes; then
32135   :
32136 else
32137   cat >conftest.$ac_ext <<_ACEOF
32138 /* confdefs.h.  */
32139 _ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h.  */
32143 #include <ctype.h>
32144 #include <stdlib.h>
32145 #if ((' ' & 0x0FF) == 0x020)
32146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32148 #else
32149 # define ISLOWER(c) \
32150                    (('a' <= (c) && (c) <= 'i') \
32151                      || ('j' <= (c) && (c) <= 'r') \
32152                      || ('s' <= (c) && (c) <= 'z'))
32153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32154 #endif
32155
32156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32157 int
32158 main ()
32159 {
32160   int i;
32161   for (i = 0; i < 256; i++)
32162     if (XOR (islower (i), ISLOWER (i))
32163         || toupper (i) != TOUPPER (i))
32164       return 2;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32175 $as_echo "$ac_try_echo") >&5
32176   (eval "$ac_link") 2>&5
32177   ac_status=$?
32178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32180   { (case "(($ac_try" in
32181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182   *) ac_try_echo=$ac_try;;
32183 esac
32184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32185 $as_echo "$ac_try_echo") >&5
32186   (eval "$ac_try") 2>&5
32187   ac_status=$?
32188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; }; then
32190   :
32191 else
32192   $as_echo "$as_me: program exited with status $ac_status" >&5
32193 $as_echo "$as_me: failed program was:" >&5
32194 sed 's/^/| /' conftest.$ac_ext >&5
32195
32196 ( exit $ac_status )
32197 ac_cv_header_stdc=no
32198 fi
32199 rm -rf conftest.dSYM
32200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32201 fi
32202
32203
32204 fi
32205 fi
32206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32207 $as_echo "$ac_cv_header_stdc" >&6; }
32208 if test $ac_cv_header_stdc = yes; then
32209
32210 cat >>confdefs.h <<\_ACEOF
32211 #define STDC_HEADERS 1
32212 _ACEOF
32213
32214 fi
32215
32216 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32217 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32218 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32219   $as_echo_n "(cached) " >&6
32220 else
32221   cat >conftest.$ac_ext <<_ACEOF
32222 /* confdefs.h.  */
32223 _ACEOF
32224 cat confdefs.h >>conftest.$ac_ext
32225 cat >>conftest.$ac_ext <<_ACEOF
32226 /* end confdefs.h.  */
32227 #include <sys/types.h>
32228 int
32229 main ()
32230 {
32231 return makedev(0, 0);
32232   ;
32233   return 0;
32234 }
32235 _ACEOF
32236 rm -f conftest.$ac_objext conftest$ac_exeext
32237 if { (ac_try="$ac_link"
32238 case "(($ac_try" in
32239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240   *) ac_try_echo=$ac_try;;
32241 esac
32242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32243 $as_echo "$ac_try_echo") >&5
32244   (eval "$ac_link") 2>conftest.er1
32245   ac_status=$?
32246   grep -v '^ *+' conftest.er1 >conftest.err
32247   rm -f conftest.er1
32248   cat conftest.err >&5
32249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); } && {
32251          test -z "$ac_c_werror_flag" ||
32252          test ! -s conftest.err
32253        } && test -s conftest$ac_exeext && {
32254          test "$cross_compiling" = yes ||
32255          $as_test_x conftest$ac_exeext
32256        }; then
32257   ac_cv_header_sys_types_h_makedev=yes
32258 else
32259   $as_echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32261
32262         ac_cv_header_sys_types_h_makedev=no
32263 fi
32264
32265 rm -rf conftest.dSYM
32266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32267       conftest$ac_exeext conftest.$ac_ext
32268
32269 fi
32270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32271 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32272
32273 if test $ac_cv_header_sys_types_h_makedev = no; then
32274 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32275   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32276 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32277 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32278   $as_echo_n "(cached) " >&6
32279 fi
32280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32281 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32282 else
32283   # Is the header compilable?
32284 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32285 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32286 cat >conftest.$ac_ext <<_ACEOF
32287 /* confdefs.h.  */
32288 _ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h.  */
32292 $ac_includes_default
32293 #include <sys/mkdev.h>
32294 _ACEOF
32295 rm -f conftest.$ac_objext
32296 if { (ac_try="$ac_compile"
32297 case "(($ac_try" in
32298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299   *) ac_try_echo=$ac_try;;
32300 esac
32301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32302 $as_echo "$ac_try_echo") >&5
32303   (eval "$ac_compile") 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } && {
32310          test -z "$ac_c_werror_flag" ||
32311          test ! -s conftest.err
32312        } && test -s conftest.$ac_objext; then
32313   ac_header_compiler=yes
32314 else
32315   $as_echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32317
32318         ac_header_compiler=no
32319 fi
32320
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32323 $as_echo "$ac_header_compiler" >&6; }
32324
32325 # Is the header present?
32326 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32327 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32328 cat >conftest.$ac_ext <<_ACEOF
32329 /* confdefs.h.  */
32330 _ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h.  */
32334 #include <sys/mkdev.h>
32335 _ACEOF
32336 if { (ac_try="$ac_cpp conftest.$ac_ext"
32337 case "(($ac_try" in
32338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339   *) ac_try_echo=$ac_try;;
32340 esac
32341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32342 $as_echo "$ac_try_echo") >&5
32343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32344   ac_status=$?
32345   grep -v '^ *+' conftest.er1 >conftest.err
32346   rm -f conftest.er1
32347   cat conftest.err >&5
32348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); } >/dev/null && {
32350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32351          test ! -s conftest.err
32352        }; then
32353   ac_header_preproc=yes
32354 else
32355   $as_echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32357
32358   ac_header_preproc=no
32359 fi
32360
32361 rm -f conftest.err conftest.$ac_ext
32362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32363 $as_echo "$ac_header_preproc" >&6; }
32364
32365 # So?  What about this header?
32366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32367   yes:no: )
32368     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32369 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32370     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32371 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32372     ac_header_preproc=yes
32373     ;;
32374   no:yes:* )
32375     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32376 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32377     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
32378 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
32379     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32380 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32381     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
32382 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32383     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32384 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32385     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32386 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32387
32388     ;;
32389 esac
32390 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32391 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32393   $as_echo_n "(cached) " >&6
32394 else
32395   ac_cv_header_sys_mkdev_h=$ac_header_preproc
32396 fi
32397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32398 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32399
32400 fi
32401 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32402
32403 cat >>confdefs.h <<\_ACEOF
32404 #define MAJOR_IN_MKDEV 1
32405 _ACEOF
32406
32407 fi
32408
32409
32410
32411   if test $ac_cv_header_sys_mkdev_h = no; then
32412     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32413   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32414 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32416   $as_echo_n "(cached) " >&6
32417 fi
32418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32419 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32420 else
32421   # Is the header compilable?
32422 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32423 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32424 cat >conftest.$ac_ext <<_ACEOF
32425 /* confdefs.h.  */
32426 _ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h.  */
32430 $ac_includes_default
32431 #include <sys/sysmacros.h>
32432 _ACEOF
32433 rm -f conftest.$ac_objext
32434 if { (ac_try="$ac_compile"
32435 case "(($ac_try" in
32436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437   *) ac_try_echo=$ac_try;;
32438 esac
32439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32440 $as_echo "$ac_try_echo") >&5
32441   (eval "$ac_compile") 2>conftest.er1
32442   ac_status=$?
32443   grep -v '^ *+' conftest.er1 >conftest.err
32444   rm -f conftest.er1
32445   cat conftest.err >&5
32446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447   (exit $ac_status); } && {
32448          test -z "$ac_c_werror_flag" ||
32449          test ! -s conftest.err
32450        } && test -s conftest.$ac_objext; then
32451   ac_header_compiler=yes
32452 else
32453   $as_echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32455
32456         ac_header_compiler=no
32457 fi
32458
32459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32461 $as_echo "$ac_header_compiler" >&6; }
32462
32463 # Is the header present?
32464 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32465 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32466 cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472 #include <sys/sysmacros.h>
32473 _ACEOF
32474 if { (ac_try="$ac_cpp conftest.$ac_ext"
32475 case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32480 $as_echo "$ac_try_echo") >&5
32481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32482   ac_status=$?
32483   grep -v '^ *+' conftest.er1 >conftest.err
32484   rm -f conftest.er1
32485   cat conftest.err >&5
32486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); } >/dev/null && {
32488          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32489          test ! -s conftest.err
32490        }; then
32491   ac_header_preproc=yes
32492 else
32493   $as_echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496   ac_header_preproc=no
32497 fi
32498
32499 rm -f conftest.err conftest.$ac_ext
32500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32501 $as_echo "$ac_header_preproc" >&6; }
32502
32503 # So?  What about this header?
32504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32505   yes:no: )
32506     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32507 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32508     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32509 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32510     ac_header_preproc=yes
32511     ;;
32512   no:yes:* )
32513     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32514 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32515     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
32516 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
32517     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32518 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32519     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
32520 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32521     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32522 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32523     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32524 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32525
32526     ;;
32527 esac
32528 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32529 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32531   $as_echo_n "(cached) " >&6
32532 else
32533   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32534 fi
32535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32536 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32537
32538 fi
32539 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32540
32541 cat >>confdefs.h <<\_ACEOF
32542 #define MAJOR_IN_SYSMACROS 1
32543 _ACEOF
32544
32545 fi
32546
32547
32548   fi
32549 fi
32550
32551
32552
32553
32554
32555
32556 ac_header_dirent=no
32557 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32558   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32559 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32560 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32562   $as_echo_n "(cached) " >&6
32563 else
32564   cat >conftest.$ac_ext <<_ACEOF
32565 /* confdefs.h.  */
32566 _ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h.  */
32570 #include <sys/types.h>
32571 #include <$ac_hdr>
32572
32573 int
32574 main ()
32575 {
32576 if ((DIR *) 0)
32577 return 0;
32578   ;
32579   return 0;
32580 }
32581 _ACEOF
32582 rm -f conftest.$ac_objext
32583 if { (ac_try="$ac_compile"
32584 case "(($ac_try" in
32585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586   *) ac_try_echo=$ac_try;;
32587 esac
32588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32589 $as_echo "$ac_try_echo") >&5
32590   (eval "$ac_compile") 2>conftest.er1
32591   ac_status=$?
32592   grep -v '^ *+' conftest.er1 >conftest.err
32593   rm -f conftest.er1
32594   cat conftest.err >&5
32595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); } && {
32597          test -z "$ac_c_werror_flag" ||
32598          test ! -s conftest.err
32599        } && test -s conftest.$ac_objext; then
32600   eval "$as_ac_Header=yes"
32601 else
32602   $as_echo "$as_me: failed program was:" >&5
32603 sed 's/^/| /' conftest.$ac_ext >&5
32604
32605         eval "$as_ac_Header=no"
32606 fi
32607
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609 fi
32610 ac_res=`eval 'as_val=${'$as_ac_Header'}
32611                  $as_echo "$as_val"'`
32612                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32613 $as_echo "$ac_res" >&6; }
32614 as_val=`eval 'as_val=${'$as_ac_Header'}
32615                  $as_echo "$as_val"'`
32616    if test "x$as_val" = x""yes; then
32617   cat >>confdefs.h <<_ACEOF
32618 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32619 _ACEOF
32620
32621 ac_header_dirent=$ac_hdr; break
32622 fi
32623
32624 done
32625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32626 if test $ac_header_dirent = dirent.h; then
32627   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32628 $as_echo_n "checking for library containing opendir... " >&6; }
32629 if test "${ac_cv_search_opendir+set}" = set; then
32630   $as_echo_n "(cached) " >&6
32631 else
32632   ac_func_search_save_LIBS=$LIBS
32633 cat >conftest.$ac_ext <<_ACEOF
32634 /* confdefs.h.  */
32635 _ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h.  */
32639
32640 /* Override any GCC internal prototype to avoid an error.
32641    Use char because int might match the return type of a GCC
32642    builtin and then its argument prototype would still apply.  */
32643 #ifdef __cplusplus
32644 extern "C"
32645 #endif
32646 char opendir ();
32647 int
32648 main ()
32649 {
32650 return opendir ();
32651   ;
32652   return 0;
32653 }
32654 _ACEOF
32655 for ac_lib in '' dir; do
32656   if test -z "$ac_lib"; then
32657     ac_res="none required"
32658   else
32659     ac_res=-l$ac_lib
32660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32661   fi
32662   rm -f conftest.$ac_objext conftest$ac_exeext
32663 if { (ac_try="$ac_link"
32664 case "(($ac_try" in
32665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666   *) ac_try_echo=$ac_try;;
32667 esac
32668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32669 $as_echo "$ac_try_echo") >&5
32670   (eval "$ac_link") 2>conftest.er1
32671   ac_status=$?
32672   grep -v '^ *+' conftest.er1 >conftest.err
32673   rm -f conftest.er1
32674   cat conftest.err >&5
32675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); } && {
32677          test -z "$ac_c_werror_flag" ||
32678          test ! -s conftest.err
32679        } && test -s conftest$ac_exeext && {
32680          test "$cross_compiling" = yes ||
32681          $as_test_x conftest$ac_exeext
32682        }; then
32683   ac_cv_search_opendir=$ac_res
32684 else
32685   $as_echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32687
32688
32689 fi
32690
32691 rm -rf conftest.dSYM
32692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32693       conftest$ac_exeext
32694   if test "${ac_cv_search_opendir+set}" = set; then
32695   break
32696 fi
32697 done
32698 if test "${ac_cv_search_opendir+set}" = set; then
32699   :
32700 else
32701   ac_cv_search_opendir=no
32702 fi
32703 rm conftest.$ac_ext
32704 LIBS=$ac_func_search_save_LIBS
32705 fi
32706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32707 $as_echo "$ac_cv_search_opendir" >&6; }
32708 ac_res=$ac_cv_search_opendir
32709 if test "$ac_res" != no; then
32710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32711
32712 fi
32713
32714 else
32715   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32716 $as_echo_n "checking for library containing opendir... " >&6; }
32717 if test "${ac_cv_search_opendir+set}" = set; then
32718   $as_echo_n "(cached) " >&6
32719 else
32720   ac_func_search_save_LIBS=$LIBS
32721 cat >conftest.$ac_ext <<_ACEOF
32722 /* confdefs.h.  */
32723 _ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h.  */
32727
32728 /* Override any GCC internal prototype to avoid an error.
32729    Use char because int might match the return type of a GCC
32730    builtin and then its argument prototype would still apply.  */
32731 #ifdef __cplusplus
32732 extern "C"
32733 #endif
32734 char opendir ();
32735 int
32736 main ()
32737 {
32738 return opendir ();
32739   ;
32740   return 0;
32741 }
32742 _ACEOF
32743 for ac_lib in '' x; do
32744   if test -z "$ac_lib"; then
32745     ac_res="none required"
32746   else
32747     ac_res=-l$ac_lib
32748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32749   fi
32750   rm -f conftest.$ac_objext conftest$ac_exeext
32751 if { (ac_try="$ac_link"
32752 case "(($ac_try" in
32753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754   *) ac_try_echo=$ac_try;;
32755 esac
32756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32757 $as_echo "$ac_try_echo") >&5
32758   (eval "$ac_link") 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } && {
32765          test -z "$ac_c_werror_flag" ||
32766          test ! -s conftest.err
32767        } && test -s conftest$ac_exeext && {
32768          test "$cross_compiling" = yes ||
32769          $as_test_x conftest$ac_exeext
32770        }; then
32771   ac_cv_search_opendir=$ac_res
32772 else
32773   $as_echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32775
32776
32777 fi
32778
32779 rm -rf conftest.dSYM
32780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32781       conftest$ac_exeext
32782   if test "${ac_cv_search_opendir+set}" = set; then
32783   break
32784 fi
32785 done
32786 if test "${ac_cv_search_opendir+set}" = set; then
32787   :
32788 else
32789   ac_cv_search_opendir=no
32790 fi
32791 rm conftest.$ac_ext
32792 LIBS=$ac_func_search_save_LIBS
32793 fi
32794 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32795 $as_echo "$ac_cv_search_opendir" >&6; }
32796 ac_res=$ac_cv_search_opendir
32797 if test "$ac_res" != no; then
32798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32799
32800 fi
32801
32802 fi
32803
32804 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32805 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
32806 if test "${ac_cv_header_stat_broken+set}" = set; then
32807   $as_echo_n "(cached) " >&6
32808 else
32809   cat >conftest.$ac_ext <<_ACEOF
32810 /* confdefs.h.  */
32811 _ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h.  */
32815 #include <sys/types.h>
32816 #include <sys/stat.h>
32817
32818 #if defined S_ISBLK && defined S_IFDIR
32819 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32820 #endif
32821
32822 #if defined S_ISBLK && defined S_IFCHR
32823 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32824 #endif
32825
32826 #if defined S_ISLNK && defined S_IFREG
32827 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32828 #endif
32829
32830 #if defined S_ISSOCK && defined S_IFREG
32831 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32832 #endif
32833
32834 _ACEOF
32835 rm -f conftest.$ac_objext
32836 if { (ac_try="$ac_compile"
32837 case "(($ac_try" in
32838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839   *) ac_try_echo=$ac_try;;
32840 esac
32841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32842 $as_echo "$ac_try_echo") >&5
32843   (eval "$ac_compile") 2>conftest.er1
32844   ac_status=$?
32845   grep -v '^ *+' conftest.er1 >conftest.err
32846   rm -f conftest.er1
32847   cat conftest.err >&5
32848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); } && {
32850          test -z "$ac_c_werror_flag" ||
32851          test ! -s conftest.err
32852        } && test -s conftest.$ac_objext; then
32853   ac_cv_header_stat_broken=no
32854 else
32855   $as_echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32857
32858         ac_cv_header_stat_broken=yes
32859 fi
32860
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32862 fi
32863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32864 $as_echo "$ac_cv_header_stat_broken" >&6; }
32865 if test $ac_cv_header_stat_broken = yes; then
32866
32867 cat >>confdefs.h <<\_ACEOF
32868 #define STAT_MACROS_BROKEN 1
32869 _ACEOF
32870
32871 fi
32872
32873 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32874 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
32875 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32876   $as_echo_n "(cached) " >&6
32877 else
32878   cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h.  */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h.  */
32884 #include <sys/types.h>
32885 #include <sys/wait.h>
32886 #ifndef WEXITSTATUS
32887 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32888 #endif
32889 #ifndef WIFEXITED
32890 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32891 #endif
32892
32893 int
32894 main ()
32895 {
32896   int s;
32897   wait (&s);
32898   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32899   ;
32900   return 0;
32901 }
32902 _ACEOF
32903 rm -f conftest.$ac_objext
32904 if { (ac_try="$ac_compile"
32905 case "(($ac_try" in
32906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32907   *) ac_try_echo=$ac_try;;
32908 esac
32909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32910 $as_echo "$ac_try_echo") >&5
32911   (eval "$ac_compile") 2>conftest.er1
32912   ac_status=$?
32913   grep -v '^ *+' conftest.er1 >conftest.err
32914   rm -f conftest.er1
32915   cat conftest.err >&5
32916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } && {
32918          test -z "$ac_c_werror_flag" ||
32919          test ! -s conftest.err
32920        } && test -s conftest.$ac_objext; then
32921   ac_cv_header_sys_wait_h=yes
32922 else
32923   $as_echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32925
32926         ac_cv_header_sys_wait_h=no
32927 fi
32928
32929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32930 fi
32931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32932 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
32933 if test $ac_cv_header_sys_wait_h = yes; then
32934
32935 cat >>confdefs.h <<\_ACEOF
32936 #define HAVE_SYS_WAIT_H 1
32937 _ACEOF
32938
32939 fi
32940
32941 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32942 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
32943 if test "${ac_cv_header_time+set}" = set; then
32944   $as_echo_n "(cached) " >&6
32945 else
32946   cat >conftest.$ac_ext <<_ACEOF
32947 /* confdefs.h.  */
32948 _ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h.  */
32952 #include <sys/types.h>
32953 #include <sys/time.h>
32954 #include <time.h>
32955
32956 int
32957 main ()
32958 {
32959 if ((struct tm *) 0)
32960 return 0;
32961   ;
32962   return 0;
32963 }
32964 _ACEOF
32965 rm -f conftest.$ac_objext
32966 if { (ac_try="$ac_compile"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32972 $as_echo "$ac_try_echo") >&5
32973   (eval "$ac_compile") 2>conftest.er1
32974   ac_status=$?
32975   grep -v '^ *+' conftest.er1 >conftest.err
32976   rm -f conftest.er1
32977   cat conftest.err >&5
32978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979   (exit $ac_status); } && {
32980          test -z "$ac_c_werror_flag" ||
32981          test ! -s conftest.err
32982        } && test -s conftest.$ac_objext; then
32983   ac_cv_header_time=yes
32984 else
32985   $as_echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32987
32988         ac_cv_header_time=no
32989 fi
32990
32991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32992 fi
32993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32994 $as_echo "$ac_cv_header_time" >&6; }
32995 if test $ac_cv_header_time = yes; then
32996
32997 cat >>confdefs.h <<\_ACEOF
32998 #define TIME_WITH_SYS_TIME 1
32999 _ACEOF
33000
33001 fi
33002
33003 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33004 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33005 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33006   $as_echo_n "(cached) " >&6
33007 else
33008   cat >conftest.$ac_ext <<_ACEOF
33009 /* confdefs.h.  */
33010 _ACEOF
33011 cat confdefs.h >>conftest.$ac_ext
33012 cat >>conftest.$ac_ext <<_ACEOF
33013 /* end confdefs.h.  */
33014 $ac_includes_default
33015 int
33016 main ()
33017 {
33018 static struct stat ac_aggr;
33019 if (ac_aggr.st_blksize)
33020 return 0;
33021   ;
33022   return 0;
33023 }
33024 _ACEOF
33025 rm -f conftest.$ac_objext
33026 if { (ac_try="$ac_compile"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33032 $as_echo "$ac_try_echo") >&5
33033   (eval "$ac_compile") 2>conftest.er1
33034   ac_status=$?
33035   grep -v '^ *+' conftest.er1 >conftest.err
33036   rm -f conftest.er1
33037   cat conftest.err >&5
33038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039   (exit $ac_status); } && {
33040          test -z "$ac_c_werror_flag" ||
33041          test ! -s conftest.err
33042        } && test -s conftest.$ac_objext; then
33043   ac_cv_member_struct_stat_st_blksize=yes
33044 else
33045   $as_echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33047
33048         cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h.  */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h.  */
33054 $ac_includes_default
33055 int
33056 main ()
33057 {
33058 static struct stat ac_aggr;
33059 if (sizeof ac_aggr.st_blksize)
33060 return 0;
33061   ;
33062   return 0;
33063 }
33064 _ACEOF
33065 rm -f conftest.$ac_objext
33066 if { (ac_try="$ac_compile"
33067 case "(($ac_try" in
33068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069   *) ac_try_echo=$ac_try;;
33070 esac
33071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33072 $as_echo "$ac_try_echo") >&5
33073   (eval "$ac_compile") 2>conftest.er1
33074   ac_status=$?
33075   grep -v '^ *+' conftest.er1 >conftest.err
33076   rm -f conftest.er1
33077   cat conftest.err >&5
33078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); } && {
33080          test -z "$ac_c_werror_flag" ||
33081          test ! -s conftest.err
33082        } && test -s conftest.$ac_objext; then
33083   ac_cv_member_struct_stat_st_blksize=yes
33084 else
33085   $as_echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33087
33088         ac_cv_member_struct_stat_st_blksize=no
33089 fi
33090
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33092 fi
33093
33094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33095 fi
33096 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33097 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33098 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33099
33100 cat >>confdefs.h <<_ACEOF
33101 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33102 _ACEOF
33103
33104
33105 cat >>confdefs.h <<\_ACEOF
33106 #define HAVE_ST_BLKSIZE 1
33107 _ACEOF
33108
33109 fi
33110
33111
33112 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33113 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33114 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33115   $as_echo_n "(cached) " >&6
33116 else
33117   cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123 $ac_includes_default
33124 int
33125 main ()
33126 {
33127 static struct stat ac_aggr;
33128 if (ac_aggr.st_blocks)
33129 return 0;
33130   ;
33131   return 0;
33132 }
33133 _ACEOF
33134 rm -f conftest.$ac_objext
33135 if { (ac_try="$ac_compile"
33136 case "(($ac_try" in
33137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138   *) ac_try_echo=$ac_try;;
33139 esac
33140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33141 $as_echo "$ac_try_echo") >&5
33142   (eval "$ac_compile") 2>conftest.er1
33143   ac_status=$?
33144   grep -v '^ *+' conftest.er1 >conftest.err
33145   rm -f conftest.er1
33146   cat conftest.err >&5
33147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } && {
33149          test -z "$ac_c_werror_flag" ||
33150          test ! -s conftest.err
33151        } && test -s conftest.$ac_objext; then
33152   ac_cv_member_struct_stat_st_blocks=yes
33153 else
33154   $as_echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33156
33157         cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163 $ac_includes_default
33164 int
33165 main ()
33166 {
33167 static struct stat ac_aggr;
33168 if (sizeof ac_aggr.st_blocks)
33169 return 0;
33170   ;
33171   return 0;
33172 }
33173 _ACEOF
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178   *) ac_try_echo=$ac_try;;
33179 esac
33180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33181 $as_echo "$ac_try_echo") >&5
33182   (eval "$ac_compile") 2>conftest.er1
33183   ac_status=$?
33184   grep -v '^ *+' conftest.er1 >conftest.err
33185   rm -f conftest.er1
33186   cat conftest.err >&5
33187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188   (exit $ac_status); } && {
33189          test -z "$ac_c_werror_flag" ||
33190          test ! -s conftest.err
33191        } && test -s conftest.$ac_objext; then
33192   ac_cv_member_struct_stat_st_blocks=yes
33193 else
33194   $as_echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33196
33197         ac_cv_member_struct_stat_st_blocks=no
33198 fi
33199
33200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33201 fi
33202
33203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33204 fi
33205 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33206 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33207 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33208
33209 cat >>confdefs.h <<_ACEOF
33210 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33211 _ACEOF
33212
33213
33214 cat >>confdefs.h <<\_ACEOF
33215 #define HAVE_ST_BLOCKS 1
33216 _ACEOF
33217
33218 else
33219   case " $LIBOBJS " in
33220   *" fileblocks.$ac_objext "* ) ;;
33221   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33222  ;;
33223 esac
33224
33225 fi
33226
33227
33228 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33229 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33230 if test "${ac_cv_struct_tm+set}" = set; then
33231   $as_echo_n "(cached) " >&6
33232 else
33233   cat >conftest.$ac_ext <<_ACEOF
33234 /* confdefs.h.  */
33235 _ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h.  */
33239 #include <sys/types.h>
33240 #include <time.h>
33241
33242 int
33243 main ()
33244 {
33245 struct tm tm;
33246                                      int *p = &tm.tm_sec;
33247                                      return !p;
33248   ;
33249   return 0;
33250 }
33251 _ACEOF
33252 rm -f conftest.$ac_objext
33253 if { (ac_try="$ac_compile"
33254 case "(($ac_try" in
33255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256   *) ac_try_echo=$ac_try;;
33257 esac
33258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33259 $as_echo "$ac_try_echo") >&5
33260   (eval "$ac_compile") 2>conftest.er1
33261   ac_status=$?
33262   grep -v '^ *+' conftest.er1 >conftest.err
33263   rm -f conftest.er1
33264   cat conftest.err >&5
33265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266   (exit $ac_status); } && {
33267          test -z "$ac_c_werror_flag" ||
33268          test ! -s conftest.err
33269        } && test -s conftest.$ac_objext; then
33270   ac_cv_struct_tm=time.h
33271 else
33272   $as_echo "$as_me: failed program was:" >&5
33273 sed 's/^/| /' conftest.$ac_ext >&5
33274
33275         ac_cv_struct_tm=sys/time.h
33276 fi
33277
33278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33279 fi
33280 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33281 $as_echo "$ac_cv_struct_tm" >&6; }
33282 if test $ac_cv_struct_tm = sys/time.h; then
33283
33284 cat >>confdefs.h <<\_ACEOF
33285 #define TM_IN_SYS_TIME 1
33286 _ACEOF
33287
33288 fi
33289
33290 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33291 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33292 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33293   $as_echo_n "(cached) " >&6
33294 else
33295   cat >conftest.$ac_ext <<_ACEOF
33296 /* confdefs.h.  */
33297 _ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h.  */
33301 #include <sys/types.h>
33302 #include <$ac_cv_struct_tm>
33303
33304
33305 int
33306 main ()
33307 {
33308 static struct tm ac_aggr;
33309 if (ac_aggr.tm_zone)
33310 return 0;
33311   ;
33312   return 0;
33313 }
33314 _ACEOF
33315 rm -f conftest.$ac_objext
33316 if { (ac_try="$ac_compile"
33317 case "(($ac_try" in
33318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319   *) ac_try_echo=$ac_try;;
33320 esac
33321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33322 $as_echo "$ac_try_echo") >&5
33323   (eval "$ac_compile") 2>conftest.er1
33324   ac_status=$?
33325   grep -v '^ *+' conftest.er1 >conftest.err
33326   rm -f conftest.er1
33327   cat conftest.err >&5
33328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); } && {
33330          test -z "$ac_c_werror_flag" ||
33331          test ! -s conftest.err
33332        } && test -s conftest.$ac_objext; then
33333   ac_cv_member_struct_tm_tm_zone=yes
33334 else
33335   $as_echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338         cat >conftest.$ac_ext <<_ACEOF
33339 /* confdefs.h.  */
33340 _ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h.  */
33344 #include <sys/types.h>
33345 #include <$ac_cv_struct_tm>
33346
33347
33348 int
33349 main ()
33350 {
33351 static struct tm ac_aggr;
33352 if (sizeof ac_aggr.tm_zone)
33353 return 0;
33354   ;
33355   return 0;
33356 }
33357 _ACEOF
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33365 $as_echo "$ac_try_echo") >&5
33366   (eval "$ac_compile") 2>conftest.er1
33367   ac_status=$?
33368   grep -v '^ *+' conftest.er1 >conftest.err
33369   rm -f conftest.er1
33370   cat conftest.err >&5
33371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372   (exit $ac_status); } && {
33373          test -z "$ac_c_werror_flag" ||
33374          test ! -s conftest.err
33375        } && test -s conftest.$ac_objext; then
33376   ac_cv_member_struct_tm_tm_zone=yes
33377 else
33378   $as_echo "$as_me: failed program was:" >&5
33379 sed 's/^/| /' conftest.$ac_ext >&5
33380
33381         ac_cv_member_struct_tm_tm_zone=no
33382 fi
33383
33384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33385 fi
33386
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388 fi
33389 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33390 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33391 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33392
33393 cat >>confdefs.h <<_ACEOF
33394 #define HAVE_STRUCT_TM_TM_ZONE 1
33395 _ACEOF
33396
33397
33398 fi
33399
33400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33401
33402 cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_TM_ZONE 1
33404 _ACEOF
33405
33406 else
33407   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33408 $as_echo_n "checking whether tzname is declared... " >&6; }
33409 if test "${ac_cv_have_decl_tzname+set}" = set; then
33410   $as_echo_n "(cached) " >&6
33411 else
33412   cat >conftest.$ac_ext <<_ACEOF
33413 /* confdefs.h.  */
33414 _ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h.  */
33418 #include <time.h>
33419
33420 int
33421 main ()
33422 {
33423 #ifndef tzname
33424   (void) tzname;
33425 #endif
33426
33427   ;
33428   return 0;
33429 }
33430 _ACEOF
33431 rm -f conftest.$ac_objext
33432 if { (ac_try="$ac_compile"
33433 case "(($ac_try" in
33434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33435   *) ac_try_echo=$ac_try;;
33436 esac
33437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33438 $as_echo "$ac_try_echo") >&5
33439   (eval "$ac_compile") 2>conftest.er1
33440   ac_status=$?
33441   grep -v '^ *+' conftest.er1 >conftest.err
33442   rm -f conftest.er1
33443   cat conftest.err >&5
33444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445   (exit $ac_status); } && {
33446          test -z "$ac_c_werror_flag" ||
33447          test ! -s conftest.err
33448        } && test -s conftest.$ac_objext; then
33449   ac_cv_have_decl_tzname=yes
33450 else
33451   $as_echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33453
33454         ac_cv_have_decl_tzname=no
33455 fi
33456
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458 fi
33459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33460 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33461 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33462
33463 cat >>confdefs.h <<_ACEOF
33464 #define HAVE_DECL_TZNAME 1
33465 _ACEOF
33466
33467
33468 else
33469   cat >>confdefs.h <<_ACEOF
33470 #define HAVE_DECL_TZNAME 0
33471 _ACEOF
33472
33473
33474 fi
33475
33476
33477   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33478 $as_echo_n "checking for tzname... " >&6; }
33479 if test "${ac_cv_var_tzname+set}" = set; then
33480   $as_echo_n "(cached) " >&6
33481 else
33482   cat >conftest.$ac_ext <<_ACEOF
33483 /* confdefs.h.  */
33484 _ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h.  */
33488 #include <time.h>
33489 #if !HAVE_DECL_TZNAME
33490 extern char *tzname[];
33491 #endif
33492
33493 int
33494 main ()
33495 {
33496 return tzname[0][0];
33497   ;
33498   return 0;
33499 }
33500 _ACEOF
33501 rm -f conftest.$ac_objext conftest$ac_exeext
33502 if { (ac_try="$ac_link"
33503 case "(($ac_try" in
33504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33505   *) ac_try_echo=$ac_try;;
33506 esac
33507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33508 $as_echo "$ac_try_echo") >&5
33509   (eval "$ac_link") 2>conftest.er1
33510   ac_status=$?
33511   grep -v '^ *+' conftest.er1 >conftest.err
33512   rm -f conftest.er1
33513   cat conftest.err >&5
33514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515   (exit $ac_status); } && {
33516          test -z "$ac_c_werror_flag" ||
33517          test ! -s conftest.err
33518        } && test -s conftest$ac_exeext && {
33519          test "$cross_compiling" = yes ||
33520          $as_test_x conftest$ac_exeext
33521        }; then
33522   ac_cv_var_tzname=yes
33523 else
33524   $as_echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33526
33527         ac_cv_var_tzname=no
33528 fi
33529
33530 rm -rf conftest.dSYM
33531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33532       conftest$ac_exeext conftest.$ac_ext
33533 fi
33534 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33535 $as_echo "$ac_cv_var_tzname" >&6; }
33536   if test $ac_cv_var_tzname = yes; then
33537
33538 cat >>confdefs.h <<\_ACEOF
33539 #define HAVE_TZNAME 1
33540 _ACEOF
33541
33542   fi
33543 fi
33544
33545
33546 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33547 $as_echo_n "checking for utime.h... " >&6; }
33548 if test "${ba_cv_header_utime_h+set}" = set; then
33549   $as_echo_n "(cached) " >&6
33550 else
33551
33552        cat >conftest.$ac_ext <<_ACEOF
33553 /* confdefs.h.  */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h.  */
33558
33559               #include <sys/types.h>
33560               #include <utime.h>
33561
33562 int
33563 main ()
33564 {
33565
33566               struct utimbuf foo
33567
33568   ;
33569   return 0;
33570 }
33571 _ACEOF
33572 rm -f conftest.$ac_objext
33573 if { (ac_try="$ac_compile"
33574 case "(($ac_try" in
33575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576   *) ac_try_echo=$ac_try;;
33577 esac
33578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33579 $as_echo "$ac_try_echo") >&5
33580   (eval "$ac_compile") 2>conftest.er1
33581   ac_status=$?
33582   grep -v '^ *+' conftest.er1 >conftest.err
33583   rm -f conftest.er1
33584   cat conftest.err >&5
33585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586   (exit $ac_status); } && {
33587          test -z "$ac_c_werror_flag" ||
33588          test ! -s conftest.err
33589        } && test -s conftest.$ac_objext; then
33590
33591               ba_cv_header_utime_h=yes
33592
33593 else
33594   $as_echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33596
33597
33598               ba_cv_header_utime_h=no
33599
33600
33601 fi
33602
33603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33604
33605
33606 fi
33607 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33608 $as_echo "$ba_cv_header_utime_h" >&6; }
33609 test $ba_cv_header_utime_h = yes &&
33610 cat >>confdefs.h <<\_ACEOF
33611 #define HAVE_UTIME_H 1
33612 _ACEOF
33613
33614
33615 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33616 $as_echo_n "checking for socklen_t... " >&6; }
33617 if test "${ba_cv_header_socklen_t+set}" = set; then
33618   $as_echo_n "(cached) " >&6
33619 else
33620
33621        cat >conftest.$ac_ext <<_ACEOF
33622 /* confdefs.h.  */
33623 _ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h.  */
33627
33628               #include <sys/types.h>
33629               #include <sys/socket.h>
33630
33631 int
33632 main ()
33633 {
33634
33635               socklen_t x
33636
33637   ;
33638   return 0;
33639 }
33640 _ACEOF
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645   *) ac_try_echo=$ac_try;;
33646 esac
33647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33648 $as_echo "$ac_try_echo") >&5
33649   (eval "$ac_compile") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && {
33656          test -z "$ac_c_werror_flag" ||
33657          test ! -s conftest.err
33658        } && test -s conftest.$ac_objext; then
33659
33660              ba_cv_header_socklen_t=yes
33661
33662 else
33663   $as_echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33665
33666
33667              ba_cv_header_socklen_t=no
33668
33669
33670 fi
33671
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673
33674
33675 fi
33676 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33677 $as_echo "$ba_cv_header_socklen_t" >&6; }
33678 test $ba_cv_header_socklen_t = yes &&
33679 cat >>confdefs.h <<\_ACEOF
33680 #define HAVE_SOCKLEN_T 1
33681 _ACEOF
33682
33683
33684 ac_ext=cpp
33685 ac_cpp='$CXXCPP $CPPFLAGS'
33686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33689
33690 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33691 $as_echo_n "checking for ioctl_req_t... " >&6; }
33692 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33693   $as_echo_n "(cached) " >&6
33694 else
33695
33696        cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h.  */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h.  */
33702
33703               #include <unistd.h>
33704               #include <sys/types.h>
33705               #include <sys/ioctl.h>
33706
33707 int
33708 main ()
33709 {
33710
33711               int (*d_ioctl)(int fd, unsigned long int request, ...);
33712               d_ioctl = ::ioctl;
33713
33714   ;
33715   return 0;
33716 }
33717 _ACEOF
33718 rm -f conftest.$ac_objext
33719 if { (ac_try="$ac_compile"
33720 case "(($ac_try" in
33721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33722   *) ac_try_echo=$ac_try;;
33723 esac
33724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33725 $as_echo "$ac_try_echo") >&5
33726   (eval "$ac_compile") 2>conftest.er1
33727   ac_status=$?
33728   grep -v '^ *+' conftest.er1 >conftest.err
33729   rm -f conftest.er1
33730   cat conftest.err >&5
33731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732   (exit $ac_status); } && {
33733          test -z "$ac_cxx_werror_flag" ||
33734          test ! -s conftest.err
33735        } && test -s conftest.$ac_objext; then
33736
33737              ba_cv_header_ioctl_req_t=yes
33738
33739 else
33740   $as_echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743
33744              ba_cv_header_ioctl_req_t=no
33745
33746
33747 fi
33748
33749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33750
33751
33752 fi
33753 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33754 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33755 test $ba_cv_header_ioctl_req_t = yes &&
33756 cat >>confdefs.h <<\_ACEOF
33757 #define HAVE_IOCTL_ULINT_REQUEST 1
33758 _ACEOF
33759
33760
33761 ac_ext=c
33762 ac_cpp='$CPP $CPPFLAGS'
33763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33766
33767
33768 ac_ext=cpp
33769 ac_cpp='$CXXCPP $CPPFLAGS'
33770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33773
33774 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33775 $as_echo_n "checking for typeof... " >&6; }
33776 if test "${ba_cv_have_typeof+set}" = set; then
33777   $as_echo_n "(cached) " >&6
33778 else
33779
33780        if test "$cross_compiling" = yes; then
33781
33782               ba_cv_have_typeof=no
33783
33784
33785 else
33786   cat >conftest.$ac_ext <<_ACEOF
33787 /* confdefs.h.  */
33788 _ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h.  */
33792
33793               main(){char *a = 0; a = (typeof a)a;}
33794
33795 _ACEOF
33796 rm -f conftest$ac_exeext
33797 if { (ac_try="$ac_link"
33798 case "(($ac_try" in
33799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800   *) ac_try_echo=$ac_try;;
33801 esac
33802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33803 $as_echo "$ac_try_echo") >&5
33804   (eval "$ac_link") 2>&5
33805   ac_status=$?
33806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33808   { (case "(($ac_try" in
33809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33810   *) ac_try_echo=$ac_try;;
33811 esac
33812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33813 $as_echo "$ac_try_echo") >&5
33814   (eval "$ac_try") 2>&5
33815   ac_status=$?
33816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817   (exit $ac_status); }; }; then
33818
33819               ba_cv_have_typeof=yes
33820
33821 else
33822   $as_echo "$as_me: program exited with status $ac_status" >&5
33823 $as_echo "$as_me: failed program was:" >&5
33824 sed 's/^/| /' conftest.$ac_ext >&5
33825
33826 ( exit $ac_status )
33827
33828               ba_cv_have_typeof=no
33829
33830 fi
33831 rm -rf conftest.dSYM
33832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33833 fi
33834
33835
33836
33837
33838 fi
33839 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33840 $as_echo "$ba_cv_have_typeof" >&6; }
33841 test $ba_cv_have_typeof = yes &&
33842 cat >>confdefs.h <<\_ACEOF
33843 #define HAVE_TYPEOF 1
33844 _ACEOF
33845
33846 ac_ext=c
33847 ac_cpp='$CPP $CPPFLAGS'
33848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33851
33852
33853 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33854 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33855 if test "${ac_cv_c_const+set}" = set; then
33856   $as_echo_n "(cached) " >&6
33857 else
33858   cat >conftest.$ac_ext <<_ACEOF
33859 /* confdefs.h.  */
33860 _ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h.  */
33864
33865 int
33866 main ()
33867 {
33868 /* FIXME: Include the comments suggested by Paul. */
33869 #ifndef __cplusplus
33870   /* Ultrix mips cc rejects this.  */
33871   typedef int charset[2];
33872   const charset cs;
33873   /* SunOS 4.1.1 cc rejects this.  */
33874   char const *const *pcpcc;
33875   char **ppc;
33876   /* NEC SVR4.0.2 mips cc rejects this.  */
33877   struct point {int x, y;};
33878   static struct point const zero = {0,0};
33879   /* AIX XL C 1.02.0.0 rejects this.
33880      It does not let you subtract one const X* pointer from another in
33881      an arm of an if-expression whose if-part is not a constant
33882      expression */
33883   const char *g = "string";
33884   pcpcc = &g + (g ? g-g : 0);
33885   /* HPUX 7.0 cc rejects these. */
33886   ++pcpcc;
33887   ppc = (char**) pcpcc;
33888   pcpcc = (char const *const *) ppc;
33889   { /* SCO 3.2v4 cc rejects this.  */
33890     char *t;
33891     char const *s = 0 ? (char *) 0 : (char const *) 0;
33892
33893     *t++ = 0;
33894     if (s) return 0;
33895   }
33896   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33897     int x[] = {25, 17};
33898     const int *foo = &x[0];
33899     ++foo;
33900   }
33901   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33902     typedef const int *iptr;
33903     iptr p = 0;
33904     ++p;
33905   }
33906   { /* AIX XL C 1.02.0.0 rejects this saying
33907        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33908     struct s { int j; const int *ap[3]; };
33909     struct s *b; b->j = 5;
33910   }
33911   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33912     const int foo = 10;
33913     if (!foo) return 0;
33914   }
33915   return !cs[0] && !zero.x;
33916 #endif
33917
33918   ;
33919   return 0;
33920 }
33921 _ACEOF
33922 rm -f conftest.$ac_objext
33923 if { (ac_try="$ac_compile"
33924 case "(($ac_try" in
33925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926   *) ac_try_echo=$ac_try;;
33927 esac
33928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33929 $as_echo "$ac_try_echo") >&5
33930   (eval "$ac_compile") 2>conftest.er1
33931   ac_status=$?
33932   grep -v '^ *+' conftest.er1 >conftest.err
33933   rm -f conftest.er1
33934   cat conftest.err >&5
33935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); } && {
33937          test -z "$ac_c_werror_flag" ||
33938          test ! -s conftest.err
33939        } && test -s conftest.$ac_objext; then
33940   ac_cv_c_const=yes
33941 else
33942   $as_echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945         ac_cv_c_const=no
33946 fi
33947
33948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33949 fi
33950 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33951 $as_echo "$ac_cv_c_const" >&6; }
33952 if test $ac_cv_c_const = no; then
33953
33954 cat >>confdefs.h <<\_ACEOF
33955 #define const /**/
33956 _ACEOF
33957
33958 fi
33959
33960
33961 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33962 $as_echo_n "checking how to get filesystem type... " >&6; }
33963 fstype=no
33964 # The order of these tests is important.
33965 cat >conftest.$ac_ext <<_ACEOF
33966 /* confdefs.h.  */
33967 _ACEOF
33968 cat confdefs.h >>conftest.$ac_ext
33969 cat >>conftest.$ac_ext <<_ACEOF
33970 /* end confdefs.h.  */
33971
33972        #include <sys/statvfs.h>
33973        #include <sys/fstyp.h>
33974
33975 _ACEOF
33976 if { (ac_try="$ac_cpp conftest.$ac_ext"
33977 case "(($ac_try" in
33978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979   *) ac_try_echo=$ac_try;;
33980 esac
33981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33982 $as_echo "$ac_try_echo") >&5
33983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33984   ac_status=$?
33985   grep -v '^ *+' conftest.er1 >conftest.err
33986   rm -f conftest.er1
33987   cat conftest.err >&5
33988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989   (exit $ac_status); } >/dev/null && {
33990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33991          test ! -s conftest.err
33992        }; then
33993   cat >>confdefs.h <<\_ACEOF
33994 #define FSTYPE_STATVFS 1
33995 _ACEOF
33996  fstype=SVR4
33997
33998 else
33999   $as_echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34001
34002
34003 fi
34004
34005 rm -f conftest.err conftest.$ac_ext
34006 if test $fstype = no; then
34007    cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h.  */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h.  */
34013
34014           #include <sys/statfs.h>
34015           #include <sys/fstyp.h>
34016
34017 _ACEOF
34018 if { (ac_try="$ac_cpp conftest.$ac_ext"
34019 case "(($ac_try" in
34020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021   *) ac_try_echo=$ac_try;;
34022 esac
34023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34024 $as_echo "$ac_try_echo") >&5
34025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34026   ac_status=$?
34027   grep -v '^ *+' conftest.er1 >conftest.err
34028   rm -f conftest.er1
34029   cat conftest.err >&5
34030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031   (exit $ac_status); } >/dev/null && {
34032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34033          test ! -s conftest.err
34034        }; then
34035   cat >>confdefs.h <<\_ACEOF
34036 #define FSTYPE_USG_STATFS 1
34037 _ACEOF
34038  fstype=SVR3
34039
34040 else
34041   $as_echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044
34045 fi
34046
34047 rm -f conftest.err conftest.$ac_ext
34048 fi
34049 if test $fstype = no; then
34050    cat >conftest.$ac_ext <<_ACEOF
34051 /* confdefs.h.  */
34052 _ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h.  */
34056
34057           #include <sys/statfs.h>
34058           #include <sys/vmount.h>
34059
34060 _ACEOF
34061 if { (ac_try="$ac_cpp conftest.$ac_ext"
34062 case "(($ac_try" in
34063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064   *) ac_try_echo=$ac_try;;
34065 esac
34066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34067 $as_echo "$ac_try_echo") >&5
34068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34069   ac_status=$?
34070   grep -v '^ *+' conftest.er1 >conftest.err
34071   rm -f conftest.er1
34072   cat conftest.err >&5
34073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074   (exit $ac_status); } >/dev/null && {
34075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34076          test ! -s conftest.err
34077        }; then
34078   cat >>confdefs.h <<\_ACEOF
34079 #define FSTYPE_AIX_STATFS 1
34080 _ACEOF
34081  fstype=AIX
34082
34083 else
34084   $as_echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087
34088 fi
34089
34090 rm -f conftest.err conftest.$ac_ext
34091 fi
34092 if test $fstype = no; then
34093    cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h.  */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h.  */
34099
34100           #include <mntent.h>
34101
34102 _ACEOF
34103 if { (ac_try="$ac_cpp conftest.$ac_ext"
34104 case "(($ac_try" in
34105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34106   *) ac_try_echo=$ac_try;;
34107 esac
34108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34109 $as_echo "$ac_try_echo") >&5
34110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34111   ac_status=$?
34112   grep -v '^ *+' conftest.er1 >conftest.err
34113   rm -f conftest.er1
34114   cat conftest.err >&5
34115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116   (exit $ac_status); } >/dev/null && {
34117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34118          test ! -s conftest.err
34119        }; then
34120   cat >>confdefs.h <<\_ACEOF
34121 #define FSTYPE_MNTENT 1
34122 _ACEOF
34123  fstype=4.3BSD
34124
34125 else
34126   $as_echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.$ac_ext >&5
34128
34129
34130 fi
34131
34132 rm -f conftest.err conftest.$ac_ext
34133 fi
34134 if test $fstype = no; then
34135    cat >conftest.$ac_ext <<_ACEOF
34136 /* confdefs.h.  */
34137 _ACEOF
34138 cat confdefs.h >>conftest.$ac_ext
34139 cat >>conftest.$ac_ext <<_ACEOF
34140 /* end confdefs.h.  */
34141 #include <sys/mount.h>
34142
34143 _ACEOF
34144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34145   $EGREP "f_type;" >/dev/null 2>&1; then
34146   cat >>confdefs.h <<\_ACEOF
34147 #define FSTYPE_STATFS 1
34148 _ACEOF
34149  fstype=4.4BSD/OSF1
34150 fi
34151 rm -f conftest*
34152
34153 fi
34154 if test $fstype = no; then
34155    cat >conftest.$ac_ext <<_ACEOF
34156 /* confdefs.h.  */
34157 _ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h.  */
34161
34162           #include <sys/mount.h>
34163           #include <sys/fs_types.h>
34164
34165 _ACEOF
34166 if { (ac_try="$ac_cpp conftest.$ac_ext"
34167 case "(($ac_try" in
34168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169   *) ac_try_echo=$ac_try;;
34170 esac
34171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34172 $as_echo "$ac_try_echo") >&5
34173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34174   ac_status=$?
34175   grep -v '^ *+' conftest.er1 >conftest.err
34176   rm -f conftest.er1
34177   cat conftest.err >&5
34178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179   (exit $ac_status); } >/dev/null && {
34180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34181          test ! -s conftest.err
34182        }; then
34183   cat >>confdefs.h <<\_ACEOF
34184 #define FSTYPE_GETMNT 1
34185 _ACEOF
34186  fstype=Ultrix
34187
34188 else
34189   $as_echo "$as_me: failed program was:" >&5
34190 sed 's/^/| /' conftest.$ac_ext >&5
34191
34192
34193 fi
34194
34195 rm -f conftest.err conftest.$ac_ext
34196 fi
34197 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34198 $as_echo "$fstype" >&6; }
34199
34200 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34201   { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34202 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34203 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34204   $as_echo_n "(cached) " >&6
34205 fi
34206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34207 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34208 else
34209   # Is the header compilable?
34210 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34211 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34212 cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h.  */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h.  */
34218 $ac_includes_default
34219 #include <sys/statvfs.h>
34220 _ACEOF
34221 rm -f conftest.$ac_objext
34222 if { (ac_try="$ac_compile"
34223 case "(($ac_try" in
34224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225   *) ac_try_echo=$ac_try;;
34226 esac
34227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34228 $as_echo "$ac_try_echo") >&5
34229   (eval "$ac_compile") 2>conftest.er1
34230   ac_status=$?
34231   grep -v '^ *+' conftest.er1 >conftest.err
34232   rm -f conftest.er1
34233   cat conftest.err >&5
34234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235   (exit $ac_status); } && {
34236          test -z "$ac_c_werror_flag" ||
34237          test ! -s conftest.err
34238        } && test -s conftest.$ac_objext; then
34239   ac_header_compiler=yes
34240 else
34241   $as_echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34243
34244         ac_header_compiler=no
34245 fi
34246
34247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34249 $as_echo "$ac_header_compiler" >&6; }
34250
34251 # Is the header present?
34252 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34253 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34254 cat >conftest.$ac_ext <<_ACEOF
34255 /* confdefs.h.  */
34256 _ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h.  */
34260 #include <sys/statvfs.h>
34261 _ACEOF
34262 if { (ac_try="$ac_cpp conftest.$ac_ext"
34263 case "(($ac_try" in
34264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265   *) ac_try_echo=$ac_try;;
34266 esac
34267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34268 $as_echo "$ac_try_echo") >&5
34269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34270   ac_status=$?
34271   grep -v '^ *+' conftest.er1 >conftest.err
34272   rm -f conftest.er1
34273   cat conftest.err >&5
34274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); } >/dev/null && {
34276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34277          test ! -s conftest.err
34278        }; then
34279   ac_header_preproc=yes
34280 else
34281   $as_echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34283
34284   ac_header_preproc=no
34285 fi
34286
34287 rm -f conftest.err conftest.$ac_ext
34288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34289 $as_echo "$ac_header_preproc" >&6; }
34290
34291 # So?  What about this header?
34292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34293   yes:no: )
34294     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34295 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34296     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34297 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34298     ac_header_preproc=yes
34299     ;;
34300   no:yes:* )
34301     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34302 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34303     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
34304 $as_echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
34305     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34306 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34307     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
34308 $as_echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34309     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34310 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34311     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34312 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34313
34314     ;;
34315 esac
34316 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34317 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34318 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34319   $as_echo_n "(cached) " >&6
34320 else
34321   ac_cv_header_sys_statvfs_h=$ac_header_preproc
34322 fi
34323 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34324 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34325
34326 fi
34327 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34328
34329 cat >>confdefs.h <<\_ACEOF
34330 #define HAVE_SYS_STATVFS_H 1
34331 _ACEOF
34332
34333 fi
34334
34335
34336
34337 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34338 $as_echo_n "checking return type of signal handlers... " >&6; }
34339 if test "${ac_cv_type_signal+set}" = set; then
34340   $as_echo_n "(cached) " >&6
34341 else
34342   cat >conftest.$ac_ext <<_ACEOF
34343 /* confdefs.h.  */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h.  */
34348 #include <sys/types.h>
34349 #include <signal.h>
34350
34351 int
34352 main ()
34353 {
34354 return *(signal (0, 0)) (0) == 1;
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34366 $as_echo "$ac_try_echo") >&5
34367   (eval "$ac_compile") 2>conftest.er1
34368   ac_status=$?
34369   grep -v '^ *+' conftest.er1 >conftest.err
34370   rm -f conftest.er1
34371   cat conftest.err >&5
34372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); } && {
34374          test -z "$ac_c_werror_flag" ||
34375          test ! -s conftest.err
34376        } && test -s conftest.$ac_objext; then
34377   ac_cv_type_signal=int
34378 else
34379   $as_echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34381
34382         ac_cv_type_signal=void
34383 fi
34384
34385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34386 fi
34387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34388 $as_echo "$ac_cv_type_signal" >&6; }
34389
34390 cat >>confdefs.h <<_ACEOF
34391 #define RETSIGTYPE $ac_cv_type_signal
34392 _ACEOF
34393
34394
34395
34396   { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34397 $as_echo_n "checking for type of signal functions... " >&6; }
34398   if test "${bash_cv_signal_vintage+set}" = set; then
34399   $as_echo_n "(cached) " >&6
34400 else
34401
34402     cat >conftest.$ac_ext <<_ACEOF
34403 /* confdefs.h.  */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h.  */
34408 #include <signal.h>
34409 int
34410 main ()
34411 {
34412
34413       sigset_t ss;
34414       struct sigaction sa;
34415       sigemptyset(&ss); sigsuspend(&ss);
34416       sigaction(SIGINT, &sa, (struct sigaction *) 0);
34417       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34418
34419   ;
34420   return 0;
34421 }
34422 _ACEOF
34423 rm -f conftest.$ac_objext conftest$ac_exeext
34424 if { (ac_try="$ac_link"
34425 case "(($ac_try" in
34426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34427   *) ac_try_echo=$ac_try;;
34428 esac
34429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34430 $as_echo "$ac_try_echo") >&5
34431   (eval "$ac_link") 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } && {
34438          test -z "$ac_c_werror_flag" ||
34439          test ! -s conftest.err
34440        } && test -s conftest$ac_exeext && {
34441          test "$cross_compiling" = yes ||
34442          $as_test_x conftest$ac_exeext
34443        }; then
34444   bash_cv_signal_vintage="posix"
34445 else
34446   $as_echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.$ac_ext >&5
34448
34449
34450       cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h.  */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h.  */
34456 #include <signal.h>
34457 int
34458 main ()
34459 {
34460
34461           int mask = sigmask(SIGINT);
34462           sigsetmask(mask); sigblock(mask); sigpause(mask);
34463
34464   ;
34465   return 0;
34466 }
34467 _ACEOF
34468 rm -f conftest.$ac_objext conftest$ac_exeext
34469 if { (ac_try="$ac_link"
34470 case "(($ac_try" in
34471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34472   *) ac_try_echo=$ac_try;;
34473 esac
34474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34475 $as_echo "$ac_try_echo") >&5
34476   (eval "$ac_link") 2>conftest.er1
34477   ac_status=$?
34478   grep -v '^ *+' conftest.er1 >conftest.err
34479   rm -f conftest.er1
34480   cat conftest.err >&5
34481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); } && {
34483          test -z "$ac_c_werror_flag" ||
34484          test ! -s conftest.err
34485        } && test -s conftest$ac_exeext && {
34486          test "$cross_compiling" = yes ||
34487          $as_test_x conftest$ac_exeext
34488        }; then
34489   bash_cv_signal_vintage="4.2bsd"
34490 else
34491   $as_echo "$as_me: failed program was:" >&5
34492 sed 's/^/| /' conftest.$ac_ext >&5
34493
34494
34495         cat >conftest.$ac_ext <<_ACEOF
34496 /* confdefs.h.  */
34497 _ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h.  */
34501
34502           #include <signal.h>
34503           RETSIGTYPE foo() { }
34504 int
34505 main ()
34506 {
34507
34508                   int mask = sigmask(SIGINT);
34509                   sigset(SIGINT, foo); sigrelse(SIGINT);
34510                   sighold(SIGINT); sigpause(SIGINT);
34511
34512   ;
34513   return 0;
34514 }
34515 _ACEOF
34516 rm -f conftest.$ac_objext conftest$ac_exeext
34517 if { (ac_try="$ac_link"
34518 case "(($ac_try" in
34519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34520   *) ac_try_echo=$ac_try;;
34521 esac
34522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34523 $as_echo "$ac_try_echo") >&5
34524   (eval "$ac_link") 2>conftest.er1
34525   ac_status=$?
34526   grep -v '^ *+' conftest.er1 >conftest.err
34527   rm -f conftest.er1
34528   cat conftest.err >&5
34529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530   (exit $ac_status); } && {
34531          test -z "$ac_c_werror_flag" ||
34532          test ! -s conftest.err
34533        } && test -s conftest$ac_exeext && {
34534          test "$cross_compiling" = yes ||
34535          $as_test_x conftest$ac_exeext
34536        }; then
34537   bash_cv_signal_vintage="svr3"
34538 else
34539   $as_echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34541
34542         bash_cv_signal_vintage="v7"
34543
34544 fi
34545
34546 rm -rf conftest.dSYM
34547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34548       conftest$ac_exeext conftest.$ac_ext
34549
34550 fi
34551
34552 rm -rf conftest.dSYM
34553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34554       conftest$ac_exeext conftest.$ac_ext
34555
34556 fi
34557
34558 rm -rf conftest.dSYM
34559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34560       conftest$ac_exeext conftest.$ac_ext
34561
34562 fi
34563
34564   { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34565 $as_echo "$bash_cv_signal_vintage" >&6; }
34566   if test "$bash_cv_signal_vintage" = "posix"; then
34567     cat >>confdefs.h <<\_ACEOF
34568 #define HAVE_POSIX_SIGNALS 1
34569 _ACEOF
34570
34571   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34572     cat >>confdefs.h <<\_ACEOF
34573 #define HAVE_BSD_SIGNALS 1
34574 _ACEOF
34575
34576   elif test "$bash_cv_signal_vintage" = "svr3"; then
34577     cat >>confdefs.h <<\_ACEOF
34578 #define HAVE_USG_SIGHOLD 1
34579 _ACEOF
34580
34581   fi
34582
34583 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34584 $as_echo_n "checking for mode_t... " >&6; }
34585 if test "${ac_cv_type_mode_t+set}" = set; then
34586   $as_echo_n "(cached) " >&6
34587 else
34588   ac_cv_type_mode_t=no
34589 cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h.  */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h.  */
34595 $ac_includes_default
34596 int
34597 main ()
34598 {
34599 if (sizeof (mode_t))
34600        return 0;
34601   ;
34602   return 0;
34603 }
34604 _ACEOF
34605 rm -f conftest.$ac_objext
34606 if { (ac_try="$ac_compile"
34607 case "(($ac_try" in
34608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34609   *) ac_try_echo=$ac_try;;
34610 esac
34611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34612 $as_echo "$ac_try_echo") >&5
34613   (eval "$ac_compile") 2>conftest.er1
34614   ac_status=$?
34615   grep -v '^ *+' conftest.er1 >conftest.err
34616   rm -f conftest.er1
34617   cat conftest.err >&5
34618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); } && {
34620          test -z "$ac_c_werror_flag" ||
34621          test ! -s conftest.err
34622        } && test -s conftest.$ac_objext; then
34623   cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h.  */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h.  */
34629 $ac_includes_default
34630 int
34631 main ()
34632 {
34633 if (sizeof ((mode_t)))
34634           return 0;
34635   ;
34636   return 0;
34637 }
34638 _ACEOF
34639 rm -f conftest.$ac_objext
34640 if { (ac_try="$ac_compile"
34641 case "(($ac_try" in
34642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34643   *) ac_try_echo=$ac_try;;
34644 esac
34645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34646 $as_echo "$ac_try_echo") >&5
34647   (eval "$ac_compile") 2>conftest.er1
34648   ac_status=$?
34649   grep -v '^ *+' conftest.er1 >conftest.err
34650   rm -f conftest.er1
34651   cat conftest.err >&5
34652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653   (exit $ac_status); } && {
34654          test -z "$ac_c_werror_flag" ||
34655          test ! -s conftest.err
34656        } && test -s conftest.$ac_objext; then
34657   :
34658 else
34659   $as_echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.$ac_ext >&5
34661
34662         ac_cv_type_mode_t=yes
34663 fi
34664
34665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34666 else
34667   $as_echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34669
34670
34671 fi
34672
34673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34674 fi
34675 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34676 $as_echo "$ac_cv_type_mode_t" >&6; }
34677 if test "x$ac_cv_type_mode_t" = x""yes; then
34678   :
34679 else
34680
34681 cat >>confdefs.h <<_ACEOF
34682 #define mode_t int
34683 _ACEOF
34684
34685 fi
34686
34687 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34688 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34689 if test "${ac_cv_type_uid_t+set}" = set; then
34690   $as_echo_n "(cached) " >&6
34691 else
34692   cat >conftest.$ac_ext <<_ACEOF
34693 /* confdefs.h.  */
34694 _ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h.  */
34698 #include <sys/types.h>
34699
34700 _ACEOF
34701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34702   $EGREP "uid_t" >/dev/null 2>&1; then
34703   ac_cv_type_uid_t=yes
34704 else
34705   ac_cv_type_uid_t=no
34706 fi
34707 rm -f conftest*
34708
34709 fi
34710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34711 $as_echo "$ac_cv_type_uid_t" >&6; }
34712 if test $ac_cv_type_uid_t = no; then
34713
34714 cat >>confdefs.h <<\_ACEOF
34715 #define uid_t int
34716 _ACEOF
34717
34718
34719 cat >>confdefs.h <<\_ACEOF
34720 #define gid_t int
34721 _ACEOF
34722
34723 fi
34724
34725 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34726 $as_echo_n "checking for size_t... " >&6; }
34727 if test "${ac_cv_type_size_t+set}" = set; then
34728   $as_echo_n "(cached) " >&6
34729 else
34730   ac_cv_type_size_t=no
34731 cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737 $ac_includes_default
34738 int
34739 main ()
34740 {
34741 if (sizeof (size_t))
34742        return 0;
34743   ;
34744   return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751   *) ac_try_echo=$ac_try;;
34752 esac
34753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34754 $as_echo "$ac_try_echo") >&5
34755   (eval "$ac_compile") 2>conftest.er1
34756   ac_status=$?
34757   grep -v '^ *+' conftest.er1 >conftest.err
34758   rm -f conftest.er1
34759   cat conftest.err >&5
34760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } && {
34762          test -z "$ac_c_werror_flag" ||
34763          test ! -s conftest.err
34764        } && test -s conftest.$ac_objext; then
34765   cat >conftest.$ac_ext <<_ACEOF
34766 /* confdefs.h.  */
34767 _ACEOF
34768 cat confdefs.h >>conftest.$ac_ext
34769 cat >>conftest.$ac_ext <<_ACEOF
34770 /* end confdefs.h.  */
34771 $ac_includes_default
34772 int
34773 main ()
34774 {
34775 if (sizeof ((size_t)))
34776           return 0;
34777   ;
34778   return 0;
34779 }
34780 _ACEOF
34781 rm -f conftest.$ac_objext
34782 if { (ac_try="$ac_compile"
34783 case "(($ac_try" in
34784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785   *) ac_try_echo=$ac_try;;
34786 esac
34787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34788 $as_echo "$ac_try_echo") >&5
34789   (eval "$ac_compile") 2>conftest.er1
34790   ac_status=$?
34791   grep -v '^ *+' conftest.er1 >conftest.err
34792   rm -f conftest.er1
34793   cat conftest.err >&5
34794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795   (exit $ac_status); } && {
34796          test -z "$ac_c_werror_flag" ||
34797          test ! -s conftest.err
34798        } && test -s conftest.$ac_objext; then
34799   :
34800 else
34801   $as_echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34803
34804         ac_cv_type_size_t=yes
34805 fi
34806
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 else
34809   $as_echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34811
34812
34813 fi
34814
34815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34816 fi
34817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34818 $as_echo "$ac_cv_type_size_t" >&6; }
34819 if test "x$ac_cv_type_size_t" = x""yes; then
34820   :
34821 else
34822
34823 cat >>confdefs.h <<_ACEOF
34824 #define size_t unsigned int
34825 _ACEOF
34826
34827 fi
34828
34829 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34830 $as_echo_n "checking for pid_t... " >&6; }
34831 if test "${ac_cv_type_pid_t+set}" = set; then
34832   $as_echo_n "(cached) " >&6
34833 else
34834   ac_cv_type_pid_t=no
34835 cat >conftest.$ac_ext <<_ACEOF
34836 /* confdefs.h.  */
34837 _ACEOF
34838 cat confdefs.h >>conftest.$ac_ext
34839 cat >>conftest.$ac_ext <<_ACEOF
34840 /* end confdefs.h.  */
34841 $ac_includes_default
34842 int
34843 main ()
34844 {
34845 if (sizeof (pid_t))
34846        return 0;
34847   ;
34848   return 0;
34849 }
34850 _ACEOF
34851 rm -f conftest.$ac_objext
34852 if { (ac_try="$ac_compile"
34853 case "(($ac_try" in
34854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855   *) ac_try_echo=$ac_try;;
34856 esac
34857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34858 $as_echo "$ac_try_echo") >&5
34859   (eval "$ac_compile") 2>conftest.er1
34860   ac_status=$?
34861   grep -v '^ *+' conftest.er1 >conftest.err
34862   rm -f conftest.er1
34863   cat conftest.err >&5
34864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865   (exit $ac_status); } && {
34866          test -z "$ac_c_werror_flag" ||
34867          test ! -s conftest.err
34868        } && test -s conftest.$ac_objext; then
34869   cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h.  */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h.  */
34875 $ac_includes_default
34876 int
34877 main ()
34878 {
34879 if (sizeof ((pid_t)))
34880           return 0;
34881   ;
34882   return 0;
34883 }
34884 _ACEOF
34885 rm -f conftest.$ac_objext
34886 if { (ac_try="$ac_compile"
34887 case "(($ac_try" in
34888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34889   *) ac_try_echo=$ac_try;;
34890 esac
34891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34892 $as_echo "$ac_try_echo") >&5
34893   (eval "$ac_compile") 2>conftest.er1
34894   ac_status=$?
34895   grep -v '^ *+' conftest.er1 >conftest.err
34896   rm -f conftest.er1
34897   cat conftest.err >&5
34898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899   (exit $ac_status); } && {
34900          test -z "$ac_c_werror_flag" ||
34901          test ! -s conftest.err
34902        } && test -s conftest.$ac_objext; then
34903   :
34904 else
34905   $as_echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.$ac_ext >&5
34907
34908         ac_cv_type_pid_t=yes
34909 fi
34910
34911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34912 else
34913   $as_echo "$as_me: failed program was:" >&5
34914 sed 's/^/| /' conftest.$ac_ext >&5
34915
34916
34917 fi
34918
34919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34920 fi
34921 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34922 $as_echo "$ac_cv_type_pid_t" >&6; }
34923 if test "x$ac_cv_type_pid_t" = x""yes; then
34924   :
34925 else
34926
34927 cat >>confdefs.h <<_ACEOF
34928 #define pid_t int
34929 _ACEOF
34930
34931 fi
34932
34933 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34934 $as_echo_n "checking for off_t... " >&6; }
34935 if test "${ac_cv_type_off_t+set}" = set; then
34936   $as_echo_n "(cached) " >&6
34937 else
34938   ac_cv_type_off_t=no
34939 cat >conftest.$ac_ext <<_ACEOF
34940 /* confdefs.h.  */
34941 _ACEOF
34942 cat confdefs.h >>conftest.$ac_ext
34943 cat >>conftest.$ac_ext <<_ACEOF
34944 /* end confdefs.h.  */
34945 $ac_includes_default
34946 int
34947 main ()
34948 {
34949 if (sizeof (off_t))
34950        return 0;
34951   ;
34952   return 0;
34953 }
34954 _ACEOF
34955 rm -f conftest.$ac_objext
34956 if { (ac_try="$ac_compile"
34957 case "(($ac_try" in
34958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34959   *) ac_try_echo=$ac_try;;
34960 esac
34961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34962 $as_echo "$ac_try_echo") >&5
34963   (eval "$ac_compile") 2>conftest.er1
34964   ac_status=$?
34965   grep -v '^ *+' conftest.er1 >conftest.err
34966   rm -f conftest.er1
34967   cat conftest.err >&5
34968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969   (exit $ac_status); } && {
34970          test -z "$ac_c_werror_flag" ||
34971          test ! -s conftest.err
34972        } && test -s conftest.$ac_objext; then
34973   cat >conftest.$ac_ext <<_ACEOF
34974 /* confdefs.h.  */
34975 _ACEOF
34976 cat confdefs.h >>conftest.$ac_ext
34977 cat >>conftest.$ac_ext <<_ACEOF
34978 /* end confdefs.h.  */
34979 $ac_includes_default
34980 int
34981 main ()
34982 {
34983 if (sizeof ((off_t)))
34984           return 0;
34985   ;
34986   return 0;
34987 }
34988 _ACEOF
34989 rm -f conftest.$ac_objext
34990 if { (ac_try="$ac_compile"
34991 case "(($ac_try" in
34992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993   *) ac_try_echo=$ac_try;;
34994 esac
34995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34996 $as_echo "$ac_try_echo") >&5
34997   (eval "$ac_compile") 2>conftest.er1
34998   ac_status=$?
34999   grep -v '^ *+' conftest.er1 >conftest.err
35000   rm -f conftest.er1
35001   cat conftest.err >&5
35002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); } && {
35004          test -z "$ac_c_werror_flag" ||
35005          test ! -s conftest.err
35006        } && test -s conftest.$ac_objext; then
35007   :
35008 else
35009   $as_echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35011
35012         ac_cv_type_off_t=yes
35013 fi
35014
35015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35016 else
35017   $as_echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35019
35020
35021 fi
35022
35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35024 fi
35025 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35026 $as_echo "$ac_cv_type_off_t" >&6; }
35027 if test "x$ac_cv_type_off_t" = x""yes; then
35028   :
35029 else
35030
35031 cat >>confdefs.h <<_ACEOF
35032 #define off_t long int
35033 _ACEOF
35034
35035 fi
35036
35037
35038   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35039 $as_echo_n "checking for intptr_t... " >&6; }
35040 if test "${ac_cv_type_intptr_t+set}" = set; then
35041   $as_echo_n "(cached) " >&6
35042 else
35043   ac_cv_type_intptr_t=no
35044 cat >conftest.$ac_ext <<_ACEOF
35045 /* confdefs.h.  */
35046 _ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h.  */
35050 $ac_includes_default
35051 int
35052 main ()
35053 {
35054 if (sizeof (intptr_t))
35055        return 0;
35056   ;
35057   return 0;
35058 }
35059 _ACEOF
35060 rm -f conftest.$ac_objext
35061 if { (ac_try="$ac_compile"
35062 case "(($ac_try" in
35063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35064   *) ac_try_echo=$ac_try;;
35065 esac
35066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35067 $as_echo "$ac_try_echo") >&5
35068   (eval "$ac_compile") 2>conftest.er1
35069   ac_status=$?
35070   grep -v '^ *+' conftest.er1 >conftest.err
35071   rm -f conftest.er1
35072   cat conftest.err >&5
35073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } && {
35075          test -z "$ac_c_werror_flag" ||
35076          test ! -s conftest.err
35077        } && test -s conftest.$ac_objext; then
35078   cat >conftest.$ac_ext <<_ACEOF
35079 /* confdefs.h.  */
35080 _ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h.  */
35084 $ac_includes_default
35085 int
35086 main ()
35087 {
35088 if (sizeof ((intptr_t)))
35089           return 0;
35090   ;
35091   return 0;
35092 }
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098   *) ac_try_echo=$ac_try;;
35099 esac
35100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35101 $as_echo "$ac_try_echo") >&5
35102   (eval "$ac_compile") 2>conftest.er1
35103   ac_status=$?
35104   grep -v '^ *+' conftest.er1 >conftest.err
35105   rm -f conftest.er1
35106   cat conftest.err >&5
35107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108   (exit $ac_status); } && {
35109          test -z "$ac_c_werror_flag" ||
35110          test ! -s conftest.err
35111        } && test -s conftest.$ac_objext; then
35112   :
35113 else
35114   $as_echo "$as_me: failed program was:" >&5
35115 sed 's/^/| /' conftest.$ac_ext >&5
35116
35117         ac_cv_type_intptr_t=yes
35118 fi
35119
35120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35121 else
35122   $as_echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35124
35125
35126 fi
35127
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35129 fi
35130 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35131 $as_echo "$ac_cv_type_intptr_t" >&6; }
35132 if test "x$ac_cv_type_intptr_t" = x""yes; then
35133
35134 cat >>confdefs.h <<\_ACEOF
35135 #define HAVE_INTPTR_T 1
35136 _ACEOF
35137
35138 else
35139   for ac_type in 'int' 'long int' 'long long int'; do
35140        cat >conftest.$ac_ext <<_ACEOF
35141 /* confdefs.h.  */
35142 _ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h.  */
35146 $ac_includes_default
35147 int
35148 main ()
35149 {
35150 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35151 test_array [0] = 0
35152
35153   ;
35154   return 0;
35155 }
35156 _ACEOF
35157 rm -f conftest.$ac_objext
35158 if { (ac_try="$ac_compile"
35159 case "(($ac_try" in
35160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35161   *) ac_try_echo=$ac_try;;
35162 esac
35163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35164 $as_echo "$ac_try_echo") >&5
35165   (eval "$ac_compile") 2>conftest.er1
35166   ac_status=$?
35167   grep -v '^ *+' conftest.er1 >conftest.err
35168   rm -f conftest.er1
35169   cat conftest.err >&5
35170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); } && {
35172          test -z "$ac_c_werror_flag" ||
35173          test ! -s conftest.err
35174        } && test -s conftest.$ac_objext; then
35175
35176 cat >>confdefs.h <<_ACEOF
35177 #define intptr_t $ac_type
35178 _ACEOF
35179
35180           ac_type=
35181 else
35182   $as_echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185
35186 fi
35187
35188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35189        test -z "$ac_type" && break
35190      done
35191 fi
35192
35193
35194
35195   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35196 $as_echo_n "checking for uintptr_t... " >&6; }
35197 if test "${ac_cv_type_uintptr_t+set}" = set; then
35198   $as_echo_n "(cached) " >&6
35199 else
35200   ac_cv_type_uintptr_t=no
35201 cat >conftest.$ac_ext <<_ACEOF
35202 /* confdefs.h.  */
35203 _ACEOF
35204 cat confdefs.h >>conftest.$ac_ext
35205 cat >>conftest.$ac_ext <<_ACEOF
35206 /* end confdefs.h.  */
35207 $ac_includes_default
35208 int
35209 main ()
35210 {
35211 if (sizeof (uintptr_t))
35212        return 0;
35213   ;
35214   return 0;
35215 }
35216 _ACEOF
35217 rm -f conftest.$ac_objext
35218 if { (ac_try="$ac_compile"
35219 case "(($ac_try" in
35220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35221   *) ac_try_echo=$ac_try;;
35222 esac
35223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35224 $as_echo "$ac_try_echo") >&5
35225   (eval "$ac_compile") 2>conftest.er1
35226   ac_status=$?
35227   grep -v '^ *+' conftest.er1 >conftest.err
35228   rm -f conftest.er1
35229   cat conftest.err >&5
35230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231   (exit $ac_status); } && {
35232          test -z "$ac_c_werror_flag" ||
35233          test ! -s conftest.err
35234        } && test -s conftest.$ac_objext; then
35235   cat >conftest.$ac_ext <<_ACEOF
35236 /* confdefs.h.  */
35237 _ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h.  */
35241 $ac_includes_default
35242 int
35243 main ()
35244 {
35245 if (sizeof ((uintptr_t)))
35246           return 0;
35247   ;
35248   return 0;
35249 }
35250 _ACEOF
35251 rm -f conftest.$ac_objext
35252 if { (ac_try="$ac_compile"
35253 case "(($ac_try" in
35254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35255   *) ac_try_echo=$ac_try;;
35256 esac
35257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35258 $as_echo "$ac_try_echo") >&5
35259   (eval "$ac_compile") 2>conftest.er1
35260   ac_status=$?
35261   grep -v '^ *+' conftest.er1 >conftest.err
35262   rm -f conftest.er1
35263   cat conftest.err >&5
35264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265   (exit $ac_status); } && {
35266          test -z "$ac_c_werror_flag" ||
35267          test ! -s conftest.err
35268        } && test -s conftest.$ac_objext; then
35269   :
35270 else
35271   $as_echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35273
35274         ac_cv_type_uintptr_t=yes
35275 fi
35276
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35278 else
35279   $as_echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282
35283 fi
35284
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35286 fi
35287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
35288 $as_echo "$ac_cv_type_uintptr_t" >&6; }
35289 if test "x$ac_cv_type_uintptr_t" = x""yes; then
35290
35291 cat >>confdefs.h <<\_ACEOF
35292 #define HAVE_UINTPTR_T 1
35293 _ACEOF
35294
35295 else
35296   for ac_type in 'unsigned int' 'unsigned long int' \
35297         'unsigned long long int'; do
35298        cat >conftest.$ac_ext <<_ACEOF
35299 /* confdefs.h.  */
35300 _ACEOF
35301 cat confdefs.h >>conftest.$ac_ext
35302 cat >>conftest.$ac_ext <<_ACEOF
35303 /* end confdefs.h.  */
35304 $ac_includes_default
35305 int
35306 main ()
35307 {
35308 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35309 test_array [0] = 0
35310
35311   ;
35312   return 0;
35313 }
35314 _ACEOF
35315 rm -f conftest.$ac_objext
35316 if { (ac_try="$ac_compile"
35317 case "(($ac_try" in
35318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319   *) ac_try_echo=$ac_try;;
35320 esac
35321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35322 $as_echo "$ac_try_echo") >&5
35323   (eval "$ac_compile") 2>conftest.er1
35324   ac_status=$?
35325   grep -v '^ *+' conftest.er1 >conftest.err
35326   rm -f conftest.er1
35327   cat conftest.err >&5
35328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329   (exit $ac_status); } && {
35330          test -z "$ac_c_werror_flag" ||
35331          test ! -s conftest.err
35332        } && test -s conftest.$ac_objext; then
35333
35334 cat >>confdefs.h <<_ACEOF
35335 #define uintptr_t $ac_type
35336 _ACEOF
35337
35338           ac_type=
35339 else
35340   $as_echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35342
35343
35344 fi
35345
35346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35347        test -z "$ac_type" && break
35348      done
35349 fi
35350
35351
35352 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
35353 $as_echo_n "checking for ino_t... " >&6; }
35354 if test "${ac_cv_type_ino_t+set}" = set; then
35355   $as_echo_n "(cached) " >&6
35356 else
35357   ac_cv_type_ino_t=no
35358 cat >conftest.$ac_ext <<_ACEOF
35359 /* confdefs.h.  */
35360 _ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h.  */
35364 $ac_includes_default
35365 int
35366 main ()
35367 {
35368 if (sizeof (ino_t))
35369        return 0;
35370   ;
35371   return 0;
35372 }
35373 _ACEOF
35374 rm -f conftest.$ac_objext
35375 if { (ac_try="$ac_compile"
35376 case "(($ac_try" in
35377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35378   *) ac_try_echo=$ac_try;;
35379 esac
35380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35381 $as_echo "$ac_try_echo") >&5
35382   (eval "$ac_compile") 2>conftest.er1
35383   ac_status=$?
35384   grep -v '^ *+' conftest.er1 >conftest.err
35385   rm -f conftest.er1
35386   cat conftest.err >&5
35387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388   (exit $ac_status); } && {
35389          test -z "$ac_c_werror_flag" ||
35390          test ! -s conftest.err
35391        } && test -s conftest.$ac_objext; then
35392   cat >conftest.$ac_ext <<_ACEOF
35393 /* confdefs.h.  */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h.  */
35398 $ac_includes_default
35399 int
35400 main ()
35401 {
35402 if (sizeof ((ino_t)))
35403           return 0;
35404   ;
35405   return 0;
35406 }
35407 _ACEOF
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412   *) ac_try_echo=$ac_try;;
35413 esac
35414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35415 $as_echo "$ac_try_echo") >&5
35416   (eval "$ac_compile") 2>conftest.er1
35417   ac_status=$?
35418   grep -v '^ *+' conftest.er1 >conftest.err
35419   rm -f conftest.er1
35420   cat conftest.err >&5
35421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422   (exit $ac_status); } && {
35423          test -z "$ac_c_werror_flag" ||
35424          test ! -s conftest.err
35425        } && test -s conftest.$ac_objext; then
35426   :
35427 else
35428   $as_echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35430
35431         ac_cv_type_ino_t=yes
35432 fi
35433
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 else
35436   $as_echo "$as_me: failed program was:" >&5
35437 sed 's/^/| /' conftest.$ac_ext >&5
35438
35439
35440 fi
35441
35442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35443 fi
35444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
35445 $as_echo "$ac_cv_type_ino_t" >&6; }
35446 if test "x$ac_cv_type_ino_t" = x""yes; then
35447   :
35448 else
35449
35450 cat >>confdefs.h <<_ACEOF
35451 #define ino_t unsigned long
35452 _ACEOF
35453
35454 fi
35455
35456 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
35457 $as_echo_n "checking for dev_t... " >&6; }
35458 if test "${ac_cv_type_dev_t+set}" = set; then
35459   $as_echo_n "(cached) " >&6
35460 else
35461   ac_cv_type_dev_t=no
35462 cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h.  */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h.  */
35468 $ac_includes_default
35469 int
35470 main ()
35471 {
35472 if (sizeof (dev_t))
35473        return 0;
35474   ;
35475   return 0;
35476 }
35477 _ACEOF
35478 rm -f conftest.$ac_objext
35479 if { (ac_try="$ac_compile"
35480 case "(($ac_try" in
35481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482   *) ac_try_echo=$ac_try;;
35483 esac
35484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35485 $as_echo "$ac_try_echo") >&5
35486   (eval "$ac_compile") 2>conftest.er1
35487   ac_status=$?
35488   grep -v '^ *+' conftest.er1 >conftest.err
35489   rm -f conftest.er1
35490   cat conftest.err >&5
35491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492   (exit $ac_status); } && {
35493          test -z "$ac_c_werror_flag" ||
35494          test ! -s conftest.err
35495        } && test -s conftest.$ac_objext; then
35496   cat >conftest.$ac_ext <<_ACEOF
35497 /* confdefs.h.  */
35498 _ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h.  */
35502 $ac_includes_default
35503 int
35504 main ()
35505 {
35506 if (sizeof ((dev_t)))
35507           return 0;
35508   ;
35509   return 0;
35510 }
35511 _ACEOF
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516   *) ac_try_echo=$ac_try;;
35517 esac
35518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35519 $as_echo "$ac_try_echo") >&5
35520   (eval "$ac_compile") 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } && {
35527          test -z "$ac_c_werror_flag" ||
35528          test ! -s conftest.err
35529        } && test -s conftest.$ac_objext; then
35530   :
35531 else
35532   $as_echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535         ac_cv_type_dev_t=yes
35536 fi
35537
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35539 else
35540   $as_echo "$as_me: failed program was:" >&5
35541 sed 's/^/| /' conftest.$ac_ext >&5
35542
35543
35544 fi
35545
35546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35547 fi
35548 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
35549 $as_echo "$ac_cv_type_dev_t" >&6; }
35550 if test "x$ac_cv_type_dev_t" = x""yes; then
35551   :
35552 else
35553
35554 cat >>confdefs.h <<_ACEOF
35555 #define dev_t unsigned long
35556 _ACEOF
35557
35558 fi
35559
35560 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
35561 $as_echo_n "checking for daddr_t... " >&6; }
35562 if test "${ac_cv_type_daddr_t+set}" = set; then
35563   $as_echo_n "(cached) " >&6
35564 else
35565   ac_cv_type_daddr_t=no
35566 cat >conftest.$ac_ext <<_ACEOF
35567 /* confdefs.h.  */
35568 _ACEOF
35569 cat confdefs.h >>conftest.$ac_ext
35570 cat >>conftest.$ac_ext <<_ACEOF
35571 /* end confdefs.h.  */
35572 $ac_includes_default
35573 int
35574 main ()
35575 {
35576 if (sizeof (daddr_t))
35577        return 0;
35578   ;
35579   return 0;
35580 }
35581 _ACEOF
35582 rm -f conftest.$ac_objext
35583 if { (ac_try="$ac_compile"
35584 case "(($ac_try" in
35585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586   *) ac_try_echo=$ac_try;;
35587 esac
35588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35589 $as_echo "$ac_try_echo") >&5
35590   (eval "$ac_compile") 2>conftest.er1
35591   ac_status=$?
35592   grep -v '^ *+' conftest.er1 >conftest.err
35593   rm -f conftest.er1
35594   cat conftest.err >&5
35595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596   (exit $ac_status); } && {
35597          test -z "$ac_c_werror_flag" ||
35598          test ! -s conftest.err
35599        } && test -s conftest.$ac_objext; then
35600   cat >conftest.$ac_ext <<_ACEOF
35601 /* confdefs.h.  */
35602 _ACEOF
35603 cat confdefs.h >>conftest.$ac_ext
35604 cat >>conftest.$ac_ext <<_ACEOF
35605 /* end confdefs.h.  */
35606 $ac_includes_default
35607 int
35608 main ()
35609 {
35610 if (sizeof ((daddr_t)))
35611           return 0;
35612   ;
35613   return 0;
35614 }
35615 _ACEOF
35616 rm -f conftest.$ac_objext
35617 if { (ac_try="$ac_compile"
35618 case "(($ac_try" in
35619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35620   *) ac_try_echo=$ac_try;;
35621 esac
35622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35623 $as_echo "$ac_try_echo") >&5
35624   (eval "$ac_compile") 2>conftest.er1
35625   ac_status=$?
35626   grep -v '^ *+' conftest.er1 >conftest.err
35627   rm -f conftest.er1
35628   cat conftest.err >&5
35629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630   (exit $ac_status); } && {
35631          test -z "$ac_c_werror_flag" ||
35632          test ! -s conftest.err
35633        } && test -s conftest.$ac_objext; then
35634   :
35635 else
35636   $as_echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35638
35639         ac_cv_type_daddr_t=yes
35640 fi
35641
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643 else
35644   $as_echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35646
35647
35648 fi
35649
35650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35651 fi
35652 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
35653 $as_echo "$ac_cv_type_daddr_t" >&6; }
35654 if test "x$ac_cv_type_daddr_t" = x""yes; then
35655   :
35656 else
35657
35658 cat >>confdefs.h <<_ACEOF
35659 #define daddr_t long
35660 _ACEOF
35661
35662 fi
35663
35664 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
35665 $as_echo_n "checking for major_t... " >&6; }
35666 if test "${ac_cv_type_major_t+set}" = set; then
35667   $as_echo_n "(cached) " >&6
35668 else
35669   ac_cv_type_major_t=no
35670 cat >conftest.$ac_ext <<_ACEOF
35671 /* confdefs.h.  */
35672 _ACEOF
35673 cat confdefs.h >>conftest.$ac_ext
35674 cat >>conftest.$ac_ext <<_ACEOF
35675 /* end confdefs.h.  */
35676 $ac_includes_default
35677 int
35678 main ()
35679 {
35680 if (sizeof (major_t))
35681        return 0;
35682   ;
35683   return 0;
35684 }
35685 _ACEOF
35686 rm -f conftest.$ac_objext
35687 if { (ac_try="$ac_compile"
35688 case "(($ac_try" in
35689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35690   *) ac_try_echo=$ac_try;;
35691 esac
35692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35693 $as_echo "$ac_try_echo") >&5
35694   (eval "$ac_compile") 2>conftest.er1
35695   ac_status=$?
35696   grep -v '^ *+' conftest.er1 >conftest.err
35697   rm -f conftest.er1
35698   cat conftest.err >&5
35699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700   (exit $ac_status); } && {
35701          test -z "$ac_c_werror_flag" ||
35702          test ! -s conftest.err
35703        } && test -s conftest.$ac_objext; then
35704   cat >conftest.$ac_ext <<_ACEOF
35705 /* confdefs.h.  */
35706 _ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h.  */
35710 $ac_includes_default
35711 int
35712 main ()
35713 {
35714 if (sizeof ((major_t)))
35715           return 0;
35716   ;
35717   return 0;
35718 }
35719 _ACEOF
35720 rm -f conftest.$ac_objext
35721 if { (ac_try="$ac_compile"
35722 case "(($ac_try" in
35723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35724   *) ac_try_echo=$ac_try;;
35725 esac
35726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35727 $as_echo "$ac_try_echo") >&5
35728   (eval "$ac_compile") 2>conftest.er1
35729   ac_status=$?
35730   grep -v '^ *+' conftest.er1 >conftest.err
35731   rm -f conftest.er1
35732   cat conftest.err >&5
35733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); } && {
35735          test -z "$ac_c_werror_flag" ||
35736          test ! -s conftest.err
35737        } && test -s conftest.$ac_objext; then
35738   :
35739 else
35740   $as_echo "$as_me: failed program was:" >&5
35741 sed 's/^/| /' conftest.$ac_ext >&5
35742
35743         ac_cv_type_major_t=yes
35744 fi
35745
35746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35747 else
35748   $as_echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751
35752 fi
35753
35754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35755 fi
35756 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
35757 $as_echo "$ac_cv_type_major_t" >&6; }
35758 if test "x$ac_cv_type_major_t" = x""yes; then
35759   :
35760 else
35761
35762 cat >>confdefs.h <<_ACEOF
35763 #define major_t int
35764 _ACEOF
35765
35766 fi
35767
35768 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
35769 $as_echo_n "checking for minor_t... " >&6; }
35770 if test "${ac_cv_type_minor_t+set}" = set; then
35771   $as_echo_n "(cached) " >&6
35772 else
35773   ac_cv_type_minor_t=no
35774 cat >conftest.$ac_ext <<_ACEOF
35775 /* confdefs.h.  */
35776 _ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h.  */
35780 $ac_includes_default
35781 int
35782 main ()
35783 {
35784 if (sizeof (minor_t))
35785        return 0;
35786   ;
35787   return 0;
35788 }
35789 _ACEOF
35790 rm -f conftest.$ac_objext
35791 if { (ac_try="$ac_compile"
35792 case "(($ac_try" in
35793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794   *) ac_try_echo=$ac_try;;
35795 esac
35796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35797 $as_echo "$ac_try_echo") >&5
35798   (eval "$ac_compile") 2>conftest.er1
35799   ac_status=$?
35800   grep -v '^ *+' conftest.er1 >conftest.err
35801   rm -f conftest.er1
35802   cat conftest.err >&5
35803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); } && {
35805          test -z "$ac_c_werror_flag" ||
35806          test ! -s conftest.err
35807        } && test -s conftest.$ac_objext; then
35808   cat >conftest.$ac_ext <<_ACEOF
35809 /* confdefs.h.  */
35810 _ACEOF
35811 cat confdefs.h >>conftest.$ac_ext
35812 cat >>conftest.$ac_ext <<_ACEOF
35813 /* end confdefs.h.  */
35814 $ac_includes_default
35815 int
35816 main ()
35817 {
35818 if (sizeof ((minor_t)))
35819           return 0;
35820   ;
35821   return 0;
35822 }
35823 _ACEOF
35824 rm -f conftest.$ac_objext
35825 if { (ac_try="$ac_compile"
35826 case "(($ac_try" in
35827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828   *) ac_try_echo=$ac_try;;
35829 esac
35830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35831 $as_echo "$ac_try_echo") >&5
35832   (eval "$ac_compile") 2>conftest.er1
35833   ac_status=$?
35834   grep -v '^ *+' conftest.er1 >conftest.err
35835   rm -f conftest.er1
35836   cat conftest.err >&5
35837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838   (exit $ac_status); } && {
35839          test -z "$ac_c_werror_flag" ||
35840          test ! -s conftest.err
35841        } && test -s conftest.$ac_objext; then
35842   :
35843 else
35844   $as_echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35846
35847         ac_cv_type_minor_t=yes
35848 fi
35849
35850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35851 else
35852   $as_echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35854
35855
35856 fi
35857
35858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35859 fi
35860 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
35861 $as_echo "$ac_cv_type_minor_t" >&6; }
35862 if test "x$ac_cv_type_minor_t" = x""yes; then
35863   :
35864 else
35865
35866 cat >>confdefs.h <<_ACEOF
35867 #define minor_t int
35868 _ACEOF
35869
35870 fi
35871
35872 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35873 $as_echo_n "checking for ssize_t... " >&6; }
35874 if test "${ac_cv_type_ssize_t+set}" = set; then
35875   $as_echo_n "(cached) " >&6
35876 else
35877   ac_cv_type_ssize_t=no
35878 cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h.  */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h.  */
35884 $ac_includes_default
35885 int
35886 main ()
35887 {
35888 if (sizeof (ssize_t))
35889        return 0;
35890   ;
35891   return 0;
35892 }
35893 _ACEOF
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898   *) ac_try_echo=$ac_try;;
35899 esac
35900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35901 $as_echo "$ac_try_echo") >&5
35902   (eval "$ac_compile") 2>conftest.er1
35903   ac_status=$?
35904   grep -v '^ *+' conftest.er1 >conftest.err
35905   rm -f conftest.er1
35906   cat conftest.err >&5
35907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); } && {
35909          test -z "$ac_c_werror_flag" ||
35910          test ! -s conftest.err
35911        } && test -s conftest.$ac_objext; then
35912   cat >conftest.$ac_ext <<_ACEOF
35913 /* confdefs.h.  */
35914 _ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h.  */
35918 $ac_includes_default
35919 int
35920 main ()
35921 {
35922 if (sizeof ((ssize_t)))
35923           return 0;
35924   ;
35925   return 0;
35926 }
35927 _ACEOF
35928 rm -f conftest.$ac_objext
35929 if { (ac_try="$ac_compile"
35930 case "(($ac_try" in
35931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35932   *) ac_try_echo=$ac_try;;
35933 esac
35934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35935 $as_echo "$ac_try_echo") >&5
35936   (eval "$ac_compile") 2>conftest.er1
35937   ac_status=$?
35938   grep -v '^ *+' conftest.er1 >conftest.err
35939   rm -f conftest.er1
35940   cat conftest.err >&5
35941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); } && {
35943          test -z "$ac_c_werror_flag" ||
35944          test ! -s conftest.err
35945        } && test -s conftest.$ac_objext; then
35946   :
35947 else
35948   $as_echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951         ac_cv_type_ssize_t=yes
35952 fi
35953
35954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35955 else
35956   $as_echo "$as_me: failed program was:" >&5
35957 sed 's/^/| /' conftest.$ac_ext >&5
35958
35959
35960 fi
35961
35962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35963 fi
35964 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35965 $as_echo "$ac_cv_type_ssize_t" >&6; }
35966 if test "x$ac_cv_type_ssize_t" = x""yes; then
35967   :
35968 else
35969
35970 cat >>confdefs.h <<_ACEOF
35971 #define ssize_t int
35972 _ACEOF
35973
35974 fi
35975
35976 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
35977 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
35978 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
35979   $as_echo_n "(cached) " >&6
35980 else
35981   cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h.  */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h.  */
35987 $ac_includes_default
35988 int
35989 main ()
35990 {
35991 static struct stat ac_aggr;
35992 if (ac_aggr.st_blocks)
35993 return 0;
35994   ;
35995   return 0;
35996 }
35997 _ACEOF
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002   *) ac_try_echo=$ac_try;;
36003 esac
36004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36005 $as_echo "$ac_try_echo") >&5
36006   (eval "$ac_compile") 2>conftest.er1
36007   ac_status=$?
36008   grep -v '^ *+' conftest.er1 >conftest.err
36009   rm -f conftest.er1
36010   cat conftest.err >&5
36011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); } && {
36013          test -z "$ac_c_werror_flag" ||
36014          test ! -s conftest.err
36015        } && test -s conftest.$ac_objext; then
36016   ac_cv_member_struct_stat_st_blocks=yes
36017 else
36018   $as_echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36020
36021         cat >conftest.$ac_ext <<_ACEOF
36022 /* confdefs.h.  */
36023 _ACEOF
36024 cat confdefs.h >>conftest.$ac_ext
36025 cat >>conftest.$ac_ext <<_ACEOF
36026 /* end confdefs.h.  */
36027 $ac_includes_default
36028 int
36029 main ()
36030 {
36031 static struct stat ac_aggr;
36032 if (sizeof ac_aggr.st_blocks)
36033 return 0;
36034   ;
36035   return 0;
36036 }
36037 _ACEOF
36038 rm -f conftest.$ac_objext
36039 if { (ac_try="$ac_compile"
36040 case "(($ac_try" in
36041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36042   *) ac_try_echo=$ac_try;;
36043 esac
36044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36045 $as_echo "$ac_try_echo") >&5
36046   (eval "$ac_compile") 2>conftest.er1
36047   ac_status=$?
36048   grep -v '^ *+' conftest.er1 >conftest.err
36049   rm -f conftest.er1
36050   cat conftest.err >&5
36051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052   (exit $ac_status); } && {
36053          test -z "$ac_c_werror_flag" ||
36054          test ! -s conftest.err
36055        } && test -s conftest.$ac_objext; then
36056   ac_cv_member_struct_stat_st_blocks=yes
36057 else
36058   $as_echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36060
36061         ac_cv_member_struct_stat_st_blocks=no
36062 fi
36063
36064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36065 fi
36066
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 fi
36069 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36070 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36071 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36072
36073 cat >>confdefs.h <<_ACEOF
36074 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36075 _ACEOF
36076
36077
36078 cat >>confdefs.h <<\_ACEOF
36079 #define HAVE_ST_BLOCKS 1
36080 _ACEOF
36081
36082 else
36083   case " $LIBOBJS " in
36084   *" fileblocks.$ac_objext "* ) ;;
36085   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36086  ;;
36087 esac
36088
36089 fi
36090
36091
36092 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36093 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36094 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36095   $as_echo_n "(cached) " >&6
36096 else
36097   cat >conftest.$ac_ext <<_ACEOF
36098 /* confdefs.h.  */
36099 _ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h.  */
36103 $ac_includes_default
36104 int
36105 main ()
36106 {
36107 static struct stat ac_aggr;
36108 if (ac_aggr.st_rdev)
36109 return 0;
36110   ;
36111   return 0;
36112 }
36113 _ACEOF
36114 rm -f conftest.$ac_objext
36115 if { (ac_try="$ac_compile"
36116 case "(($ac_try" in
36117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36118   *) ac_try_echo=$ac_try;;
36119 esac
36120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36121 $as_echo "$ac_try_echo") >&5
36122   (eval "$ac_compile") 2>conftest.er1
36123   ac_status=$?
36124   grep -v '^ *+' conftest.er1 >conftest.err
36125   rm -f conftest.er1
36126   cat conftest.err >&5
36127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128   (exit $ac_status); } && {
36129          test -z "$ac_c_werror_flag" ||
36130          test ! -s conftest.err
36131        } && test -s conftest.$ac_objext; then
36132   ac_cv_member_struct_stat_st_rdev=yes
36133 else
36134   $as_echo "$as_me: failed program was:" >&5
36135 sed 's/^/| /' conftest.$ac_ext >&5
36136
36137         cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h.  */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h.  */
36143 $ac_includes_default
36144 int
36145 main ()
36146 {
36147 static struct stat ac_aggr;
36148 if (sizeof ac_aggr.st_rdev)
36149 return 0;
36150   ;
36151   return 0;
36152 }
36153 _ACEOF
36154 rm -f conftest.$ac_objext
36155 if { (ac_try="$ac_compile"
36156 case "(($ac_try" in
36157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36158   *) ac_try_echo=$ac_try;;
36159 esac
36160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36161 $as_echo "$ac_try_echo") >&5
36162   (eval "$ac_compile") 2>conftest.er1
36163   ac_status=$?
36164   grep -v '^ *+' conftest.er1 >conftest.err
36165   rm -f conftest.er1
36166   cat conftest.err >&5
36167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); } && {
36169          test -z "$ac_c_werror_flag" ||
36170          test ! -s conftest.err
36171        } && test -s conftest.$ac_objext; then
36172   ac_cv_member_struct_stat_st_rdev=yes
36173 else
36174   $as_echo "$as_me: failed program was:" >&5
36175 sed 's/^/| /' conftest.$ac_ext >&5
36176
36177         ac_cv_member_struct_stat_st_rdev=no
36178 fi
36179
36180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36181 fi
36182
36183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36184 fi
36185 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36186 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36187 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36188
36189 cat >>confdefs.h <<_ACEOF
36190 #define HAVE_STRUCT_STAT_ST_RDEV 1
36191 _ACEOF
36192
36193
36194 cat >>confdefs.h <<\_ACEOF
36195 #define HAVE_ST_RDEV 1
36196 _ACEOF
36197
36198 fi
36199
36200
36201 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36202 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36203 if test "${ac_cv_struct_tm+set}" = set; then
36204   $as_echo_n "(cached) " >&6
36205 else
36206   cat >conftest.$ac_ext <<_ACEOF
36207 /* confdefs.h.  */
36208 _ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h.  */
36212 #include <sys/types.h>
36213 #include <time.h>
36214
36215 int
36216 main ()
36217 {
36218 struct tm tm;
36219                                      int *p = &tm.tm_sec;
36220                                      return !p;
36221   ;
36222   return 0;
36223 }
36224 _ACEOF
36225 rm -f conftest.$ac_objext
36226 if { (ac_try="$ac_compile"
36227 case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36232 $as_echo "$ac_try_echo") >&5
36233   (eval "$ac_compile") 2>conftest.er1
36234   ac_status=$?
36235   grep -v '^ *+' conftest.er1 >conftest.err
36236   rm -f conftest.er1
36237   cat conftest.err >&5
36238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239   (exit $ac_status); } && {
36240          test -z "$ac_c_werror_flag" ||
36241          test ! -s conftest.err
36242        } && test -s conftest.$ac_objext; then
36243   ac_cv_struct_tm=time.h
36244 else
36245   $as_echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248         ac_cv_struct_tm=sys/time.h
36249 fi
36250
36251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36252 fi
36253 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36254 $as_echo "$ac_cv_struct_tm" >&6; }
36255 if test $ac_cv_struct_tm = sys/time.h; then
36256
36257 cat >>confdefs.h <<\_ACEOF
36258 #define TM_IN_SYS_TIME 1
36259 _ACEOF
36260
36261 fi
36262
36263 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
36264 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
36265 if test "${ac_cv_c_const+set}" = set; then
36266   $as_echo_n "(cached) " >&6
36267 else
36268   cat >conftest.$ac_ext <<_ACEOF
36269 /* confdefs.h.  */
36270 _ACEOF
36271 cat confdefs.h >>conftest.$ac_ext
36272 cat >>conftest.$ac_ext <<_ACEOF
36273 /* end confdefs.h.  */
36274
36275 int
36276 main ()
36277 {
36278 /* FIXME: Include the comments suggested by Paul. */
36279 #ifndef __cplusplus
36280   /* Ultrix mips cc rejects this.  */
36281   typedef int charset[2];
36282   const charset cs;
36283   /* SunOS 4.1.1 cc rejects this.  */
36284   char const *const *pcpcc;
36285   char **ppc;
36286   /* NEC SVR4.0.2 mips cc rejects this.  */
36287   struct point {int x, y;};
36288   static struct point const zero = {0,0};
36289   /* AIX XL C 1.02.0.0 rejects this.
36290      It does not let you subtract one const X* pointer from another in
36291      an arm of an if-expression whose if-part is not a constant
36292      expression */
36293   const char *g = "string";
36294   pcpcc = &g + (g ? g-g : 0);
36295   /* HPUX 7.0 cc rejects these. */
36296   ++pcpcc;
36297   ppc = (char**) pcpcc;
36298   pcpcc = (char const *const *) ppc;
36299   { /* SCO 3.2v4 cc rejects this.  */
36300     char *t;
36301     char const *s = 0 ? (char *) 0 : (char const *) 0;
36302
36303     *t++ = 0;
36304     if (s) return 0;
36305   }
36306   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
36307     int x[] = {25, 17};
36308     const int *foo = &x[0];
36309     ++foo;
36310   }
36311   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
36312     typedef const int *iptr;
36313     iptr p = 0;
36314     ++p;
36315   }
36316   { /* AIX XL C 1.02.0.0 rejects this saying
36317        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
36318     struct s { int j; const int *ap[3]; };
36319     struct s *b; b->j = 5;
36320   }
36321   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
36322     const int foo = 10;
36323     if (!foo) return 0;
36324   }
36325   return !cs[0] && !zero.x;
36326 #endif
36327
36328   ;
36329   return 0;
36330 }
36331 _ACEOF
36332 rm -f conftest.$ac_objext
36333 if { (ac_try="$ac_compile"
36334 case "(($ac_try" in
36335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36336   *) ac_try_echo=$ac_try;;
36337 esac
36338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36339 $as_echo "$ac_try_echo") >&5
36340   (eval "$ac_compile") 2>conftest.er1
36341   ac_status=$?
36342   grep -v '^ *+' conftest.er1 >conftest.err
36343   rm -f conftest.er1
36344   cat conftest.err >&5
36345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); } && {
36347          test -z "$ac_c_werror_flag" ||
36348          test ! -s conftest.err
36349        } && test -s conftest.$ac_objext; then
36350   ac_cv_c_const=yes
36351 else
36352   $as_echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36354
36355         ac_cv_c_const=no
36356 fi
36357
36358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36359 fi
36360 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
36361 $as_echo "$ac_cv_c_const" >&6; }
36362 if test $ac_cv_c_const = no; then
36363
36364 cat >>confdefs.h <<\_ACEOF
36365 #define const /**/
36366 _ACEOF
36367
36368 fi
36369
36370
36371 # The cast to long int works around a bug in the HP C Compiler
36372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36374 # This bug is HP SR number 8606223364.
36375 { $as_echo "$as_me:$LINENO: checking size of char" >&5
36376 $as_echo_n "checking size of char... " >&6; }
36377 if test "${ac_cv_sizeof_char+set}" = set; then
36378   $as_echo_n "(cached) " >&6
36379 else
36380   if test "$cross_compiling" = yes; then
36381   # Depending upon the size, compute the lo and hi bounds.
36382 cat >conftest.$ac_ext <<_ACEOF
36383 /* confdefs.h.  */
36384 _ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h.  */
36388 $ac_includes_default
36389 int
36390 main ()
36391 {
36392 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
36393 test_array [0] = 0
36394
36395   ;
36396   return 0;
36397 }
36398 _ACEOF
36399 rm -f conftest.$ac_objext
36400 if { (ac_try="$ac_compile"
36401 case "(($ac_try" in
36402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36403   *) ac_try_echo=$ac_try;;
36404 esac
36405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36406 $as_echo "$ac_try_echo") >&5
36407   (eval "$ac_compile") 2>conftest.er1
36408   ac_status=$?
36409   grep -v '^ *+' conftest.er1 >conftest.err
36410   rm -f conftest.er1
36411   cat conftest.err >&5
36412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413   (exit $ac_status); } && {
36414          test -z "$ac_c_werror_flag" ||
36415          test ! -s conftest.err
36416        } && test -s conftest.$ac_objext; then
36417   ac_lo=0 ac_mid=0
36418   while :; do
36419     cat >conftest.$ac_ext <<_ACEOF
36420 /* confdefs.h.  */
36421 _ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h.  */
36425 $ac_includes_default
36426 int
36427 main ()
36428 {
36429 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36430 test_array [0] = 0
36431
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext
36437 if { (ac_try="$ac_compile"
36438 case "(($ac_try" in
36439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440   *) ac_try_echo=$ac_try;;
36441 esac
36442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36443 $as_echo "$ac_try_echo") >&5
36444   (eval "$ac_compile") 2>conftest.er1
36445   ac_status=$?
36446   grep -v '^ *+' conftest.er1 >conftest.err
36447   rm -f conftest.er1
36448   cat conftest.err >&5
36449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450   (exit $ac_status); } && {
36451          test -z "$ac_c_werror_flag" ||
36452          test ! -s conftest.err
36453        } && test -s conftest.$ac_objext; then
36454   ac_hi=$ac_mid; break
36455 else
36456   $as_echo "$as_me: failed program was:" >&5
36457 sed 's/^/| /' conftest.$ac_ext >&5
36458
36459         ac_lo=`expr $ac_mid + 1`
36460                         if test $ac_lo -le $ac_mid; then
36461                           ac_lo= ac_hi=
36462                           break
36463                         fi
36464                         ac_mid=`expr 2 '*' $ac_mid + 1`
36465 fi
36466
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36468   done
36469 else
36470   $as_echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36472
36473         cat >conftest.$ac_ext <<_ACEOF
36474 /* confdefs.h.  */
36475 _ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h.  */
36479 $ac_includes_default
36480 int
36481 main ()
36482 {
36483 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36484 test_array [0] = 0
36485
36486   ;
36487   return 0;
36488 }
36489 _ACEOF
36490 rm -f conftest.$ac_objext
36491 if { (ac_try="$ac_compile"
36492 case "(($ac_try" in
36493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494   *) ac_try_echo=$ac_try;;
36495 esac
36496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36497 $as_echo "$ac_try_echo") >&5
36498   (eval "$ac_compile") 2>conftest.er1
36499   ac_status=$?
36500   grep -v '^ *+' conftest.er1 >conftest.err
36501   rm -f conftest.er1
36502   cat conftest.err >&5
36503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504   (exit $ac_status); } && {
36505          test -z "$ac_c_werror_flag" ||
36506          test ! -s conftest.err
36507        } && test -s conftest.$ac_objext; then
36508   ac_hi=-1 ac_mid=-1
36509   while :; do
36510     cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516 $ac_includes_default
36517 int
36518 main ()
36519 {
36520 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36521 test_array [0] = 0
36522
36523   ;
36524   return 0;
36525 }
36526 _ACEOF
36527 rm -f conftest.$ac_objext
36528 if { (ac_try="$ac_compile"
36529 case "(($ac_try" in
36530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531   *) ac_try_echo=$ac_try;;
36532 esac
36533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36534 $as_echo "$ac_try_echo") >&5
36535   (eval "$ac_compile") 2>conftest.er1
36536   ac_status=$?
36537   grep -v '^ *+' conftest.er1 >conftest.err
36538   rm -f conftest.er1
36539   cat conftest.err >&5
36540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541   (exit $ac_status); } && {
36542          test -z "$ac_c_werror_flag" ||
36543          test ! -s conftest.err
36544        } && test -s conftest.$ac_objext; then
36545   ac_lo=$ac_mid; break
36546 else
36547   $as_echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36549
36550         ac_hi=`expr '(' $ac_mid ')' - 1`
36551                         if test $ac_mid -le $ac_hi; then
36552                           ac_lo= ac_hi=
36553                           break
36554                         fi
36555                         ac_mid=`expr 2 '*' $ac_mid`
36556 fi
36557
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36559   done
36560 else
36561   $as_echo "$as_me: failed program was:" >&5
36562 sed 's/^/| /' conftest.$ac_ext >&5
36563
36564         ac_lo= ac_hi=
36565 fi
36566
36567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36568 fi
36569
36570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36571 # Binary search between lo and hi bounds.
36572 while test "x$ac_lo" != "x$ac_hi"; do
36573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36574   cat >conftest.$ac_ext <<_ACEOF
36575 /* confdefs.h.  */
36576 _ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h.  */
36580 $ac_includes_default
36581 int
36582 main ()
36583 {
36584 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36585 test_array [0] = 0
36586
36587   ;
36588   return 0;
36589 }
36590 _ACEOF
36591 rm -f conftest.$ac_objext
36592 if { (ac_try="$ac_compile"
36593 case "(($ac_try" in
36594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36595   *) ac_try_echo=$ac_try;;
36596 esac
36597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36598 $as_echo "$ac_try_echo") >&5
36599   (eval "$ac_compile") 2>conftest.er1
36600   ac_status=$?
36601   grep -v '^ *+' conftest.er1 >conftest.err
36602   rm -f conftest.er1
36603   cat conftest.err >&5
36604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); } && {
36606          test -z "$ac_c_werror_flag" ||
36607          test ! -s conftest.err
36608        } && test -s conftest.$ac_objext; then
36609   ac_hi=$ac_mid
36610 else
36611   $as_echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36613
36614         ac_lo=`expr '(' $ac_mid ')' + 1`
36615 fi
36616
36617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36618 done
36619 case $ac_lo in
36620 ?*) ac_cv_sizeof_char=$ac_lo;;
36621 '') if test "$ac_cv_type_char" = yes; then
36622      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36624 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36625 See \`config.log' for more details." >&5
36626 $as_echo "$as_me: error: cannot compute sizeof (char)
36627 See \`config.log' for more details." >&2;}
36628    { (exit 77); exit 77; }; }; }
36629    else
36630      ac_cv_sizeof_char=0
36631    fi ;;
36632 esac
36633 else
36634   cat >conftest.$ac_ext <<_ACEOF
36635 /* confdefs.h.  */
36636 _ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h.  */
36640 $ac_includes_default
36641 static long int longval () { return (long int) (sizeof (char)); }
36642 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36643 #include <stdio.h>
36644 #include <stdlib.h>
36645 int
36646 main ()
36647 {
36648
36649   FILE *f = fopen ("conftest.val", "w");
36650   if (! f)
36651     return 1;
36652   if (((long int) (sizeof (char))) < 0)
36653     {
36654       long int i = longval ();
36655       if (i != ((long int) (sizeof (char))))
36656         return 1;
36657       fprintf (f, "%ld", i);
36658     }
36659   else
36660     {
36661       unsigned long int i = ulongval ();
36662       if (i != ((long int) (sizeof (char))))
36663         return 1;
36664       fprintf (f, "%lu", i);
36665     }
36666   /* Do not output a trailing newline, as this causes \r\n confusion
36667      on some platforms.  */
36668   return ferror (f) || fclose (f) != 0;
36669
36670   ;
36671   return 0;
36672 }
36673 _ACEOF
36674 rm -f conftest$ac_exeext
36675 if { (ac_try="$ac_link"
36676 case "(($ac_try" in
36677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678   *) ac_try_echo=$ac_try;;
36679 esac
36680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36681 $as_echo "$ac_try_echo") >&5
36682   (eval "$ac_link") 2>&5
36683   ac_status=$?
36684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36686   { (case "(($ac_try" in
36687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36688   *) ac_try_echo=$ac_try;;
36689 esac
36690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36691 $as_echo "$ac_try_echo") >&5
36692   (eval "$ac_try") 2>&5
36693   ac_status=$?
36694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695   (exit $ac_status); }; }; then
36696   ac_cv_sizeof_char=`cat conftest.val`
36697 else
36698   $as_echo "$as_me: program exited with status $ac_status" >&5
36699 $as_echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36701
36702 ( exit $ac_status )
36703 if test "$ac_cv_type_char" = yes; then
36704      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36706 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36707 See \`config.log' for more details." >&5
36708 $as_echo "$as_me: error: cannot compute sizeof (char)
36709 See \`config.log' for more details." >&2;}
36710    { (exit 77); exit 77; }; }; }
36711    else
36712      ac_cv_sizeof_char=0
36713    fi
36714 fi
36715 rm -rf conftest.dSYM
36716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36717 fi
36718 rm -f conftest.val
36719 fi
36720 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
36721 $as_echo "$ac_cv_sizeof_char" >&6; }
36722
36723
36724
36725 cat >>confdefs.h <<_ACEOF
36726 #define SIZEOF_CHAR $ac_cv_sizeof_char
36727 _ACEOF
36728
36729
36730 # The cast to long int works around a bug in the HP C Compiler
36731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36733 # This bug is HP SR number 8606223364.
36734 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
36735 $as_echo_n "checking size of short int... " >&6; }
36736 if test "${ac_cv_sizeof_short_int+set}" = set; then
36737   $as_echo_n "(cached) " >&6
36738 else
36739   if test "$cross_compiling" = yes; then
36740   # Depending upon the size, compute the lo and hi bounds.
36741 cat >conftest.$ac_ext <<_ACEOF
36742 /* confdefs.h.  */
36743 _ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h.  */
36747 $ac_includes_default
36748 int
36749 main ()
36750 {
36751 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
36752 test_array [0] = 0
36753
36754   ;
36755   return 0;
36756 }
36757 _ACEOF
36758 rm -f conftest.$ac_objext
36759 if { (ac_try="$ac_compile"
36760 case "(($ac_try" in
36761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36762   *) ac_try_echo=$ac_try;;
36763 esac
36764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36765 $as_echo "$ac_try_echo") >&5
36766   (eval "$ac_compile") 2>conftest.er1
36767   ac_status=$?
36768   grep -v '^ *+' conftest.er1 >conftest.err
36769   rm -f conftest.er1
36770   cat conftest.err >&5
36771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772   (exit $ac_status); } && {
36773          test -z "$ac_c_werror_flag" ||
36774          test ! -s conftest.err
36775        } && test -s conftest.$ac_objext; then
36776   ac_lo=0 ac_mid=0
36777   while :; do
36778     cat >conftest.$ac_ext <<_ACEOF
36779 /* confdefs.h.  */
36780 _ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h.  */
36784 $ac_includes_default
36785 int
36786 main ()
36787 {
36788 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36789 test_array [0] = 0
36790
36791   ;
36792   return 0;
36793 }
36794 _ACEOF
36795 rm -f conftest.$ac_objext
36796 if { (ac_try="$ac_compile"
36797 case "(($ac_try" in
36798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799   *) ac_try_echo=$ac_try;;
36800 esac
36801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36802 $as_echo "$ac_try_echo") >&5
36803   (eval "$ac_compile") 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } && {
36810          test -z "$ac_c_werror_flag" ||
36811          test ! -s conftest.err
36812        } && test -s conftest.$ac_objext; then
36813   ac_hi=$ac_mid; break
36814 else
36815   $as_echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36817
36818         ac_lo=`expr $ac_mid + 1`
36819                         if test $ac_lo -le $ac_mid; then
36820                           ac_lo= ac_hi=
36821                           break
36822                         fi
36823                         ac_mid=`expr 2 '*' $ac_mid + 1`
36824 fi
36825
36826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36827   done
36828 else
36829   $as_echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36831
36832         cat >conftest.$ac_ext <<_ACEOF
36833 /* confdefs.h.  */
36834 _ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h.  */
36838 $ac_includes_default
36839 int
36840 main ()
36841 {
36842 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
36843 test_array [0] = 0
36844
36845   ;
36846   return 0;
36847 }
36848 _ACEOF
36849 rm -f conftest.$ac_objext
36850 if { (ac_try="$ac_compile"
36851 case "(($ac_try" in
36852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36853   *) ac_try_echo=$ac_try;;
36854 esac
36855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36856 $as_echo "$ac_try_echo") >&5
36857   (eval "$ac_compile") 2>conftest.er1
36858   ac_status=$?
36859   grep -v '^ *+' conftest.er1 >conftest.err
36860   rm -f conftest.er1
36861   cat conftest.err >&5
36862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863   (exit $ac_status); } && {
36864          test -z "$ac_c_werror_flag" ||
36865          test ! -s conftest.err
36866        } && test -s conftest.$ac_objext; then
36867   ac_hi=-1 ac_mid=-1
36868   while :; do
36869     cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875 $ac_includes_default
36876 int
36877 main ()
36878 {
36879 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
36880 test_array [0] = 0
36881
36882   ;
36883   return 0;
36884 }
36885 _ACEOF
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890   *) ac_try_echo=$ac_try;;
36891 esac
36892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36893 $as_echo "$ac_try_echo") >&5
36894   (eval "$ac_compile") 2>conftest.er1
36895   ac_status=$?
36896   grep -v '^ *+' conftest.er1 >conftest.err
36897   rm -f conftest.er1
36898   cat conftest.err >&5
36899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900   (exit $ac_status); } && {
36901          test -z "$ac_c_werror_flag" ||
36902          test ! -s conftest.err
36903        } && test -s conftest.$ac_objext; then
36904   ac_lo=$ac_mid; break
36905 else
36906   $as_echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36908
36909         ac_hi=`expr '(' $ac_mid ')' - 1`
36910                         if test $ac_mid -le $ac_hi; then
36911                           ac_lo= ac_hi=
36912                           break
36913                         fi
36914                         ac_mid=`expr 2 '*' $ac_mid`
36915 fi
36916
36917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36918   done
36919 else
36920   $as_echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36922
36923         ac_lo= ac_hi=
36924 fi
36925
36926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36927 fi
36928
36929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36930 # Binary search between lo and hi bounds.
36931 while test "x$ac_lo" != "x$ac_hi"; do
36932   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36933   cat >conftest.$ac_ext <<_ACEOF
36934 /* confdefs.h.  */
36935 _ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h.  */
36939 $ac_includes_default
36940 int
36941 main ()
36942 {
36943 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36944 test_array [0] = 0
36945
36946   ;
36947   return 0;
36948 }
36949 _ACEOF
36950 rm -f conftest.$ac_objext
36951 if { (ac_try="$ac_compile"
36952 case "(($ac_try" in
36953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36954   *) ac_try_echo=$ac_try;;
36955 esac
36956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36957 $as_echo "$ac_try_echo") >&5
36958   (eval "$ac_compile") 2>conftest.er1
36959   ac_status=$?
36960   grep -v '^ *+' conftest.er1 >conftest.err
36961   rm -f conftest.er1
36962   cat conftest.err >&5
36963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964   (exit $ac_status); } && {
36965          test -z "$ac_c_werror_flag" ||
36966          test ! -s conftest.err
36967        } && test -s conftest.$ac_objext; then
36968   ac_hi=$ac_mid
36969 else
36970   $as_echo "$as_me: failed program was:" >&5
36971 sed 's/^/| /' conftest.$ac_ext >&5
36972
36973         ac_lo=`expr '(' $ac_mid ')' + 1`
36974 fi
36975
36976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36977 done
36978 case $ac_lo in
36979 ?*) ac_cv_sizeof_short_int=$ac_lo;;
36980 '') if test "$ac_cv_type_short_int" = yes; then
36981      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36983 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
36984 See \`config.log' for more details." >&5
36985 $as_echo "$as_me: error: cannot compute sizeof (short int)
36986 See \`config.log' for more details." >&2;}
36987    { (exit 77); exit 77; }; }; }
36988    else
36989      ac_cv_sizeof_short_int=0
36990    fi ;;
36991 esac
36992 else
36993   cat >conftest.$ac_ext <<_ACEOF
36994 /* confdefs.h.  */
36995 _ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h.  */
36999 $ac_includes_default
37000 static long int longval () { return (long int) (sizeof (short int)); }
37001 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37002 #include <stdio.h>
37003 #include <stdlib.h>
37004 int
37005 main ()
37006 {
37007
37008   FILE *f = fopen ("conftest.val", "w");
37009   if (! f)
37010     return 1;
37011   if (((long int) (sizeof (short int))) < 0)
37012     {
37013       long int i = longval ();
37014       if (i != ((long int) (sizeof (short int))))
37015         return 1;
37016       fprintf (f, "%ld", i);
37017     }
37018   else
37019     {
37020       unsigned long int i = ulongval ();
37021       if (i != ((long int) (sizeof (short int))))
37022         return 1;
37023       fprintf (f, "%lu", i);
37024     }
37025   /* Do not output a trailing newline, as this causes \r\n confusion
37026      on some platforms.  */
37027   return ferror (f) || fclose (f) != 0;
37028
37029   ;
37030   return 0;
37031 }
37032 _ACEOF
37033 rm -f conftest$ac_exeext
37034 if { (ac_try="$ac_link"
37035 case "(($ac_try" in
37036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37037   *) ac_try_echo=$ac_try;;
37038 esac
37039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37040 $as_echo "$ac_try_echo") >&5
37041   (eval "$ac_link") 2>&5
37042   ac_status=$?
37043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37045   { (case "(($ac_try" in
37046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37047   *) ac_try_echo=$ac_try;;
37048 esac
37049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37050 $as_echo "$ac_try_echo") >&5
37051   (eval "$ac_try") 2>&5
37052   ac_status=$?
37053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; }; then
37055   ac_cv_sizeof_short_int=`cat conftest.val`
37056 else
37057   $as_echo "$as_me: program exited with status $ac_status" >&5
37058 $as_echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37060
37061 ( exit $ac_status )
37062 if test "$ac_cv_type_short_int" = yes; then
37063      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37066 See \`config.log' for more details." >&5
37067 $as_echo "$as_me: error: cannot compute sizeof (short int)
37068 See \`config.log' for more details." >&2;}
37069    { (exit 77); exit 77; }; }; }
37070    else
37071      ac_cv_sizeof_short_int=0
37072    fi
37073 fi
37074 rm -rf conftest.dSYM
37075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37076 fi
37077 rm -f conftest.val
37078 fi
37079 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37080 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37081
37082
37083
37084 cat >>confdefs.h <<_ACEOF
37085 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37086 _ACEOF
37087
37088
37089 # The cast to long int works around a bug in the HP C Compiler
37090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37092 # This bug is HP SR number 8606223364.
37093 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37094 $as_echo_n "checking size of int... " >&6; }
37095 if test "${ac_cv_sizeof_int+set}" = set; then
37096   $as_echo_n "(cached) " >&6
37097 else
37098   if test "$cross_compiling" = yes; then
37099   # Depending upon the size, compute the lo and hi bounds.
37100 cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h.  */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h.  */
37106 $ac_includes_default
37107 int
37108 main ()
37109 {
37110 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37111 test_array [0] = 0
37112
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext
37118 if { (ac_try="$ac_compile"
37119 case "(($ac_try" in
37120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121   *) ac_try_echo=$ac_try;;
37122 esac
37123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37124 $as_echo "$ac_try_echo") >&5
37125   (eval "$ac_compile") 2>conftest.er1
37126   ac_status=$?
37127   grep -v '^ *+' conftest.er1 >conftest.err
37128   rm -f conftest.er1
37129   cat conftest.err >&5
37130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131   (exit $ac_status); } && {
37132          test -z "$ac_c_werror_flag" ||
37133          test ! -s conftest.err
37134        } && test -s conftest.$ac_objext; then
37135   ac_lo=0 ac_mid=0
37136   while :; do
37137     cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143 $ac_includes_default
37144 int
37145 main ()
37146 {
37147 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37148 test_array [0] = 0
37149
37150   ;
37151   return 0;
37152 }
37153 _ACEOF
37154 rm -f conftest.$ac_objext
37155 if { (ac_try="$ac_compile"
37156 case "(($ac_try" in
37157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37158   *) ac_try_echo=$ac_try;;
37159 esac
37160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37161 $as_echo "$ac_try_echo") >&5
37162   (eval "$ac_compile") 2>conftest.er1
37163   ac_status=$?
37164   grep -v '^ *+' conftest.er1 >conftest.err
37165   rm -f conftest.er1
37166   cat conftest.err >&5
37167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168   (exit $ac_status); } && {
37169          test -z "$ac_c_werror_flag" ||
37170          test ! -s conftest.err
37171        } && test -s conftest.$ac_objext; then
37172   ac_hi=$ac_mid; break
37173 else
37174   $as_echo "$as_me: failed program was:" >&5
37175 sed 's/^/| /' conftest.$ac_ext >&5
37176
37177         ac_lo=`expr $ac_mid + 1`
37178                         if test $ac_lo -le $ac_mid; then
37179                           ac_lo= ac_hi=
37180                           break
37181                         fi
37182                         ac_mid=`expr 2 '*' $ac_mid + 1`
37183 fi
37184
37185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37186   done
37187 else
37188   $as_echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37190
37191         cat >conftest.$ac_ext <<_ACEOF
37192 /* confdefs.h.  */
37193 _ACEOF
37194 cat confdefs.h >>conftest.$ac_ext
37195 cat >>conftest.$ac_ext <<_ACEOF
37196 /* end confdefs.h.  */
37197 $ac_includes_default
37198 int
37199 main ()
37200 {
37201 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37202 test_array [0] = 0
37203
37204   ;
37205   return 0;
37206 }
37207 _ACEOF
37208 rm -f conftest.$ac_objext
37209 if { (ac_try="$ac_compile"
37210 case "(($ac_try" in
37211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37212   *) ac_try_echo=$ac_try;;
37213 esac
37214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37215 $as_echo "$ac_try_echo") >&5
37216   (eval "$ac_compile") 2>conftest.er1
37217   ac_status=$?
37218   grep -v '^ *+' conftest.er1 >conftest.err
37219   rm -f conftest.er1
37220   cat conftest.err >&5
37221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222   (exit $ac_status); } && {
37223          test -z "$ac_c_werror_flag" ||
37224          test ! -s conftest.err
37225        } && test -s conftest.$ac_objext; then
37226   ac_hi=-1 ac_mid=-1
37227   while :; do
37228     cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234 $ac_includes_default
37235 int
37236 main ()
37237 {
37238 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
37239 test_array [0] = 0
37240
37241   ;
37242   return 0;
37243 }
37244 _ACEOF
37245 rm -f conftest.$ac_objext
37246 if { (ac_try="$ac_compile"
37247 case "(($ac_try" in
37248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249   *) ac_try_echo=$ac_try;;
37250 esac
37251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37252 $as_echo "$ac_try_echo") >&5
37253   (eval "$ac_compile") 2>conftest.er1
37254   ac_status=$?
37255   grep -v '^ *+' conftest.er1 >conftest.err
37256   rm -f conftest.er1
37257   cat conftest.err >&5
37258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259   (exit $ac_status); } && {
37260          test -z "$ac_c_werror_flag" ||
37261          test ! -s conftest.err
37262        } && test -s conftest.$ac_objext; then
37263   ac_lo=$ac_mid; break
37264 else
37265   $as_echo "$as_me: failed program was:" >&5
37266 sed 's/^/| /' conftest.$ac_ext >&5
37267
37268         ac_hi=`expr '(' $ac_mid ')' - 1`
37269                         if test $ac_mid -le $ac_hi; then
37270                           ac_lo= ac_hi=
37271                           break
37272                         fi
37273                         ac_mid=`expr 2 '*' $ac_mid`
37274 fi
37275
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37277   done
37278 else
37279   $as_echo "$as_me: failed program was:" >&5
37280 sed 's/^/| /' conftest.$ac_ext >&5
37281
37282         ac_lo= ac_hi=
37283 fi
37284
37285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37286 fi
37287
37288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37289 # Binary search between lo and hi bounds.
37290 while test "x$ac_lo" != "x$ac_hi"; do
37291   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37292   cat >conftest.$ac_ext <<_ACEOF
37293 /* confdefs.h.  */
37294 _ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h.  */
37298 $ac_includes_default
37299 int
37300 main ()
37301 {
37302 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37303 test_array [0] = 0
37304
37305   ;
37306   return 0;
37307 }
37308 _ACEOF
37309 rm -f conftest.$ac_objext
37310 if { (ac_try="$ac_compile"
37311 case "(($ac_try" in
37312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37313   *) ac_try_echo=$ac_try;;
37314 esac
37315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37316 $as_echo "$ac_try_echo") >&5
37317   (eval "$ac_compile") 2>conftest.er1
37318   ac_status=$?
37319   grep -v '^ *+' conftest.er1 >conftest.err
37320   rm -f conftest.er1
37321   cat conftest.err >&5
37322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); } && {
37324          test -z "$ac_c_werror_flag" ||
37325          test ! -s conftest.err
37326        } && test -s conftest.$ac_objext; then
37327   ac_hi=$ac_mid
37328 else
37329   $as_echo "$as_me: failed program was:" >&5
37330 sed 's/^/| /' conftest.$ac_ext >&5
37331
37332         ac_lo=`expr '(' $ac_mid ')' + 1`
37333 fi
37334
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37336 done
37337 case $ac_lo in
37338 ?*) ac_cv_sizeof_int=$ac_lo;;
37339 '') if test "$ac_cv_type_int" = yes; then
37340      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37342 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37343 See \`config.log' for more details." >&5
37344 $as_echo "$as_me: error: cannot compute sizeof (int)
37345 See \`config.log' for more details." >&2;}
37346    { (exit 77); exit 77; }; }; }
37347    else
37348      ac_cv_sizeof_int=0
37349    fi ;;
37350 esac
37351 else
37352   cat >conftest.$ac_ext <<_ACEOF
37353 /* confdefs.h.  */
37354 _ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h.  */
37358 $ac_includes_default
37359 static long int longval () { return (long int) (sizeof (int)); }
37360 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
37361 #include <stdio.h>
37362 #include <stdlib.h>
37363 int
37364 main ()
37365 {
37366
37367   FILE *f = fopen ("conftest.val", "w");
37368   if (! f)
37369     return 1;
37370   if (((long int) (sizeof (int))) < 0)
37371     {
37372       long int i = longval ();
37373       if (i != ((long int) (sizeof (int))))
37374         return 1;
37375       fprintf (f, "%ld", i);
37376     }
37377   else
37378     {
37379       unsigned long int i = ulongval ();
37380       if (i != ((long int) (sizeof (int))))
37381         return 1;
37382       fprintf (f, "%lu", i);
37383     }
37384   /* Do not output a trailing newline, as this causes \r\n confusion
37385      on some platforms.  */
37386   return ferror (f) || fclose (f) != 0;
37387
37388   ;
37389   return 0;
37390 }
37391 _ACEOF
37392 rm -f conftest$ac_exeext
37393 if { (ac_try="$ac_link"
37394 case "(($ac_try" in
37395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396   *) ac_try_echo=$ac_try;;
37397 esac
37398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37399 $as_echo "$ac_try_echo") >&5
37400   (eval "$ac_link") 2>&5
37401   ac_status=$?
37402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37404   { (case "(($ac_try" in
37405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406   *) ac_try_echo=$ac_try;;
37407 esac
37408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37409 $as_echo "$ac_try_echo") >&5
37410   (eval "$ac_try") 2>&5
37411   ac_status=$?
37412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413   (exit $ac_status); }; }; then
37414   ac_cv_sizeof_int=`cat conftest.val`
37415 else
37416   $as_echo "$as_me: program exited with status $ac_status" >&5
37417 $as_echo "$as_me: failed program was:" >&5
37418 sed 's/^/| /' conftest.$ac_ext >&5
37419
37420 ( exit $ac_status )
37421 if test "$ac_cv_type_int" = yes; then
37422      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37424 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37425 See \`config.log' for more details." >&5
37426 $as_echo "$as_me: error: cannot compute sizeof (int)
37427 See \`config.log' for more details." >&2;}
37428    { (exit 77); exit 77; }; }; }
37429    else
37430      ac_cv_sizeof_int=0
37431    fi
37432 fi
37433 rm -rf conftest.dSYM
37434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37435 fi
37436 rm -f conftest.val
37437 fi
37438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
37439 $as_echo "$ac_cv_sizeof_int" >&6; }
37440
37441
37442
37443 cat >>confdefs.h <<_ACEOF
37444 #define SIZEOF_INT $ac_cv_sizeof_int
37445 _ACEOF
37446
37447
37448 # The cast to long int works around a bug in the HP C Compiler
37449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37451 # This bug is HP SR number 8606223364.
37452 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
37453 $as_echo_n "checking size of long int... " >&6; }
37454 if test "${ac_cv_sizeof_long_int+set}" = set; then
37455   $as_echo_n "(cached) " >&6
37456 else
37457   if test "$cross_compiling" = yes; then
37458   # Depending upon the size, compute the lo and hi bounds.
37459 cat >conftest.$ac_ext <<_ACEOF
37460 /* confdefs.h.  */
37461 _ACEOF
37462 cat confdefs.h >>conftest.$ac_ext
37463 cat >>conftest.$ac_ext <<_ACEOF
37464 /* end confdefs.h.  */
37465 $ac_includes_default
37466 int
37467 main ()
37468 {
37469 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
37470 test_array [0] = 0
37471
37472   ;
37473   return 0;
37474 }
37475 _ACEOF
37476 rm -f conftest.$ac_objext
37477 if { (ac_try="$ac_compile"
37478 case "(($ac_try" in
37479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480   *) ac_try_echo=$ac_try;;
37481 esac
37482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37483 $as_echo "$ac_try_echo") >&5
37484   (eval "$ac_compile") 2>conftest.er1
37485   ac_status=$?
37486   grep -v '^ *+' conftest.er1 >conftest.err
37487   rm -f conftest.er1
37488   cat conftest.err >&5
37489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490   (exit $ac_status); } && {
37491          test -z "$ac_c_werror_flag" ||
37492          test ! -s conftest.err
37493        } && test -s conftest.$ac_objext; then
37494   ac_lo=0 ac_mid=0
37495   while :; do
37496     cat >conftest.$ac_ext <<_ACEOF
37497 /* confdefs.h.  */
37498 _ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h.  */
37502 $ac_includes_default
37503 int
37504 main ()
37505 {
37506 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37507 test_array [0] = 0
37508
37509   ;
37510   return 0;
37511 }
37512 _ACEOF
37513 rm -f conftest.$ac_objext
37514 if { (ac_try="$ac_compile"
37515 case "(($ac_try" in
37516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517   *) ac_try_echo=$ac_try;;
37518 esac
37519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37520 $as_echo "$ac_try_echo") >&5
37521   (eval "$ac_compile") 2>conftest.er1
37522   ac_status=$?
37523   grep -v '^ *+' conftest.er1 >conftest.err
37524   rm -f conftest.er1
37525   cat conftest.err >&5
37526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527   (exit $ac_status); } && {
37528          test -z "$ac_c_werror_flag" ||
37529          test ! -s conftest.err
37530        } && test -s conftest.$ac_objext; then
37531   ac_hi=$ac_mid; break
37532 else
37533   $as_echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37535
37536         ac_lo=`expr $ac_mid + 1`
37537                         if test $ac_lo -le $ac_mid; then
37538                           ac_lo= ac_hi=
37539                           break
37540                         fi
37541                         ac_mid=`expr 2 '*' $ac_mid + 1`
37542 fi
37543
37544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37545   done
37546 else
37547   $as_echo "$as_me: failed program was:" >&5
37548 sed 's/^/| /' conftest.$ac_ext >&5
37549
37550         cat >conftest.$ac_ext <<_ACEOF
37551 /* confdefs.h.  */
37552 _ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h.  */
37556 $ac_includes_default
37557 int
37558 main ()
37559 {
37560 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
37561 test_array [0] = 0
37562
37563   ;
37564   return 0;
37565 }
37566 _ACEOF
37567 rm -f conftest.$ac_objext
37568 if { (ac_try="$ac_compile"
37569 case "(($ac_try" in
37570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571   *) ac_try_echo=$ac_try;;
37572 esac
37573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37574 $as_echo "$ac_try_echo") >&5
37575   (eval "$ac_compile") 2>conftest.er1
37576   ac_status=$?
37577   grep -v '^ *+' conftest.er1 >conftest.err
37578   rm -f conftest.er1
37579   cat conftest.err >&5
37580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581   (exit $ac_status); } && {
37582          test -z "$ac_c_werror_flag" ||
37583          test ! -s conftest.err
37584        } && test -s conftest.$ac_objext; then
37585   ac_hi=-1 ac_mid=-1
37586   while :; do
37587     cat >conftest.$ac_ext <<_ACEOF
37588 /* confdefs.h.  */
37589 _ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h.  */
37593 $ac_includes_default
37594 int
37595 main ()
37596 {
37597 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
37598 test_array [0] = 0
37599
37600   ;
37601   return 0;
37602 }
37603 _ACEOF
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608   *) ac_try_echo=$ac_try;;
37609 esac
37610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37611 $as_echo "$ac_try_echo") >&5
37612   (eval "$ac_compile") 2>conftest.er1
37613   ac_status=$?
37614   grep -v '^ *+' conftest.er1 >conftest.err
37615   rm -f conftest.er1
37616   cat conftest.err >&5
37617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } && {
37619          test -z "$ac_c_werror_flag" ||
37620          test ! -s conftest.err
37621        } && test -s conftest.$ac_objext; then
37622   ac_lo=$ac_mid; break
37623 else
37624   $as_echo "$as_me: failed program was:" >&5
37625 sed 's/^/| /' conftest.$ac_ext >&5
37626
37627         ac_hi=`expr '(' $ac_mid ')' - 1`
37628                         if test $ac_mid -le $ac_hi; then
37629                           ac_lo= ac_hi=
37630                           break
37631                         fi
37632                         ac_mid=`expr 2 '*' $ac_mid`
37633 fi
37634
37635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37636   done
37637 else
37638   $as_echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37640
37641         ac_lo= ac_hi=
37642 fi
37643
37644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37645 fi
37646
37647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37648 # Binary search between lo and hi bounds.
37649 while test "x$ac_lo" != "x$ac_hi"; do
37650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37651   cat >conftest.$ac_ext <<_ACEOF
37652 /* confdefs.h.  */
37653 _ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h.  */
37657 $ac_includes_default
37658 int
37659 main ()
37660 {
37661 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37662 test_array [0] = 0
37663
37664   ;
37665   return 0;
37666 }
37667 _ACEOF
37668 rm -f conftest.$ac_objext
37669 if { (ac_try="$ac_compile"
37670 case "(($ac_try" in
37671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37672   *) ac_try_echo=$ac_try;;
37673 esac
37674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37675 $as_echo "$ac_try_echo") >&5
37676   (eval "$ac_compile") 2>conftest.er1
37677   ac_status=$?
37678   grep -v '^ *+' conftest.er1 >conftest.err
37679   rm -f conftest.er1
37680   cat conftest.err >&5
37681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); } && {
37683          test -z "$ac_c_werror_flag" ||
37684          test ! -s conftest.err
37685        } && test -s conftest.$ac_objext; then
37686   ac_hi=$ac_mid
37687 else
37688   $as_echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37690
37691         ac_lo=`expr '(' $ac_mid ')' + 1`
37692 fi
37693
37694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37695 done
37696 case $ac_lo in
37697 ?*) ac_cv_sizeof_long_int=$ac_lo;;
37698 '') if test "$ac_cv_type_long_int" = yes; then
37699      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37701 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37702 See \`config.log' for more details." >&5
37703 $as_echo "$as_me: error: cannot compute sizeof (long int)
37704 See \`config.log' for more details." >&2;}
37705    { (exit 77); exit 77; }; }; }
37706    else
37707      ac_cv_sizeof_long_int=0
37708    fi ;;
37709 esac
37710 else
37711   cat >conftest.$ac_ext <<_ACEOF
37712 /* confdefs.h.  */
37713 _ACEOF
37714 cat confdefs.h >>conftest.$ac_ext
37715 cat >>conftest.$ac_ext <<_ACEOF
37716 /* end confdefs.h.  */
37717 $ac_includes_default
37718 static long int longval () { return (long int) (sizeof (long int)); }
37719 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
37720 #include <stdio.h>
37721 #include <stdlib.h>
37722 int
37723 main ()
37724 {
37725
37726   FILE *f = fopen ("conftest.val", "w");
37727   if (! f)
37728     return 1;
37729   if (((long int) (sizeof (long int))) < 0)
37730     {
37731       long int i = longval ();
37732       if (i != ((long int) (sizeof (long int))))
37733         return 1;
37734       fprintf (f, "%ld", i);
37735     }
37736   else
37737     {
37738       unsigned long int i = ulongval ();
37739       if (i != ((long int) (sizeof (long int))))
37740         return 1;
37741       fprintf (f, "%lu", i);
37742     }
37743   /* Do not output a trailing newline, as this causes \r\n confusion
37744      on some platforms.  */
37745   return ferror (f) || fclose (f) != 0;
37746
37747   ;
37748   return 0;
37749 }
37750 _ACEOF
37751 rm -f conftest$ac_exeext
37752 if { (ac_try="$ac_link"
37753 case "(($ac_try" in
37754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37755   *) ac_try_echo=$ac_try;;
37756 esac
37757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37758 $as_echo "$ac_try_echo") >&5
37759   (eval "$ac_link") 2>&5
37760   ac_status=$?
37761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37763   { (case "(($ac_try" in
37764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37765   *) ac_try_echo=$ac_try;;
37766 esac
37767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37768 $as_echo "$ac_try_echo") >&5
37769   (eval "$ac_try") 2>&5
37770   ac_status=$?
37771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); }; }; then
37773   ac_cv_sizeof_long_int=`cat conftest.val`
37774 else
37775   $as_echo "$as_me: program exited with status $ac_status" >&5
37776 $as_echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37778
37779 ( exit $ac_status )
37780 if test "$ac_cv_type_long_int" = yes; then
37781      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37783 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37784 See \`config.log' for more details." >&5
37785 $as_echo "$as_me: error: cannot compute sizeof (long int)
37786 See \`config.log' for more details." >&2;}
37787    { (exit 77); exit 77; }; }; }
37788    else
37789      ac_cv_sizeof_long_int=0
37790    fi
37791 fi
37792 rm -rf conftest.dSYM
37793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37794 fi
37795 rm -f conftest.val
37796 fi
37797 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
37798 $as_echo "$ac_cv_sizeof_long_int" >&6; }
37799
37800
37801
37802 cat >>confdefs.h <<_ACEOF
37803 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
37804 _ACEOF
37805
37806
37807 # The cast to long int works around a bug in the HP C Compiler
37808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37810 # This bug is HP SR number 8606223364.
37811 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
37812 $as_echo_n "checking size of long long int... " >&6; }
37813 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
37814   $as_echo_n "(cached) " >&6
37815 else
37816   if test "$cross_compiling" = yes; then
37817   # Depending upon the size, compute the lo and hi bounds.
37818 cat >conftest.$ac_ext <<_ACEOF
37819 /* confdefs.h.  */
37820 _ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h.  */
37824 $ac_includes_default
37825 int
37826 main ()
37827 {
37828 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
37829 test_array [0] = 0
37830
37831   ;
37832   return 0;
37833 }
37834 _ACEOF
37835 rm -f conftest.$ac_objext
37836 if { (ac_try="$ac_compile"
37837 case "(($ac_try" in
37838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839   *) ac_try_echo=$ac_try;;
37840 esac
37841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37842 $as_echo "$ac_try_echo") >&5
37843   (eval "$ac_compile") 2>conftest.er1
37844   ac_status=$?
37845   grep -v '^ *+' conftest.er1 >conftest.err
37846   rm -f conftest.er1
37847   cat conftest.err >&5
37848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); } && {
37850          test -z "$ac_c_werror_flag" ||
37851          test ! -s conftest.err
37852        } && test -s conftest.$ac_objext; then
37853   ac_lo=0 ac_mid=0
37854   while :; do
37855     cat >conftest.$ac_ext <<_ACEOF
37856 /* confdefs.h.  */
37857 _ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h.  */
37861 $ac_includes_default
37862 int
37863 main ()
37864 {
37865 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
37866 test_array [0] = 0
37867
37868   ;
37869   return 0;
37870 }
37871 _ACEOF
37872 rm -f conftest.$ac_objext
37873 if { (ac_try="$ac_compile"
37874 case "(($ac_try" in
37875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37876   *) ac_try_echo=$ac_try;;
37877 esac
37878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37879 $as_echo "$ac_try_echo") >&5
37880   (eval "$ac_compile") 2>conftest.er1
37881   ac_status=$?
37882   grep -v '^ *+' conftest.er1 >conftest.err
37883   rm -f conftest.er1
37884   cat conftest.err >&5
37885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); } && {
37887          test -z "$ac_c_werror_flag" ||
37888          test ! -s conftest.err
37889        } && test -s conftest.$ac_objext; then
37890   ac_hi=$ac_mid; break
37891 else
37892   $as_echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37894
37895         ac_lo=`expr $ac_mid + 1`
37896                         if test $ac_lo -le $ac_mid; then
37897                           ac_lo= ac_hi=
37898                           break
37899                         fi
37900                         ac_mid=`expr 2 '*' $ac_mid + 1`
37901 fi
37902
37903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37904   done
37905 else
37906   $as_echo "$as_me: failed program was:" >&5
37907 sed 's/^/| /' conftest.$ac_ext >&5
37908
37909         cat >conftest.$ac_ext <<_ACEOF
37910 /* confdefs.h.  */
37911 _ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h.  */
37915 $ac_includes_default
37916 int
37917 main ()
37918 {
37919 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
37920 test_array [0] = 0
37921
37922   ;
37923   return 0;
37924 }
37925 _ACEOF
37926 rm -f conftest.$ac_objext
37927 if { (ac_try="$ac_compile"
37928 case "(($ac_try" in
37929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37930   *) ac_try_echo=$ac_try;;
37931 esac
37932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37933 $as_echo "$ac_try_echo") >&5
37934   (eval "$ac_compile") 2>conftest.er1
37935   ac_status=$?
37936   grep -v '^ *+' conftest.er1 >conftest.err
37937   rm -f conftest.er1
37938   cat conftest.err >&5
37939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940   (exit $ac_status); } && {
37941          test -z "$ac_c_werror_flag" ||
37942          test ! -s conftest.err
37943        } && test -s conftest.$ac_objext; then
37944   ac_hi=-1 ac_mid=-1
37945   while :; do
37946     cat >conftest.$ac_ext <<_ACEOF
37947 /* confdefs.h.  */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h.  */
37952 $ac_includes_default
37953 int
37954 main ()
37955 {
37956 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
37957 test_array [0] = 0
37958
37959   ;
37960   return 0;
37961 }
37962 _ACEOF
37963 rm -f conftest.$ac_objext
37964 if { (ac_try="$ac_compile"
37965 case "(($ac_try" in
37966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967   *) ac_try_echo=$ac_try;;
37968 esac
37969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37970 $as_echo "$ac_try_echo") >&5
37971   (eval "$ac_compile") 2>conftest.er1
37972   ac_status=$?
37973   grep -v '^ *+' conftest.er1 >conftest.err
37974   rm -f conftest.er1
37975   cat conftest.err >&5
37976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); } && {
37978          test -z "$ac_c_werror_flag" ||
37979          test ! -s conftest.err
37980        } && test -s conftest.$ac_objext; then
37981   ac_lo=$ac_mid; break
37982 else
37983   $as_echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986         ac_hi=`expr '(' $ac_mid ')' - 1`
37987                         if test $ac_mid -le $ac_hi; then
37988                           ac_lo= ac_hi=
37989                           break
37990                         fi
37991                         ac_mid=`expr 2 '*' $ac_mid`
37992 fi
37993
37994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37995   done
37996 else
37997   $as_echo "$as_me: failed program was:" >&5
37998 sed 's/^/| /' conftest.$ac_ext >&5
37999
38000         ac_lo= ac_hi=
38001 fi
38002
38003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38004 fi
38005
38006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38007 # Binary search between lo and hi bounds.
38008 while test "x$ac_lo" != "x$ac_hi"; do
38009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38010   cat >conftest.$ac_ext <<_ACEOF
38011 /* confdefs.h.  */
38012 _ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h.  */
38016 $ac_includes_default
38017 int
38018 main ()
38019 {
38020 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38021 test_array [0] = 0
38022
38023   ;
38024   return 0;
38025 }
38026 _ACEOF
38027 rm -f conftest.$ac_objext
38028 if { (ac_try="$ac_compile"
38029 case "(($ac_try" in
38030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38031   *) ac_try_echo=$ac_try;;
38032 esac
38033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38034 $as_echo "$ac_try_echo") >&5
38035   (eval "$ac_compile") 2>conftest.er1
38036   ac_status=$?
38037   grep -v '^ *+' conftest.er1 >conftest.err
38038   rm -f conftest.er1
38039   cat conftest.err >&5
38040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); } && {
38042          test -z "$ac_c_werror_flag" ||
38043          test ! -s conftest.err
38044        } && test -s conftest.$ac_objext; then
38045   ac_hi=$ac_mid
38046 else
38047   $as_echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38049
38050         ac_lo=`expr '(' $ac_mid ')' + 1`
38051 fi
38052
38053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38054 done
38055 case $ac_lo in
38056 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38057 '') if test "$ac_cv_type_long_long_int" = yes; then
38058      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38060 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38061 See \`config.log' for more details." >&5
38062 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38063 See \`config.log' for more details." >&2;}
38064    { (exit 77); exit 77; }; }; }
38065    else
38066      ac_cv_sizeof_long_long_int=0
38067    fi ;;
38068 esac
38069 else
38070   cat >conftest.$ac_ext <<_ACEOF
38071 /* confdefs.h.  */
38072 _ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h.  */
38076 $ac_includes_default
38077 static long int longval () { return (long int) (sizeof (long long int)); }
38078 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38079 #include <stdio.h>
38080 #include <stdlib.h>
38081 int
38082 main ()
38083 {
38084
38085   FILE *f = fopen ("conftest.val", "w");
38086   if (! f)
38087     return 1;
38088   if (((long int) (sizeof (long long int))) < 0)
38089     {
38090       long int i = longval ();
38091       if (i != ((long int) (sizeof (long long int))))
38092         return 1;
38093       fprintf (f, "%ld", i);
38094     }
38095   else
38096     {
38097       unsigned long int i = ulongval ();
38098       if (i != ((long int) (sizeof (long long int))))
38099         return 1;
38100       fprintf (f, "%lu", i);
38101     }
38102   /* Do not output a trailing newline, as this causes \r\n confusion
38103      on some platforms.  */
38104   return ferror (f) || fclose (f) != 0;
38105
38106   ;
38107   return 0;
38108 }
38109 _ACEOF
38110 rm -f conftest$ac_exeext
38111 if { (ac_try="$ac_link"
38112 case "(($ac_try" in
38113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38114   *) ac_try_echo=$ac_try;;
38115 esac
38116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38117 $as_echo "$ac_try_echo") >&5
38118   (eval "$ac_link") 2>&5
38119   ac_status=$?
38120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38122   { (case "(($ac_try" in
38123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38124   *) ac_try_echo=$ac_try;;
38125 esac
38126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38127 $as_echo "$ac_try_echo") >&5
38128   (eval "$ac_try") 2>&5
38129   ac_status=$?
38130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131   (exit $ac_status); }; }; then
38132   ac_cv_sizeof_long_long_int=`cat conftest.val`
38133 else
38134   $as_echo "$as_me: program exited with status $ac_status" >&5
38135 $as_echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38137
38138 ( exit $ac_status )
38139 if test "$ac_cv_type_long_long_int" = yes; then
38140      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38142 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38143 See \`config.log' for more details." >&5
38144 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38145 See \`config.log' for more details." >&2;}
38146    { (exit 77); exit 77; }; }; }
38147    else
38148      ac_cv_sizeof_long_long_int=0
38149    fi
38150 fi
38151 rm -rf conftest.dSYM
38152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38153 fi
38154 rm -f conftest.val
38155 fi
38156 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38157 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38158
38159
38160
38161 cat >>confdefs.h <<_ACEOF
38162 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38163 _ACEOF
38164
38165
38166 # The cast to long int works around a bug in the HP C Compiler
38167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38169 # This bug is HP SR number 8606223364.
38170 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38171 $as_echo_n "checking size of int *... " >&6; }
38172 if test "${ac_cv_sizeof_int_p+set}" = set; then
38173   $as_echo_n "(cached) " >&6
38174 else
38175   if test "$cross_compiling" = yes; then
38176   # Depending upon the size, compute the lo and hi bounds.
38177 cat >conftest.$ac_ext <<_ACEOF
38178 /* confdefs.h.  */
38179 _ACEOF
38180 cat confdefs.h >>conftest.$ac_ext
38181 cat >>conftest.$ac_ext <<_ACEOF
38182 /* end confdefs.h.  */
38183 $ac_includes_default
38184 int
38185 main ()
38186 {
38187 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38188 test_array [0] = 0
38189
38190   ;
38191   return 0;
38192 }
38193 _ACEOF
38194 rm -f conftest.$ac_objext
38195 if { (ac_try="$ac_compile"
38196 case "(($ac_try" in
38197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38198   *) ac_try_echo=$ac_try;;
38199 esac
38200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38201 $as_echo "$ac_try_echo") >&5
38202   (eval "$ac_compile") 2>conftest.er1
38203   ac_status=$?
38204   grep -v '^ *+' conftest.er1 >conftest.err
38205   rm -f conftest.er1
38206   cat conftest.err >&5
38207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208   (exit $ac_status); } && {
38209          test -z "$ac_c_werror_flag" ||
38210          test ! -s conftest.err
38211        } && test -s conftest.$ac_objext; then
38212   ac_lo=0 ac_mid=0
38213   while :; do
38214     cat >conftest.$ac_ext <<_ACEOF
38215 /* confdefs.h.  */
38216 _ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h.  */
38220 $ac_includes_default
38221 int
38222 main ()
38223 {
38224 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38225 test_array [0] = 0
38226
38227   ;
38228   return 0;
38229 }
38230 _ACEOF
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235   *) ac_try_echo=$ac_try;;
38236 esac
38237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238 $as_echo "$ac_try_echo") >&5
38239   (eval "$ac_compile") 2>conftest.er1
38240   ac_status=$?
38241   grep -v '^ *+' conftest.er1 >conftest.err
38242   rm -f conftest.er1
38243   cat conftest.err >&5
38244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245   (exit $ac_status); } && {
38246          test -z "$ac_c_werror_flag" ||
38247          test ! -s conftest.err
38248        } && test -s conftest.$ac_objext; then
38249   ac_hi=$ac_mid; break
38250 else
38251   $as_echo "$as_me: failed program was:" >&5
38252 sed 's/^/| /' conftest.$ac_ext >&5
38253
38254         ac_lo=`expr $ac_mid + 1`
38255                         if test $ac_lo -le $ac_mid; then
38256                           ac_lo= ac_hi=
38257                           break
38258                         fi
38259                         ac_mid=`expr 2 '*' $ac_mid + 1`
38260 fi
38261
38262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38263   done
38264 else
38265   $as_echo "$as_me: failed program was:" >&5
38266 sed 's/^/| /' conftest.$ac_ext >&5
38267
38268         cat >conftest.$ac_ext <<_ACEOF
38269 /* confdefs.h.  */
38270 _ACEOF
38271 cat confdefs.h >>conftest.$ac_ext
38272 cat >>conftest.$ac_ext <<_ACEOF
38273 /* end confdefs.h.  */
38274 $ac_includes_default
38275 int
38276 main ()
38277 {
38278 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
38279 test_array [0] = 0
38280
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext
38286 if { (ac_try="$ac_compile"
38287 case "(($ac_try" in
38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289   *) ac_try_echo=$ac_try;;
38290 esac
38291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38292 $as_echo "$ac_try_echo") >&5
38293   (eval "$ac_compile") 2>conftest.er1
38294   ac_status=$?
38295   grep -v '^ *+' conftest.er1 >conftest.err
38296   rm -f conftest.er1
38297   cat conftest.err >&5
38298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299   (exit $ac_status); } && {
38300          test -z "$ac_c_werror_flag" ||
38301          test ! -s conftest.err
38302        } && test -s conftest.$ac_objext; then
38303   ac_hi=-1 ac_mid=-1
38304   while :; do
38305     cat >conftest.$ac_ext <<_ACEOF
38306 /* confdefs.h.  */
38307 _ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h.  */
38311 $ac_includes_default
38312 int
38313 main ()
38314 {
38315 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
38316 test_array [0] = 0
38317
38318   ;
38319   return 0;
38320 }
38321 _ACEOF
38322 rm -f conftest.$ac_objext
38323 if { (ac_try="$ac_compile"
38324 case "(($ac_try" in
38325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326   *) ac_try_echo=$ac_try;;
38327 esac
38328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38329 $as_echo "$ac_try_echo") >&5
38330   (eval "$ac_compile") 2>conftest.er1
38331   ac_status=$?
38332   grep -v '^ *+' conftest.er1 >conftest.err
38333   rm -f conftest.er1
38334   cat conftest.err >&5
38335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336   (exit $ac_status); } && {
38337          test -z "$ac_c_werror_flag" ||
38338          test ! -s conftest.err
38339        } && test -s conftest.$ac_objext; then
38340   ac_lo=$ac_mid; break
38341 else
38342   $as_echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38344
38345         ac_hi=`expr '(' $ac_mid ')' - 1`
38346                         if test $ac_mid -le $ac_hi; then
38347                           ac_lo= ac_hi=
38348                           break
38349                         fi
38350                         ac_mid=`expr 2 '*' $ac_mid`
38351 fi
38352
38353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38354   done
38355 else
38356   $as_echo "$as_me: failed program was:" >&5
38357 sed 's/^/| /' conftest.$ac_ext >&5
38358
38359         ac_lo= ac_hi=
38360 fi
38361
38362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38363 fi
38364
38365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38366 # Binary search between lo and hi bounds.
38367 while test "x$ac_lo" != "x$ac_hi"; do
38368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38369   cat >conftest.$ac_ext <<_ACEOF
38370 /* confdefs.h.  */
38371 _ACEOF
38372 cat confdefs.h >>conftest.$ac_ext
38373 cat >>conftest.$ac_ext <<_ACEOF
38374 /* end confdefs.h.  */
38375 $ac_includes_default
38376 int
38377 main ()
38378 {
38379 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38380 test_array [0] = 0
38381
38382   ;
38383   return 0;
38384 }
38385 _ACEOF
38386 rm -f conftest.$ac_objext
38387 if { (ac_try="$ac_compile"
38388 case "(($ac_try" in
38389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38390   *) ac_try_echo=$ac_try;;
38391 esac
38392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38393 $as_echo "$ac_try_echo") >&5
38394   (eval "$ac_compile") 2>conftest.er1
38395   ac_status=$?
38396   grep -v '^ *+' conftest.er1 >conftest.err
38397   rm -f conftest.er1
38398   cat conftest.err >&5
38399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); } && {
38401          test -z "$ac_c_werror_flag" ||
38402          test ! -s conftest.err
38403        } && test -s conftest.$ac_objext; then
38404   ac_hi=$ac_mid
38405 else
38406   $as_echo "$as_me: failed program was:" >&5
38407 sed 's/^/| /' conftest.$ac_ext >&5
38408
38409         ac_lo=`expr '(' $ac_mid ')' + 1`
38410 fi
38411
38412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38413 done
38414 case $ac_lo in
38415 ?*) ac_cv_sizeof_int_p=$ac_lo;;
38416 '') if test "$ac_cv_type_int_p" = yes; then
38417      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38419 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38420 See \`config.log' for more details." >&5
38421 $as_echo "$as_me: error: cannot compute sizeof (int *)
38422 See \`config.log' for more details." >&2;}
38423    { (exit 77); exit 77; }; }; }
38424    else
38425      ac_cv_sizeof_int_p=0
38426    fi ;;
38427 esac
38428 else
38429   cat >conftest.$ac_ext <<_ACEOF
38430 /* confdefs.h.  */
38431 _ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h.  */
38435 $ac_includes_default
38436 static long int longval () { return (long int) (sizeof (int *)); }
38437 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
38438 #include <stdio.h>
38439 #include <stdlib.h>
38440 int
38441 main ()
38442 {
38443
38444   FILE *f = fopen ("conftest.val", "w");
38445   if (! f)
38446     return 1;
38447   if (((long int) (sizeof (int *))) < 0)
38448     {
38449       long int i = longval ();
38450       if (i != ((long int) (sizeof (int *))))
38451         return 1;
38452       fprintf (f, "%ld", i);
38453     }
38454   else
38455     {
38456       unsigned long int i = ulongval ();
38457       if (i != ((long int) (sizeof (int *))))
38458         return 1;
38459       fprintf (f, "%lu", i);
38460     }
38461   /* Do not output a trailing newline, as this causes \r\n confusion
38462      on some platforms.  */
38463   return ferror (f) || fclose (f) != 0;
38464
38465   ;
38466   return 0;
38467 }
38468 _ACEOF
38469 rm -f conftest$ac_exeext
38470 if { (ac_try="$ac_link"
38471 case "(($ac_try" in
38472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38473   *) ac_try_echo=$ac_try;;
38474 esac
38475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38476 $as_echo "$ac_try_echo") >&5
38477   (eval "$ac_link") 2>&5
38478   ac_status=$?
38479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38481   { (case "(($ac_try" in
38482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38483   *) ac_try_echo=$ac_try;;
38484 esac
38485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38486 $as_echo "$ac_try_echo") >&5
38487   (eval "$ac_try") 2>&5
38488   ac_status=$?
38489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490   (exit $ac_status); }; }; then
38491   ac_cv_sizeof_int_p=`cat conftest.val`
38492 else
38493   $as_echo "$as_me: program exited with status $ac_status" >&5
38494 $as_echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38496
38497 ( exit $ac_status )
38498 if test "$ac_cv_type_int_p" = yes; then
38499      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38501 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38502 See \`config.log' for more details." >&5
38503 $as_echo "$as_me: error: cannot compute sizeof (int *)
38504 See \`config.log' for more details." >&2;}
38505    { (exit 77); exit 77; }; }; }
38506    else
38507      ac_cv_sizeof_int_p=0
38508    fi
38509 fi
38510 rm -rf conftest.dSYM
38511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38512 fi
38513 rm -f conftest.val
38514 fi
38515 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
38516 $as_echo "$ac_cv_sizeof_int_p" >&6; }
38517
38518
38519
38520 cat >>confdefs.h <<_ACEOF
38521 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
38522 _ACEOF
38523
38524
38525
38526 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
38527 $as_echo_n "checking for u_int type... " >&6; }
38528 if test "${ac_cv_have_u_int+set}" = set; then
38529   $as_echo_n "(cached) " >&6
38530 else
38531
38532        cat >conftest.$ac_ext <<_ACEOF
38533 /* confdefs.h.  */
38534 _ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h.  */
38538
38539               #include <sys/types.h>
38540
38541 int
38542 main ()
38543 {
38544
38545               u_int a; a = 1;
38546
38547   ;
38548   return 0;
38549 }
38550 _ACEOF
38551 rm -f conftest.$ac_objext
38552 if { (ac_try="$ac_compile"
38553 case "(($ac_try" in
38554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38555   *) ac_try_echo=$ac_try;;
38556 esac
38557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38558 $as_echo "$ac_try_echo") >&5
38559   (eval "$ac_compile") 2>conftest.er1
38560   ac_status=$?
38561   grep -v '^ *+' conftest.er1 >conftest.err
38562   rm -f conftest.er1
38563   cat conftest.err >&5
38564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565   (exit $ac_status); } && {
38566          test -z "$ac_c_werror_flag" ||
38567          test ! -s conftest.err
38568        } && test -s conftest.$ac_objext; then
38569
38570               ac_cv_have_u_int="yes"
38571
38572 else
38573   $as_echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38575
38576
38577               ac_cv_have_u_int="no"
38578
38579
38580 fi
38581
38582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38583
38584
38585 fi
38586 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
38587 $as_echo "$ac_cv_have_u_int" >&6; }
38588 if test "x$ac_cv_have_u_int" = "xyes" ; then
38589    cat >>confdefs.h <<\_ACEOF
38590 #define HAVE_U_INT 1
38591 _ACEOF
38592
38593    have_u_int=1
38594 fi
38595
38596 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
38597 $as_echo_n "checking for intmax_t type... " >&6; }
38598 if test "${ac_cv_have_intmax_t+set}" = set; then
38599   $as_echo_n "(cached) " >&6
38600 else
38601
38602        cat >conftest.$ac_ext <<_ACEOF
38603 /* confdefs.h.  */
38604 _ACEOF
38605 cat confdefs.h >>conftest.$ac_ext
38606 cat >>conftest.$ac_ext <<_ACEOF
38607 /* end confdefs.h.  */
38608
38609               #include <sys/types.h>
38610
38611 int
38612 main ()
38613 {
38614
38615               intmax_t a; a = 1;
38616
38617   ;
38618   return 0;
38619 }
38620 _ACEOF
38621 rm -f conftest.$ac_objext
38622 if { (ac_try="$ac_compile"
38623 case "(($ac_try" in
38624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38625   *) ac_try_echo=$ac_try;;
38626 esac
38627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38628 $as_echo "$ac_try_echo") >&5
38629   (eval "$ac_compile") 2>conftest.er1
38630   ac_status=$?
38631   grep -v '^ *+' conftest.er1 >conftest.err
38632   rm -f conftest.er1
38633   cat conftest.err >&5
38634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635   (exit $ac_status); } && {
38636          test -z "$ac_c_werror_flag" ||
38637          test ! -s conftest.err
38638        } && test -s conftest.$ac_objext; then
38639
38640               ac_cv_have_intmax_t="yes"
38641
38642 else
38643   $as_echo "$as_me: failed program was:" >&5
38644 sed 's/^/| /' conftest.$ac_ext >&5
38645
38646
38647               cat >conftest.$ac_ext <<_ACEOF
38648 /* confdefs.h.  */
38649 _ACEOF
38650 cat confdefs.h >>conftest.$ac_ext
38651 cat >>conftest.$ac_ext <<_ACEOF
38652 /* end confdefs.h.  */
38653
38654                      #include <stdint.h>
38655
38656 int
38657 main ()
38658 {
38659
38660                      intmax_t a; a = 1;
38661
38662   ;
38663   return 0;
38664 }
38665 _ACEOF
38666 rm -f conftest.$ac_objext
38667 if { (ac_try="$ac_compile"
38668 case "(($ac_try" in
38669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38670   *) ac_try_echo=$ac_try;;
38671 esac
38672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38673 $as_echo "$ac_try_echo") >&5
38674   (eval "$ac_compile") 2>conftest.er1
38675   ac_status=$?
38676   grep -v '^ *+' conftest.er1 >conftest.err
38677   rm -f conftest.er1
38678   cat conftest.err >&5
38679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680   (exit $ac_status); } && {
38681          test -z "$ac_c_werror_flag" ||
38682          test ! -s conftest.err
38683        } && test -s conftest.$ac_objext; then
38684
38685                      ac_cv_have_intmax_t="yes"
38686
38687 else
38688   $as_echo "$as_me: failed program was:" >&5
38689 sed 's/^/| /' conftest.$ac_ext >&5
38690
38691
38692                      ac_cv_have_intmax_t="no"
38693
38694
38695 fi
38696
38697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38698
38699
38700 fi
38701
38702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38703
38704
38705 fi
38706 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
38707 $as_echo "$ac_cv_have_intmax_t" >&6; }
38708 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
38709    cat >>confdefs.h <<\_ACEOF
38710 #define HAVE_INTMAX_T 1
38711 _ACEOF
38712
38713    have_intmax_t=1
38714 fi
38715
38716 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
38717 $as_echo_n "checking for u_intmax_t type... " >&6; }
38718 if test "${ac_cv_have_u_intmax_t+set}" = set; then
38719   $as_echo_n "(cached) " >&6
38720 else
38721
38722        cat >conftest.$ac_ext <<_ACEOF
38723 /* confdefs.h.  */
38724 _ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h.  */
38728
38729               #include <sys/types.h>
38730
38731 int
38732 main ()
38733 {
38734
38735               u_intmax_t a; a = 1;
38736
38737   ;
38738   return 0;
38739 }
38740 _ACEOF
38741 rm -f conftest.$ac_objext
38742 if { (ac_try="$ac_compile"
38743 case "(($ac_try" in
38744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38745   *) ac_try_echo=$ac_try;;
38746 esac
38747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38748 $as_echo "$ac_try_echo") >&5
38749   (eval "$ac_compile") 2>conftest.er1
38750   ac_status=$?
38751   grep -v '^ *+' conftest.er1 >conftest.err
38752   rm -f conftest.er1
38753   cat conftest.err >&5
38754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755   (exit $ac_status); } && {
38756          test -z "$ac_c_werror_flag" ||
38757          test ! -s conftest.err
38758        } && test -s conftest.$ac_objext; then
38759
38760               ac_cv_have_u_intmax_t="yes"
38761
38762 else
38763   $as_echo "$as_me: failed program was:" >&5
38764 sed 's/^/| /' conftest.$ac_ext >&5
38765
38766
38767               cat >conftest.$ac_ext <<_ACEOF
38768 /* confdefs.h.  */
38769 _ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h.  */
38773
38774                      #include <stdint.h>
38775
38776 int
38777 main ()
38778 {
38779
38780                     u_intmax_t a; a = 1;
38781
38782   ;
38783   return 0;
38784 }
38785 _ACEOF
38786 rm -f conftest.$ac_objext
38787 if { (ac_try="$ac_compile"
38788 case "(($ac_try" in
38789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38790   *) ac_try_echo=$ac_try;;
38791 esac
38792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38793 $as_echo "$ac_try_echo") >&5
38794   (eval "$ac_compile") 2>conftest.er1
38795   ac_status=$?
38796   grep -v '^ *+' conftest.er1 >conftest.err
38797   rm -f conftest.er1
38798   cat conftest.err >&5
38799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800   (exit $ac_status); } && {
38801          test -z "$ac_c_werror_flag" ||
38802          test ! -s conftest.err
38803        } && test -s conftest.$ac_objext; then
38804
38805                     ac_cv_have_u_intmax_t="yes"
38806
38807 else
38808   $as_echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38810
38811
38812                     ac_cv_have_u_intmax_t="no"
38813
38814
38815 fi
38816
38817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38818
38819
38820 fi
38821
38822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38823
38824
38825 fi
38826 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38827 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
38828 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38829    cat >>confdefs.h <<\_ACEOF
38830 #define HAVE_U_INTMAX_T 1
38831 _ACEOF
38832
38833    have_u_intmax_t=1
38834 fi
38835
38836 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
38837 $as_echo_n "checking for intXX_t types... " >&6; }
38838 if test "${ac_cv_have_intxx_t+set}" = set; then
38839   $as_echo_n "(cached) " >&6
38840 else
38841
38842        cat >conftest.$ac_ext <<_ACEOF
38843 /* confdefs.h.  */
38844 _ACEOF
38845 cat confdefs.h >>conftest.$ac_ext
38846 cat >>conftest.$ac_ext <<_ACEOF
38847 /* end confdefs.h.  */
38848
38849               #include <sys/types.h>
38850
38851 int
38852 main ()
38853 {
38854
38855               int8_t a; int16_t b; int32_t c; a = b = c = 1;
38856
38857   ;
38858   return 0;
38859 }
38860 _ACEOF
38861 rm -f conftest.$ac_objext
38862 if { (ac_try="$ac_compile"
38863 case "(($ac_try" in
38864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38865   *) ac_try_echo=$ac_try;;
38866 esac
38867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38868 $as_echo "$ac_try_echo") >&5
38869   (eval "$ac_compile") 2>conftest.er1
38870   ac_status=$?
38871   grep -v '^ *+' conftest.er1 >conftest.err
38872   rm -f conftest.er1
38873   cat conftest.err >&5
38874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875   (exit $ac_status); } && {
38876          test -z "$ac_c_werror_flag" ||
38877          test ! -s conftest.err
38878        } && test -s conftest.$ac_objext; then
38879
38880               ac_cv_have_intxx_t="yes"
38881
38882 else
38883   $as_echo "$as_me: failed program was:" >&5
38884 sed 's/^/| /' conftest.$ac_ext >&5
38885
38886
38887               ac_cv_have_intxx_t="no"
38888
38889
38890 fi
38891
38892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38893
38894
38895 fi
38896 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38897 $as_echo "$ac_cv_have_intxx_t" >&6; }
38898 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38899    cat >>confdefs.h <<\_ACEOF
38900 #define HAVE_INTXX_T 1
38901 _ACEOF
38902
38903    have_intxx_t=1
38904 fi
38905
38906 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
38907 $as_echo_n "checking for int64_t type... " >&6; }
38908 if test "${ac_cv_have_int64_t+set}" = set; then
38909   $as_echo_n "(cached) " >&6
38910 else
38911
38912        cat >conftest.$ac_ext <<_ACEOF
38913 /* confdefs.h.  */
38914 _ACEOF
38915 cat confdefs.h >>conftest.$ac_ext
38916 cat >>conftest.$ac_ext <<_ACEOF
38917 /* end confdefs.h.  */
38918
38919               #include <sys/types.h>
38920
38921 int
38922 main ()
38923 {
38924
38925               int64_t a; a = 1;
38926
38927   ;
38928   return 0;
38929 }
38930 _ACEOF
38931 rm -f conftest.$ac_objext
38932 if { (ac_try="$ac_compile"
38933 case "(($ac_try" in
38934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38935   *) ac_try_echo=$ac_try;;
38936 esac
38937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38938 $as_echo "$ac_try_echo") >&5
38939   (eval "$ac_compile") 2>conftest.er1
38940   ac_status=$?
38941   grep -v '^ *+' conftest.er1 >conftest.err
38942   rm -f conftest.er1
38943   cat conftest.err >&5
38944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945   (exit $ac_status); } && {
38946          test -z "$ac_c_werror_flag" ||
38947          test ! -s conftest.err
38948        } && test -s conftest.$ac_objext; then
38949
38950               ac_cv_have_int64_t="yes"
38951
38952 else
38953   $as_echo "$as_me: failed program was:" >&5
38954 sed 's/^/| /' conftest.$ac_ext >&5
38955
38956
38957               ac_cv_have_int64_t="no"
38958
38959
38960 fi
38961
38962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38963
38964
38965 fi
38966 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
38967 $as_echo "$ac_cv_have_int64_t" >&6; }
38968 if test "x$ac_cv_have_int64_t" = "xyes" ; then
38969    cat >>confdefs.h <<\_ACEOF
38970 #define HAVE_INT64_T 1
38971 _ACEOF
38972
38973    have_int64_t=1
38974 fi
38975
38976 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
38977 $as_echo_n "checking for u_intXX_t types... " >&6; }
38978 if test "${ac_cv_have_u_intxx_t+set}" = set; then
38979   $as_echo_n "(cached) " >&6
38980 else
38981
38982        cat >conftest.$ac_ext <<_ACEOF
38983 /* confdefs.h.  */
38984 _ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h.  */
38988
38989               #include <sys/types.h>
38990
38991 int
38992 main ()
38993 {
38994
38995               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
38996
38997   ;
38998   return 0;
38999 }
39000 _ACEOF
39001 rm -f conftest.$ac_objext
39002 if { (ac_try="$ac_compile"
39003 case "(($ac_try" in
39004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39005   *) ac_try_echo=$ac_try;;
39006 esac
39007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39008 $as_echo "$ac_try_echo") >&5
39009   (eval "$ac_compile") 2>conftest.er1
39010   ac_status=$?
39011   grep -v '^ *+' conftest.er1 >conftest.err
39012   rm -f conftest.er1
39013   cat conftest.err >&5
39014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); } && {
39016          test -z "$ac_c_werror_flag" ||
39017          test ! -s conftest.err
39018        } && test -s conftest.$ac_objext; then
39019
39020              ac_cv_have_u_intxx_t="yes"
39021
39022 else
39023   $as_echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39025
39026
39027              ac_cv_have_u_intxx_t="no"
39028
39029
39030 fi
39031
39032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39033
39034
39035 fi
39036 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39037 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39038 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39039    cat >>confdefs.h <<\_ACEOF
39040 #define HAVE_U_INTXX_T 1
39041 _ACEOF
39042
39043    have_u_intxx_t=1
39044 fi
39045
39046 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39047 $as_echo_n "checking for u_int64_t types... " >&6; }
39048 if test "${ac_cv_have_u_int64_t+set}" = set; then
39049   $as_echo_n "(cached) " >&6
39050 else
39051
39052        cat >conftest.$ac_ext <<_ACEOF
39053 /* confdefs.h.  */
39054 _ACEOF
39055 cat confdefs.h >>conftest.$ac_ext
39056 cat >>conftest.$ac_ext <<_ACEOF
39057 /* end confdefs.h.  */
39058
39059               #include <sys/types.h>
39060
39061 int
39062 main ()
39063 {
39064
39065               u_int64_t a; a = 1;
39066
39067   ;
39068   return 0;
39069 }
39070 _ACEOF
39071 rm -f conftest.$ac_objext
39072 if { (ac_try="$ac_compile"
39073 case "(($ac_try" in
39074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39075   *) ac_try_echo=$ac_try;;
39076 esac
39077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39078 $as_echo "$ac_try_echo") >&5
39079   (eval "$ac_compile") 2>conftest.er1
39080   ac_status=$?
39081   grep -v '^ *+' conftest.er1 >conftest.err
39082   rm -f conftest.er1
39083   cat conftest.err >&5
39084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085   (exit $ac_status); } && {
39086          test -z "$ac_c_werror_flag" ||
39087          test ! -s conftest.err
39088        } && test -s conftest.$ac_objext; then
39089
39090              ac_cv_have_u_int64_t="yes"
39091
39092 else
39093   $as_echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39095
39096
39097              ac_cv_have_u_int64_t="no"
39098
39099
39100 fi
39101
39102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39103
39104
39105 fi
39106 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39107 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39108 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39109    cat >>confdefs.h <<\_ACEOF
39110 #define HAVE_U_INT64_T 1
39111 _ACEOF
39112
39113    have_u_int64_t=1
39114 fi
39115
39116 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39117     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39118 then
39119    { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39120 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39121    cat >conftest.$ac_ext <<_ACEOF
39122 /* confdefs.h.  */
39123 _ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h.  */
39127
39128           #include <sys/bitypes.h>
39129
39130 int
39131 main ()
39132 {
39133
39134           int8_t a; int16_t b; int32_t c;
39135           u_int8_t e; u_int16_t f; u_int32_t g;
39136           a = b = c = e = f = g = 1;
39137
39138   ;
39139   return 0;
39140 }
39141 _ACEOF
39142 rm -f conftest.$ac_objext
39143 if { (ac_try="$ac_compile"
39144 case "(($ac_try" in
39145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146   *) ac_try_echo=$ac_try;;
39147 esac
39148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39149 $as_echo "$ac_try_echo") >&5
39150   (eval "$ac_compile") 2>conftest.er1
39151   ac_status=$?
39152   grep -v '^ *+' conftest.er1 >conftest.err
39153   rm -f conftest.er1
39154   cat conftest.err >&5
39155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156   (exit $ac_status); } && {
39157          test -z "$ac_c_werror_flag" ||
39158          test ! -s conftest.err
39159        } && test -s conftest.$ac_objext; then
39160
39161           cat >>confdefs.h <<\_ACEOF
39162 #define HAVE_U_INTXX_T 1
39163 _ACEOF
39164
39165           cat >>confdefs.h <<\_ACEOF
39166 #define HAVE_INTXX_T 1
39167 _ACEOF
39168
39169           cat >>confdefs.h <<\_ACEOF
39170 #define HAVE_SYS_BITYPES_H 1
39171 _ACEOF
39172
39173           { $as_echo "$as_me:$LINENO: result: yes" >&5
39174 $as_echo "yes" >&6; }
39175
39176 else
39177   $as_echo "$as_me: failed program was:" >&5
39178 sed 's/^/| /' conftest.$ac_ext >&5
39179
39180
39181           { $as_echo "$as_me:$LINENO: result: no" >&5
39182 $as_echo "no" >&6; }
39183
39184
39185 fi
39186
39187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39188 fi
39189
39190 if test -z "$have_u_intxx_t" ; then
39191    { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39192 $as_echo_n "checking for uintXX_t types... " >&6; }
39193 if test "${ac_cv_have_uintxx_t+set}" = set; then
39194   $as_echo_n "(cached) " >&6
39195 else
39196
39197           cat >conftest.$ac_ext <<_ACEOF
39198 /* confdefs.h.  */
39199 _ACEOF
39200 cat confdefs.h >>conftest.$ac_ext
39201 cat >>conftest.$ac_ext <<_ACEOF
39202 /* end confdefs.h.  */
39203
39204                  #include <sys/types.h>
39205
39206 int
39207 main ()
39208 {
39209
39210                  uint8_t a; uint16_t b;
39211                  uint32_t c; a = b = c = 1;
39212
39213   ;
39214   return 0;
39215 }
39216 _ACEOF
39217 rm -f conftest.$ac_objext
39218 if { (ac_try="$ac_compile"
39219 case "(($ac_try" in
39220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39221   *) ac_try_echo=$ac_try;;
39222 esac
39223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39224 $as_echo "$ac_try_echo") >&5
39225   (eval "$ac_compile") 2>conftest.er1
39226   ac_status=$?
39227   grep -v '^ *+' conftest.er1 >conftest.err
39228   rm -f conftest.er1
39229   cat conftest.err >&5
39230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231   (exit $ac_status); } && {
39232          test -z "$ac_c_werror_flag" ||
39233          test ! -s conftest.err
39234        } && test -s conftest.$ac_objext; then
39235
39236                 ac_cv_have_uintxx_t="yes"
39237
39238 else
39239   $as_echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39241
39242
39243                 ac_cv_have_uintxx_t="no"
39244
39245
39246 fi
39247
39248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39249
39250
39251 fi
39252 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
39253 $as_echo "$ac_cv_have_uintxx_t" >&6; }
39254    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
39255       cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_UINTXX_T 1
39257 _ACEOF
39258
39259    fi
39260 fi
39261
39262 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
39263     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39264 then
39265    { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
39266 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
39267    cat >conftest.$ac_ext <<_ACEOF
39268 /* confdefs.h.  */
39269 _ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h.  */
39273
39274           #include <sys/bitypes.h>
39275
39276 int
39277 main ()
39278 {
39279
39280           int64_t a; u_int64_t b;
39281           a = b = 1;
39282
39283   ;
39284   return 0;
39285 }
39286 _ACEOF
39287 rm -f conftest.$ac_objext
39288 if { (ac_try="$ac_compile"
39289 case "(($ac_try" in
39290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39291   *) ac_try_echo=$ac_try;;
39292 esac
39293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39294 $as_echo "$ac_try_echo") >&5
39295   (eval "$ac_compile") 2>conftest.er1
39296   ac_status=$?
39297   grep -v '^ *+' conftest.er1 >conftest.err
39298   rm -f conftest.er1
39299   cat conftest.err >&5
39300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301   (exit $ac_status); } && {
39302          test -z "$ac_c_werror_flag" ||
39303          test ! -s conftest.err
39304        } && test -s conftest.$ac_objext; then
39305
39306           cat >>confdefs.h <<\_ACEOF
39307 #define HAVE_U_INT64_T 1
39308 _ACEOF
39309
39310           cat >>confdefs.h <<\_ACEOF
39311 #define HAVE_INT64_T 1
39312 _ACEOF
39313
39314           { $as_echo "$as_me:$LINENO: result: yes" >&5
39315 $as_echo "yes" >&6; }
39316
39317 else
39318   $as_echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39320
39321
39322           { $as_echo "$as_me:$LINENO: result: no" >&5
39323 $as_echo "no" >&6; }
39324
39325
39326 fi
39327
39328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39329 fi
39330
39331 if (test -z "$have_uintxx_t" && \
39332     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39333 then
39334    { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
39335 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
39336    cat >conftest.$ac_ext <<_ACEOF
39337 /* confdefs.h.  */
39338 _ACEOF
39339 cat confdefs.h >>conftest.$ac_ext
39340 cat >>conftest.$ac_ext <<_ACEOF
39341 /* end confdefs.h.  */
39342
39343           #include <sys/bitypes.h>
39344
39345 int
39346 main ()
39347 {
39348
39349           uint8_t a; uint16_t b;
39350           uint32_t c; a = b = c = 1;
39351
39352   ;
39353   return 0;
39354 }
39355 _ACEOF
39356 rm -f conftest.$ac_objext
39357 if { (ac_try="$ac_compile"
39358 case "(($ac_try" in
39359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39360   *) ac_try_echo=$ac_try;;
39361 esac
39362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39363 $as_echo "$ac_try_echo") >&5
39364   (eval "$ac_compile") 2>conftest.er1
39365   ac_status=$?
39366   grep -v '^ *+' conftest.er1 >conftest.err
39367   rm -f conftest.er1
39368   cat conftest.err >&5
39369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370   (exit $ac_status); } && {
39371          test -z "$ac_c_werror_flag" ||
39372          test ! -s conftest.err
39373        } && test -s conftest.$ac_objext; then
39374
39375           cat >>confdefs.h <<\_ACEOF
39376 #define HAVE_UINTXX_T 1
39377 _ACEOF
39378
39379           { $as_echo "$as_me:$LINENO: result: yes" >&5
39380 $as_echo "yes" >&6; }
39381
39382 else
39383   $as_echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39385
39386
39387           { $as_echo "$as_me:$LINENO: result: no" >&5
39388 $as_echo "no" >&6; }
39389
39390
39391 fi
39392
39393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39394 fi
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409 for ac_func in \
39410    fork \
39411    getcwd \
39412    gethostname \
39413    getpid \
39414    gettimeofday \
39415    setpgid \
39416    setpgrp \
39417    setsid \
39418    signal \
39419    strerror \
39420    strncmp \
39421    strncpy \
39422    vfprintf \
39423
39424 do
39425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39427 $as_echo_n "checking for $ac_func... " >&6; }
39428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39429   $as_echo_n "(cached) " >&6
39430 else
39431   cat >conftest.$ac_ext <<_ACEOF
39432 /* confdefs.h.  */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h.  */
39437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39439 #define $ac_func innocuous_$ac_func
39440
39441 /* System header to define __stub macros and hopefully few prototypes,
39442     which can conflict with char $ac_func (); below.
39443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444     <limits.h> exists even on freestanding compilers.  */
39445
39446 #ifdef __STDC__
39447 # include <limits.h>
39448 #else
39449 # include <assert.h>
39450 #endif
39451
39452 #undef $ac_func
39453
39454 /* Override any GCC internal prototype to avoid an error.
39455    Use char because int might match the return type of a GCC
39456    builtin and then its argument prototype would still apply.  */
39457 #ifdef __cplusplus
39458 extern "C"
39459 #endif
39460 char $ac_func ();
39461 /* The GNU C library defines this for functions which it implements
39462     to always fail with ENOSYS.  Some functions are actually named
39463     something starting with __ and the normal name is an alias.  */
39464 #if defined __stub_$ac_func || defined __stub___$ac_func
39465 choke me
39466 #endif
39467
39468 int
39469 main ()
39470 {
39471 return $ac_func ();
39472   ;
39473   return 0;
39474 }
39475 _ACEOF
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39483 $as_echo "$ac_try_echo") >&5
39484   (eval "$ac_link") 2>conftest.er1
39485   ac_status=$?
39486   grep -v '^ *+' conftest.er1 >conftest.err
39487   rm -f conftest.er1
39488   cat conftest.err >&5
39489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); } && {
39491          test -z "$ac_c_werror_flag" ||
39492          test ! -s conftest.err
39493        } && test -s conftest$ac_exeext && {
39494          test "$cross_compiling" = yes ||
39495          $as_test_x conftest$ac_exeext
39496        }; then
39497   eval "$as_ac_var=yes"
39498 else
39499   $as_echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502         eval "$as_ac_var=no"
39503 fi
39504
39505 rm -rf conftest.dSYM
39506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39507       conftest$ac_exeext conftest.$ac_ext
39508 fi
39509 ac_res=`eval 'as_val=${'$as_ac_var'}
39510                  $as_echo "$as_val"'`
39511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39512 $as_echo "$ac_res" >&6; }
39513 as_val=`eval 'as_val=${'$as_ac_var'}
39514                  $as_echo "$as_val"'`
39515    if test "x$as_val" = x""yes; then
39516   cat >>confdefs.h <<_ACEOF
39517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39518 _ACEOF
39519
39520 else
39521   echo 'configure: cannot find needed function.'; exit 1
39522
39523 fi
39524 done
39525
39526
39527
39528 for ac_func in fchdir
39529 do
39530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39532 $as_echo_n "checking for $ac_func... " >&6; }
39533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39534   $as_echo_n "(cached) " >&6
39535 else
39536   cat >conftest.$ac_ext <<_ACEOF
39537 /* confdefs.h.  */
39538 _ACEOF
39539 cat confdefs.h >>conftest.$ac_ext
39540 cat >>conftest.$ac_ext <<_ACEOF
39541 /* end confdefs.h.  */
39542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39544 #define $ac_func innocuous_$ac_func
39545
39546 /* System header to define __stub macros and hopefully few prototypes,
39547     which can conflict with char $ac_func (); below.
39548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39549     <limits.h> exists even on freestanding compilers.  */
39550
39551 #ifdef __STDC__
39552 # include <limits.h>
39553 #else
39554 # include <assert.h>
39555 #endif
39556
39557 #undef $ac_func
39558
39559 /* Override any GCC internal prototype to avoid an error.
39560    Use char because int might match the return type of a GCC
39561    builtin and then its argument prototype would still apply.  */
39562 #ifdef __cplusplus
39563 extern "C"
39564 #endif
39565 char $ac_func ();
39566 /* The GNU C library defines this for functions which it implements
39567     to always fail with ENOSYS.  Some functions are actually named
39568     something starting with __ and the normal name is an alias.  */
39569 #if defined __stub_$ac_func || defined __stub___$ac_func
39570 choke me
39571 #endif
39572
39573 int
39574 main ()
39575 {
39576 return $ac_func ();
39577   ;
39578   return 0;
39579 }
39580 _ACEOF
39581 rm -f conftest.$ac_objext conftest$ac_exeext
39582 if { (ac_try="$ac_link"
39583 case "(($ac_try" in
39584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39585   *) ac_try_echo=$ac_try;;
39586 esac
39587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39588 $as_echo "$ac_try_echo") >&5
39589   (eval "$ac_link") 2>conftest.er1
39590   ac_status=$?
39591   grep -v '^ *+' conftest.er1 >conftest.err
39592   rm -f conftest.er1
39593   cat conftest.err >&5
39594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595   (exit $ac_status); } && {
39596          test -z "$ac_c_werror_flag" ||
39597          test ! -s conftest.err
39598        } && test -s conftest$ac_exeext && {
39599          test "$cross_compiling" = yes ||
39600          $as_test_x conftest$ac_exeext
39601        }; then
39602   eval "$as_ac_var=yes"
39603 else
39604   $as_echo "$as_me: failed program was:" >&5
39605 sed 's/^/| /' conftest.$ac_ext >&5
39606
39607         eval "$as_ac_var=no"
39608 fi
39609
39610 rm -rf conftest.dSYM
39611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39612       conftest$ac_exeext conftest.$ac_ext
39613 fi
39614 ac_res=`eval 'as_val=${'$as_ac_var'}
39615                  $as_echo "$as_val"'`
39616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39617 $as_echo "$ac_res" >&6; }
39618 as_val=`eval 'as_val=${'$as_ac_var'}
39619                  $as_echo "$as_val"'`
39620    if test "x$as_val" = x""yes; then
39621   cat >>confdefs.h <<_ACEOF
39622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39623 _ACEOF
39624  cat >>confdefs.h <<\_ACEOF
39625 #define HAVE_FCHDIR 1
39626 _ACEOF
39627
39628 fi
39629 done
39630
39631
39632 for ac_func in strtoll
39633 do
39634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39636 $as_echo_n "checking for $ac_func... " >&6; }
39637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39638   $as_echo_n "(cached) " >&6
39639 else
39640   cat >conftest.$ac_ext <<_ACEOF
39641 /* confdefs.h.  */
39642 _ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h.  */
39646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39648 #define $ac_func innocuous_$ac_func
39649
39650 /* System header to define __stub macros and hopefully few prototypes,
39651     which can conflict with char $ac_func (); below.
39652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39653     <limits.h> exists even on freestanding compilers.  */
39654
39655 #ifdef __STDC__
39656 # include <limits.h>
39657 #else
39658 # include <assert.h>
39659 #endif
39660
39661 #undef $ac_func
39662
39663 /* Override any GCC internal prototype to avoid an error.
39664    Use char because int might match the return type of a GCC
39665    builtin and then its argument prototype would still apply.  */
39666 #ifdef __cplusplus
39667 extern "C"
39668 #endif
39669 char $ac_func ();
39670 /* The GNU C library defines this for functions which it implements
39671     to always fail with ENOSYS.  Some functions are actually named
39672     something starting with __ and the normal name is an alias.  */
39673 #if defined __stub_$ac_func || defined __stub___$ac_func
39674 choke me
39675 #endif
39676
39677 int
39678 main ()
39679 {
39680 return $ac_func ();
39681   ;
39682   return 0;
39683 }
39684 _ACEOF
39685 rm -f conftest.$ac_objext conftest$ac_exeext
39686 if { (ac_try="$ac_link"
39687 case "(($ac_try" in
39688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39689   *) ac_try_echo=$ac_try;;
39690 esac
39691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39692 $as_echo "$ac_try_echo") >&5
39693   (eval "$ac_link") 2>conftest.er1
39694   ac_status=$?
39695   grep -v '^ *+' conftest.er1 >conftest.err
39696   rm -f conftest.er1
39697   cat conftest.err >&5
39698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699   (exit $ac_status); } && {
39700          test -z "$ac_c_werror_flag" ||
39701          test ! -s conftest.err
39702        } && test -s conftest$ac_exeext && {
39703          test "$cross_compiling" = yes ||
39704          $as_test_x conftest$ac_exeext
39705        }; then
39706   eval "$as_ac_var=yes"
39707 else
39708   $as_echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39710
39711         eval "$as_ac_var=no"
39712 fi
39713
39714 rm -rf conftest.dSYM
39715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39716       conftest$ac_exeext conftest.$ac_ext
39717 fi
39718 ac_res=`eval 'as_val=${'$as_ac_var'}
39719                  $as_echo "$as_val"'`
39720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39721 $as_echo "$ac_res" >&6; }
39722 as_val=`eval 'as_val=${'$as_ac_var'}
39723                  $as_echo "$as_val"'`
39724    if test "x$as_val" = x""yes; then
39725   cat >>confdefs.h <<_ACEOF
39726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39727 _ACEOF
39728  cat >>confdefs.h <<\_ACEOF
39729 #define HAVE_STRTOLL 1
39730 _ACEOF
39731
39732 fi
39733 done
39734
39735
39736 for ac_func in posix_fadvise
39737 do
39738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39740 $as_echo_n "checking for $ac_func... " >&6; }
39741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39742   $as_echo_n "(cached) " >&6
39743 else
39744   cat >conftest.$ac_ext <<_ACEOF
39745 /* confdefs.h.  */
39746 _ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h.  */
39750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39752 #define $ac_func innocuous_$ac_func
39753
39754 /* System header to define __stub macros and hopefully few prototypes,
39755     which can conflict with char $ac_func (); below.
39756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39757     <limits.h> exists even on freestanding compilers.  */
39758
39759 #ifdef __STDC__
39760 # include <limits.h>
39761 #else
39762 # include <assert.h>
39763 #endif
39764
39765 #undef $ac_func
39766
39767 /* Override any GCC internal prototype to avoid an error.
39768    Use char because int might match the return type of a GCC
39769    builtin and then its argument prototype would still apply.  */
39770 #ifdef __cplusplus
39771 extern "C"
39772 #endif
39773 char $ac_func ();
39774 /* The GNU C library defines this for functions which it implements
39775     to always fail with ENOSYS.  Some functions are actually named
39776     something starting with __ and the normal name is an alias.  */
39777 #if defined __stub_$ac_func || defined __stub___$ac_func
39778 choke me
39779 #endif
39780
39781 int
39782 main ()
39783 {
39784 return $ac_func ();
39785   ;
39786   return 0;
39787 }
39788 _ACEOF
39789 rm -f conftest.$ac_objext conftest$ac_exeext
39790 if { (ac_try="$ac_link"
39791 case "(($ac_try" in
39792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39793   *) ac_try_echo=$ac_try;;
39794 esac
39795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39796 $as_echo "$ac_try_echo") >&5
39797   (eval "$ac_link") 2>conftest.er1
39798   ac_status=$?
39799   grep -v '^ *+' conftest.er1 >conftest.err
39800   rm -f conftest.er1
39801   cat conftest.err >&5
39802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39803   (exit $ac_status); } && {
39804          test -z "$ac_c_werror_flag" ||
39805          test ! -s conftest.err
39806        } && test -s conftest$ac_exeext && {
39807          test "$cross_compiling" = yes ||
39808          $as_test_x conftest$ac_exeext
39809        }; then
39810   eval "$as_ac_var=yes"
39811 else
39812   $as_echo "$as_me: failed program was:" >&5
39813 sed 's/^/| /' conftest.$ac_ext >&5
39814
39815         eval "$as_ac_var=no"
39816 fi
39817
39818 rm -rf conftest.dSYM
39819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39820       conftest$ac_exeext conftest.$ac_ext
39821 fi
39822 ac_res=`eval 'as_val=${'$as_ac_var'}
39823                  $as_echo "$as_val"'`
39824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39825 $as_echo "$ac_res" >&6; }
39826 as_val=`eval 'as_val=${'$as_ac_var'}
39827                  $as_echo "$as_val"'`
39828    if test "x$as_val" = x""yes; then
39829   cat >>confdefs.h <<_ACEOF
39830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39831 _ACEOF
39832
39833 fi
39834 done
39835
39836
39837 for ac_func in fdatasync
39838 do
39839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39841 $as_echo_n "checking for $ac_func... " >&6; }
39842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39843   $as_echo_n "(cached) " >&6
39844 else
39845   cat >conftest.$ac_ext <<_ACEOF
39846 /* confdefs.h.  */
39847 _ACEOF
39848 cat confdefs.h >>conftest.$ac_ext
39849 cat >>conftest.$ac_ext <<_ACEOF
39850 /* end confdefs.h.  */
39851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39853 #define $ac_func innocuous_$ac_func
39854
39855 /* System header to define __stub macros and hopefully few prototypes,
39856     which can conflict with char $ac_func (); below.
39857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39858     <limits.h> exists even on freestanding compilers.  */
39859
39860 #ifdef __STDC__
39861 # include <limits.h>
39862 #else
39863 # include <assert.h>
39864 #endif
39865
39866 #undef $ac_func
39867
39868 /* Override any GCC internal prototype to avoid an error.
39869    Use char because int might match the return type of a GCC
39870    builtin and then its argument prototype would still apply.  */
39871 #ifdef __cplusplus
39872 extern "C"
39873 #endif
39874 char $ac_func ();
39875 /* The GNU C library defines this for functions which it implements
39876     to always fail with ENOSYS.  Some functions are actually named
39877     something starting with __ and the normal name is an alias.  */
39878 #if defined __stub_$ac_func || defined __stub___$ac_func
39879 choke me
39880 #endif
39881
39882 int
39883 main ()
39884 {
39885 return $ac_func ();
39886   ;
39887   return 0;
39888 }
39889 _ACEOF
39890 rm -f conftest.$ac_objext conftest$ac_exeext
39891 if { (ac_try="$ac_link"
39892 case "(($ac_try" in
39893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39894   *) ac_try_echo=$ac_try;;
39895 esac
39896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39897 $as_echo "$ac_try_echo") >&5
39898   (eval "$ac_link") 2>conftest.er1
39899   ac_status=$?
39900   grep -v '^ *+' conftest.er1 >conftest.err
39901   rm -f conftest.er1
39902   cat conftest.err >&5
39903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904   (exit $ac_status); } && {
39905          test -z "$ac_c_werror_flag" ||
39906          test ! -s conftest.err
39907        } && test -s conftest$ac_exeext && {
39908          test "$cross_compiling" = yes ||
39909          $as_test_x conftest$ac_exeext
39910        }; then
39911   eval "$as_ac_var=yes"
39912 else
39913   $as_echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39915
39916         eval "$as_ac_var=no"
39917 fi
39918
39919 rm -rf conftest.dSYM
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921       conftest$ac_exeext conftest.$ac_ext
39922 fi
39923 ac_res=`eval 'as_val=${'$as_ac_var'}
39924                  $as_echo "$as_val"'`
39925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39926 $as_echo "$ac_res" >&6; }
39927 as_val=`eval 'as_val=${'$as_ac_var'}
39928                  $as_echo "$as_val"'`
39929    if test "x$as_val" = x""yes; then
39930   cat >>confdefs.h <<_ACEOF
39931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39932 _ACEOF
39933
39934 fi
39935 done
39936
39937
39938
39939 for ac_func in chflags
39940 do
39941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39942 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39943 $as_echo_n "checking for $ac_func... " >&6; }
39944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39945   $as_echo_n "(cached) " >&6
39946 else
39947   cat >conftest.$ac_ext <<_ACEOF
39948 /* confdefs.h.  */
39949 _ACEOF
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h.  */
39953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39955 #define $ac_func innocuous_$ac_func
39956
39957 /* System header to define __stub macros and hopefully few prototypes,
39958     which can conflict with char $ac_func (); below.
39959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39960     <limits.h> exists even on freestanding compilers.  */
39961
39962 #ifdef __STDC__
39963 # include <limits.h>
39964 #else
39965 # include <assert.h>
39966 #endif
39967
39968 #undef $ac_func
39969
39970 /* Override any GCC internal prototype to avoid an error.
39971    Use char because int might match the return type of a GCC
39972    builtin and then its argument prototype would still apply.  */
39973 #ifdef __cplusplus
39974 extern "C"
39975 #endif
39976 char $ac_func ();
39977 /* The GNU C library defines this for functions which it implements
39978     to always fail with ENOSYS.  Some functions are actually named
39979     something starting with __ and the normal name is an alias.  */
39980 #if defined __stub_$ac_func || defined __stub___$ac_func
39981 choke me
39982 #endif
39983
39984 int
39985 main ()
39986 {
39987 return $ac_func ();
39988   ;
39989   return 0;
39990 }
39991 _ACEOF
39992 rm -f conftest.$ac_objext conftest$ac_exeext
39993 if { (ac_try="$ac_link"
39994 case "(($ac_try" in
39995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39996   *) ac_try_echo=$ac_try;;
39997 esac
39998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39999 $as_echo "$ac_try_echo") >&5
40000   (eval "$ac_link") 2>conftest.er1
40001   ac_status=$?
40002   grep -v '^ *+' conftest.er1 >conftest.err
40003   rm -f conftest.er1
40004   cat conftest.err >&5
40005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); } && {
40007          test -z "$ac_c_werror_flag" ||
40008          test ! -s conftest.err
40009        } && test -s conftest$ac_exeext && {
40010          test "$cross_compiling" = yes ||
40011          $as_test_x conftest$ac_exeext
40012        }; then
40013   eval "$as_ac_var=yes"
40014 else
40015   $as_echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40017
40018         eval "$as_ac_var=no"
40019 fi
40020
40021 rm -rf conftest.dSYM
40022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40023       conftest$ac_exeext conftest.$ac_ext
40024 fi
40025 ac_res=`eval 'as_val=${'$as_ac_var'}
40026                  $as_echo "$as_val"'`
40027                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40028 $as_echo "$ac_res" >&6; }
40029 as_val=`eval 'as_val=${'$as_ac_var'}
40030                  $as_echo "$as_val"'`
40031    if test "x$as_val" = x""yes; then
40032   cat >>confdefs.h <<_ACEOF
40033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40034 _ACEOF
40035
40036 fi
40037 done
40038
40039
40040
40041
40042
40043
40044 for ac_func in snprintf vsnprintf gethostid fseeko
40045 do
40046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40048 $as_echo_n "checking for $ac_func... " >&6; }
40049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40050   $as_echo_n "(cached) " >&6
40051 else
40052   cat >conftest.$ac_ext <<_ACEOF
40053 /* confdefs.h.  */
40054 _ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h.  */
40058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40060 #define $ac_func innocuous_$ac_func
40061
40062 /* System header to define __stub macros and hopefully few prototypes,
40063     which can conflict with char $ac_func (); below.
40064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40065     <limits.h> exists even on freestanding compilers.  */
40066
40067 #ifdef __STDC__
40068 # include <limits.h>
40069 #else
40070 # include <assert.h>
40071 #endif
40072
40073 #undef $ac_func
40074
40075 /* Override any GCC internal prototype to avoid an error.
40076    Use char because int might match the return type of a GCC
40077    builtin and then its argument prototype would still apply.  */
40078 #ifdef __cplusplus
40079 extern "C"
40080 #endif
40081 char $ac_func ();
40082 /* The GNU C library defines this for functions which it implements
40083     to always fail with ENOSYS.  Some functions are actually named
40084     something starting with __ and the normal name is an alias.  */
40085 #if defined __stub_$ac_func || defined __stub___$ac_func
40086 choke me
40087 #endif
40088
40089 int
40090 main ()
40091 {
40092 return $ac_func ();
40093   ;
40094   return 0;
40095 }
40096 _ACEOF
40097 rm -f conftest.$ac_objext conftest$ac_exeext
40098 if { (ac_try="$ac_link"
40099 case "(($ac_try" in
40100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40101   *) ac_try_echo=$ac_try;;
40102 esac
40103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40104 $as_echo "$ac_try_echo") >&5
40105   (eval "$ac_link") 2>conftest.er1
40106   ac_status=$?
40107   grep -v '^ *+' conftest.er1 >conftest.err
40108   rm -f conftest.er1
40109   cat conftest.err >&5
40110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111   (exit $ac_status); } && {
40112          test -z "$ac_c_werror_flag" ||
40113          test ! -s conftest.err
40114        } && test -s conftest$ac_exeext && {
40115          test "$cross_compiling" = yes ||
40116          $as_test_x conftest$ac_exeext
40117        }; then
40118   eval "$as_ac_var=yes"
40119 else
40120   $as_echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40122
40123         eval "$as_ac_var=no"
40124 fi
40125
40126 rm -rf conftest.dSYM
40127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40128       conftest$ac_exeext conftest.$ac_ext
40129 fi
40130 ac_res=`eval 'as_val=${'$as_ac_var'}
40131                  $as_echo "$as_val"'`
40132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40133 $as_echo "$ac_res" >&6; }
40134 as_val=`eval 'as_val=${'$as_ac_var'}
40135                  $as_echo "$as_val"'`
40136    if test "x$as_val" = x""yes; then
40137   cat >>confdefs.h <<_ACEOF
40138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40139 _ACEOF
40140
40141 fi
40142 done
40143
40144
40145 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
40146 $as_echo_n "checking for va_copy... " >&6; }
40147 if test "${ba_cv_va_copy+set}" = set; then
40148   $as_echo_n "(cached) " >&6
40149 else
40150
40151        cat >conftest.$ac_ext <<_ACEOF
40152 /* confdefs.h.  */
40153 _ACEOF
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h.  */
40157
40158               #include <stdarg.h>
40159               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
40160               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
40161
40162 int
40163 main ()
40164 {
40165
40166               call_use_va_copy(1,2,3)
40167
40168   ;
40169   return 0;
40170 }
40171 _ACEOF
40172 rm -f conftest.$ac_objext conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176   *) ac_try_echo=$ac_try;;
40177 esac
40178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40179 $as_echo "$ac_try_echo") >&5
40180   (eval "$ac_link") 2>conftest.er1
40181   ac_status=$?
40182   grep -v '^ *+' conftest.er1 >conftest.err
40183   rm -f conftest.er1
40184   cat conftest.err >&5
40185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); } && {
40187          test -z "$ac_c_werror_flag" ||
40188          test ! -s conftest.err
40189        } && test -s conftest$ac_exeext && {
40190          test "$cross_compiling" = yes ||
40191          $as_test_x conftest$ac_exeext
40192        }; then
40193
40194               ba_cv_va_copy=yes,
40195
40196 else
40197   $as_echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40199
40200
40201               ba_cv_va_copy=no
40202
40203
40204 fi
40205
40206 rm -rf conftest.dSYM
40207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40208       conftest$ac_exeext conftest.$ac_ext
40209
40210
40211 fi
40212 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
40213 $as_echo "$ba_cv_va_copy" >&6; }
40214 test $ba_cv_va_copy = yes &&
40215 cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_VA_COPY 1
40217 _ACEOF
40218
40219
40220
40221
40222
40223
40224 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
40225 do
40226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40227 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40228 $as_echo_n "checking for $ac_func... " >&6; }
40229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40230   $as_echo_n "(cached) " >&6
40231 else
40232   cat >conftest.$ac_ext <<_ACEOF
40233 /* confdefs.h.  */
40234 _ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h.  */
40238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40240 #define $ac_func innocuous_$ac_func
40241
40242 /* System header to define __stub macros and hopefully few prototypes,
40243     which can conflict with char $ac_func (); below.
40244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40245     <limits.h> exists even on freestanding compilers.  */
40246
40247 #ifdef __STDC__
40248 # include <limits.h>
40249 #else
40250 # include <assert.h>
40251 #endif
40252
40253 #undef $ac_func
40254
40255 /* Override any GCC internal prototype to avoid an error.
40256    Use char because int might match the return type of a GCC
40257    builtin and then its argument prototype would still apply.  */
40258 #ifdef __cplusplus
40259 extern "C"
40260 #endif
40261 char $ac_func ();
40262 /* The GNU C library defines this for functions which it implements
40263     to always fail with ENOSYS.  Some functions are actually named
40264     something starting with __ and the normal name is an alias.  */
40265 #if defined __stub_$ac_func || defined __stub___$ac_func
40266 choke me
40267 #endif
40268
40269 int
40270 main ()
40271 {
40272 return $ac_func ();
40273   ;
40274   return 0;
40275 }
40276 _ACEOF
40277 rm -f conftest.$ac_objext conftest$ac_exeext
40278 if { (ac_try="$ac_link"
40279 case "(($ac_try" in
40280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281   *) ac_try_echo=$ac_try;;
40282 esac
40283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40284 $as_echo "$ac_try_echo") >&5
40285   (eval "$ac_link") 2>conftest.er1
40286   ac_status=$?
40287   grep -v '^ *+' conftest.er1 >conftest.err
40288   rm -f conftest.er1
40289   cat conftest.err >&5
40290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291   (exit $ac_status); } && {
40292          test -z "$ac_c_werror_flag" ||
40293          test ! -s conftest.err
40294        } && test -s conftest$ac_exeext && {
40295          test "$cross_compiling" = yes ||
40296          $as_test_x conftest$ac_exeext
40297        }; then
40298   eval "$as_ac_var=yes"
40299 else
40300   $as_echo "$as_me: failed program was:" >&5
40301 sed 's/^/| /' conftest.$ac_ext >&5
40302
40303         eval "$as_ac_var=no"
40304 fi
40305
40306 rm -rf conftest.dSYM
40307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40308       conftest$ac_exeext conftest.$ac_ext
40309 fi
40310 ac_res=`eval 'as_val=${'$as_ac_var'}
40311                  $as_echo "$as_val"'`
40312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40313 $as_echo "$ac_res" >&6; }
40314 as_val=`eval 'as_val=${'$as_ac_var'}
40315                  $as_echo "$as_val"'`
40316    if test "x$as_val" = x""yes; then
40317   cat >>confdefs.h <<_ACEOF
40318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40319 _ACEOF
40320
40321 fi
40322 done
40323
40324
40325 # If resolver functions are not in libc check for -lnsl or -lresolv.
40326 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
40327 $as_echo_n "checking for gethostbyname_r... " >&6; }
40328 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
40329   $as_echo_n "(cached) " >&6
40330 else
40331   cat >conftest.$ac_ext <<_ACEOF
40332 /* confdefs.h.  */
40333 _ACEOF
40334 cat confdefs.h >>conftest.$ac_ext
40335 cat >>conftest.$ac_ext <<_ACEOF
40336 /* end confdefs.h.  */
40337 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
40338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40339 #define gethostbyname_r innocuous_gethostbyname_r
40340
40341 /* System header to define __stub macros and hopefully few prototypes,
40342     which can conflict with char gethostbyname_r (); below.
40343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40344     <limits.h> exists even on freestanding compilers.  */
40345
40346 #ifdef __STDC__
40347 # include <limits.h>
40348 #else
40349 # include <assert.h>
40350 #endif
40351
40352 #undef gethostbyname_r
40353
40354 /* Override any GCC internal prototype to avoid an error.
40355    Use char because int might match the return type of a GCC
40356    builtin and then its argument prototype would still apply.  */
40357 #ifdef __cplusplus
40358 extern "C"
40359 #endif
40360 char gethostbyname_r ();
40361 /* The GNU C library defines this for functions which it implements
40362     to always fail with ENOSYS.  Some functions are actually named
40363     something starting with __ and the normal name is an alias.  */
40364 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
40365 choke me
40366 #endif
40367
40368 int
40369 main ()
40370 {
40371 return gethostbyname_r ();
40372   ;
40373   return 0;
40374 }
40375 _ACEOF
40376 rm -f conftest.$ac_objext conftest$ac_exeext
40377 if { (ac_try="$ac_link"
40378 case "(($ac_try" in
40379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40380   *) ac_try_echo=$ac_try;;
40381 esac
40382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40383 $as_echo "$ac_try_echo") >&5
40384   (eval "$ac_link") 2>conftest.er1
40385   ac_status=$?
40386   grep -v '^ *+' conftest.er1 >conftest.err
40387   rm -f conftest.er1
40388   cat conftest.err >&5
40389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390   (exit $ac_status); } && {
40391          test -z "$ac_c_werror_flag" ||
40392          test ! -s conftest.err
40393        } && test -s conftest$ac_exeext && {
40394          test "$cross_compiling" = yes ||
40395          $as_test_x conftest$ac_exeext
40396        }; then
40397   ac_cv_func_gethostbyname_r=yes
40398 else
40399   $as_echo "$as_me: failed program was:" >&5
40400 sed 's/^/| /' conftest.$ac_ext >&5
40401
40402         ac_cv_func_gethostbyname_r=no
40403 fi
40404
40405 rm -rf conftest.dSYM
40406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40407       conftest$ac_exeext conftest.$ac_ext
40408 fi
40409 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
40410 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
40411 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
40412   { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
40413 $as_echo "using libc's resolver" >&6; }
40414 else
40415
40416 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
40417 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
40418 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
40419   $as_echo_n "(cached) " >&6
40420 else
40421   ac_check_lib_save_LIBS=$LIBS
40422 LIBS="-lnsl  $LIBS"
40423 cat >conftest.$ac_ext <<_ACEOF
40424 /* confdefs.h.  */
40425 _ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h.  */
40429
40430 /* Override any GCC internal prototype to avoid an error.
40431    Use char because int might match the return type of a GCC
40432    builtin and then its argument prototype would still apply.  */
40433 #ifdef __cplusplus
40434 extern "C"
40435 #endif
40436 char gethostbyname_r ();
40437 int
40438 main ()
40439 {
40440 return gethostbyname_r ();
40441   ;
40442   return 0;
40443 }
40444 _ACEOF
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (ac_try="$ac_link"
40447 case "(($ac_try" in
40448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449   *) ac_try_echo=$ac_try;;
40450 esac
40451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40452 $as_echo "$ac_try_echo") >&5
40453   (eval "$ac_link") 2>conftest.er1
40454   ac_status=$?
40455   grep -v '^ *+' conftest.er1 >conftest.err
40456   rm -f conftest.er1
40457   cat conftest.err >&5
40458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40459   (exit $ac_status); } && {
40460          test -z "$ac_c_werror_flag" ||
40461          test ! -s conftest.err
40462        } && test -s conftest$ac_exeext && {
40463          test "$cross_compiling" = yes ||
40464          $as_test_x conftest$ac_exeext
40465        }; then
40466   ac_cv_lib_nsl_gethostbyname_r=yes
40467 else
40468   $as_echo "$as_me: failed program was:" >&5
40469 sed 's/^/| /' conftest.$ac_ext >&5
40470
40471         ac_cv_lib_nsl_gethostbyname_r=no
40472 fi
40473
40474 rm -rf conftest.dSYM
40475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40476       conftest$ac_exeext conftest.$ac_ext
40477 LIBS=$ac_check_lib_save_LIBS
40478 fi
40479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
40480 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
40481 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
40482   cat >>confdefs.h <<_ACEOF
40483 #define HAVE_LIBNSL 1
40484 _ACEOF
40485
40486   LIBS="-lnsl $LIBS"
40487
40488 fi
40489
40490
40491 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
40492 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
40493 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
40494   $as_echo_n "(cached) " >&6
40495 else
40496   ac_check_lib_save_LIBS=$LIBS
40497 LIBS="-lresolv  $LIBS"
40498 cat >conftest.$ac_ext <<_ACEOF
40499 /* confdefs.h.  */
40500 _ACEOF
40501 cat confdefs.h >>conftest.$ac_ext
40502 cat >>conftest.$ac_ext <<_ACEOF
40503 /* end confdefs.h.  */
40504
40505 /* Override any GCC internal prototype to avoid an error.
40506    Use char because int might match the return type of a GCC
40507    builtin and then its argument prototype would still apply.  */
40508 #ifdef __cplusplus
40509 extern "C"
40510 #endif
40511 char gethostbyname_r ();
40512 int
40513 main ()
40514 {
40515 return gethostbyname_r ();
40516   ;
40517   return 0;
40518 }
40519 _ACEOF
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (ac_try="$ac_link"
40522 case "(($ac_try" in
40523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40524   *) ac_try_echo=$ac_try;;
40525 esac
40526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40527 $as_echo "$ac_try_echo") >&5
40528   (eval "$ac_link") 2>conftest.er1
40529   ac_status=$?
40530   grep -v '^ *+' conftest.er1 >conftest.err
40531   rm -f conftest.er1
40532   cat conftest.err >&5
40533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); } && {
40535          test -z "$ac_c_werror_flag" ||
40536          test ! -s conftest.err
40537        } && test -s conftest$ac_exeext && {
40538          test "$cross_compiling" = yes ||
40539          $as_test_x conftest$ac_exeext
40540        }; then
40541   ac_cv_lib_resolv_gethostbyname_r=yes
40542 else
40543   $as_echo "$as_me: failed program was:" >&5
40544 sed 's/^/| /' conftest.$ac_ext >&5
40545
40546         ac_cv_lib_resolv_gethostbyname_r=no
40547 fi
40548
40549 rm -rf conftest.dSYM
40550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40551       conftest$ac_exeext conftest.$ac_ext
40552 LIBS=$ac_check_lib_save_LIBS
40553 fi
40554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
40555 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
40556 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
40557   cat >>confdefs.h <<_ACEOF
40558 #define HAVE_LIBRESOLV 1
40559 _ACEOF
40560
40561   LIBS="-lresolv $LIBS"
40562
40563 fi
40564
40565 fi
40566
40567
40568
40569 for ac_func in inet_pton
40570 do
40571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40573 $as_echo_n "checking for $ac_func... " >&6; }
40574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40575   $as_echo_n "(cached) " >&6
40576 else
40577   cat >conftest.$ac_ext <<_ACEOF
40578 /* confdefs.h.  */
40579 _ACEOF
40580 cat confdefs.h >>conftest.$ac_ext
40581 cat >>conftest.$ac_ext <<_ACEOF
40582 /* end confdefs.h.  */
40583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40585 #define $ac_func innocuous_$ac_func
40586
40587 /* System header to define __stub macros and hopefully few prototypes,
40588     which can conflict with char $ac_func (); below.
40589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40590     <limits.h> exists even on freestanding compilers.  */
40591
40592 #ifdef __STDC__
40593 # include <limits.h>
40594 #else
40595 # include <assert.h>
40596 #endif
40597
40598 #undef $ac_func
40599
40600 /* Override any GCC internal prototype to avoid an error.
40601    Use char because int might match the return type of a GCC
40602    builtin and then its argument prototype would still apply.  */
40603 #ifdef __cplusplus
40604 extern "C"
40605 #endif
40606 char $ac_func ();
40607 /* The GNU C library defines this for functions which it implements
40608     to always fail with ENOSYS.  Some functions are actually named
40609     something starting with __ and the normal name is an alias.  */
40610 #if defined __stub_$ac_func || defined __stub___$ac_func
40611 choke me
40612 #endif
40613
40614 int
40615 main ()
40616 {
40617 return $ac_func ();
40618   ;
40619   return 0;
40620 }
40621 _ACEOF
40622 rm -f conftest.$ac_objext conftest$ac_exeext
40623 if { (ac_try="$ac_link"
40624 case "(($ac_try" in
40625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40626   *) ac_try_echo=$ac_try;;
40627 esac
40628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40629 $as_echo "$ac_try_echo") >&5
40630   (eval "$ac_link") 2>conftest.er1
40631   ac_status=$?
40632   grep -v '^ *+' conftest.er1 >conftest.err
40633   rm -f conftest.er1
40634   cat conftest.err >&5
40635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636   (exit $ac_status); } && {
40637          test -z "$ac_c_werror_flag" ||
40638          test ! -s conftest.err
40639        } && test -s conftest$ac_exeext && {
40640          test "$cross_compiling" = yes ||
40641          $as_test_x conftest$ac_exeext
40642        }; then
40643   eval "$as_ac_var=yes"
40644 else
40645   $as_echo "$as_me: failed program was:" >&5
40646 sed 's/^/| /' conftest.$ac_ext >&5
40647
40648         eval "$as_ac_var=no"
40649 fi
40650
40651 rm -rf conftest.dSYM
40652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40653       conftest$ac_exeext conftest.$ac_ext
40654 fi
40655 ac_res=`eval 'as_val=${'$as_ac_var'}
40656                  $as_echo "$as_val"'`
40657                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40658 $as_echo "$ac_res" >&6; }
40659 as_val=`eval 'as_val=${'$as_ac_var'}
40660                  $as_echo "$as_val"'`
40661    if test "x$as_val" = x""yes; then
40662   cat >>confdefs.h <<_ACEOF
40663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40664 _ACEOF
40665  cat >>confdefs.h <<\_ACEOF
40666 #define HAVE_INET_PTON 1
40667 _ACEOF
40668
40669 fi
40670 done
40671
40672
40673 for ac_func in inet_ntop
40674 do
40675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40677 $as_echo_n "checking for $ac_func... " >&6; }
40678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40679   $as_echo_n "(cached) " >&6
40680 else
40681   cat >conftest.$ac_ext <<_ACEOF
40682 /* confdefs.h.  */
40683 _ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h.  */
40687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40689 #define $ac_func innocuous_$ac_func
40690
40691 /* System header to define __stub macros and hopefully few prototypes,
40692     which can conflict with char $ac_func (); below.
40693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40694     <limits.h> exists even on freestanding compilers.  */
40695
40696 #ifdef __STDC__
40697 # include <limits.h>
40698 #else
40699 # include <assert.h>
40700 #endif
40701
40702 #undef $ac_func
40703
40704 /* Override any GCC internal prototype to avoid an error.
40705    Use char because int might match the return type of a GCC
40706    builtin and then its argument prototype would still apply.  */
40707 #ifdef __cplusplus
40708 extern "C"
40709 #endif
40710 char $ac_func ();
40711 /* The GNU C library defines this for functions which it implements
40712     to always fail with ENOSYS.  Some functions are actually named
40713     something starting with __ and the normal name is an alias.  */
40714 #if defined __stub_$ac_func || defined __stub___$ac_func
40715 choke me
40716 #endif
40717
40718 int
40719 main ()
40720 {
40721 return $ac_func ();
40722   ;
40723   return 0;
40724 }
40725 _ACEOF
40726 rm -f conftest.$ac_objext conftest$ac_exeext
40727 if { (ac_try="$ac_link"
40728 case "(($ac_try" in
40729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40730   *) ac_try_echo=$ac_try;;
40731 esac
40732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40733 $as_echo "$ac_try_echo") >&5
40734   (eval "$ac_link") 2>conftest.er1
40735   ac_status=$?
40736   grep -v '^ *+' conftest.er1 >conftest.err
40737   rm -f conftest.er1
40738   cat conftest.err >&5
40739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740   (exit $ac_status); } && {
40741          test -z "$ac_c_werror_flag" ||
40742          test ! -s conftest.err
40743        } && test -s conftest$ac_exeext && {
40744          test "$cross_compiling" = yes ||
40745          $as_test_x conftest$ac_exeext
40746        }; then
40747   eval "$as_ac_var=yes"
40748 else
40749   $as_echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752         eval "$as_ac_var=no"
40753 fi
40754
40755 rm -rf conftest.dSYM
40756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40757       conftest$ac_exeext conftest.$ac_ext
40758 fi
40759 ac_res=`eval 'as_val=${'$as_ac_var'}
40760                  $as_echo "$as_val"'`
40761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40762 $as_echo "$ac_res" >&6; }
40763 as_val=`eval 'as_val=${'$as_ac_var'}
40764                  $as_echo "$as_val"'`
40765    if test "x$as_val" = x""yes; then
40766   cat >>confdefs.h <<_ACEOF
40767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40768 _ACEOF
40769  cat >>confdefs.h <<\_ACEOF
40770 #define HAVE_INET_NTOP 1
40771 _ACEOF
40772
40773 fi
40774 done
40775
40776
40777 for ac_func in gethostbyname2
40778 do
40779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40781 $as_echo_n "checking for $ac_func... " >&6; }
40782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40783   $as_echo_n "(cached) " >&6
40784 else
40785   cat >conftest.$ac_ext <<_ACEOF
40786 /* confdefs.h.  */
40787 _ACEOF
40788 cat confdefs.h >>conftest.$ac_ext
40789 cat >>conftest.$ac_ext <<_ACEOF
40790 /* end confdefs.h.  */
40791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40793 #define $ac_func innocuous_$ac_func
40794
40795 /* System header to define __stub macros and hopefully few prototypes,
40796     which can conflict with char $ac_func (); below.
40797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40798     <limits.h> exists even on freestanding compilers.  */
40799
40800 #ifdef __STDC__
40801 # include <limits.h>
40802 #else
40803 # include <assert.h>
40804 #endif
40805
40806 #undef $ac_func
40807
40808 /* Override any GCC internal prototype to avoid an error.
40809    Use char because int might match the return type of a GCC
40810    builtin and then its argument prototype would still apply.  */
40811 #ifdef __cplusplus
40812 extern "C"
40813 #endif
40814 char $ac_func ();
40815 /* The GNU C library defines this for functions which it implements
40816     to always fail with ENOSYS.  Some functions are actually named
40817     something starting with __ and the normal name is an alias.  */
40818 #if defined __stub_$ac_func || defined __stub___$ac_func
40819 choke me
40820 #endif
40821
40822 int
40823 main ()
40824 {
40825 return $ac_func ();
40826   ;
40827   return 0;
40828 }
40829 _ACEOF
40830 rm -f conftest.$ac_objext conftest$ac_exeext
40831 if { (ac_try="$ac_link"
40832 case "(($ac_try" in
40833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40834   *) ac_try_echo=$ac_try;;
40835 esac
40836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40837 $as_echo "$ac_try_echo") >&5
40838   (eval "$ac_link") 2>conftest.er1
40839   ac_status=$?
40840   grep -v '^ *+' conftest.er1 >conftest.err
40841   rm -f conftest.er1
40842   cat conftest.err >&5
40843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844   (exit $ac_status); } && {
40845          test -z "$ac_c_werror_flag" ||
40846          test ! -s conftest.err
40847        } && test -s conftest$ac_exeext && {
40848          test "$cross_compiling" = yes ||
40849          $as_test_x conftest$ac_exeext
40850        }; then
40851   eval "$as_ac_var=yes"
40852 else
40853   $as_echo "$as_me: failed program was:" >&5
40854 sed 's/^/| /' conftest.$ac_ext >&5
40855
40856         eval "$as_ac_var=no"
40857 fi
40858
40859 rm -rf conftest.dSYM
40860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40861       conftest$ac_exeext conftest.$ac_ext
40862 fi
40863 ac_res=`eval 'as_val=${'$as_ac_var'}
40864                  $as_echo "$as_val"'`
40865                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40866 $as_echo "$ac_res" >&6; }
40867 as_val=`eval 'as_val=${'$as_ac_var'}
40868                  $as_echo "$as_val"'`
40869    if test "x$as_val" = x""yes; then
40870   cat >>confdefs.h <<_ACEOF
40871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40872 _ACEOF
40873  cat >>confdefs.h <<\_ACEOF
40874 #define HAVE_GETHOSTBYNAME2 1
40875 _ACEOF
40876
40877 fi
40878 done
40879
40880
40881 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
40882 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
40883 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40884   $as_echo_n "(cached) " >&6
40885 else
40886
40887        cat >conftest.$ac_ext <<_ACEOF
40888 /* confdefs.h.  */
40889 _ACEOF
40890 cat confdefs.h >>conftest.$ac_ext
40891 cat >>conftest.$ac_ext <<_ACEOF
40892 /* end confdefs.h.  */
40893
40894               #include <sys/socket.h>
40895
40896 int
40897 main ()
40898 {
40899
40900               struct sockaddr s; s.sa_len;
40901
40902   ;
40903   return 0;
40904 }
40905 _ACEOF
40906 rm -f conftest.$ac_objext
40907 if { (ac_try="$ac_compile"
40908 case "(($ac_try" in
40909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40910   *) ac_try_echo=$ac_try;;
40911 esac
40912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40913 $as_echo "$ac_try_echo") >&5
40914   (eval "$ac_compile") 2>conftest.er1
40915   ac_status=$?
40916   grep -v '^ *+' conftest.er1 >conftest.err
40917   rm -f conftest.er1
40918   cat conftest.err >&5
40919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40920   (exit $ac_status); } && {
40921          test -z "$ac_c_werror_flag" ||
40922          test ! -s conftest.err
40923        } && test -s conftest.$ac_objext; then
40924
40925              ac_cv_struct_sockaddr_sa_len=yes
40926
40927 else
40928   $as_echo "$as_me: failed program was:" >&5
40929 sed 's/^/| /' conftest.$ac_ext >&5
40930
40931         ac_cv_struct_sockaddr_sa_len=no
40932
40933
40934 fi
40935
40936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40937
40938
40939 fi
40940 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40941 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
40942
40943 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40944
40945 cat >>confdefs.h <<\_ACEOF
40946 #define HAVE_SA_LEN 1
40947 _ACEOF
40948
40949 fi
40950
40951
40952 for ac_func in strftime
40953 do
40954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40956 $as_echo_n "checking for $ac_func... " >&6; }
40957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40958   $as_echo_n "(cached) " >&6
40959 else
40960   cat >conftest.$ac_ext <<_ACEOF
40961 /* confdefs.h.  */
40962 _ACEOF
40963 cat confdefs.h >>conftest.$ac_ext
40964 cat >>conftest.$ac_ext <<_ACEOF
40965 /* end confdefs.h.  */
40966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40968 #define $ac_func innocuous_$ac_func
40969
40970 /* System header to define __stub macros and hopefully few prototypes,
40971     which can conflict with char $ac_func (); below.
40972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40973     <limits.h> exists even on freestanding compilers.  */
40974
40975 #ifdef __STDC__
40976 # include <limits.h>
40977 #else
40978 # include <assert.h>
40979 #endif
40980
40981 #undef $ac_func
40982
40983 /* Override any GCC internal prototype to avoid an error.
40984    Use char because int might match the return type of a GCC
40985    builtin and then its argument prototype would still apply.  */
40986 #ifdef __cplusplus
40987 extern "C"
40988 #endif
40989 char $ac_func ();
40990 /* The GNU C library defines this for functions which it implements
40991     to always fail with ENOSYS.  Some functions are actually named
40992     something starting with __ and the normal name is an alias.  */
40993 #if defined __stub_$ac_func || defined __stub___$ac_func
40994 choke me
40995 #endif
40996
40997 int
40998 main ()
40999 {
41000 return $ac_func ();
41001   ;
41002   return 0;
41003 }
41004 _ACEOF
41005 rm -f conftest.$ac_objext conftest$ac_exeext
41006 if { (ac_try="$ac_link"
41007 case "(($ac_try" in
41008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009   *) ac_try_echo=$ac_try;;
41010 esac
41011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41012 $as_echo "$ac_try_echo") >&5
41013   (eval "$ac_link") 2>conftest.er1
41014   ac_status=$?
41015   grep -v '^ *+' conftest.er1 >conftest.err
41016   rm -f conftest.er1
41017   cat conftest.err >&5
41018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019   (exit $ac_status); } && {
41020          test -z "$ac_c_werror_flag" ||
41021          test ! -s conftest.err
41022        } && test -s conftest$ac_exeext && {
41023          test "$cross_compiling" = yes ||
41024          $as_test_x conftest$ac_exeext
41025        }; then
41026   eval "$as_ac_var=yes"
41027 else
41028   $as_echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41030
41031         eval "$as_ac_var=no"
41032 fi
41033
41034 rm -rf conftest.dSYM
41035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41036       conftest$ac_exeext conftest.$ac_ext
41037 fi
41038 ac_res=`eval 'as_val=${'$as_ac_var'}
41039                  $as_echo "$as_val"'`
41040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41041 $as_echo "$ac_res" >&6; }
41042 as_val=`eval 'as_val=${'$as_ac_var'}
41043                  $as_echo "$as_val"'`
41044    if test "x$as_val" = x""yes; then
41045   cat >>confdefs.h <<_ACEOF
41046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41047 _ACEOF
41048
41049 else
41050   # strftime is in -lintl on SCO UNIX.
41051 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41052 $as_echo_n "checking for strftime in -lintl... " >&6; }
41053 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41054   $as_echo_n "(cached) " >&6
41055 else
41056   ac_check_lib_save_LIBS=$LIBS
41057 LIBS="-lintl  $LIBS"
41058 cat >conftest.$ac_ext <<_ACEOF
41059 /* confdefs.h.  */
41060 _ACEOF
41061 cat confdefs.h >>conftest.$ac_ext
41062 cat >>conftest.$ac_ext <<_ACEOF
41063 /* end confdefs.h.  */
41064
41065 /* Override any GCC internal prototype to avoid an error.
41066    Use char because int might match the return type of a GCC
41067    builtin and then its argument prototype would still apply.  */
41068 #ifdef __cplusplus
41069 extern "C"
41070 #endif
41071 char strftime ();
41072 int
41073 main ()
41074 {
41075 return strftime ();
41076   ;
41077   return 0;
41078 }
41079 _ACEOF
41080 rm -f conftest.$ac_objext conftest$ac_exeext
41081 if { (ac_try="$ac_link"
41082 case "(($ac_try" in
41083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41084   *) ac_try_echo=$ac_try;;
41085 esac
41086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41087 $as_echo "$ac_try_echo") >&5
41088   (eval "$ac_link") 2>conftest.er1
41089   ac_status=$?
41090   grep -v '^ *+' conftest.er1 >conftest.err
41091   rm -f conftest.er1
41092   cat conftest.err >&5
41093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); } && {
41095          test -z "$ac_c_werror_flag" ||
41096          test ! -s conftest.err
41097        } && test -s conftest$ac_exeext && {
41098          test "$cross_compiling" = yes ||
41099          $as_test_x conftest$ac_exeext
41100        }; then
41101   ac_cv_lib_intl_strftime=yes
41102 else
41103   $as_echo "$as_me: failed program was:" >&5
41104 sed 's/^/| /' conftest.$ac_ext >&5
41105
41106         ac_cv_lib_intl_strftime=no
41107 fi
41108
41109 rm -rf conftest.dSYM
41110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41111       conftest$ac_exeext conftest.$ac_ext
41112 LIBS=$ac_check_lib_save_LIBS
41113 fi
41114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41115 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
41116 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
41117   cat >>confdefs.h <<\_ACEOF
41118 #define HAVE_STRFTIME 1
41119 _ACEOF
41120
41121 LIBS="-lintl $LIBS"
41122 fi
41123
41124 fi
41125 done
41126
41127
41128 for ac_func in vprintf
41129 do
41130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41132 $as_echo_n "checking for $ac_func... " >&6; }
41133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41134   $as_echo_n "(cached) " >&6
41135 else
41136   cat >conftest.$ac_ext <<_ACEOF
41137 /* confdefs.h.  */
41138 _ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h.  */
41142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41144 #define $ac_func innocuous_$ac_func
41145
41146 /* System header to define __stub macros and hopefully few prototypes,
41147     which can conflict with char $ac_func (); below.
41148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41149     <limits.h> exists even on freestanding compilers.  */
41150
41151 #ifdef __STDC__
41152 # include <limits.h>
41153 #else
41154 # include <assert.h>
41155 #endif
41156
41157 #undef $ac_func
41158
41159 /* Override any GCC internal prototype to avoid an error.
41160    Use char because int might match the return type of a GCC
41161    builtin and then its argument prototype would still apply.  */
41162 #ifdef __cplusplus
41163 extern "C"
41164 #endif
41165 char $ac_func ();
41166 /* The GNU C library defines this for functions which it implements
41167     to always fail with ENOSYS.  Some functions are actually named
41168     something starting with __ and the normal name is an alias.  */
41169 #if defined __stub_$ac_func || defined __stub___$ac_func
41170 choke me
41171 #endif
41172
41173 int
41174 main ()
41175 {
41176 return $ac_func ();
41177   ;
41178   return 0;
41179 }
41180 _ACEOF
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (ac_try="$ac_link"
41183 case "(($ac_try" in
41184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41185   *) ac_try_echo=$ac_try;;
41186 esac
41187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41188 $as_echo "$ac_try_echo") >&5
41189   (eval "$ac_link") 2>conftest.er1
41190   ac_status=$?
41191   grep -v '^ *+' conftest.er1 >conftest.err
41192   rm -f conftest.er1
41193   cat conftest.err >&5
41194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); } && {
41196          test -z "$ac_c_werror_flag" ||
41197          test ! -s conftest.err
41198        } && test -s conftest$ac_exeext && {
41199          test "$cross_compiling" = yes ||
41200          $as_test_x conftest$ac_exeext
41201        }; then
41202   eval "$as_ac_var=yes"
41203 else
41204   $as_echo "$as_me: failed program was:" >&5
41205 sed 's/^/| /' conftest.$ac_ext >&5
41206
41207         eval "$as_ac_var=no"
41208 fi
41209
41210 rm -rf conftest.dSYM
41211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41212       conftest$ac_exeext conftest.$ac_ext
41213 fi
41214 ac_res=`eval 'as_val=${'$as_ac_var'}
41215                  $as_echo "$as_val"'`
41216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41217 $as_echo "$ac_res" >&6; }
41218 as_val=`eval 'as_val=${'$as_ac_var'}
41219                  $as_echo "$as_val"'`
41220    if test "x$as_val" = x""yes; then
41221   cat >>confdefs.h <<_ACEOF
41222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41223 _ACEOF
41224
41225 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
41226 $as_echo_n "checking for _doprnt... " >&6; }
41227 if test "${ac_cv_func__doprnt+set}" = set; then
41228   $as_echo_n "(cached) " >&6
41229 else
41230   cat >conftest.$ac_ext <<_ACEOF
41231 /* confdefs.h.  */
41232 _ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h.  */
41236 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41238 #define _doprnt innocuous__doprnt
41239
41240 /* System header to define __stub macros and hopefully few prototypes,
41241     which can conflict with char _doprnt (); below.
41242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41243     <limits.h> exists even on freestanding compilers.  */
41244
41245 #ifdef __STDC__
41246 # include <limits.h>
41247 #else
41248 # include <assert.h>
41249 #endif
41250
41251 #undef _doprnt
41252
41253 /* Override any GCC internal prototype to avoid an error.
41254    Use char because int might match the return type of a GCC
41255    builtin and then its argument prototype would still apply.  */
41256 #ifdef __cplusplus
41257 extern "C"
41258 #endif
41259 char _doprnt ();
41260 /* The GNU C library defines this for functions which it implements
41261     to always fail with ENOSYS.  Some functions are actually named
41262     something starting with __ and the normal name is an alias.  */
41263 #if defined __stub__doprnt || defined __stub____doprnt
41264 choke me
41265 #endif
41266
41267 int
41268 main ()
41269 {
41270 return _doprnt ();
41271   ;
41272   return 0;
41273 }
41274 _ACEOF
41275 rm -f conftest.$ac_objext conftest$ac_exeext
41276 if { (ac_try="$ac_link"
41277 case "(($ac_try" in
41278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41279   *) ac_try_echo=$ac_try;;
41280 esac
41281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41282 $as_echo "$ac_try_echo") >&5
41283   (eval "$ac_link") 2>conftest.er1
41284   ac_status=$?
41285   grep -v '^ *+' conftest.er1 >conftest.err
41286   rm -f conftest.er1
41287   cat conftest.err >&5
41288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289   (exit $ac_status); } && {
41290          test -z "$ac_c_werror_flag" ||
41291          test ! -s conftest.err
41292        } && test -s conftest$ac_exeext && {
41293          test "$cross_compiling" = yes ||
41294          $as_test_x conftest$ac_exeext
41295        }; then
41296   ac_cv_func__doprnt=yes
41297 else
41298   $as_echo "$as_me: failed program was:" >&5
41299 sed 's/^/| /' conftest.$ac_ext >&5
41300
41301         ac_cv_func__doprnt=no
41302 fi
41303
41304 rm -rf conftest.dSYM
41305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41306       conftest$ac_exeext conftest.$ac_ext
41307 fi
41308 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41309 $as_echo "$ac_cv_func__doprnt" >&6; }
41310 if test "x$ac_cv_func__doprnt" = x""yes; then
41311
41312 cat >>confdefs.h <<\_ACEOF
41313 #define HAVE_DOPRNT 1
41314 _ACEOF
41315
41316 fi
41317
41318 fi
41319 done
41320
41321
41322 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
41323 # for constant arguments.  Useless!
41324 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
41325 $as_echo_n "checking for working alloca.h... " >&6; }
41326 if test "${ac_cv_working_alloca_h+set}" = set; then
41327   $as_echo_n "(cached) " >&6
41328 else
41329   cat >conftest.$ac_ext <<_ACEOF
41330 /* confdefs.h.  */
41331 _ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h.  */
41335 #include <alloca.h>
41336 int
41337 main ()
41338 {
41339 char *p = (char *) alloca (2 * sizeof (int));
41340                           if (p) return 0;
41341   ;
41342   return 0;
41343 }
41344 _ACEOF
41345 rm -f conftest.$ac_objext conftest$ac_exeext
41346 if { (ac_try="$ac_link"
41347 case "(($ac_try" in
41348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349   *) ac_try_echo=$ac_try;;
41350 esac
41351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41352 $as_echo "$ac_try_echo") >&5
41353   (eval "$ac_link") 2>conftest.er1
41354   ac_status=$?
41355   grep -v '^ *+' conftest.er1 >conftest.err
41356   rm -f conftest.er1
41357   cat conftest.err >&5
41358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359   (exit $ac_status); } && {
41360          test -z "$ac_c_werror_flag" ||
41361          test ! -s conftest.err
41362        } && test -s conftest$ac_exeext && {
41363          test "$cross_compiling" = yes ||
41364          $as_test_x conftest$ac_exeext
41365        }; then
41366   ac_cv_working_alloca_h=yes
41367 else
41368   $as_echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41370
41371         ac_cv_working_alloca_h=no
41372 fi
41373
41374 rm -rf conftest.dSYM
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376       conftest$ac_exeext conftest.$ac_ext
41377 fi
41378 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
41379 $as_echo "$ac_cv_working_alloca_h" >&6; }
41380 if test $ac_cv_working_alloca_h = yes; then
41381
41382 cat >>confdefs.h <<\_ACEOF
41383 #define HAVE_ALLOCA_H 1
41384 _ACEOF
41385
41386 fi
41387
41388 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
41389 $as_echo_n "checking for alloca... " >&6; }
41390 if test "${ac_cv_func_alloca_works+set}" = set; then
41391   $as_echo_n "(cached) " >&6
41392 else
41393   cat >conftest.$ac_ext <<_ACEOF
41394 /* confdefs.h.  */
41395 _ACEOF
41396 cat confdefs.h >>conftest.$ac_ext
41397 cat >>conftest.$ac_ext <<_ACEOF
41398 /* end confdefs.h.  */
41399 #ifdef __GNUC__
41400 # define alloca __builtin_alloca
41401 #else
41402 # ifdef _MSC_VER
41403 #  include <malloc.h>
41404 #  define alloca _alloca
41405 # else
41406 #  ifdef HAVE_ALLOCA_H
41407 #   include <alloca.h>
41408 #  else
41409 #   ifdef _AIX
41410  #pragma alloca
41411 #   else
41412 #    ifndef alloca /* predefined by HP cc +Olibcalls */
41413 char *alloca ();
41414 #    endif
41415 #   endif
41416 #  endif
41417 # endif
41418 #endif
41419
41420 int
41421 main ()
41422 {
41423 char *p = (char *) alloca (1);
41424                                     if (p) return 0;
41425   ;
41426   return 0;
41427 }
41428 _ACEOF
41429 rm -f conftest.$ac_objext conftest$ac_exeext
41430 if { (ac_try="$ac_link"
41431 case "(($ac_try" in
41432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41433   *) ac_try_echo=$ac_try;;
41434 esac
41435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41436 $as_echo "$ac_try_echo") >&5
41437   (eval "$ac_link") 2>conftest.er1
41438   ac_status=$?
41439   grep -v '^ *+' conftest.er1 >conftest.err
41440   rm -f conftest.er1
41441   cat conftest.err >&5
41442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443   (exit $ac_status); } && {
41444          test -z "$ac_c_werror_flag" ||
41445          test ! -s conftest.err
41446        } && test -s conftest$ac_exeext && {
41447          test "$cross_compiling" = yes ||
41448          $as_test_x conftest$ac_exeext
41449        }; then
41450   ac_cv_func_alloca_works=yes
41451 else
41452   $as_echo "$as_me: failed program was:" >&5
41453 sed 's/^/| /' conftest.$ac_ext >&5
41454
41455         ac_cv_func_alloca_works=no
41456 fi
41457
41458 rm -rf conftest.dSYM
41459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41460       conftest$ac_exeext conftest.$ac_ext
41461 fi
41462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
41463 $as_echo "$ac_cv_func_alloca_works" >&6; }
41464
41465 if test $ac_cv_func_alloca_works = yes; then
41466
41467 cat >>confdefs.h <<\_ACEOF
41468 #define HAVE_ALLOCA 1
41469 _ACEOF
41470
41471 else
41472   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
41473 # that cause trouble.  Some versions do not even contain alloca or
41474 # contain a buggy version.  If you still want to use their alloca,
41475 # use ar to extract alloca.o from them instead of compiling alloca.c.
41476
41477 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
41478
41479 cat >>confdefs.h <<\_ACEOF
41480 #define C_ALLOCA 1
41481 _ACEOF
41482
41483
41484 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
41485 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
41486 if test "${ac_cv_os_cray+set}" = set; then
41487   $as_echo_n "(cached) " >&6
41488 else
41489   cat >conftest.$ac_ext <<_ACEOF
41490 /* confdefs.h.  */
41491 _ACEOF
41492 cat confdefs.h >>conftest.$ac_ext
41493 cat >>conftest.$ac_ext <<_ACEOF
41494 /* end confdefs.h.  */
41495 #if defined CRAY && ! defined CRAY2
41496 webecray
41497 #else
41498 wenotbecray
41499 #endif
41500
41501 _ACEOF
41502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41503   $EGREP "webecray" >/dev/null 2>&1; then
41504   ac_cv_os_cray=yes
41505 else
41506   ac_cv_os_cray=no
41507 fi
41508 rm -f conftest*
41509
41510 fi
41511 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
41512 $as_echo "$ac_cv_os_cray" >&6; }
41513 if test $ac_cv_os_cray = yes; then
41514   for ac_func in _getb67 GETB67 getb67; do
41515     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41517 $as_echo_n "checking for $ac_func... " >&6; }
41518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41519   $as_echo_n "(cached) " >&6
41520 else
41521   cat >conftest.$ac_ext <<_ACEOF
41522 /* confdefs.h.  */
41523 _ACEOF
41524 cat confdefs.h >>conftest.$ac_ext
41525 cat >>conftest.$ac_ext <<_ACEOF
41526 /* end confdefs.h.  */
41527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41529 #define $ac_func innocuous_$ac_func
41530
41531 /* System header to define __stub macros and hopefully few prototypes,
41532     which can conflict with char $ac_func (); below.
41533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41534     <limits.h> exists even on freestanding compilers.  */
41535
41536 #ifdef __STDC__
41537 # include <limits.h>
41538 #else
41539 # include <assert.h>
41540 #endif
41541
41542 #undef $ac_func
41543
41544 /* Override any GCC internal prototype to avoid an error.
41545    Use char because int might match the return type of a GCC
41546    builtin and then its argument prototype would still apply.  */
41547 #ifdef __cplusplus
41548 extern "C"
41549 #endif
41550 char $ac_func ();
41551 /* The GNU C library defines this for functions which it implements
41552     to always fail with ENOSYS.  Some functions are actually named
41553     something starting with __ and the normal name is an alias.  */
41554 #if defined __stub_$ac_func || defined __stub___$ac_func
41555 choke me
41556 #endif
41557
41558 int
41559 main ()
41560 {
41561 return $ac_func ();
41562   ;
41563   return 0;
41564 }
41565 _ACEOF
41566 rm -f conftest.$ac_objext conftest$ac_exeext
41567 if { (ac_try="$ac_link"
41568 case "(($ac_try" in
41569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41570   *) ac_try_echo=$ac_try;;
41571 esac
41572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41573 $as_echo "$ac_try_echo") >&5
41574   (eval "$ac_link") 2>conftest.er1
41575   ac_status=$?
41576   grep -v '^ *+' conftest.er1 >conftest.err
41577   rm -f conftest.er1
41578   cat conftest.err >&5
41579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580   (exit $ac_status); } && {
41581          test -z "$ac_c_werror_flag" ||
41582          test ! -s conftest.err
41583        } && test -s conftest$ac_exeext && {
41584          test "$cross_compiling" = yes ||
41585          $as_test_x conftest$ac_exeext
41586        }; then
41587   eval "$as_ac_var=yes"
41588 else
41589   $as_echo "$as_me: failed program was:" >&5
41590 sed 's/^/| /' conftest.$ac_ext >&5
41591
41592         eval "$as_ac_var=no"
41593 fi
41594
41595 rm -rf conftest.dSYM
41596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41597       conftest$ac_exeext conftest.$ac_ext
41598 fi
41599 ac_res=`eval 'as_val=${'$as_ac_var'}
41600                  $as_echo "$as_val"'`
41601                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41602 $as_echo "$ac_res" >&6; }
41603 as_val=`eval 'as_val=${'$as_ac_var'}
41604                  $as_echo "$as_val"'`
41605    if test "x$as_val" = x""yes; then
41606
41607 cat >>confdefs.h <<_ACEOF
41608 #define CRAY_STACKSEG_END $ac_func
41609 _ACEOF
41610
41611     break
41612 fi
41613
41614   done
41615 fi
41616
41617 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
41618 $as_echo_n "checking stack direction for C alloca... " >&6; }
41619 if test "${ac_cv_c_stack_direction+set}" = set; then
41620   $as_echo_n "(cached) " >&6
41621 else
41622   if test "$cross_compiling" = yes; then
41623   ac_cv_c_stack_direction=0
41624 else
41625   cat >conftest.$ac_ext <<_ACEOF
41626 /* confdefs.h.  */
41627 _ACEOF
41628 cat confdefs.h >>conftest.$ac_ext
41629 cat >>conftest.$ac_ext <<_ACEOF
41630 /* end confdefs.h.  */
41631 $ac_includes_default
41632 int
41633 find_stack_direction ()
41634 {
41635   static char *addr = 0;
41636   auto char dummy;
41637   if (addr == 0)
41638     {
41639       addr = &dummy;
41640       return find_stack_direction ();
41641     }
41642   else
41643     return (&dummy > addr) ? 1 : -1;
41644 }
41645
41646 int
41647 main ()
41648 {
41649   return find_stack_direction () < 0;
41650 }
41651 _ACEOF
41652 rm -f conftest$ac_exeext
41653 if { (ac_try="$ac_link"
41654 case "(($ac_try" in
41655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41656   *) ac_try_echo=$ac_try;;
41657 esac
41658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41659 $as_echo "$ac_try_echo") >&5
41660   (eval "$ac_link") 2>&5
41661   ac_status=$?
41662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41664   { (case "(($ac_try" in
41665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41666   *) ac_try_echo=$ac_try;;
41667 esac
41668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41669 $as_echo "$ac_try_echo") >&5
41670   (eval "$ac_try") 2>&5
41671   ac_status=$?
41672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673   (exit $ac_status); }; }; then
41674   ac_cv_c_stack_direction=1
41675 else
41676   $as_echo "$as_me: program exited with status $ac_status" >&5
41677 $as_echo "$as_me: failed program was:" >&5
41678 sed 's/^/| /' conftest.$ac_ext >&5
41679
41680 ( exit $ac_status )
41681 ac_cv_c_stack_direction=-1
41682 fi
41683 rm -rf conftest.dSYM
41684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41685 fi
41686
41687
41688 fi
41689 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
41690 $as_echo "$ac_cv_c_stack_direction" >&6; }
41691
41692 cat >>confdefs.h <<_ACEOF
41693 #define STACK_DIRECTION $ac_cv_c_stack_direction
41694 _ACEOF
41695
41696
41697 fi
41698
41699 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
41700 # -lseq on Dynix/PTX, -lgen on Unixware.
41701 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
41702 $as_echo_n "checking for library containing getmntent... " >&6; }
41703 if test "${ac_cv_search_getmntent+set}" = set; then
41704   $as_echo_n "(cached) " >&6
41705 else
41706   ac_func_search_save_LIBS=$LIBS
41707 cat >conftest.$ac_ext <<_ACEOF
41708 /* confdefs.h.  */
41709 _ACEOF
41710 cat confdefs.h >>conftest.$ac_ext
41711 cat >>conftest.$ac_ext <<_ACEOF
41712 /* end confdefs.h.  */
41713
41714 /* Override any GCC internal prototype to avoid an error.
41715    Use char because int might match the return type of a GCC
41716    builtin and then its argument prototype would still apply.  */
41717 #ifdef __cplusplus
41718 extern "C"
41719 #endif
41720 char getmntent ();
41721 int
41722 main ()
41723 {
41724 return getmntent ();
41725   ;
41726   return 0;
41727 }
41728 _ACEOF
41729 for ac_lib in '' sun seq gen; do
41730   if test -z "$ac_lib"; then
41731     ac_res="none required"
41732   else
41733     ac_res=-l$ac_lib
41734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41735   fi
41736   rm -f conftest.$ac_objext conftest$ac_exeext
41737 if { (ac_try="$ac_link"
41738 case "(($ac_try" in
41739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41740   *) ac_try_echo=$ac_try;;
41741 esac
41742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41743 $as_echo "$ac_try_echo") >&5
41744   (eval "$ac_link") 2>conftest.er1
41745   ac_status=$?
41746   grep -v '^ *+' conftest.er1 >conftest.err
41747   rm -f conftest.er1
41748   cat conftest.err >&5
41749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750   (exit $ac_status); } && {
41751          test -z "$ac_c_werror_flag" ||
41752          test ! -s conftest.err
41753        } && test -s conftest$ac_exeext && {
41754          test "$cross_compiling" = yes ||
41755          $as_test_x conftest$ac_exeext
41756        }; then
41757   ac_cv_search_getmntent=$ac_res
41758 else
41759   $as_echo "$as_me: failed program was:" >&5
41760 sed 's/^/| /' conftest.$ac_ext >&5
41761
41762
41763 fi
41764
41765 rm -rf conftest.dSYM
41766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41767       conftest$ac_exeext
41768   if test "${ac_cv_search_getmntent+set}" = set; then
41769   break
41770 fi
41771 done
41772 if test "${ac_cv_search_getmntent+set}" = set; then
41773   :
41774 else
41775   ac_cv_search_getmntent=no
41776 fi
41777 rm conftest.$ac_ext
41778 LIBS=$ac_func_search_save_LIBS
41779 fi
41780 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
41781 $as_echo "$ac_cv_search_getmntent" >&6; }
41782 ac_res=$ac_cv_search_getmntent
41783 if test "$ac_res" != no; then
41784   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41785   ac_cv_func_getmntent=yes
41786
41787 cat >>confdefs.h <<\_ACEOF
41788 #define HAVE_GETMNTENT 1
41789 _ACEOF
41790
41791 else
41792   ac_cv_func_getmntent=no
41793 fi
41794
41795
41796 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
41797 $as_echo_n "checking whether closedir returns void... " >&6; }
41798 if test "${ac_cv_func_closedir_void+set}" = set; then
41799   $as_echo_n "(cached) " >&6
41800 else
41801   if test "$cross_compiling" = yes; then
41802   ac_cv_func_closedir_void=yes
41803 else
41804   cat >conftest.$ac_ext <<_ACEOF
41805 /* confdefs.h.  */
41806 _ACEOF
41807 cat confdefs.h >>conftest.$ac_ext
41808 cat >>conftest.$ac_ext <<_ACEOF
41809 /* end confdefs.h.  */
41810 $ac_includes_default
41811 #include <$ac_header_dirent>
41812 #ifndef __cplusplus
41813 int closedir ();
41814 #endif
41815
41816 int
41817 main ()
41818 {
41819 return closedir (opendir (".")) != 0;
41820   ;
41821   return 0;
41822 }
41823 _ACEOF
41824 rm -f conftest$ac_exeext
41825 if { (ac_try="$ac_link"
41826 case "(($ac_try" in
41827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41828   *) ac_try_echo=$ac_try;;
41829 esac
41830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41831 $as_echo "$ac_try_echo") >&5
41832   (eval "$ac_link") 2>&5
41833   ac_status=$?
41834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41836   { (case "(($ac_try" in
41837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41838   *) ac_try_echo=$ac_try;;
41839 esac
41840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41841 $as_echo "$ac_try_echo") >&5
41842   (eval "$ac_try") 2>&5
41843   ac_status=$?
41844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); }; }; then
41846   ac_cv_func_closedir_void=no
41847 else
41848   $as_echo "$as_me: program exited with status $ac_status" >&5
41849 $as_echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41851
41852 ( exit $ac_status )
41853 ac_cv_func_closedir_void=yes
41854 fi
41855 rm -rf conftest.dSYM
41856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41857 fi
41858
41859
41860 fi
41861 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
41862 $as_echo "$ac_cv_func_closedir_void" >&6; }
41863 if test $ac_cv_func_closedir_void = yes; then
41864
41865 cat >>confdefs.h <<\_ACEOF
41866 #define CLOSEDIR_VOID 1
41867 _ACEOF
41868
41869 fi
41870
41871 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
41872 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
41873 if test "${ac_cv_func_setpgrp_void+set}" = set; then
41874   $as_echo_n "(cached) " >&6
41875 else
41876   if test "$cross_compiling" = yes; then
41877   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
41878 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
41879    { (exit 1); exit 1; }; }
41880 else
41881   cat >conftest.$ac_ext <<_ACEOF
41882 /* confdefs.h.  */
41883 _ACEOF
41884 cat confdefs.h >>conftest.$ac_ext
41885 cat >>conftest.$ac_ext <<_ACEOF
41886 /* end confdefs.h.  */
41887 $ac_includes_default
41888 int
41889 main ()
41890 {
41891 /* If this system has a BSD-style setpgrp which takes arguments,
41892   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
41893   exit successfully. */
41894   return setpgrp (1,1) != -1;
41895   ;
41896   return 0;
41897 }
41898 _ACEOF
41899 rm -f conftest$ac_exeext
41900 if { (ac_try="$ac_link"
41901 case "(($ac_try" in
41902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41903   *) ac_try_echo=$ac_try;;
41904 esac
41905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41906 $as_echo "$ac_try_echo") >&5
41907   (eval "$ac_link") 2>&5
41908   ac_status=$?
41909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41911   { (case "(($ac_try" in
41912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41913   *) ac_try_echo=$ac_try;;
41914 esac
41915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41916 $as_echo "$ac_try_echo") >&5
41917   (eval "$ac_try") 2>&5
41918   ac_status=$?
41919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920   (exit $ac_status); }; }; then
41921   ac_cv_func_setpgrp_void=no
41922 else
41923   $as_echo "$as_me: program exited with status $ac_status" >&5
41924 $as_echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41926
41927 ( exit $ac_status )
41928 ac_cv_func_setpgrp_void=yes
41929 fi
41930 rm -rf conftest.dSYM
41931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41932 fi
41933
41934
41935 fi
41936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
41937 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
41938 if test $ac_cv_func_setpgrp_void = yes; then
41939
41940 cat >>confdefs.h <<\_ACEOF
41941 #define SETPGRP_VOID 1
41942 _ACEOF
41943
41944 fi
41945             # AC_FUNC_FNMATCH    dnl use local version
41946
41947 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
41948 $as_echo_n "checking for gettext in -lintl... " >&6; }
41949 if test "${ac_cv_lib_intl_gettext+set}" = set; then
41950   $as_echo_n "(cached) " >&6
41951 else
41952   ac_check_lib_save_LIBS=$LIBS
41953 LIBS="-lintl  $LIBS"
41954 cat >conftest.$ac_ext <<_ACEOF
41955 /* confdefs.h.  */
41956 _ACEOF
41957 cat confdefs.h >>conftest.$ac_ext
41958 cat >>conftest.$ac_ext <<_ACEOF
41959 /* end confdefs.h.  */
41960
41961 /* Override any GCC internal prototype to avoid an error.
41962    Use char because int might match the return type of a GCC
41963    builtin and then its argument prototype would still apply.  */
41964 #ifdef __cplusplus
41965 extern "C"
41966 #endif
41967 char gettext ();
41968 int
41969 main ()
41970 {
41971 return gettext ();
41972   ;
41973   return 0;
41974 }
41975 _ACEOF
41976 rm -f conftest.$ac_objext conftest$ac_exeext
41977 if { (ac_try="$ac_link"
41978 case "(($ac_try" in
41979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41980   *) ac_try_echo=$ac_try;;
41981 esac
41982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41983 $as_echo "$ac_try_echo") >&5
41984   (eval "$ac_link") 2>conftest.er1
41985   ac_status=$?
41986   grep -v '^ *+' conftest.er1 >conftest.err
41987   rm -f conftest.er1
41988   cat conftest.err >&5
41989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990   (exit $ac_status); } && {
41991          test -z "$ac_c_werror_flag" ||
41992          test ! -s conftest.err
41993        } && test -s conftest$ac_exeext && {
41994          test "$cross_compiling" = yes ||
41995          $as_test_x conftest$ac_exeext
41996        }; then
41997   ac_cv_lib_intl_gettext=yes
41998 else
41999   $as_echo "$as_me: failed program was:" >&5
42000 sed 's/^/| /' conftest.$ac_ext >&5
42001
42002         ac_cv_lib_intl_gettext=no
42003 fi
42004
42005 rm -rf conftest.dSYM
42006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42007       conftest$ac_exeext conftest.$ac_ext
42008 LIBS=$ac_check_lib_save_LIBS
42009 fi
42010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
42011 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
42012 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
42013   LIBS="$LIBS -lintl"
42014 fi
42015
42016
42017
42018 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
42019 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
42020 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
42021   $as_echo_n "(cached) " >&6
42022 else
42023   ac_check_lib_save_LIBS=$LIBS
42024 LIBS="-lsun  $LIBS"
42025 cat >conftest.$ac_ext <<_ACEOF
42026 /* confdefs.h.  */
42027 _ACEOF
42028 cat confdefs.h >>conftest.$ac_ext
42029 cat >>conftest.$ac_ext <<_ACEOF
42030 /* end confdefs.h.  */
42031
42032 /* Override any GCC internal prototype to avoid an error.
42033    Use char because int might match the return type of a GCC
42034    builtin and then its argument prototype would still apply.  */
42035 #ifdef __cplusplus
42036 extern "C"
42037 #endif
42038 char getpwnam ();
42039 int
42040 main ()
42041 {
42042 return getpwnam ();
42043   ;
42044   return 0;
42045 }
42046 _ACEOF
42047 rm -f conftest.$ac_objext conftest$ac_exeext
42048 if { (ac_try="$ac_link"
42049 case "(($ac_try" in
42050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42051   *) ac_try_echo=$ac_try;;
42052 esac
42053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42054 $as_echo "$ac_try_echo") >&5
42055   (eval "$ac_link") 2>conftest.er1
42056   ac_status=$?
42057   grep -v '^ *+' conftest.er1 >conftest.err
42058   rm -f conftest.er1
42059   cat conftest.err >&5
42060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); } && {
42062          test -z "$ac_c_werror_flag" ||
42063          test ! -s conftest.err
42064        } && test -s conftest$ac_exeext && {
42065          test "$cross_compiling" = yes ||
42066          $as_test_x conftest$ac_exeext
42067        }; then
42068   ac_cv_lib_sun_getpwnam=yes
42069 else
42070   $as_echo "$as_me: failed program was:" >&5
42071 sed 's/^/| /' conftest.$ac_ext >&5
42072
42073         ac_cv_lib_sun_getpwnam=no
42074 fi
42075
42076 rm -rf conftest.dSYM
42077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42078       conftest$ac_exeext conftest.$ac_ext
42079 LIBS=$ac_check_lib_save_LIBS
42080 fi
42081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
42082 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
42083 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
42084   cat >>confdefs.h <<_ACEOF
42085 #define HAVE_LIBSUN 1
42086 _ACEOF
42087
42088   LIBS="-lsun $LIBS"
42089
42090 fi
42091
42092
42093
42094 for ac_header in zlib.h
42095 do
42096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42098   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42099 $as_echo_n "checking for $ac_header... " >&6; }
42100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42101   $as_echo_n "(cached) " >&6
42102 fi
42103 ac_res=`eval 'as_val=${'$as_ac_Header'}
42104                  $as_echo "$as_val"'`
42105                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42106 $as_echo "$ac_res" >&6; }
42107 else
42108   # Is the header compilable?
42109 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42110 $as_echo_n "checking $ac_header usability... " >&6; }
42111 cat >conftest.$ac_ext <<_ACEOF
42112 /* confdefs.h.  */
42113 _ACEOF
42114 cat confdefs.h >>conftest.$ac_ext
42115 cat >>conftest.$ac_ext <<_ACEOF
42116 /* end confdefs.h.  */
42117 $ac_includes_default
42118 #include <$ac_header>
42119 _ACEOF
42120 rm -f conftest.$ac_objext
42121 if { (ac_try="$ac_compile"
42122 case "(($ac_try" in
42123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42124   *) ac_try_echo=$ac_try;;
42125 esac
42126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42127 $as_echo "$ac_try_echo") >&5
42128   (eval "$ac_compile") 2>conftest.er1
42129   ac_status=$?
42130   grep -v '^ *+' conftest.er1 >conftest.err
42131   rm -f conftest.er1
42132   cat conftest.err >&5
42133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134   (exit $ac_status); } && {
42135          test -z "$ac_c_werror_flag" ||
42136          test ! -s conftest.err
42137        } && test -s conftest.$ac_objext; then
42138   ac_header_compiler=yes
42139 else
42140   $as_echo "$as_me: failed program was:" >&5
42141 sed 's/^/| /' conftest.$ac_ext >&5
42142
42143         ac_header_compiler=no
42144 fi
42145
42146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42148 $as_echo "$ac_header_compiler" >&6; }
42149
42150 # Is the header present?
42151 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42152 $as_echo_n "checking $ac_header presence... " >&6; }
42153 cat >conftest.$ac_ext <<_ACEOF
42154 /* confdefs.h.  */
42155 _ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h.  */
42159 #include <$ac_header>
42160 _ACEOF
42161 if { (ac_try="$ac_cpp conftest.$ac_ext"
42162 case "(($ac_try" in
42163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42164   *) ac_try_echo=$ac_try;;
42165 esac
42166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42167 $as_echo "$ac_try_echo") >&5
42168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42169   ac_status=$?
42170   grep -v '^ *+' conftest.er1 >conftest.err
42171   rm -f conftest.er1
42172   cat conftest.err >&5
42173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174   (exit $ac_status); } >/dev/null && {
42175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42176          test ! -s conftest.err
42177        }; then
42178   ac_header_preproc=yes
42179 else
42180   $as_echo "$as_me: failed program was:" >&5
42181 sed 's/^/| /' conftest.$ac_ext >&5
42182
42183   ac_header_preproc=no
42184 fi
42185
42186 rm -f conftest.err conftest.$ac_ext
42187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42188 $as_echo "$ac_header_preproc" >&6; }
42189
42190 # So?  What about this header?
42191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42192   yes:no: )
42193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42194 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42197     ac_header_preproc=yes
42198     ;;
42199   no:yes:* )
42200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42201 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42203 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42205 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42207 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42208     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42211 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42212
42213     ;;
42214 esac
42215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42216 $as_echo_n "checking for $ac_header... " >&6; }
42217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42218   $as_echo_n "(cached) " >&6
42219 else
42220   eval "$as_ac_Header=\$ac_header_preproc"
42221 fi
42222 ac_res=`eval 'as_val=${'$as_ac_Header'}
42223                  $as_echo "$as_val"'`
42224                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42225 $as_echo "$ac_res" >&6; }
42226
42227 fi
42228 as_val=`eval 'as_val=${'$as_ac_Header'}
42229                  $as_echo "$as_val"'`
42230    if test "x$as_val" = x""yes; then
42231   cat >>confdefs.h <<_ACEOF
42232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42233 _ACEOF
42234
42235 fi
42236
42237 done
42238
42239 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
42240 $as_echo_n "checking for deflate in -lz... " >&6; }
42241 if test "${ac_cv_lib_z_deflate+set}" = set; then
42242   $as_echo_n "(cached) " >&6
42243 else
42244   ac_check_lib_save_LIBS=$LIBS
42245 LIBS="-lz  $LIBS"
42246 cat >conftest.$ac_ext <<_ACEOF
42247 /* confdefs.h.  */
42248 _ACEOF
42249 cat confdefs.h >>conftest.$ac_ext
42250 cat >>conftest.$ac_ext <<_ACEOF
42251 /* end confdefs.h.  */
42252
42253 /* Override any GCC internal prototype to avoid an error.
42254    Use char because int might match the return type of a GCC
42255    builtin and then its argument prototype would still apply.  */
42256 #ifdef __cplusplus
42257 extern "C"
42258 #endif
42259 char deflate ();
42260 int
42261 main ()
42262 {
42263 return deflate ();
42264   ;
42265   return 0;
42266 }
42267 _ACEOF
42268 rm -f conftest.$ac_objext conftest$ac_exeext
42269 if { (ac_try="$ac_link"
42270 case "(($ac_try" in
42271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42272   *) ac_try_echo=$ac_try;;
42273 esac
42274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42275 $as_echo "$ac_try_echo") >&5
42276   (eval "$ac_link") 2>conftest.er1
42277   ac_status=$?
42278   grep -v '^ *+' conftest.er1 >conftest.err
42279   rm -f conftest.er1
42280   cat conftest.err >&5
42281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282   (exit $ac_status); } && {
42283          test -z "$ac_c_werror_flag" ||
42284          test ! -s conftest.err
42285        } && test -s conftest$ac_exeext && {
42286          test "$cross_compiling" = yes ||
42287          $as_test_x conftest$ac_exeext
42288        }; then
42289   ac_cv_lib_z_deflate=yes
42290 else
42291   $as_echo "$as_me: failed program was:" >&5
42292 sed 's/^/| /' conftest.$ac_ext >&5
42293
42294         ac_cv_lib_z_deflate=no
42295 fi
42296
42297 rm -rf conftest.dSYM
42298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42299       conftest$ac_exeext conftest.$ac_ext
42300 LIBS=$ac_check_lib_save_LIBS
42301 fi
42302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
42303 $as_echo "$ac_cv_lib_z_deflate" >&6; }
42304 if test "x$ac_cv_lib_z_deflate" = x""yes; then
42305   ZLIBS="-lz"
42306 fi
42307
42308 have_zlib=no
42309 if test x$ZLIBS = x-lz; then
42310    cat >>confdefs.h <<\_ACEOF
42311 #define HAVE_LIBZ 1
42312 _ACEOF
42313
42314    have_zlib=yes
42315 fi
42316
42317
42318 support_acl=auto
42319 # Check whether --enable-acl was given.
42320 if test "${enable_acl+set}" = set; then
42321   enableval=$enable_acl;
42322        if test x$enableval = xyes; then
42323           support_acl=yes
42324        elif test x$enableval = xno; then
42325           support_acl=no
42326        fi
42327
42328
42329 fi
42330
42331
42332 have_acl=no
42333 have_extended_acl=no
42334 if test x$support_acl = xyes -o x$support_acl = xauto; then
42335    if test "${ac_cv_header_sys_acl_h+set}" = set; then
42336   { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42337 $as_echo_n "checking for sys/acl.h... " >&6; }
42338 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42339   $as_echo_n "(cached) " >&6
42340 fi
42341 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42342 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42343 else
42344   # Is the header compilable?
42345 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
42346 $as_echo_n "checking sys/acl.h usability... " >&6; }
42347 cat >conftest.$ac_ext <<_ACEOF
42348 /* confdefs.h.  */
42349 _ACEOF
42350 cat confdefs.h >>conftest.$ac_ext
42351 cat >>conftest.$ac_ext <<_ACEOF
42352 /* end confdefs.h.  */
42353 $ac_includes_default
42354 #include <sys/acl.h>
42355 _ACEOF
42356 rm -f conftest.$ac_objext
42357 if { (ac_try="$ac_compile"
42358 case "(($ac_try" in
42359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42360   *) ac_try_echo=$ac_try;;
42361 esac
42362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42363 $as_echo "$ac_try_echo") >&5
42364   (eval "$ac_compile") 2>conftest.er1
42365   ac_status=$?
42366   grep -v '^ *+' conftest.er1 >conftest.err
42367   rm -f conftest.er1
42368   cat conftest.err >&5
42369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370   (exit $ac_status); } && {
42371          test -z "$ac_c_werror_flag" ||
42372          test ! -s conftest.err
42373        } && test -s conftest.$ac_objext; then
42374   ac_header_compiler=yes
42375 else
42376   $as_echo "$as_me: failed program was:" >&5
42377 sed 's/^/| /' conftest.$ac_ext >&5
42378
42379         ac_header_compiler=no
42380 fi
42381
42382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42384 $as_echo "$ac_header_compiler" >&6; }
42385
42386 # Is the header present?
42387 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
42388 $as_echo_n "checking sys/acl.h presence... " >&6; }
42389 cat >conftest.$ac_ext <<_ACEOF
42390 /* confdefs.h.  */
42391 _ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h.  */
42395 #include <sys/acl.h>
42396 _ACEOF
42397 if { (ac_try="$ac_cpp conftest.$ac_ext"
42398 case "(($ac_try" in
42399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42400   *) ac_try_echo=$ac_try;;
42401 esac
42402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42403 $as_echo "$ac_try_echo") >&5
42404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42405   ac_status=$?
42406   grep -v '^ *+' conftest.er1 >conftest.err
42407   rm -f conftest.er1
42408   cat conftest.err >&5
42409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410   (exit $ac_status); } >/dev/null && {
42411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42412          test ! -s conftest.err
42413        }; then
42414   ac_header_preproc=yes
42415 else
42416   $as_echo "$as_me: failed program was:" >&5
42417 sed 's/^/| /' conftest.$ac_ext >&5
42418
42419   ac_header_preproc=no
42420 fi
42421
42422 rm -f conftest.err conftest.$ac_ext
42423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42424 $as_echo "$ac_header_preproc" >&6; }
42425
42426 # So?  What about this header?
42427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42428   yes:no: )
42429     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42430 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42431     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
42432 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
42433     ac_header_preproc=yes
42434     ;;
42435   no:yes:* )
42436     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
42437 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
42438     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
42439 $as_echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
42440     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
42441 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
42442     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
42443 $as_echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42444     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
42445 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
42446     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
42447 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
42448
42449     ;;
42450 esac
42451 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42452 $as_echo_n "checking for sys/acl.h... " >&6; }
42453 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42454   $as_echo_n "(cached) " >&6
42455 else
42456   ac_cv_header_sys_acl_h=$ac_header_preproc
42457 fi
42458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42459 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42460
42461 fi
42462 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
42463
42464 cat >>confdefs.h <<\_ACEOF
42465 #define HAVE_SYS_ACL_H 1
42466 _ACEOF
42467
42468 fi
42469
42470
42471    { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
42472 $as_echo_n "checking for acl_get_file... " >&6; }
42473 if test "${ac_cv_func_acl_get_file+set}" = set; then
42474   $as_echo_n "(cached) " >&6
42475 else
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 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
42483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42484 #define acl_get_file innocuous_acl_get_file
42485
42486 /* System header to define __stub macros and hopefully few prototypes,
42487     which can conflict with char acl_get_file (); below.
42488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42489     <limits.h> exists even on freestanding compilers.  */
42490
42491 #ifdef __STDC__
42492 # include <limits.h>
42493 #else
42494 # include <assert.h>
42495 #endif
42496
42497 #undef acl_get_file
42498
42499 /* Override any GCC internal prototype to avoid an error.
42500    Use char because int might match the return type of a GCC
42501    builtin and then its argument prototype would still apply.  */
42502 #ifdef __cplusplus
42503 extern "C"
42504 #endif
42505 char acl_get_file ();
42506 /* The GNU C library defines this for functions which it implements
42507     to always fail with ENOSYS.  Some functions are actually named
42508     something starting with __ and the normal name is an alias.  */
42509 #if defined __stub_acl_get_file || defined __stub___acl_get_file
42510 choke me
42511 #endif
42512
42513 int
42514 main ()
42515 {
42516 return acl_get_file ();
42517   ;
42518   return 0;
42519 }
42520 _ACEOF
42521 rm -f conftest.$ac_objext conftest$ac_exeext
42522 if { (ac_try="$ac_link"
42523 case "(($ac_try" in
42524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42525   *) ac_try_echo=$ac_try;;
42526 esac
42527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42528 $as_echo "$ac_try_echo") >&5
42529   (eval "$ac_link") 2>conftest.er1
42530   ac_status=$?
42531   grep -v '^ *+' conftest.er1 >conftest.err
42532   rm -f conftest.er1
42533   cat conftest.err >&5
42534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535   (exit $ac_status); } && {
42536          test -z "$ac_c_werror_flag" ||
42537          test ! -s conftest.err
42538        } && test -s conftest$ac_exeext && {
42539          test "$cross_compiling" = yes ||
42540          $as_test_x conftest$ac_exeext
42541        }; then
42542   ac_cv_func_acl_get_file=yes
42543 else
42544   $as_echo "$as_me: failed program was:" >&5
42545 sed 's/^/| /' conftest.$ac_ext >&5
42546
42547         ac_cv_func_acl_get_file=no
42548 fi
42549
42550 rm -rf conftest.dSYM
42551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42552       conftest$ac_exeext conftest.$ac_ext
42553 fi
42554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
42555 $as_echo "$ac_cv_func_acl_get_file" >&6; }
42556 if test "x$ac_cv_func_acl_get_file" = x""yes; then
42557
42558           have_acl=yes
42559
42560 else
42561
42562           { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
42563 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
42564 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
42565   $as_echo_n "(cached) " >&6
42566 else
42567   ac_check_lib_save_LIBS=$LIBS
42568 LIBS="-lacl  $LIBS"
42569 cat >conftest.$ac_ext <<_ACEOF
42570 /* confdefs.h.  */
42571 _ACEOF
42572 cat confdefs.h >>conftest.$ac_ext
42573 cat >>conftest.$ac_ext <<_ACEOF
42574 /* end confdefs.h.  */
42575
42576 /* Override any GCC internal prototype to avoid an error.
42577    Use char because int might match the return type of a GCC
42578    builtin and then its argument prototype would still apply.  */
42579 #ifdef __cplusplus
42580 extern "C"
42581 #endif
42582 char acl_get_file ();
42583 int
42584 main ()
42585 {
42586 return acl_get_file ();
42587   ;
42588   return 0;
42589 }
42590 _ACEOF
42591 rm -f conftest.$ac_objext conftest$ac_exeext
42592 if { (ac_try="$ac_link"
42593 case "(($ac_try" in
42594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42595   *) ac_try_echo=$ac_try;;
42596 esac
42597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42598 $as_echo "$ac_try_echo") >&5
42599   (eval "$ac_link") 2>conftest.er1
42600   ac_status=$?
42601   grep -v '^ *+' conftest.er1 >conftest.err
42602   rm -f conftest.er1
42603   cat conftest.err >&5
42604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42605   (exit $ac_status); } && {
42606          test -z "$ac_c_werror_flag" ||
42607          test ! -s conftest.err
42608        } && test -s conftest$ac_exeext && {
42609          test "$cross_compiling" = yes ||
42610          $as_test_x conftest$ac_exeext
42611        }; then
42612   ac_cv_lib_acl_acl_get_file=yes
42613 else
42614   $as_echo "$as_me: failed program was:" >&5
42615 sed 's/^/| /' conftest.$ac_ext >&5
42616
42617         ac_cv_lib_acl_acl_get_file=no
42618 fi
42619
42620 rm -rf conftest.dSYM
42621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42622       conftest$ac_exeext conftest.$ac_ext
42623 LIBS=$ac_check_lib_save_LIBS
42624 fi
42625 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
42626 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
42627 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
42628
42629                  have_acl=yes;
42630                  FDLIBS="-lacl $FDLIBS"
42631
42632 else
42633
42634                  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
42635 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
42636 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42637   $as_echo_n "(cached) " >&6
42638 else
42639   ac_check_lib_save_LIBS=$LIBS
42640 LIBS="-lpacl  $LIBS"
42641 cat >conftest.$ac_ext <<_ACEOF
42642 /* confdefs.h.  */
42643 _ACEOF
42644 cat confdefs.h >>conftest.$ac_ext
42645 cat >>conftest.$ac_ext <<_ACEOF
42646 /* end confdefs.h.  */
42647
42648 /* Override any GCC internal prototype to avoid an error.
42649    Use char because int might match the return type of a GCC
42650    builtin and then its argument prototype would still apply.  */
42651 #ifdef __cplusplus
42652 extern "C"
42653 #endif
42654 char acl_get_file ();
42655 int
42656 main ()
42657 {
42658 return acl_get_file ();
42659   ;
42660   return 0;
42661 }
42662 _ACEOF
42663 rm -f conftest.$ac_objext conftest$ac_exeext
42664 if { (ac_try="$ac_link"
42665 case "(($ac_try" in
42666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42667   *) ac_try_echo=$ac_try;;
42668 esac
42669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42670 $as_echo "$ac_try_echo") >&5
42671   (eval "$ac_link") 2>conftest.er1
42672   ac_status=$?
42673   grep -v '^ *+' conftest.er1 >conftest.err
42674   rm -f conftest.er1
42675   cat conftest.err >&5
42676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42677   (exit $ac_status); } && {
42678          test -z "$ac_c_werror_flag" ||
42679          test ! -s conftest.err
42680        } && test -s conftest$ac_exeext && {
42681          test "$cross_compiling" = yes ||
42682          $as_test_x conftest$ac_exeext
42683        }; then
42684   ac_cv_lib_pacl_acl_get_file=yes
42685 else
42686   $as_echo "$as_me: failed program was:" >&5
42687 sed 's/^/| /' conftest.$ac_ext >&5
42688
42689         ac_cv_lib_pacl_acl_get_file=no
42690 fi
42691
42692 rm -rf conftest.dSYM
42693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42694       conftest$ac_exeext conftest.$ac_ext
42695 LIBS=$ac_check_lib_save_LIBS
42696 fi
42697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
42698 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
42699 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
42700
42701                         have_acl=yes;
42702                         FDLIBS="-lpacl $FDLIBS"
42703
42704 else
42705
42706                         { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
42707 $as_echo_n "checking for acltotext in -lsec... " >&6; }
42708 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
42709   $as_echo_n "(cached) " >&6
42710 else
42711   ac_check_lib_save_LIBS=$LIBS
42712 LIBS="-lsec  $LIBS"
42713 cat >conftest.$ac_ext <<_ACEOF
42714 /* confdefs.h.  */
42715 _ACEOF
42716 cat confdefs.h >>conftest.$ac_ext
42717 cat >>conftest.$ac_ext <<_ACEOF
42718 /* end confdefs.h.  */
42719
42720 /* Override any GCC internal prototype to avoid an error.
42721    Use char because int might match the return type of a GCC
42722    builtin and then its argument prototype would still apply.  */
42723 #ifdef __cplusplus
42724 extern "C"
42725 #endif
42726 char acltotext ();
42727 int
42728 main ()
42729 {
42730 return acltotext ();
42731   ;
42732   return 0;
42733 }
42734 _ACEOF
42735 rm -f conftest.$ac_objext conftest$ac_exeext
42736 if { (ac_try="$ac_link"
42737 case "(($ac_try" in
42738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42739   *) ac_try_echo=$ac_try;;
42740 esac
42741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42742 $as_echo "$ac_try_echo") >&5
42743   (eval "$ac_link") 2>conftest.er1
42744   ac_status=$?
42745   grep -v '^ *+' conftest.er1 >conftest.err
42746   rm -f conftest.er1
42747   cat conftest.err >&5
42748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42749   (exit $ac_status); } && {
42750          test -z "$ac_c_werror_flag" ||
42751          test ! -s conftest.err
42752        } && test -s conftest$ac_exeext && {
42753          test "$cross_compiling" = yes ||
42754          $as_test_x conftest$ac_exeext
42755        }; then
42756   ac_cv_lib_sec_acltotext=yes
42757 else
42758   $as_echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42760
42761         ac_cv_lib_sec_acltotext=no
42762 fi
42763
42764 rm -rf conftest.dSYM
42765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42766       conftest$ac_exeext conftest.$ac_ext
42767 LIBS=$ac_check_lib_save_LIBS
42768 fi
42769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
42770 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
42771 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
42772
42773                                have_acl=yes;
42774                                FDLIBS="-lsec $FDLIBS"
42775
42776                                { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
42777 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
42778 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
42779   $as_echo_n "(cached) " >&6
42780 else
42781   ac_check_lib_save_LIBS=$LIBS
42782 LIBS="-lsec  $LIBS"
42783 cat >conftest.$ac_ext <<_ACEOF
42784 /* confdefs.h.  */
42785 _ACEOF
42786 cat confdefs.h >>conftest.$ac_ext
42787 cat >>conftest.$ac_ext <<_ACEOF
42788 /* end confdefs.h.  */
42789
42790 /* Override any GCC internal prototype to avoid an error.
42791    Use char because int might match the return type of a GCC
42792    builtin and then its argument prototype would still apply.  */
42793 #ifdef __cplusplus
42794 extern "C"
42795 #endif
42796 char acl_totext ();
42797 int
42798 main ()
42799 {
42800 return acl_totext ();
42801   ;
42802   return 0;
42803 }
42804 _ACEOF
42805 rm -f conftest.$ac_objext conftest$ac_exeext
42806 if { (ac_try="$ac_link"
42807 case "(($ac_try" in
42808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42809   *) ac_try_echo=$ac_try;;
42810 esac
42811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42812 $as_echo "$ac_try_echo") >&5
42813   (eval "$ac_link") 2>conftest.er1
42814   ac_status=$?
42815   grep -v '^ *+' conftest.er1 >conftest.err
42816   rm -f conftest.er1
42817   cat conftest.err >&5
42818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); } && {
42820          test -z "$ac_c_werror_flag" ||
42821          test ! -s conftest.err
42822        } && test -s conftest$ac_exeext && {
42823          test "$cross_compiling" = yes ||
42824          $as_test_x conftest$ac_exeext
42825        }; then
42826   ac_cv_lib_sec_acl_totext=yes
42827 else
42828   $as_echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42830
42831         ac_cv_lib_sec_acl_totext=no
42832 fi
42833
42834 rm -rf conftest.dSYM
42835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42836       conftest$ac_exeext conftest.$ac_ext
42837 LIBS=$ac_check_lib_save_LIBS
42838 fi
42839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
42840 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
42841 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
42842
42843                                       have_extended_acl=yes
42844
42845
42846 fi
42847
42848
42849
42850 fi
42851
42852
42853
42854 fi
42855
42856
42857
42858 fi
42859
42860
42861
42862 fi
42863
42864
42865    if test x$support_acl = xyes -a $have_acl != yes; then
42866       { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
42867   please either load the acl libraries or rerun configure without --enable-acl" >&5
42868 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
42869   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
42870    { (exit 1); exit 1; }; }
42871    else
42872       if test $have_acl = yes; then
42873
42874 cat >>confdefs.h <<\_ACEOF
42875 #define HAVE_ACL 1
42876 _ACEOF
42877
42878       fi
42879
42880       if test $have_extended_acl = yes; then
42881
42882 cat >>confdefs.h <<\_ACEOF
42883 #define HAVE_EXTENDED_ACL 1
42884 _ACEOF
42885
42886       fi
42887    fi
42888 fi
42889
42890 support_xattr=auto
42891 # Check whether --enable-xattr was given.
42892 if test "${enable_xattr+set}" = set; then
42893   enableval=$enable_xattr;
42894        if test x$enableval = xyes; then
42895           support_xattr=yes
42896        elif test x$enableval = xno; then
42897           support_xattr=no
42898        fi
42899
42900
42901 fi
42902
42903
42904 have_xattr=no
42905 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42906             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42907   { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42908 $as_echo_n "checking for sys/extattr.h... " >&6; }
42909 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42910   $as_echo_n "(cached) " >&6
42911 fi
42912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42913 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
42914 else
42915   # Is the header compilable?
42916 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42917 $as_echo_n "checking sys/extattr.h usability... " >&6; }
42918 cat >conftest.$ac_ext <<_ACEOF
42919 /* confdefs.h.  */
42920 _ACEOF
42921 cat confdefs.h >>conftest.$ac_ext
42922 cat >>conftest.$ac_ext <<_ACEOF
42923 /* end confdefs.h.  */
42924 $ac_includes_default
42925 #include <sys/extattr.h>
42926 _ACEOF
42927 rm -f conftest.$ac_objext
42928 if { (ac_try="$ac_compile"
42929 case "(($ac_try" in
42930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42931   *) ac_try_echo=$ac_try;;
42932 esac
42933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42934 $as_echo "$ac_try_echo") >&5
42935   (eval "$ac_compile") 2>conftest.er1
42936   ac_status=$?
42937   grep -v '^ *+' conftest.er1 >conftest.err
42938   rm -f conftest.er1
42939   cat conftest.err >&5
42940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941   (exit $ac_status); } && {
42942          test -z "$ac_c_werror_flag" ||
42943          test ! -s conftest.err
42944        } && test -s conftest.$ac_objext; then
42945   ac_header_compiler=yes
42946 else
42947   $as_echo "$as_me: failed program was:" >&5
42948 sed 's/^/| /' conftest.$ac_ext >&5
42949
42950         ac_header_compiler=no
42951 fi
42952
42953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42955 $as_echo "$ac_header_compiler" >&6; }
42956
42957 # Is the header present?
42958 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42959 $as_echo_n "checking sys/extattr.h presence... " >&6; }
42960 cat >conftest.$ac_ext <<_ACEOF
42961 /* confdefs.h.  */
42962 _ACEOF
42963 cat confdefs.h >>conftest.$ac_ext
42964 cat >>conftest.$ac_ext <<_ACEOF
42965 /* end confdefs.h.  */
42966 #include <sys/extattr.h>
42967 _ACEOF
42968 if { (ac_try="$ac_cpp conftest.$ac_ext"
42969 case "(($ac_try" in
42970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42971   *) ac_try_echo=$ac_try;;
42972 esac
42973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42974 $as_echo "$ac_try_echo") >&5
42975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42976   ac_status=$?
42977   grep -v '^ *+' conftest.er1 >conftest.err
42978   rm -f conftest.er1
42979   cat conftest.err >&5
42980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981   (exit $ac_status); } >/dev/null && {
42982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42983          test ! -s conftest.err
42984        }; then
42985   ac_header_preproc=yes
42986 else
42987   $as_echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42989
42990   ac_header_preproc=no
42991 fi
42992
42993 rm -f conftest.err conftest.$ac_ext
42994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42995 $as_echo "$ac_header_preproc" >&6; }
42996
42997 # So?  What about this header?
42998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42999   yes:no: )
43000     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43001 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43002     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
43003 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
43004     ac_header_preproc=yes
43005     ;;
43006   no:yes:* )
43007     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
43008 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
43009     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
43010 $as_echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
43011     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
43012 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
43013     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43014 $as_echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43015     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
43016 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
43017     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
43018 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
43019
43020     ;;
43021 esac
43022 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43023 $as_echo_n "checking for sys/extattr.h... " >&6; }
43024 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43025   $as_echo_n "(cached) " >&6
43026 else
43027   ac_cv_header_sys_extattr_h=$ac_header_preproc
43028 fi
43029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43030 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43031
43032 fi
43033 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
43034
43035 cat >>confdefs.h <<\_ACEOF
43036 #define HAVE_SYS_EXTATTR_H 1
43037 _ACEOF
43038
43039 fi
43040
43041
43042    if test "${ac_cv_header_libutil_h+set}" = set; then
43043   { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43044 $as_echo_n "checking for libutil.h... " >&6; }
43045 if test "${ac_cv_header_libutil_h+set}" = set; then
43046   $as_echo_n "(cached) " >&6
43047 fi
43048 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43049 $as_echo "$ac_cv_header_libutil_h" >&6; }
43050 else
43051   # Is the header compilable?
43052 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
43053 $as_echo_n "checking libutil.h usability... " >&6; }
43054 cat >conftest.$ac_ext <<_ACEOF
43055 /* confdefs.h.  */
43056 _ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h.  */
43060 $ac_includes_default
43061 #include <libutil.h>
43062 _ACEOF
43063 rm -f conftest.$ac_objext
43064 if { (ac_try="$ac_compile"
43065 case "(($ac_try" in
43066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43067   *) ac_try_echo=$ac_try;;
43068 esac
43069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43070 $as_echo "$ac_try_echo") >&5
43071   (eval "$ac_compile") 2>conftest.er1
43072   ac_status=$?
43073   grep -v '^ *+' conftest.er1 >conftest.err
43074   rm -f conftest.er1
43075   cat conftest.err >&5
43076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43077   (exit $ac_status); } && {
43078          test -z "$ac_c_werror_flag" ||
43079          test ! -s conftest.err
43080        } && test -s conftest.$ac_objext; then
43081   ac_header_compiler=yes
43082 else
43083   $as_echo "$as_me: failed program was:" >&5
43084 sed 's/^/| /' conftest.$ac_ext >&5
43085
43086         ac_header_compiler=no
43087 fi
43088
43089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43091 $as_echo "$ac_header_compiler" >&6; }
43092
43093 # Is the header present?
43094 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
43095 $as_echo_n "checking libutil.h presence... " >&6; }
43096 cat >conftest.$ac_ext <<_ACEOF
43097 /* confdefs.h.  */
43098 _ACEOF
43099 cat confdefs.h >>conftest.$ac_ext
43100 cat >>conftest.$ac_ext <<_ACEOF
43101 /* end confdefs.h.  */
43102 #include <libutil.h>
43103 _ACEOF
43104 if { (ac_try="$ac_cpp conftest.$ac_ext"
43105 case "(($ac_try" in
43106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43107   *) ac_try_echo=$ac_try;;
43108 esac
43109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43110 $as_echo "$ac_try_echo") >&5
43111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43112   ac_status=$?
43113   grep -v '^ *+' conftest.er1 >conftest.err
43114   rm -f conftest.er1
43115   cat conftest.err >&5
43116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43117   (exit $ac_status); } >/dev/null && {
43118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43119          test ! -s conftest.err
43120        }; then
43121   ac_header_preproc=yes
43122 else
43123   $as_echo "$as_me: failed program was:" >&5
43124 sed 's/^/| /' conftest.$ac_ext >&5
43125
43126   ac_header_preproc=no
43127 fi
43128
43129 rm -f conftest.err conftest.$ac_ext
43130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43131 $as_echo "$ac_header_preproc" >&6; }
43132
43133 # So?  What about this header?
43134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43135   yes:no: )
43136     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
43137 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43138     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
43139 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
43140     ac_header_preproc=yes
43141     ;;
43142   no:yes:* )
43143     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
43144 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
43145     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
43146 $as_echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
43147     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
43148 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
43149     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
43150 $as_echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43151     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
43152 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
43153     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
43154 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
43155
43156     ;;
43157 esac
43158 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43159 $as_echo_n "checking for libutil.h... " >&6; }
43160 if test "${ac_cv_header_libutil_h+set}" = set; then
43161   $as_echo_n "(cached) " >&6
43162 else
43163   ac_cv_header_libutil_h=$ac_header_preproc
43164 fi
43165 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43166 $as_echo "$ac_cv_header_libutil_h" >&6; }
43167
43168 fi
43169 if test "x$ac_cv_header_libutil_h" = x""yes; then
43170
43171 cat >>confdefs.h <<\_ACEOF
43172 #define HAVE_LIBUTIL_H 1
43173 _ACEOF
43174
43175 fi
43176
43177
43178
43179
43180
43181 for ac_func in extattr_get_link extattr_set_link extattr_list_link
43182 do
43183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43184 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43185 $as_echo_n "checking for $ac_func... " >&6; }
43186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43187   $as_echo_n "(cached) " >&6
43188 else
43189   cat >conftest.$ac_ext <<_ACEOF
43190 /* confdefs.h.  */
43191 _ACEOF
43192 cat confdefs.h >>conftest.$ac_ext
43193 cat >>conftest.$ac_ext <<_ACEOF
43194 /* end confdefs.h.  */
43195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43197 #define $ac_func innocuous_$ac_func
43198
43199 /* System header to define __stub macros and hopefully few prototypes,
43200     which can conflict with char $ac_func (); below.
43201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43202     <limits.h> exists even on freestanding compilers.  */
43203
43204 #ifdef __STDC__
43205 # include <limits.h>
43206 #else
43207 # include <assert.h>
43208 #endif
43209
43210 #undef $ac_func
43211
43212 /* Override any GCC internal prototype to avoid an error.
43213    Use char because int might match the return type of a GCC
43214    builtin and then its argument prototype would still apply.  */
43215 #ifdef __cplusplus
43216 extern "C"
43217 #endif
43218 char $ac_func ();
43219 /* The GNU C library defines this for functions which it implements
43220     to always fail with ENOSYS.  Some functions are actually named
43221     something starting with __ and the normal name is an alias.  */
43222 #if defined __stub_$ac_func || defined __stub___$ac_func
43223 choke me
43224 #endif
43225
43226 int
43227 main ()
43228 {
43229 return $ac_func ();
43230   ;
43231   return 0;
43232 }
43233 _ACEOF
43234 rm -f conftest.$ac_objext conftest$ac_exeext
43235 if { (ac_try="$ac_link"
43236 case "(($ac_try" in
43237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43238   *) ac_try_echo=$ac_try;;
43239 esac
43240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43241 $as_echo "$ac_try_echo") >&5
43242   (eval "$ac_link") 2>conftest.er1
43243   ac_status=$?
43244   grep -v '^ *+' conftest.er1 >conftest.err
43245   rm -f conftest.er1
43246   cat conftest.err >&5
43247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248   (exit $ac_status); } && {
43249          test -z "$ac_c_werror_flag" ||
43250          test ! -s conftest.err
43251        } && test -s conftest$ac_exeext && {
43252          test "$cross_compiling" = yes ||
43253          $as_test_x conftest$ac_exeext
43254        }; then
43255   eval "$as_ac_var=yes"
43256 else
43257   $as_echo "$as_me: failed program was:" >&5
43258 sed 's/^/| /' conftest.$ac_ext >&5
43259
43260         eval "$as_ac_var=no"
43261 fi
43262
43263 rm -rf conftest.dSYM
43264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43265       conftest$ac_exeext conftest.$ac_ext
43266 fi
43267 ac_res=`eval 'as_val=${'$as_ac_var'}
43268                  $as_echo "$as_val"'`
43269                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43270 $as_echo "$ac_res" >&6; }
43271 as_val=`eval 'as_val=${'$as_ac_var'}
43272                  $as_echo "$as_val"'`
43273    if test "x$as_val" = x""yes; then
43274   cat >>confdefs.h <<_ACEOF
43275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43276 _ACEOF
43277
43278           have_xattr=yes
43279
43280 cat >>confdefs.h <<\_ACEOF
43281 #define HAVE_EXTATTR_GET_LINK 1
43282 _ACEOF
43283
43284
43285 cat >>confdefs.h <<\_ACEOF
43286 #define HAVE_EXTATTR_SET_LINK 1
43287 _ACEOF
43288
43289
43290 cat >>confdefs.h <<\_ACEOF
43291 #define HAVE_EXTATTR_LIST_LINK 1
43292 _ACEOF
43293
43294
43295
43296 fi
43297 done
43298
43299
43300    if test $have_xattr = no; then
43301
43302
43303
43304 for ac_func in extattr_get_file extattr_set_file extattr_list_file
43305 do
43306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43308 $as_echo_n "checking for $ac_func... " >&6; }
43309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43310   $as_echo_n "(cached) " >&6
43311 else
43312   cat >conftest.$ac_ext <<_ACEOF
43313 /* confdefs.h.  */
43314 _ACEOF
43315 cat confdefs.h >>conftest.$ac_ext
43316 cat >>conftest.$ac_ext <<_ACEOF
43317 /* end confdefs.h.  */
43318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43320 #define $ac_func innocuous_$ac_func
43321
43322 /* System header to define __stub macros and hopefully few prototypes,
43323     which can conflict with char $ac_func (); below.
43324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43325     <limits.h> exists even on freestanding compilers.  */
43326
43327 #ifdef __STDC__
43328 # include <limits.h>
43329 #else
43330 # include <assert.h>
43331 #endif
43332
43333 #undef $ac_func
43334
43335 /* Override any GCC internal prototype to avoid an error.
43336    Use char because int might match the return type of a GCC
43337    builtin and then its argument prototype would still apply.  */
43338 #ifdef __cplusplus
43339 extern "C"
43340 #endif
43341 char $ac_func ();
43342 /* The GNU C library defines this for functions which it implements
43343     to always fail with ENOSYS.  Some functions are actually named
43344     something starting with __ and the normal name is an alias.  */
43345 #if defined __stub_$ac_func || defined __stub___$ac_func
43346 choke me
43347 #endif
43348
43349 int
43350 main ()
43351 {
43352 return $ac_func ();
43353   ;
43354   return 0;
43355 }
43356 _ACEOF
43357 rm -f conftest.$ac_objext conftest$ac_exeext
43358 if { (ac_try="$ac_link"
43359 case "(($ac_try" in
43360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43361   *) ac_try_echo=$ac_try;;
43362 esac
43363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43364 $as_echo "$ac_try_echo") >&5
43365   (eval "$ac_link") 2>conftest.er1
43366   ac_status=$?
43367   grep -v '^ *+' conftest.er1 >conftest.err
43368   rm -f conftest.er1
43369   cat conftest.err >&5
43370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371   (exit $ac_status); } && {
43372          test -z "$ac_c_werror_flag" ||
43373          test ! -s conftest.err
43374        } && test -s conftest$ac_exeext && {
43375          test "$cross_compiling" = yes ||
43376          $as_test_x conftest$ac_exeext
43377        }; then
43378   eval "$as_ac_var=yes"
43379 else
43380   $as_echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43382
43383         eval "$as_ac_var=no"
43384 fi
43385
43386 rm -rf conftest.dSYM
43387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43388       conftest$ac_exeext conftest.$ac_ext
43389 fi
43390 ac_res=`eval 'as_val=${'$as_ac_var'}
43391                  $as_echo "$as_val"'`
43392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43393 $as_echo "$ac_res" >&6; }
43394 as_val=`eval 'as_val=${'$as_ac_var'}
43395                  $as_echo "$as_val"'`
43396    if test "x$as_val" = x""yes; then
43397   cat >>confdefs.h <<_ACEOF
43398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43399 _ACEOF
43400
43401              have_xattr=yes
43402
43403 cat >>confdefs.h <<\_ACEOF
43404 #define HAVE_EXTATTR_GET_FILE 1
43405 _ACEOF
43406
43407
43408 cat >>confdefs.h <<\_ACEOF
43409 #define HAVE_EXTATTR_SET_FILE 1
43410 _ACEOF
43411
43412
43413 cat >>confdefs.h <<\_ACEOF
43414 #define HAVE_EXTATTR_LIST_FILE 1
43415 _ACEOF
43416
43417
43418
43419 fi
43420 done
43421
43422    fi
43423
43424    if test $have_xattr = yes; then
43425       have_extattr_string_in_libc=no
43426
43427
43428 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
43429 do
43430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43431 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43432 $as_echo_n "checking for $ac_func... " >&6; }
43433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43434   $as_echo_n "(cached) " >&6
43435 else
43436   cat >conftest.$ac_ext <<_ACEOF
43437 /* confdefs.h.  */
43438 _ACEOF
43439 cat confdefs.h >>conftest.$ac_ext
43440 cat >>conftest.$ac_ext <<_ACEOF
43441 /* end confdefs.h.  */
43442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43444 #define $ac_func innocuous_$ac_func
43445
43446 /* System header to define __stub macros and hopefully few prototypes,
43447     which can conflict with char $ac_func (); below.
43448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43449     <limits.h> exists even on freestanding compilers.  */
43450
43451 #ifdef __STDC__
43452 # include <limits.h>
43453 #else
43454 # include <assert.h>
43455 #endif
43456
43457 #undef $ac_func
43458
43459 /* Override any GCC internal prototype to avoid an error.
43460    Use char because int might match the return type of a GCC
43461    builtin and then its argument prototype would still apply.  */
43462 #ifdef __cplusplus
43463 extern "C"
43464 #endif
43465 char $ac_func ();
43466 /* The GNU C library defines this for functions which it implements
43467     to always fail with ENOSYS.  Some functions are actually named
43468     something starting with __ and the normal name is an alias.  */
43469 #if defined __stub_$ac_func || defined __stub___$ac_func
43470 choke me
43471 #endif
43472
43473 int
43474 main ()
43475 {
43476 return $ac_func ();
43477   ;
43478   return 0;
43479 }
43480 _ACEOF
43481 rm -f conftest.$ac_objext conftest$ac_exeext
43482 if { (ac_try="$ac_link"
43483 case "(($ac_try" in
43484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43485   *) ac_try_echo=$ac_try;;
43486 esac
43487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43488 $as_echo "$ac_try_echo") >&5
43489   (eval "$ac_link") 2>conftest.er1
43490   ac_status=$?
43491   grep -v '^ *+' conftest.er1 >conftest.err
43492   rm -f conftest.er1
43493   cat conftest.err >&5
43494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495   (exit $ac_status); } && {
43496          test -z "$ac_c_werror_flag" ||
43497          test ! -s conftest.err
43498        } && test -s conftest$ac_exeext && {
43499          test "$cross_compiling" = yes ||
43500          $as_test_x conftest$ac_exeext
43501        }; then
43502   eval "$as_ac_var=yes"
43503 else
43504   $as_echo "$as_me: failed program was:" >&5
43505 sed 's/^/| /' conftest.$ac_ext >&5
43506
43507         eval "$as_ac_var=no"
43508 fi
43509
43510 rm -rf conftest.dSYM
43511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43512       conftest$ac_exeext conftest.$ac_ext
43513 fi
43514 ac_res=`eval 'as_val=${'$as_ac_var'}
43515                  $as_echo "$as_val"'`
43516                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43517 $as_echo "$ac_res" >&6; }
43518 as_val=`eval 'as_val=${'$as_ac_var'}
43519                  $as_echo "$as_val"'`
43520    if test "x$as_val" = x""yes; then
43521   cat >>confdefs.h <<_ACEOF
43522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43523 _ACEOF
43524
43525              have_extattr_string_in_libc=yes
43526
43527 cat >>confdefs.h <<\_ACEOF
43528 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43529 _ACEOF
43530
43531
43532 cat >>confdefs.h <<\_ACEOF
43533 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43534 _ACEOF
43535
43536
43537
43538 fi
43539 done
43540
43541
43542                         if test $have_extattr_string_in_libc = no; then
43543          { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
43544 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
43545 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
43546   $as_echo_n "(cached) " >&6
43547 else
43548   ac_check_lib_save_LIBS=$LIBS
43549 LIBS="-lutil  $LIBS"
43550 cat >conftest.$ac_ext <<_ACEOF
43551 /* confdefs.h.  */
43552 _ACEOF
43553 cat confdefs.h >>conftest.$ac_ext
43554 cat >>conftest.$ac_ext <<_ACEOF
43555 /* end confdefs.h.  */
43556
43557 /* Override any GCC internal prototype to avoid an error.
43558    Use char because int might match the return type of a GCC
43559    builtin and then its argument prototype would still apply.  */
43560 #ifdef __cplusplus
43561 extern "C"
43562 #endif
43563 char extattr_namespace_to_string extattr_string_to_namespace ();
43564 int
43565 main ()
43566 {
43567 return extattr_namespace_to_string extattr_string_to_namespace ();
43568   ;
43569   return 0;
43570 }
43571 _ACEOF
43572 rm -f conftest.$ac_objext conftest$ac_exeext
43573 if { (ac_try="$ac_link"
43574 case "(($ac_try" in
43575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43576   *) ac_try_echo=$ac_try;;
43577 esac
43578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43579 $as_echo "$ac_try_echo") >&5
43580   (eval "$ac_link") 2>conftest.er1
43581   ac_status=$?
43582   grep -v '^ *+' conftest.er1 >conftest.err
43583   rm -f conftest.er1
43584   cat conftest.err >&5
43585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586   (exit $ac_status); } && {
43587          test -z "$ac_c_werror_flag" ||
43588          test ! -s conftest.err
43589        } && test -s conftest$ac_exeext && {
43590          test "$cross_compiling" = yes ||
43591          $as_test_x conftest$ac_exeext
43592        }; then
43593   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
43594 else
43595   $as_echo "$as_me: failed program was:" >&5
43596 sed 's/^/| /' conftest.$ac_ext >&5
43597
43598         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
43599 fi
43600
43601 rm -rf conftest.dSYM
43602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43603       conftest$ac_exeext conftest.$ac_ext
43604 LIBS=$ac_check_lib_save_LIBS
43605 fi
43606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
43607 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
43608 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
43609
43610
43611 cat >>confdefs.h <<\_ACEOF
43612 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43613 _ACEOF
43614
43615
43616 cat >>confdefs.h <<\_ACEOF
43617 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43618 _ACEOF
43619
43620                 FDLIBS="-lutil $FDLIBS"
43621
43622
43623 fi
43624
43625       fi
43626    fi
43627
43628             if test $have_xattr = no; then
43629       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43630   { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43631 $as_echo_n "checking for sys/xattr.h... " >&6; }
43632 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43633   $as_echo_n "(cached) " >&6
43634 fi
43635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43636 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43637 else
43638   # Is the header compilable?
43639 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
43640 $as_echo_n "checking sys/xattr.h usability... " >&6; }
43641 cat >conftest.$ac_ext <<_ACEOF
43642 /* confdefs.h.  */
43643 _ACEOF
43644 cat confdefs.h >>conftest.$ac_ext
43645 cat >>conftest.$ac_ext <<_ACEOF
43646 /* end confdefs.h.  */
43647 $ac_includes_default
43648 #include <sys/xattr.h>
43649 _ACEOF
43650 rm -f conftest.$ac_objext
43651 if { (ac_try="$ac_compile"
43652 case "(($ac_try" in
43653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43654   *) ac_try_echo=$ac_try;;
43655 esac
43656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43657 $as_echo "$ac_try_echo") >&5
43658   (eval "$ac_compile") 2>conftest.er1
43659   ac_status=$?
43660   grep -v '^ *+' conftest.er1 >conftest.err
43661   rm -f conftest.er1
43662   cat conftest.err >&5
43663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664   (exit $ac_status); } && {
43665          test -z "$ac_c_werror_flag" ||
43666          test ! -s conftest.err
43667        } && test -s conftest.$ac_objext; then
43668   ac_header_compiler=yes
43669 else
43670   $as_echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43672
43673         ac_header_compiler=no
43674 fi
43675
43676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43678 $as_echo "$ac_header_compiler" >&6; }
43679
43680 # Is the header present?
43681 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
43682 $as_echo_n "checking sys/xattr.h presence... " >&6; }
43683 cat >conftest.$ac_ext <<_ACEOF
43684 /* confdefs.h.  */
43685 _ACEOF
43686 cat confdefs.h >>conftest.$ac_ext
43687 cat >>conftest.$ac_ext <<_ACEOF
43688 /* end confdefs.h.  */
43689 #include <sys/xattr.h>
43690 _ACEOF
43691 if { (ac_try="$ac_cpp conftest.$ac_ext"
43692 case "(($ac_try" in
43693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43694   *) ac_try_echo=$ac_try;;
43695 esac
43696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43697 $as_echo "$ac_try_echo") >&5
43698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43699   ac_status=$?
43700   grep -v '^ *+' conftest.er1 >conftest.err
43701   rm -f conftest.er1
43702   cat conftest.err >&5
43703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704   (exit $ac_status); } >/dev/null && {
43705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43706          test ! -s conftest.err
43707        }; then
43708   ac_header_preproc=yes
43709 else
43710   $as_echo "$as_me: failed program was:" >&5
43711 sed 's/^/| /' conftest.$ac_ext >&5
43712
43713   ac_header_preproc=no
43714 fi
43715
43716 rm -f conftest.err conftest.$ac_ext
43717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43718 $as_echo "$ac_header_preproc" >&6; }
43719
43720 # So?  What about this header?
43721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43722   yes:no: )
43723     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43724 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43725     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
43726 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
43727     ac_header_preproc=yes
43728     ;;
43729   no:yes:* )
43730     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
43731 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
43732     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
43733 $as_echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
43734     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
43735 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
43736     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43737 $as_echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43738     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
43739 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
43740     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
43741 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
43742
43743     ;;
43744 esac
43745 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43746 $as_echo_n "checking for sys/xattr.h... " >&6; }
43747 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43748   $as_echo_n "(cached) " >&6
43749 else
43750   ac_cv_header_sys_xattr_h=$ac_header_preproc
43751 fi
43752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43753 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43754
43755 fi
43756 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
43757
43758 cat >>confdefs.h <<\_ACEOF
43759 #define HAVE_SYS_XATTR_H 1
43760 _ACEOF
43761
43762 fi
43763
43764
43765
43766
43767
43768 for ac_func in llistxattr lgetxattr lsetxattr
43769 do
43770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43772 $as_echo_n "checking for $ac_func... " >&6; }
43773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43774   $as_echo_n "(cached) " >&6
43775 else
43776   cat >conftest.$ac_ext <<_ACEOF
43777 /* confdefs.h.  */
43778 _ACEOF
43779 cat confdefs.h >>conftest.$ac_ext
43780 cat >>conftest.$ac_ext <<_ACEOF
43781 /* end confdefs.h.  */
43782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43784 #define $ac_func innocuous_$ac_func
43785
43786 /* System header to define __stub macros and hopefully few prototypes,
43787     which can conflict with char $ac_func (); below.
43788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43789     <limits.h> exists even on freestanding compilers.  */
43790
43791 #ifdef __STDC__
43792 # include <limits.h>
43793 #else
43794 # include <assert.h>
43795 #endif
43796
43797 #undef $ac_func
43798
43799 /* Override any GCC internal prototype to avoid an error.
43800    Use char because int might match the return type of a GCC
43801    builtin and then its argument prototype would still apply.  */
43802 #ifdef __cplusplus
43803 extern "C"
43804 #endif
43805 char $ac_func ();
43806 /* The GNU C library defines this for functions which it implements
43807     to always fail with ENOSYS.  Some functions are actually named
43808     something starting with __ and the normal name is an alias.  */
43809 #if defined __stub_$ac_func || defined __stub___$ac_func
43810 choke me
43811 #endif
43812
43813 int
43814 main ()
43815 {
43816 return $ac_func ();
43817   ;
43818   return 0;
43819 }
43820 _ACEOF
43821 rm -f conftest.$ac_objext conftest$ac_exeext
43822 if { (ac_try="$ac_link"
43823 case "(($ac_try" in
43824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43825   *) ac_try_echo=$ac_try;;
43826 esac
43827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43828 $as_echo "$ac_try_echo") >&5
43829   (eval "$ac_link") 2>conftest.er1
43830   ac_status=$?
43831   grep -v '^ *+' conftest.er1 >conftest.err
43832   rm -f conftest.er1
43833   cat conftest.err >&5
43834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835   (exit $ac_status); } && {
43836          test -z "$ac_c_werror_flag" ||
43837          test ! -s conftest.err
43838        } && test -s conftest$ac_exeext && {
43839          test "$cross_compiling" = yes ||
43840          $as_test_x conftest$ac_exeext
43841        }; then
43842   eval "$as_ac_var=yes"
43843 else
43844   $as_echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43846
43847         eval "$as_ac_var=no"
43848 fi
43849
43850 rm -rf conftest.dSYM
43851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43852       conftest$ac_exeext conftest.$ac_ext
43853 fi
43854 ac_res=`eval 'as_val=${'$as_ac_var'}
43855                  $as_echo "$as_val"'`
43856                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43857 $as_echo "$ac_res" >&6; }
43858 as_val=`eval 'as_val=${'$as_ac_var'}
43859                  $as_echo "$as_val"'`
43860    if test "x$as_val" = x""yes; then
43861   cat >>confdefs.h <<_ACEOF
43862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43863 _ACEOF
43864
43865              have_xattr=yes
43866
43867 cat >>confdefs.h <<\_ACEOF
43868 #define HAVE_LLISTXATTR 1
43869 _ACEOF
43870
43871
43872 cat >>confdefs.h <<\_ACEOF
43873 #define HAVE_LGETXATTR 1
43874 _ACEOF
43875
43876
43877 cat >>confdefs.h <<\_ACEOF
43878 #define HAVE_LSETXATTR 1
43879 _ACEOF
43880
43881
43882
43883 fi
43884 done
43885
43886
43887       if test $have_xattr = no; then
43888
43889
43890
43891 for ac_func in listxattr getxattr setxattr
43892 do
43893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43895 $as_echo_n "checking for $ac_func... " >&6; }
43896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43897   $as_echo_n "(cached) " >&6
43898 else
43899   cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43907 #define $ac_func innocuous_$ac_func
43908
43909 /* System header to define __stub macros and hopefully few prototypes,
43910     which can conflict with char $ac_func (); below.
43911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43912     <limits.h> exists even on freestanding compilers.  */
43913
43914 #ifdef __STDC__
43915 # include <limits.h>
43916 #else
43917 # include <assert.h>
43918 #endif
43919
43920 #undef $ac_func
43921
43922 /* Override any GCC internal prototype to avoid an error.
43923    Use char because int might match the return type of a GCC
43924    builtin and then its argument prototype would still apply.  */
43925 #ifdef __cplusplus
43926 extern "C"
43927 #endif
43928 char $ac_func ();
43929 /* The GNU C library defines this for functions which it implements
43930     to always fail with ENOSYS.  Some functions are actually named
43931     something starting with __ and the normal name is an alias.  */
43932 #if defined __stub_$ac_func || defined __stub___$ac_func
43933 choke me
43934 #endif
43935
43936 int
43937 main ()
43938 {
43939 return $ac_func ();
43940   ;
43941   return 0;
43942 }
43943 _ACEOF
43944 rm -f conftest.$ac_objext conftest$ac_exeext
43945 if { (ac_try="$ac_link"
43946 case "(($ac_try" in
43947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43948   *) ac_try_echo=$ac_try;;
43949 esac
43950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43951 $as_echo "$ac_try_echo") >&5
43952   (eval "$ac_link") 2>conftest.er1
43953   ac_status=$?
43954   grep -v '^ *+' conftest.er1 >conftest.err
43955   rm -f conftest.er1
43956   cat conftest.err >&5
43957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43958   (exit $ac_status); } && {
43959          test -z "$ac_c_werror_flag" ||
43960          test ! -s conftest.err
43961        } && test -s conftest$ac_exeext && {
43962          test "$cross_compiling" = yes ||
43963          $as_test_x conftest$ac_exeext
43964        }; then
43965   eval "$as_ac_var=yes"
43966 else
43967   $as_echo "$as_me: failed program was:" >&5
43968 sed 's/^/| /' conftest.$ac_ext >&5
43969
43970         eval "$as_ac_var=no"
43971 fi
43972
43973 rm -rf conftest.dSYM
43974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43975       conftest$ac_exeext conftest.$ac_ext
43976 fi
43977 ac_res=`eval 'as_val=${'$as_ac_var'}
43978                  $as_echo "$as_val"'`
43979                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43980 $as_echo "$ac_res" >&6; }
43981 as_val=`eval 'as_val=${'$as_ac_var'}
43982                  $as_echo "$as_val"'`
43983    if test "x$as_val" = x""yes; then
43984   cat >>confdefs.h <<_ACEOF
43985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43986 _ACEOF
43987
43988                 have_xattr=yes
43989
43990 cat >>confdefs.h <<\_ACEOF
43991 #define HAVE_LISTXATTR 1
43992 _ACEOF
43993
43994
43995 cat >>confdefs.h <<\_ACEOF
43996 #define HAVE_GETXATTR 1
43997 _ACEOF
43998
43999
44000 cat >>confdefs.h <<\_ACEOF
44001 #define HAVE_SETXATTR 1
44002 _ACEOF
44003
44004
44005
44006 fi
44007 done
44008
44009       fi
44010    fi
44011
44012             if test $have_xattr = no; then
44013       if test "${ac_cv_header_sys_attr_h+set}" = set; then
44014   { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44015 $as_echo_n "checking for sys/attr.h... " >&6; }
44016 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44017   $as_echo_n "(cached) " >&6
44018 fi
44019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44020 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44021 else
44022   # Is the header compilable?
44023 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
44024 $as_echo_n "checking sys/attr.h usability... " >&6; }
44025 cat >conftest.$ac_ext <<_ACEOF
44026 /* confdefs.h.  */
44027 _ACEOF
44028 cat confdefs.h >>conftest.$ac_ext
44029 cat >>conftest.$ac_ext <<_ACEOF
44030 /* end confdefs.h.  */
44031 $ac_includes_default
44032 #include <sys/attr.h>
44033 _ACEOF
44034 rm -f conftest.$ac_objext
44035 if { (ac_try="$ac_compile"
44036 case "(($ac_try" in
44037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44038   *) ac_try_echo=$ac_try;;
44039 esac
44040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44041 $as_echo "$ac_try_echo") >&5
44042   (eval "$ac_compile") 2>conftest.er1
44043   ac_status=$?
44044   grep -v '^ *+' conftest.er1 >conftest.err
44045   rm -f conftest.er1
44046   cat conftest.err >&5
44047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048   (exit $ac_status); } && {
44049          test -z "$ac_c_werror_flag" ||
44050          test ! -s conftest.err
44051        } && test -s conftest.$ac_objext; then
44052   ac_header_compiler=yes
44053 else
44054   $as_echo "$as_me: failed program was:" >&5
44055 sed 's/^/| /' conftest.$ac_ext >&5
44056
44057         ac_header_compiler=no
44058 fi
44059
44060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44062 $as_echo "$ac_header_compiler" >&6; }
44063
44064 # Is the header present?
44065 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
44066 $as_echo_n "checking sys/attr.h presence... " >&6; }
44067 cat >conftest.$ac_ext <<_ACEOF
44068 /* confdefs.h.  */
44069 _ACEOF
44070 cat confdefs.h >>conftest.$ac_ext
44071 cat >>conftest.$ac_ext <<_ACEOF
44072 /* end confdefs.h.  */
44073 #include <sys/attr.h>
44074 _ACEOF
44075 if { (ac_try="$ac_cpp conftest.$ac_ext"
44076 case "(($ac_try" in
44077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44078   *) ac_try_echo=$ac_try;;
44079 esac
44080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44081 $as_echo "$ac_try_echo") >&5
44082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44083   ac_status=$?
44084   grep -v '^ *+' conftest.er1 >conftest.err
44085   rm -f conftest.er1
44086   cat conftest.err >&5
44087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44088   (exit $ac_status); } >/dev/null && {
44089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44090          test ! -s conftest.err
44091        }; then
44092   ac_header_preproc=yes
44093 else
44094   $as_echo "$as_me: failed program was:" >&5
44095 sed 's/^/| /' conftest.$ac_ext >&5
44096
44097   ac_header_preproc=no
44098 fi
44099
44100 rm -f conftest.err conftest.$ac_ext
44101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44102 $as_echo "$ac_header_preproc" >&6; }
44103
44104 # So?  What about this header?
44105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44106   yes:no: )
44107     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44108 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44109     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
44110 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
44111     ac_header_preproc=yes
44112     ;;
44113   no:yes:* )
44114     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
44115 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
44116     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
44117 $as_echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
44118     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
44119 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
44120     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44121 $as_echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44122     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
44123 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
44124     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
44125 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
44126
44127     ;;
44128 esac
44129 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44130 $as_echo_n "checking for sys/attr.h... " >&6; }
44131 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44132   $as_echo_n "(cached) " >&6
44133 else
44134   ac_cv_header_sys_attr_h=$ac_header_preproc
44135 fi
44136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44137 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44138
44139 fi
44140 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
44141
44142 cat >>confdefs.h <<\_ACEOF
44143 #define HAVE_SYS_ATTR_H 1
44144 _ACEOF
44145
44146 fi
44147
44148
44149       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44150   { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44151 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44152 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44153   $as_echo_n "(cached) " >&6
44154 fi
44155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44156 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44157 else
44158   # Is the header compilable?
44159 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
44160 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
44161 cat >conftest.$ac_ext <<_ACEOF
44162 /* confdefs.h.  */
44163 _ACEOF
44164 cat confdefs.h >>conftest.$ac_ext
44165 cat >>conftest.$ac_ext <<_ACEOF
44166 /* end confdefs.h.  */
44167 $ac_includes_default
44168 #include <sys/nvpair.h>
44169 _ACEOF
44170 rm -f conftest.$ac_objext
44171 if { (ac_try="$ac_compile"
44172 case "(($ac_try" in
44173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44174   *) ac_try_echo=$ac_try;;
44175 esac
44176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44177 $as_echo "$ac_try_echo") >&5
44178   (eval "$ac_compile") 2>conftest.er1
44179   ac_status=$?
44180   grep -v '^ *+' conftest.er1 >conftest.err
44181   rm -f conftest.er1
44182   cat conftest.err >&5
44183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184   (exit $ac_status); } && {
44185          test -z "$ac_c_werror_flag" ||
44186          test ! -s conftest.err
44187        } && test -s conftest.$ac_objext; then
44188   ac_header_compiler=yes
44189 else
44190   $as_echo "$as_me: failed program was:" >&5
44191 sed 's/^/| /' conftest.$ac_ext >&5
44192
44193         ac_header_compiler=no
44194 fi
44195
44196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44197 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44198 $as_echo "$ac_header_compiler" >&6; }
44199
44200 # Is the header present?
44201 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
44202 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
44203 cat >conftest.$ac_ext <<_ACEOF
44204 /* confdefs.h.  */
44205 _ACEOF
44206 cat confdefs.h >>conftest.$ac_ext
44207 cat >>conftest.$ac_ext <<_ACEOF
44208 /* end confdefs.h.  */
44209 #include <sys/nvpair.h>
44210 _ACEOF
44211 if { (ac_try="$ac_cpp conftest.$ac_ext"
44212 case "(($ac_try" in
44213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44214   *) ac_try_echo=$ac_try;;
44215 esac
44216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44217 $as_echo "$ac_try_echo") >&5
44218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44219   ac_status=$?
44220   grep -v '^ *+' conftest.er1 >conftest.err
44221   rm -f conftest.er1
44222   cat conftest.err >&5
44223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224   (exit $ac_status); } >/dev/null && {
44225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44226          test ! -s conftest.err
44227        }; then
44228   ac_header_preproc=yes
44229 else
44230   $as_echo "$as_me: failed program was:" >&5
44231 sed 's/^/| /' conftest.$ac_ext >&5
44232
44233   ac_header_preproc=no
44234 fi
44235
44236 rm -f conftest.err conftest.$ac_ext
44237 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44238 $as_echo "$ac_header_preproc" >&6; }
44239
44240 # So?  What about this header?
44241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44242   yes:no: )
44243     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
44244 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44245     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
44246 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
44247     ac_header_preproc=yes
44248     ;;
44249   no:yes:* )
44250     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
44251 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
44252     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
44253 $as_echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
44254     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
44255 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
44256     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
44257 $as_echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44258     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
44259 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
44260     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
44261 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
44262
44263     ;;
44264 esac
44265 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44266 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44267 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44268   $as_echo_n "(cached) " >&6
44269 else
44270   ac_cv_header_sys_nvpair_h=$ac_header_preproc
44271 fi
44272 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44273 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44274
44275 fi
44276 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
44277
44278 cat >>confdefs.h <<\_ACEOF
44279 #define HAVE_SYS_NVPAIR_H 1
44280 _ACEOF
44281
44282 fi
44283
44284
44285       if test "${ac_cv_header_attr_h+set}" = set; then
44286   { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44287 $as_echo_n "checking for attr.h... " >&6; }
44288 if test "${ac_cv_header_attr_h+set}" = set; then
44289   $as_echo_n "(cached) " >&6
44290 fi
44291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44292 $as_echo "$ac_cv_header_attr_h" >&6; }
44293 else
44294   # Is the header compilable?
44295 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
44296 $as_echo_n "checking attr.h usability... " >&6; }
44297 cat >conftest.$ac_ext <<_ACEOF
44298 /* confdefs.h.  */
44299 _ACEOF
44300 cat confdefs.h >>conftest.$ac_ext
44301 cat >>conftest.$ac_ext <<_ACEOF
44302 /* end confdefs.h.  */
44303 $ac_includes_default
44304 #include <attr.h>
44305 _ACEOF
44306 rm -f conftest.$ac_objext
44307 if { (ac_try="$ac_compile"
44308 case "(($ac_try" in
44309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44310   *) ac_try_echo=$ac_try;;
44311 esac
44312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44313 $as_echo "$ac_try_echo") >&5
44314   (eval "$ac_compile") 2>conftest.er1
44315   ac_status=$?
44316   grep -v '^ *+' conftest.er1 >conftest.err
44317   rm -f conftest.er1
44318   cat conftest.err >&5
44319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44320   (exit $ac_status); } && {
44321          test -z "$ac_c_werror_flag" ||
44322          test ! -s conftest.err
44323        } && test -s conftest.$ac_objext; then
44324   ac_header_compiler=yes
44325 else
44326   $as_echo "$as_me: failed program was:" >&5
44327 sed 's/^/| /' conftest.$ac_ext >&5
44328
44329         ac_header_compiler=no
44330 fi
44331
44332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44334 $as_echo "$ac_header_compiler" >&6; }
44335
44336 # Is the header present?
44337 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
44338 $as_echo_n "checking attr.h presence... " >&6; }
44339 cat >conftest.$ac_ext <<_ACEOF
44340 /* confdefs.h.  */
44341 _ACEOF
44342 cat confdefs.h >>conftest.$ac_ext
44343 cat >>conftest.$ac_ext <<_ACEOF
44344 /* end confdefs.h.  */
44345 #include <attr.h>
44346 _ACEOF
44347 if { (ac_try="$ac_cpp conftest.$ac_ext"
44348 case "(($ac_try" in
44349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44350   *) ac_try_echo=$ac_try;;
44351 esac
44352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44353 $as_echo "$ac_try_echo") >&5
44354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44355   ac_status=$?
44356   grep -v '^ *+' conftest.er1 >conftest.err
44357   rm -f conftest.er1
44358   cat conftest.err >&5
44359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44360   (exit $ac_status); } >/dev/null && {
44361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44362          test ! -s conftest.err
44363        }; then
44364   ac_header_preproc=yes
44365 else
44366   $as_echo "$as_me: failed program was:" >&5
44367 sed 's/^/| /' conftest.$ac_ext >&5
44368
44369   ac_header_preproc=no
44370 fi
44371
44372 rm -f conftest.err conftest.$ac_ext
44373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44374 $as_echo "$ac_header_preproc" >&6; }
44375
44376 # So?  What about this header?
44377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44378   yes:no: )
44379     { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44380 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44381     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
44382 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
44383     ac_header_preproc=yes
44384     ;;
44385   no:yes:* )
44386     { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
44387 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
44388     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
44389 $as_echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
44390     { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
44391 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
44392     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
44393 $as_echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44394     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
44395 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
44396     { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
44397 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
44398
44399     ;;
44400 esac
44401 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44402 $as_echo_n "checking for attr.h... " >&6; }
44403 if test "${ac_cv_header_attr_h+set}" = set; then
44404   $as_echo_n "(cached) " >&6
44405 else
44406   ac_cv_header_attr_h=$ac_header_preproc
44407 fi
44408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44409 $as_echo "$ac_cv_header_attr_h" >&6; }
44410
44411 fi
44412 if test "x$ac_cv_header_attr_h" = x""yes; then
44413
44414 cat >>confdefs.h <<\_ACEOF
44415 #define HAVE_ATTR_H 1
44416 _ACEOF
44417
44418 fi
44419
44420
44421
44422
44423
44424
44425
44426
44427 for ac_func in openat fstatat unlinkat fchownat futimesat
44428 do
44429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44431 $as_echo_n "checking for $ac_func... " >&6; }
44432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44433   $as_echo_n "(cached) " >&6
44434 else
44435   cat >conftest.$ac_ext <<_ACEOF
44436 /* confdefs.h.  */
44437 _ACEOF
44438 cat confdefs.h >>conftest.$ac_ext
44439 cat >>conftest.$ac_ext <<_ACEOF
44440 /* end confdefs.h.  */
44441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44443 #define $ac_func innocuous_$ac_func
44444
44445 /* System header to define __stub macros and hopefully few prototypes,
44446     which can conflict with char $ac_func (); below.
44447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44448     <limits.h> exists even on freestanding compilers.  */
44449
44450 #ifdef __STDC__
44451 # include <limits.h>
44452 #else
44453 # include <assert.h>
44454 #endif
44455
44456 #undef $ac_func
44457
44458 /* Override any GCC internal prototype to avoid an error.
44459    Use char because int might match the return type of a GCC
44460    builtin and then its argument prototype would still apply.  */
44461 #ifdef __cplusplus
44462 extern "C"
44463 #endif
44464 char $ac_func ();
44465 /* The GNU C library defines this for functions which it implements
44466     to always fail with ENOSYS.  Some functions are actually named
44467     something starting with __ and the normal name is an alias.  */
44468 #if defined __stub_$ac_func || defined __stub___$ac_func
44469 choke me
44470 #endif
44471
44472 int
44473 main ()
44474 {
44475 return $ac_func ();
44476   ;
44477   return 0;
44478 }
44479 _ACEOF
44480 rm -f conftest.$ac_objext conftest$ac_exeext
44481 if { (ac_try="$ac_link"
44482 case "(($ac_try" in
44483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44484   *) ac_try_echo=$ac_try;;
44485 esac
44486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44487 $as_echo "$ac_try_echo") >&5
44488   (eval "$ac_link") 2>conftest.er1
44489   ac_status=$?
44490   grep -v '^ *+' conftest.er1 >conftest.err
44491   rm -f conftest.er1
44492   cat conftest.err >&5
44493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494   (exit $ac_status); } && {
44495          test -z "$ac_c_werror_flag" ||
44496          test ! -s conftest.err
44497        } && test -s conftest$ac_exeext && {
44498          test "$cross_compiling" = yes ||
44499          $as_test_x conftest$ac_exeext
44500        }; then
44501   eval "$as_ac_var=yes"
44502 else
44503   $as_echo "$as_me: failed program was:" >&5
44504 sed 's/^/| /' conftest.$ac_ext >&5
44505
44506         eval "$as_ac_var=no"
44507 fi
44508
44509 rm -rf conftest.dSYM
44510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44511       conftest$ac_exeext conftest.$ac_ext
44512 fi
44513 ac_res=`eval 'as_val=${'$as_ac_var'}
44514                  $as_echo "$as_val"'`
44515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44516 $as_echo "$ac_res" >&6; }
44517 as_val=`eval 'as_val=${'$as_ac_var'}
44518                  $as_echo "$as_val"'`
44519    if test "x$as_val" = x""yes; then
44520   cat >>confdefs.h <<_ACEOF
44521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44522 _ACEOF
44523
44524              have_xattr=yes
44525
44526 cat >>confdefs.h <<\_ACEOF
44527 #define HAVE_OPENAT 1
44528 _ACEOF
44529
44530
44531 cat >>confdefs.h <<\_ACEOF
44532 #define HAVE_FSTATAT 1
44533 _ACEOF
44534
44535
44536 cat >>confdefs.h <<\_ACEOF
44537 #define HAVE_UNLINKAT 1
44538 _ACEOF
44539
44540
44541 cat >>confdefs.h <<\_ACEOF
44542 #define HAVE_FCHOWNAT 1
44543 _ACEOF
44544
44545
44546 cat >>confdefs.h <<\_ACEOF
44547 #define HAVE_FUTIMESAT 1
44548 _ACEOF
44549
44550
44551
44552 fi
44553 done
44554
44555
44556       if test $have_xattr = yes; then
44557          { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
44558 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
44559 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
44560   $as_echo_n "(cached) " >&6
44561 else
44562   ac_check_lib_save_LIBS=$LIBS
44563 LIBS="-lnvpair  $LIBS"
44564 cat >conftest.$ac_ext <<_ACEOF
44565 /* confdefs.h.  */
44566 _ACEOF
44567 cat confdefs.h >>conftest.$ac_ext
44568 cat >>conftest.$ac_ext <<_ACEOF
44569 /* end confdefs.h.  */
44570
44571 /* Override any GCC internal prototype to avoid an error.
44572    Use char because int might match the return type of a GCC
44573    builtin and then its argument prototype would still apply.  */
44574 #ifdef __cplusplus
44575 extern "C"
44576 #endif
44577 char nvlist_next_nvpair ();
44578 int
44579 main ()
44580 {
44581 return nvlist_next_nvpair ();
44582   ;
44583   return 0;
44584 }
44585 _ACEOF
44586 rm -f conftest.$ac_objext conftest$ac_exeext
44587 if { (ac_try="$ac_link"
44588 case "(($ac_try" in
44589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44590   *) ac_try_echo=$ac_try;;
44591 esac
44592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44593 $as_echo "$ac_try_echo") >&5
44594   (eval "$ac_link") 2>conftest.er1
44595   ac_status=$?
44596   grep -v '^ *+' conftest.er1 >conftest.err
44597   rm -f conftest.er1
44598   cat conftest.err >&5
44599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600   (exit $ac_status); } && {
44601          test -z "$ac_c_werror_flag" ||
44602          test ! -s conftest.err
44603        } && test -s conftest$ac_exeext && {
44604          test "$cross_compiling" = yes ||
44605          $as_test_x conftest$ac_exeext
44606        }; then
44607   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
44608 else
44609   $as_echo "$as_me: failed program was:" >&5
44610 sed 's/^/| /' conftest.$ac_ext >&5
44611
44612         ac_cv_lib_nvpair_nvlist_next_nvpair=no
44613 fi
44614
44615 rm -rf conftest.dSYM
44616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44617       conftest$ac_exeext conftest.$ac_ext
44618 LIBS=$ac_check_lib_save_LIBS
44619 fi
44620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
44621 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
44622 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
44623
44624
44625 cat >>confdefs.h <<\_ACEOF
44626 #define HAVE_NVLIST_NEXT_NVPAIR 1
44627 _ACEOF
44628
44629                 FDLIBS="-lnvpair $FDLIBS"
44630
44631
44632 fi
44633
44634       fi
44635    fi
44636
44637    if test x$support_xattr = xyes -a $have_xattr != yes; then
44638       { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
44639   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
44640 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
44641   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
44642    { (exit 1); exit 1; }; }
44643    else
44644       if test $have_xattr = yes; then
44645
44646 cat >>confdefs.h <<\_ACEOF
44647 #define HAVE_XATTR 1
44648 _ACEOF
44649
44650       fi
44651    fi
44652 fi
44653
44654 PTHREAD_LIB=""
44655 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
44656 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44657 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
44658   $as_echo_n "(cached) " >&6
44659 else
44660   ac_check_lib_save_LIBS=$LIBS
44661 LIBS="-lpthread  $LIBS"
44662 cat >conftest.$ac_ext <<_ACEOF
44663 /* confdefs.h.  */
44664 _ACEOF
44665 cat confdefs.h >>conftest.$ac_ext
44666 cat >>conftest.$ac_ext <<_ACEOF
44667 /* end confdefs.h.  */
44668
44669 /* Override any GCC internal prototype to avoid an error.
44670    Use char because int might match the return type of a GCC
44671    builtin and then its argument prototype would still apply.  */
44672 #ifdef __cplusplus
44673 extern "C"
44674 #endif
44675 char pthread_create ();
44676 int
44677 main ()
44678 {
44679 return pthread_create ();
44680   ;
44681   return 0;
44682 }
44683 _ACEOF
44684 rm -f conftest.$ac_objext conftest$ac_exeext
44685 if { (ac_try="$ac_link"
44686 case "(($ac_try" in
44687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44688   *) ac_try_echo=$ac_try;;
44689 esac
44690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44691 $as_echo "$ac_try_echo") >&5
44692   (eval "$ac_link") 2>conftest.er1
44693   ac_status=$?
44694   grep -v '^ *+' conftest.er1 >conftest.err
44695   rm -f conftest.er1
44696   cat conftest.err >&5
44697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698   (exit $ac_status); } && {
44699          test -z "$ac_c_werror_flag" ||
44700          test ! -s conftest.err
44701        } && test -s conftest$ac_exeext && {
44702          test "$cross_compiling" = yes ||
44703          $as_test_x conftest$ac_exeext
44704        }; then
44705   ac_cv_lib_pthread_pthread_create=yes
44706 else
44707   $as_echo "$as_me: failed program was:" >&5
44708 sed 's/^/| /' conftest.$ac_ext >&5
44709
44710         ac_cv_lib_pthread_pthread_create=no
44711 fi
44712
44713 rm -rf conftest.dSYM
44714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44715       conftest$ac_exeext conftest.$ac_ext
44716 LIBS=$ac_check_lib_save_LIBS
44717 fi
44718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
44719 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44720 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
44721   PTHREAD_LIB="-lpthread"
44722 else
44723
44724        { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
44725 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
44726 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
44727   $as_echo_n "(cached) " >&6
44728 else
44729   ac_check_lib_save_LIBS=$LIBS
44730 LIBS="-lpthreads  $LIBS"
44731 cat >conftest.$ac_ext <<_ACEOF
44732 /* confdefs.h.  */
44733 _ACEOF
44734 cat confdefs.h >>conftest.$ac_ext
44735 cat >>conftest.$ac_ext <<_ACEOF
44736 /* end confdefs.h.  */
44737
44738 /* Override any GCC internal prototype to avoid an error.
44739    Use char because int might match the return type of a GCC
44740    builtin and then its argument prototype would still apply.  */
44741 #ifdef __cplusplus
44742 extern "C"
44743 #endif
44744 char pthread_create ();
44745 int
44746 main ()
44747 {
44748 return pthread_create ();
44749   ;
44750   return 0;
44751 }
44752 _ACEOF
44753 rm -f conftest.$ac_objext conftest$ac_exeext
44754 if { (ac_try="$ac_link"
44755 case "(($ac_try" in
44756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44757   *) ac_try_echo=$ac_try;;
44758 esac
44759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44760 $as_echo "$ac_try_echo") >&5
44761   (eval "$ac_link") 2>conftest.er1
44762   ac_status=$?
44763   grep -v '^ *+' conftest.er1 >conftest.err
44764   rm -f conftest.er1
44765   cat conftest.err >&5
44766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767   (exit $ac_status); } && {
44768          test -z "$ac_c_werror_flag" ||
44769          test ! -s conftest.err
44770        } && test -s conftest$ac_exeext && {
44771          test "$cross_compiling" = yes ||
44772          $as_test_x conftest$ac_exeext
44773        }; then
44774   ac_cv_lib_pthreads_pthread_create=yes
44775 else
44776   $as_echo "$as_me: failed program was:" >&5
44777 sed 's/^/| /' conftest.$ac_ext >&5
44778
44779         ac_cv_lib_pthreads_pthread_create=no
44780 fi
44781
44782 rm -rf conftest.dSYM
44783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44784       conftest$ac_exeext conftest.$ac_ext
44785 LIBS=$ac_check_lib_save_LIBS
44786 fi
44787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
44788 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
44789 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
44790   PTHREAD_LIB="-lpthreads"
44791 else
44792
44793               { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
44794 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
44795 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
44796   $as_echo_n "(cached) " >&6
44797 else
44798   ac_check_lib_save_LIBS=$LIBS
44799 LIBS="-lc_r  $LIBS"
44800 cat >conftest.$ac_ext <<_ACEOF
44801 /* confdefs.h.  */
44802 _ACEOF
44803 cat confdefs.h >>conftest.$ac_ext
44804 cat >>conftest.$ac_ext <<_ACEOF
44805 /* end confdefs.h.  */
44806
44807 /* Override any GCC internal prototype to avoid an error.
44808    Use char because int might match the return type of a GCC
44809    builtin and then its argument prototype would still apply.  */
44810 #ifdef __cplusplus
44811 extern "C"
44812 #endif
44813 char pthread_create ();
44814 int
44815 main ()
44816 {
44817 return pthread_create ();
44818   ;
44819   return 0;
44820 }
44821 _ACEOF
44822 rm -f conftest.$ac_objext conftest$ac_exeext
44823 if { (ac_try="$ac_link"
44824 case "(($ac_try" in
44825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44826   *) ac_try_echo=$ac_try;;
44827 esac
44828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44829 $as_echo "$ac_try_echo") >&5
44830   (eval "$ac_link") 2>conftest.er1
44831   ac_status=$?
44832   grep -v '^ *+' conftest.er1 >conftest.err
44833   rm -f conftest.er1
44834   cat conftest.err >&5
44835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836   (exit $ac_status); } && {
44837          test -z "$ac_c_werror_flag" ||
44838          test ! -s conftest.err
44839        } && test -s conftest$ac_exeext && {
44840          test "$cross_compiling" = yes ||
44841          $as_test_x conftest$ac_exeext
44842        }; then
44843   ac_cv_lib_c_r_pthread_create=yes
44844 else
44845   $as_echo "$as_me: failed program was:" >&5
44846 sed 's/^/| /' conftest.$ac_ext >&5
44847
44848         ac_cv_lib_c_r_pthread_create=no
44849 fi
44850
44851 rm -rf conftest.dSYM
44852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44853       conftest$ac_exeext conftest.$ac_ext
44854 LIBS=$ac_check_lib_save_LIBS
44855 fi
44856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
44857 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
44858 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
44859   PTHREAD_LIB="-lc_r"
44860 else
44861
44862                      { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
44863 $as_echo_n "checking for pthread_create... " >&6; }
44864 if test "${ac_cv_func_pthread_create+set}" = set; then
44865   $as_echo_n "(cached) " >&6
44866 else
44867   cat >conftest.$ac_ext <<_ACEOF
44868 /* confdefs.h.  */
44869 _ACEOF
44870 cat confdefs.h >>conftest.$ac_ext
44871 cat >>conftest.$ac_ext <<_ACEOF
44872 /* end confdefs.h.  */
44873 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
44874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44875 #define pthread_create innocuous_pthread_create
44876
44877 /* System header to define __stub macros and hopefully few prototypes,
44878     which can conflict with char pthread_create (); below.
44879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44880     <limits.h> exists even on freestanding compilers.  */
44881
44882 #ifdef __STDC__
44883 # include <limits.h>
44884 #else
44885 # include <assert.h>
44886 #endif
44887
44888 #undef pthread_create
44889
44890 /* Override any GCC internal prototype to avoid an error.
44891    Use char because int might match the return type of a GCC
44892    builtin and then its argument prototype would still apply.  */
44893 #ifdef __cplusplus
44894 extern "C"
44895 #endif
44896 char pthread_create ();
44897 /* The GNU C library defines this for functions which it implements
44898     to always fail with ENOSYS.  Some functions are actually named
44899     something starting with __ and the normal name is an alias.  */
44900 #if defined __stub_pthread_create || defined __stub___pthread_create
44901 choke me
44902 #endif
44903
44904 int
44905 main ()
44906 {
44907 return pthread_create ();
44908   ;
44909   return 0;
44910 }
44911 _ACEOF
44912 rm -f conftest.$ac_objext conftest$ac_exeext
44913 if { (ac_try="$ac_link"
44914 case "(($ac_try" in
44915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44916   *) ac_try_echo=$ac_try;;
44917 esac
44918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44919 $as_echo "$ac_try_echo") >&5
44920   (eval "$ac_link") 2>conftest.er1
44921   ac_status=$?
44922   grep -v '^ *+' conftest.er1 >conftest.err
44923   rm -f conftest.er1
44924   cat conftest.err >&5
44925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926   (exit $ac_status); } && {
44927          test -z "$ac_c_werror_flag" ||
44928          test ! -s conftest.err
44929        } && test -s conftest$ac_exeext && {
44930          test "$cross_compiling" = yes ||
44931          $as_test_x conftest$ac_exeext
44932        }; then
44933   ac_cv_func_pthread_create=yes
44934 else
44935   $as_echo "$as_me: failed program was:" >&5
44936 sed 's/^/| /' conftest.$ac_ext >&5
44937
44938         ac_cv_func_pthread_create=no
44939 fi
44940
44941 rm -rf conftest.dSYM
44942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44943       conftest$ac_exeext conftest.$ac_ext
44944 fi
44945 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
44946 $as_echo "$ac_cv_func_pthread_create" >&6; }
44947
44948
44949
44950 fi
44951
44952
44953
44954 fi
44955
44956
44957
44958 fi
44959
44960
44961
44962
44963 for ac_header in sys/prctl.h sys/capability.h
44964 do
44965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44967   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44968 $as_echo_n "checking for $ac_header... " >&6; }
44969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44970   $as_echo_n "(cached) " >&6
44971 fi
44972 ac_res=`eval 'as_val=${'$as_ac_Header'}
44973                  $as_echo "$as_val"'`
44974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44975 $as_echo "$ac_res" >&6; }
44976 else
44977   # Is the header compilable?
44978 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
44979 $as_echo_n "checking $ac_header usability... " >&6; }
44980 cat >conftest.$ac_ext <<_ACEOF
44981 /* confdefs.h.  */
44982 _ACEOF
44983 cat confdefs.h >>conftest.$ac_ext
44984 cat >>conftest.$ac_ext <<_ACEOF
44985 /* end confdefs.h.  */
44986 $ac_includes_default
44987 #include <$ac_header>
44988 _ACEOF
44989 rm -f conftest.$ac_objext
44990 if { (ac_try="$ac_compile"
44991 case "(($ac_try" in
44992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44993   *) ac_try_echo=$ac_try;;
44994 esac
44995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44996 $as_echo "$ac_try_echo") >&5
44997   (eval "$ac_compile") 2>conftest.er1
44998   ac_status=$?
44999   grep -v '^ *+' conftest.er1 >conftest.err
45000   rm -f conftest.er1
45001   cat conftest.err >&5
45002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45003   (exit $ac_status); } && {
45004          test -z "$ac_c_werror_flag" ||
45005          test ! -s conftest.err
45006        } && test -s conftest.$ac_objext; then
45007   ac_header_compiler=yes
45008 else
45009   $as_echo "$as_me: failed program was:" >&5
45010 sed 's/^/| /' conftest.$ac_ext >&5
45011
45012         ac_header_compiler=no
45013 fi
45014
45015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45017 $as_echo "$ac_header_compiler" >&6; }
45018
45019 # Is the header present?
45020 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45021 $as_echo_n "checking $ac_header presence... " >&6; }
45022 cat >conftest.$ac_ext <<_ACEOF
45023 /* confdefs.h.  */
45024 _ACEOF
45025 cat confdefs.h >>conftest.$ac_ext
45026 cat >>conftest.$ac_ext <<_ACEOF
45027 /* end confdefs.h.  */
45028 #include <$ac_header>
45029 _ACEOF
45030 if { (ac_try="$ac_cpp conftest.$ac_ext"
45031 case "(($ac_try" in
45032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45033   *) ac_try_echo=$ac_try;;
45034 esac
45035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45036 $as_echo "$ac_try_echo") >&5
45037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45038   ac_status=$?
45039   grep -v '^ *+' conftest.er1 >conftest.err
45040   rm -f conftest.er1
45041   cat conftest.err >&5
45042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45043   (exit $ac_status); } >/dev/null && {
45044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45045          test ! -s conftest.err
45046        }; then
45047   ac_header_preproc=yes
45048 else
45049   $as_echo "$as_me: failed program was:" >&5
45050 sed 's/^/| /' conftest.$ac_ext >&5
45051
45052   ac_header_preproc=no
45053 fi
45054
45055 rm -f conftest.err conftest.$ac_ext
45056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45057 $as_echo "$ac_header_preproc" >&6; }
45058
45059 # So?  What about this header?
45060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45061   yes:no: )
45062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45063 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45066     ac_header_preproc=yes
45067     ;;
45068   no:yes:* )
45069     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45070 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45072 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45074 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45076 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45080 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45081
45082     ;;
45083 esac
45084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45085 $as_echo_n "checking for $ac_header... " >&6; }
45086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45087   $as_echo_n "(cached) " >&6
45088 else
45089   eval "$as_ac_Header=\$ac_header_preproc"
45090 fi
45091 ac_res=`eval 'as_val=${'$as_ac_Header'}
45092                  $as_echo "$as_val"'`
45093                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45094 $as_echo "$ac_res" >&6; }
45095
45096 fi
45097 as_val=`eval 'as_val=${'$as_ac_Header'}
45098                  $as_echo "$as_val"'`
45099    if test "x$as_val" = x""yes; then
45100   cat >>confdefs.h <<_ACEOF
45101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45102 _ACEOF
45103
45104 fi
45105
45106 done
45107
45108
45109
45110 for ac_func in prctl setreuid
45111 do
45112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45114 $as_echo_n "checking for $ac_func... " >&6; }
45115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45116   $as_echo_n "(cached) " >&6
45117 else
45118   cat >conftest.$ac_ext <<_ACEOF
45119 /* confdefs.h.  */
45120 _ACEOF
45121 cat confdefs.h >>conftest.$ac_ext
45122 cat >>conftest.$ac_ext <<_ACEOF
45123 /* end confdefs.h.  */
45124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45126 #define $ac_func innocuous_$ac_func
45127
45128 /* System header to define __stub macros and hopefully few prototypes,
45129     which can conflict with char $ac_func (); below.
45130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45131     <limits.h> exists even on freestanding compilers.  */
45132
45133 #ifdef __STDC__
45134 # include <limits.h>
45135 #else
45136 # include <assert.h>
45137 #endif
45138
45139 #undef $ac_func
45140
45141 /* Override any GCC internal prototype to avoid an error.
45142    Use char because int might match the return type of a GCC
45143    builtin and then its argument prototype would still apply.  */
45144 #ifdef __cplusplus
45145 extern "C"
45146 #endif
45147 char $ac_func ();
45148 /* The GNU C library defines this for functions which it implements
45149     to always fail with ENOSYS.  Some functions are actually named
45150     something starting with __ and the normal name is an alias.  */
45151 #if defined __stub_$ac_func || defined __stub___$ac_func
45152 choke me
45153 #endif
45154
45155 int
45156 main ()
45157 {
45158 return $ac_func ();
45159   ;
45160   return 0;
45161 }
45162 _ACEOF
45163 rm -f conftest.$ac_objext conftest$ac_exeext
45164 if { (ac_try="$ac_link"
45165 case "(($ac_try" in
45166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45167   *) ac_try_echo=$ac_try;;
45168 esac
45169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45170 $as_echo "$ac_try_echo") >&5
45171   (eval "$ac_link") 2>conftest.er1
45172   ac_status=$?
45173   grep -v '^ *+' conftest.er1 >conftest.err
45174   rm -f conftest.er1
45175   cat conftest.err >&5
45176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45177   (exit $ac_status); } && {
45178          test -z "$ac_c_werror_flag" ||
45179          test ! -s conftest.err
45180        } && test -s conftest$ac_exeext && {
45181          test "$cross_compiling" = yes ||
45182          $as_test_x conftest$ac_exeext
45183        }; then
45184   eval "$as_ac_var=yes"
45185 else
45186   $as_echo "$as_me: failed program was:" >&5
45187 sed 's/^/| /' conftest.$ac_ext >&5
45188
45189         eval "$as_ac_var=no"
45190 fi
45191
45192 rm -rf conftest.dSYM
45193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45194       conftest$ac_exeext conftest.$ac_ext
45195 fi
45196 ac_res=`eval 'as_val=${'$as_ac_var'}
45197                  $as_echo "$as_val"'`
45198                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45199 $as_echo "$ac_res" >&6; }
45200 as_val=`eval 'as_val=${'$as_ac_var'}
45201                  $as_echo "$as_val"'`
45202    if test "x$as_val" = x""yes; then
45203   cat >>confdefs.h <<_ACEOF
45204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45205 _ACEOF
45206
45207 fi
45208 done
45209
45210 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
45211 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
45212 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
45213   $as_echo_n "(cached) " >&6
45214 else
45215   ac_check_lib_save_LIBS=$LIBS
45216 LIBS="-lcap  $LIBS"
45217 cat >conftest.$ac_ext <<_ACEOF
45218 /* confdefs.h.  */
45219 _ACEOF
45220 cat confdefs.h >>conftest.$ac_ext
45221 cat >>conftest.$ac_ext <<_ACEOF
45222 /* end confdefs.h.  */
45223
45224 /* Override any GCC internal prototype to avoid an error.
45225    Use char because int might match the return type of a GCC
45226    builtin and then its argument prototype would still apply.  */
45227 #ifdef __cplusplus
45228 extern "C"
45229 #endif
45230 char cap_set_proc ();
45231 int
45232 main ()
45233 {
45234 return cap_set_proc ();
45235   ;
45236   return 0;
45237 }
45238 _ACEOF
45239 rm -f conftest.$ac_objext conftest$ac_exeext
45240 if { (ac_try="$ac_link"
45241 case "(($ac_try" in
45242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45243   *) ac_try_echo=$ac_try;;
45244 esac
45245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45246 $as_echo "$ac_try_echo") >&5
45247   (eval "$ac_link") 2>conftest.er1
45248   ac_status=$?
45249   grep -v '^ *+' conftest.er1 >conftest.err
45250   rm -f conftest.er1
45251   cat conftest.err >&5
45252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45253   (exit $ac_status); } && {
45254          test -z "$ac_c_werror_flag" ||
45255          test ! -s conftest.err
45256        } && test -s conftest$ac_exeext && {
45257          test "$cross_compiling" = yes ||
45258          $as_test_x conftest$ac_exeext
45259        }; then
45260   ac_cv_lib_cap_cap_set_proc=yes
45261 else
45262   $as_echo "$as_me: failed program was:" >&5
45263 sed 's/^/| /' conftest.$ac_ext >&5
45264
45265         ac_cv_lib_cap_cap_set_proc=no
45266 fi
45267
45268 rm -rf conftest.dSYM
45269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45270       conftest$ac_exeext conftest.$ac_ext
45271 LIBS=$ac_check_lib_save_LIBS
45272 fi
45273 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
45274 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
45275 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
45276   CAP_LIBS="-lcap"
45277 else
45278   CAP_LIBS=
45279 fi
45280
45281 if test x$CAP_LIBS = x-lcap; then
45282
45283 cat >>confdefs.h <<\_ACEOF
45284 #define HAVE_LIBCAP 1
45285 _ACEOF
45286
45287 fi
45288
45289
45290
45291 cat >>confdefs.h <<\_ACEOF
45292 #define FDLIBS 1
45293 _ACEOF
45294
45295
45296 CFLAGS=${CFLAGS--O}
45297
45298 if test x$have_gcc = xyes ; then
45299    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45300    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45301 fi
45302 LDFLAGS=${LDFLAGS--O}
45303 DB_LIBS="${SQL_LFLAGS}"
45304 CPPFLAGS="$CPPFLAGS"
45305 CFLAGS="$CFLAGS"
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322 OBJLIST=
45323
45324
45325 lld="lld"
45326 llu="llu"
45327
45328 WCFLAGS=
45329 WLDFLAGS=
45330
45331 PFILES="platforms/Makefile"
45332 PSCMD="ps -e"
45333 WIN32=
45334 MACOSX=
45335
45336 hostname=`uname -n | cut -d '.' -f 1`
45337 if test x${hostname} = x ; then
45338    hostname="localhost"
45339 fi
45340 ping -c 1 $hostname 2>/dev/null 1>/dev/null
45341 if test ! $? = 0; then
45342   hostname="localhost"
45343 fi
45344
45345 case "$DISTNAME" in
45346 aix)
45347    DISTVER=`uname -r`
45348    PSCMD="ps -e -o pid,comm"
45349    PFILES="${PFILES} \
45350       platforms/aix/Makefile"
45351    TAPEDRIVE="/dev/rmt0.1"
45352   ;;
45353 alpha)
45354    DISTVER=`uname -r`
45355    PTHREAD_LIB="-lpthread -lexc"
45356    if test "${CC}" = "gcc" ; then
45357       lld="lld"
45358       llu="llu"
45359    else
45360       lld="ld"
45361       llu="lu"
45362    fi
45363    TAPEDRIVE="/dev/nrmt0"
45364   ;;
45365 bsdi)
45366    DISTVER=`uname -a |awk '{print $3}'`
45367    TAPEDRIVE="/dev/nrmt0"
45368    PTHREAD_LIB="-pthread"
45369    CFLAGS="${CFLAGS} -pthread"
45370    PSCMD="ps -ax -o pid,command"
45371    lld="qd"
45372    llu="qu"
45373    PFILES="${PFILES} \
45374        platforms/bsdi/Makefile \
45375        platforms/bsdi/bacula-fd \
45376        platforms/bsdi/bacula-sd \
45377        platforms/bsdi/bacula-dir"
45378    largefile_support="yes"
45379   ;;
45380 cygwin)
45381    DISTVER=`uname -a |awk '{print $3}'`
45382    TAPEDRIVE="/dev/nrst0"
45383    WIN32=win32
45384    WCFLAGS="-mwindows"
45385    WLDFLAGS="-mwindows"
45386   ;;
45387 darwin)
45388    DISTVER=`uname -r`
45389    TAPEDRIVE="/dev/nst0"
45390    PSCMD="ps -e -o pid,command"
45391    MACOSX=macosx
45392    PFILES="${PFILES} \
45393       platforms/darwin/Makefile"
45394   ;;
45395 osx)
45396    DISTVER=`uname -r`
45397    TAPEDRIVE="/dev/nst0"
45398    PSCMD="ps -e -o pid,command"
45399    MACOSX=macosx
45400    PFILES="${PFILES} \
45401       platforms/osx/Makefile"
45402   ;;
45403 debian)
45404    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
45405       DISTNAME="ubuntu"
45406    fi
45407    DISTVER=`cat /etc/debian_version`
45408    if test -f /etc/lsb-release ; then
45409       . /etc/lsb-release
45410       if test "x$DISTRIB_ID" != "x" ; then
45411          DISTNAME=$DISTRIB_ID
45412       fi
45413       if test "x$DISTRIB_RELEASE" != "x" ; then
45414          DISTVER=$DISTRIB_RELEASE
45415       fi
45416    fi
45417    if test "$DISTNAME" = "Ubuntu" ; then
45418       DISTNAME="ubuntu"
45419    fi
45420    TAPEDRIVE="/dev/nst0"
45421    PSCMD="ps -e -o pid,command"
45422    if test "$DISTNAME" = "ubuntu" ; then
45423       PFILES="${PFILES} \
45424          platforms/ubuntu/Makefile \
45425          platforms/ubuntu/bacula-fd \
45426          platforms/ubuntu/bacula-sd \
45427          platforms/ubuntu/bacula-dir"
45428    else
45429       PFILES="${PFILES} \
45430          platforms/debian/Makefile \
45431          platforms/debian/bacula-fd \
45432          platforms/debian/bacula-sd \
45433          platforms/debian/bacula-dir"
45434    fi
45435   ;;
45436 freebsd)
45437    DISTVER=`uname -a |awk '{print $3}'`
45438    VER=`echo $DISTVER | cut -c 1`
45439    if test x$VER = x4 ; then
45440       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
45441       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
45442    fi
45443    lld="qd"
45444    llu="qu"
45445    TAPEDRIVE="/dev/nrsa0"
45446    PSCMD="ps -ax -o pid,command"
45447    PFILES="${PFILES} \
45448        platforms/freebsd/Makefile \
45449        platforms/freebsd/bacula-fd \
45450        platforms/freebsd/bacula-sd \
45451        platforms/freebsd/bacula-dir"
45452    largefile_support="yes"
45453   ;;
45454 hpux)
45455    PSCMD="UNIX95=1; ps -e -o pid,comm"
45456    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
45457    DISTVER=`uname -r`
45458    TAPEDRIVE="/dev/rmt/0hnb"
45459    PTHREAD_LIB="-lpthread"
45460    cat >>confdefs.h <<\_ACEOF
45461 #define _INCLUDE_LONGLONG 1
45462 _ACEOF
45463
45464   ;;
45465 irix)
45466    DISTVER=`uname -r`
45467    TAPEDRIVE="/dev/rmt/0cbn"
45468    PSCMD="ps -e -o pid,comm"
45469    PFILES="${PFILES} \
45470        platforms/irix/Makefile \
45471        platforms/irix/bacula-fd \
45472        platforms/irix/bacula-sd \
45473        platforms/irix/bacula-dir"
45474   ;;
45475 netbsd)
45476    DISTVER=`uname -a |awk '{print $3}'`
45477    lld="qd"
45478    llu="qu"
45479    TAPEDRIVE="/dev/nrst0"
45480    PSCMD="ps -ax -o pid,command"
45481    PTHREAD_LIB="-pthread"
45482    CFLAGS="${CFLAGS} -pthread"
45483   ;;
45484 openbsd)
45485    DISTVER=`uname -a |awk '{print $3}'`
45486    lld="qd"
45487    llu="qu"
45488    TAPEDRIVE="/dev/nrst0"
45489    PSCMD="ps -ax -o pid,command"
45490    PTHREAD_LIB="-pthread"
45491    CFLAGS="${CFLAGS} -pthread"
45492    PFILES="${PFILES} \
45493        platforms/openbsd/Makefile \
45494        platforms/openbsd/bacula-fd \
45495        platforms/openbsd/bacula-sd \
45496        platforms/openbsd/bacula-dir"
45497   ;;
45498 redhat)
45499    if test -f /etc/whitebox-release ; then
45500       f=/etc/whitebox-release
45501    else
45502       f=/etc/redhat-release
45503    fi
45504    if test `cat $f | grep release |\
45505          cut -f 3 -d ' '`x = "Enterprise"x ; then
45506       DISTVER="Enterprise "`cat $f | grep release |\
45507           cut -f 6 -d ' '`
45508    else
45509        DISTVER=`cat /etc/redhat-release | grep release |\
45510            cut -f 5 -d ' '`
45511    fi
45512    TAPEDRIVE="/dev/nst0"
45513    PSCMD="ps -e -o pid,command"
45514    PFILES="${PFILES} \
45515        platforms/redhat/Makefile \
45516        platforms/redhat/bacula-fd \
45517        platforms/redhat/bacula-sd \
45518        platforms/redhat/bacula-dir
45519        "
45520   ;;
45521 mandrake)
45522    DISTVER=`cat /etc/mandrake-release | grep release |\
45523       cut -f 5 -d ' '`
45524    TAPEDRIVE="/dev/nst0"
45525    PSCMD="ps -e -o pid,command"
45526    PFILES="${PFILES} \
45527        platforms/mandrake/Makefile \
45528        platforms/mandrake/bacula-fd \
45529        platforms/mandrake/bacula-sd \
45530        platforms/mandrake/bacula-dir \
45531        "
45532   ;;
45533 gentoo)
45534    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
45535    TAPEDRIVE="/dev/nst0"
45536    PSCMD="ps -e -o pid,command"
45537    PFILES="${PFILES} \
45538        platforms/gentoo/Makefile \
45539     platforms/gentoo/bacula-init \
45540        platforms/gentoo/bacula-fd \
45541        platforms/gentoo/bacula-sd \
45542        platforms/gentoo/bacula-dir"
45543   ;;
45544 slackware)
45545    DISTVER=`cat /etc/slackware-version`
45546    TAPEDRIVE="/dev/nst0"
45547    PSCMD="ps -e -o pid,command"
45548    PFILES="${PFILES} \
45549        platforms/slackware/Makefile \
45550        platforms/slackware/rc.bacula-fd \
45551        platforms/slackware/rc.bacula-sd \
45552        platforms/slackware/rc.bacula-dir\
45553        platforms/slackware/functions.bacula"
45554   ;;
45555 solaris)
45556    DISTVER=`uname -r`
45557    TAPEDRIVE="/dev/rmt/0cbn"
45558    PSCMD="ps -e -o pid,comm"
45559    PFILES="${PFILES} \
45560        platforms/solaris/Makefile \
45561        platforms/solaris/bacula-fd \
45562        platforms/solaris/bacula-sd \
45563        platforms/solaris/bacula-dir"
45564    if test x$DISTVER = x5.6 ; then
45565        cat >>confdefs.h <<\_ACEOF
45566 #define HAVE_OLD_SOCKOPT 1
45567 _ACEOF
45568
45569    fi
45570    LIBS="$LIBS -lresolv -lrt"
45571   ;;
45572 suse)
45573    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
45574        cut -f 3 -d ' '`
45575    TAPEDRIVE="/dev/nst0"
45576    PSCMD="ps -e -o pid,command"
45577    PFILES="${PFILES} \
45578        platforms/suse/Makefile \
45579        platforms/suse/bacula-fd \
45580        platforms/suse/bacula-sd \
45581        platforms/suse/bacula-dir \
45582        platforms/suse/bacula"
45583   ;;
45584 suse5)
45585    DISTNAME=suse
45586    DISTVER=5.x
45587    TAPEDRIVE="/dev/nst0"
45588    PSCMD="ps -e -o pid,command"
45589    PFILES="${PFILES} \
45590        platforms/suse/Makefile \
45591        platforms/suse/bacula-fd \
45592        platforms/suse/bacula-sd \
45593        platforms/suse/bacula-dir"
45594   ;;
45595 unknown)
45596    DISTVER=unknown
45597    TAPEDRIVE="/dev/nst0"
45598   ;;
45599 *)
45600   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
45601   ;;
45602 esac
45603
45604
45605
45606 LIBS="$PTHREAD_LIB $LIBS"
45607
45608 cat >>confdefs.h <<_ACEOF
45609 #define lld "$lld"
45610 _ACEOF
45611
45612 cat >>confdefs.h <<_ACEOF
45613 #define llu "$llu"
45614 _ACEOF
45615
45616
45617
45618
45619
45620
45621
45622
45623 MCOMMON=./autoconf/Make.common
45624
45625
45626 if test "x${subsysdir}" = "x${sbindir}" ; then
45627    echo " "
45628    echo " "
45629    echo "You have set both --sbindir and --with-subsys-dir"
45630    echo "  equal to: ${subsysdir} "
45631    echo "This is not permitted. Please reconfigure."
45632    echo " "
45633    echo "Aborting configuration ..."
45634    echo " "
45635    echo " "
45636    exit 1
45637 fi
45638
45639 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"
45640
45641 ac_config_commands="$ac_config_commands default"
45642
45643 cat >confcache <<\_ACEOF
45644 # This file is a shell script that caches the results of configure
45645 # tests run on this system so they can be shared between configure
45646 # scripts and configure runs, see configure's option --config-cache.
45647 # It is not useful on other systems.  If it contains results you don't
45648 # want to keep, you may remove or edit it.
45649 #
45650 # config.status only pays attention to the cache file if you give it
45651 # the --recheck option to rerun configure.
45652 #
45653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45655 # following values.
45656
45657 _ACEOF
45658
45659 # The following way of writing the cache mishandles newlines in values,
45660 # but we know of no workaround that is simple, portable, and efficient.
45661 # So, we kill variables containing newlines.
45662 # Ultrix sh set writes to stderr and can't be redirected directly,
45663 # and sets the high bit in the cache file unless we assign to the vars.
45664 (
45665   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45666     eval ac_val=\$$ac_var
45667     case $ac_val in #(
45668     *${as_nl}*)
45669       case $ac_var in #(
45670       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45672       esac
45673       case $ac_var in #(
45674       _ | IFS | as_nl) ;; #(
45675       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45676       *) $as_unset $ac_var ;;
45677       esac ;;
45678     esac
45679   done
45680
45681   (set) 2>&1 |
45682     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45683     *${as_nl}ac_space=\ *)
45684       # `set' does not quote correctly, so add quotes (double-quote
45685       # substitution turns \\\\ into \\, and sed turns \\ into \).
45686       sed -n \
45687         "s/'/'\\\\''/g;
45688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45689       ;; #(
45690     *)
45691       # `set' quotes correctly as required by POSIX, so do not add quotes.
45692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45693       ;;
45694     esac |
45695     sort
45696 ) |
45697   sed '
45698      /^ac_cv_env_/b end
45699      t clear
45700      :clear
45701      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45702      t end
45703      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45704      :end' >>confcache
45705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45706   if test -w "$cache_file"; then
45707     test "x$cache_file" != "x/dev/null" &&
45708       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45709 $as_echo "$as_me: updating cache $cache_file" >&6;}
45710     cat confcache >$cache_file
45711   else
45712     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45713 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45714   fi
45715 fi
45716 rm -f confcache
45717
45718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45719 # Let make expand exec_prefix.
45720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45721
45722 DEFS=-DHAVE_CONFIG_H
45723
45724 ac_libobjs=
45725 ac_ltlibobjs=
45726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45727   # 1. Remove the extension, and $U if already installed.
45728   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45729   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45730   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45731   #    will be set to the directory where LIBOBJS objects are built.
45732   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45733   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45734 done
45735 LIBOBJS=$ac_libobjs
45736
45737 LTLIBOBJS=$ac_ltlibobjs
45738
45739
45740
45741 : ${CONFIG_STATUS=./config.status}
45742 ac_write_fail=0
45743 ac_clean_files_save=$ac_clean_files
45744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45745 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45747 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45748 #! $SHELL
45749 # Generated by $as_me.
45750 # Run this file to recreate the current configuration.
45751 # Compiler output produced by configure, useful for debugging
45752 # configure, is in config.log if it exists.
45753
45754 debug=false
45755 ac_cs_recheck=false
45756 ac_cs_silent=false
45757 SHELL=\${CONFIG_SHELL-$SHELL}
45758 _ACEOF
45759
45760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45761 ## --------------------- ##
45762 ## M4sh Initialization.  ##
45763 ## --------------------- ##
45764
45765 # Be more Bourne compatible
45766 DUALCASE=1; export DUALCASE # for MKS sh
45767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45768   emulate sh
45769   NULLCMD=:
45770   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45771   # is contrary to our usage.  Disable this feature.
45772   alias -g '${1+"$@"}'='"$@"'
45773   setopt NO_GLOB_SUBST
45774 else
45775   case `(set -o) 2>/dev/null` in
45776   *posix*) set -o posix ;;
45777 esac
45778
45779 fi
45780
45781
45782
45783
45784 # PATH needs CR
45785 # Avoid depending upon Character Ranges.
45786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45789 as_cr_digits='0123456789'
45790 as_cr_alnum=$as_cr_Letters$as_cr_digits
45791
45792 as_nl='
45793 '
45794 export as_nl
45795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45799 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45800   as_echo='printf %s\n'
45801   as_echo_n='printf %s'
45802 else
45803   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45804     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45805     as_echo_n='/usr/ucb/echo -n'
45806   else
45807     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45808     as_echo_n_body='eval
45809       arg=$1;
45810       case $arg in
45811       *"$as_nl"*)
45812         expr "X$arg" : "X\\(.*\\)$as_nl";
45813         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45814       esac;
45815       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45816     '
45817     export as_echo_n_body
45818     as_echo_n='sh -c $as_echo_n_body as_echo'
45819   fi
45820   export as_echo_body
45821   as_echo='sh -c $as_echo_body as_echo'
45822 fi
45823
45824 # The user is always right.
45825 if test "${PATH_SEPARATOR+set}" != set; then
45826   PATH_SEPARATOR=:
45827   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45828     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45829       PATH_SEPARATOR=';'
45830   }
45831 fi
45832
45833 # Support unset when possible.
45834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45835   as_unset=unset
45836 else
45837   as_unset=false
45838 fi
45839
45840
45841 # IFS
45842 # We need space, tab and new line, in precisely that order.  Quoting is
45843 # there to prevent editors from complaining about space-tab.
45844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45845 # splitting by setting IFS to empty value.)
45846 IFS=" ""        $as_nl"
45847
45848 # Find who we are.  Look in the path if we contain no directory separator.
45849 case $0 in
45850   *[\\/]* ) as_myself=$0 ;;
45851   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45852 for as_dir in $PATH
45853 do
45854   IFS=$as_save_IFS
45855   test -z "$as_dir" && as_dir=.
45856   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45857 done
45858 IFS=$as_save_IFS
45859
45860      ;;
45861 esac
45862 # We did not find ourselves, most probably we were run as `sh COMMAND'
45863 # in which case we are not to be found in the path.
45864 if test "x$as_myself" = x; then
45865   as_myself=$0
45866 fi
45867 if test ! -f "$as_myself"; then
45868   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45869   { (exit 1); exit 1; }
45870 fi
45871
45872 # Work around bugs in pre-3.0 UWIN ksh.
45873 for as_var in ENV MAIL MAILPATH
45874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45875 done
45876 PS1='$ '
45877 PS2='> '
45878 PS4='+ '
45879
45880 # NLS nuisances.
45881 LC_ALL=C
45882 export LC_ALL
45883 LANGUAGE=C
45884 export LANGUAGE
45885
45886 # Required to use basename.
45887 if expr a : '\(a\)' >/dev/null 2>&1 &&
45888    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45889   as_expr=expr
45890 else
45891   as_expr=false
45892 fi
45893
45894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45895   as_basename=basename
45896 else
45897   as_basename=false
45898 fi
45899
45900
45901 # Name of the executable.
45902 as_me=`$as_basename -- "$0" ||
45903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45904          X"$0" : 'X\(//\)$' \| \
45905          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45906 $as_echo X/"$0" |
45907     sed '/^.*\/\([^/][^/]*\)\/*$/{
45908             s//\1/
45909             q
45910           }
45911           /^X\/\(\/\/\)$/{
45912             s//\1/
45913             q
45914           }
45915           /^X\/\(\/\).*/{
45916             s//\1/
45917             q
45918           }
45919           s/.*/./; q'`
45920
45921 # CDPATH.
45922 $as_unset CDPATH
45923
45924
45925
45926   as_lineno_1=$LINENO
45927   as_lineno_2=$LINENO
45928   test "x$as_lineno_1" != "x$as_lineno_2" &&
45929   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45930
45931   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45932   # uniformly replaced by the line number.  The first 'sed' inserts a
45933   # line-number line after each line using $LINENO; the second 'sed'
45934   # does the real work.  The second script uses 'N' to pair each
45935   # line-number line with the line containing $LINENO, and appends
45936   # trailing '-' during substitution so that $LINENO is not a special
45937   # case at line end.
45938   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45939   # scripts with optimization help from Paolo Bonzini.  Blame Lee
45940   # E. McMahon (1931-1989) for sed's syntax.  :-)
45941   sed -n '
45942     p
45943     /[$]LINENO/=
45944   ' <$as_myself |
45945     sed '
45946       s/[$]LINENO.*/&-/
45947       t lineno
45948       b
45949       :lineno
45950       N
45951       :loop
45952       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45953       t loop
45954       s/-\n.*//
45955     ' >$as_me.lineno &&
45956   chmod +x "$as_me.lineno" ||
45957     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45958    { (exit 1); exit 1; }; }
45959
45960   # Don't try to exec as it changes $[0], causing all sort of problems
45961   # (the dirname of $[0] is not the place where we might find the
45962   # original and so on.  Autoconf is especially sensitive to this).
45963   . "./$as_me.lineno"
45964   # Exit status is that of the last command.
45965   exit
45966 }
45967
45968
45969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45970   as_dirname=dirname
45971 else
45972   as_dirname=false
45973 fi
45974
45975 ECHO_C= ECHO_N= ECHO_T=
45976 case `echo -n x` in
45977 -n*)
45978   case `echo 'x\c'` in
45979   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45980   *)   ECHO_C='\c';;
45981   esac;;
45982 *)
45983   ECHO_N='-n';;
45984 esac
45985 if expr a : '\(a\)' >/dev/null 2>&1 &&
45986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45987   as_expr=expr
45988 else
45989   as_expr=false
45990 fi
45991
45992 rm -f conf$$ conf$$.exe conf$$.file
45993 if test -d conf$$.dir; then
45994   rm -f conf$$.dir/conf$$.file
45995 else
45996   rm -f conf$$.dir
45997   mkdir conf$$.dir 2>/dev/null
45998 fi
45999 if (echo >conf$$.file) 2>/dev/null; then
46000   if ln -s conf$$.file conf$$ 2>/dev/null; then
46001     as_ln_s='ln -s'
46002     # ... but there are two gotchas:
46003     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46004     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46005     # In both cases, we have to default to `cp -p'.
46006     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46007       as_ln_s='cp -p'
46008   elif ln conf$$.file conf$$ 2>/dev/null; then
46009     as_ln_s=ln
46010   else
46011     as_ln_s='cp -p'
46012   fi
46013 else
46014   as_ln_s='cp -p'
46015 fi
46016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46017 rmdir conf$$.dir 2>/dev/null
46018
46019 if mkdir -p . 2>/dev/null; then
46020   as_mkdir_p=:
46021 else
46022   test -d ./-p && rmdir ./-p
46023   as_mkdir_p=false
46024 fi
46025
46026 if test -x / >/dev/null 2>&1; then
46027   as_test_x='test -x'
46028 else
46029   if ls -dL / >/dev/null 2>&1; then
46030     as_ls_L_option=L
46031   else
46032     as_ls_L_option=
46033   fi
46034   as_test_x='
46035     eval sh -c '\''
46036       if test -d "$1"; then
46037         test -d "$1/.";
46038       else
46039         case $1 in
46040         -*)set "./$1";;
46041         esac;
46042         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46043         ???[sx]*):;;*)false;;esac;fi
46044     '\'' sh
46045   '
46046 fi
46047 as_executable_p=$as_test_x
46048
46049 # Sed expression to map a string onto a valid CPP name.
46050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46051
46052 # Sed expression to map a string onto a valid variable name.
46053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46054
46055
46056 exec 6>&1
46057
46058 # Save the log message, to keep $[0] and so on meaningful, and to
46059 # report actual input values of CONFIG_FILES etc. instead of their
46060 # values after options handling.
46061 ac_log="
46062 This file was extended by $as_me, which was
46063 generated by GNU Autoconf 2.63.  Invocation command line was
46064
46065   CONFIG_FILES    = $CONFIG_FILES
46066   CONFIG_HEADERS  = $CONFIG_HEADERS
46067   CONFIG_LINKS    = $CONFIG_LINKS
46068   CONFIG_COMMANDS = $CONFIG_COMMANDS
46069   $ $0 $@
46070
46071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46072 "
46073
46074 _ACEOF
46075
46076 case $ac_config_files in *"
46077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46078 esac
46079
46080 case $ac_config_headers in *"
46081 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46082 esac
46083
46084
46085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46086 # Files that config.status was made for.
46087 config_files="$ac_config_files"
46088 config_headers="$ac_config_headers"
46089 config_commands="$ac_config_commands"
46090
46091 _ACEOF
46092
46093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46094 ac_cs_usage="\
46095 \`$as_me' instantiates files from templates according to the
46096 current configuration.
46097
46098 Usage: $0 [OPTION]... [FILE]...
46099
46100   -h, --help       print this help, then exit
46101   -V, --version    print version number and configuration settings, then exit
46102   -q, --quiet, --silent
46103                    do not print progress messages
46104   -d, --debug      don't remove temporary files
46105       --recheck    update $as_me by reconfiguring in the same conditions
46106       --file=FILE[:TEMPLATE]
46107                    instantiate the configuration file FILE
46108       --header=FILE[:TEMPLATE]
46109                    instantiate the configuration header FILE
46110
46111 Configuration files:
46112 $config_files
46113
46114 Configuration headers:
46115 $config_headers
46116
46117 Configuration commands:
46118 $config_commands
46119
46120 Report bugs to <bug-autoconf@gnu.org>."
46121
46122 _ACEOF
46123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46124 ac_cs_version="\\
46125 config.status
46126 configured by $0, generated by GNU Autoconf 2.63,
46127   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46128
46129 Copyright (C) 2008 Free Software Foundation, Inc.
46130 This config.status script is free software; the Free Software Foundation
46131 gives unlimited permission to copy, distribute and modify it."
46132
46133 ac_pwd='$ac_pwd'
46134 srcdir='$srcdir'
46135 INSTALL='$INSTALL'
46136 AWK='$AWK'
46137 test -n "\$AWK" || AWK=awk
46138 _ACEOF
46139
46140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46141 # The default lists apply if the user does not specify any file.
46142 ac_need_defaults=:
46143 while test $# != 0
46144 do
46145   case $1 in
46146   --*=*)
46147     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46148     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46149     ac_shift=:
46150     ;;
46151   *)
46152     ac_option=$1
46153     ac_optarg=$2
46154     ac_shift=shift
46155     ;;
46156   esac
46157
46158   case $ac_option in
46159   # Handling of the options.
46160   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46161     ac_cs_recheck=: ;;
46162   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46163     $as_echo "$ac_cs_version"; exit ;;
46164   --debug | --debu | --deb | --de | --d | -d )
46165     debug=: ;;
46166   --file | --fil | --fi | --f )
46167     $ac_shift
46168     case $ac_optarg in
46169     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46170     esac
46171     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46172     ac_need_defaults=false;;
46173   --header | --heade | --head | --hea )
46174     $ac_shift
46175     case $ac_optarg in
46176     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46177     esac
46178     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46179     ac_need_defaults=false;;
46180   --he | --h)
46181     # Conflict between --help and --header
46182     { $as_echo "$as_me: error: ambiguous option: $1
46183 Try \`$0 --help' for more information." >&2
46184    { (exit 1); exit 1; }; };;
46185   --help | --hel | -h )
46186     $as_echo "$ac_cs_usage"; exit ;;
46187   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46188   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46189     ac_cs_silent=: ;;
46190
46191   # This is an error.
46192   -*) { $as_echo "$as_me: error: unrecognized option: $1
46193 Try \`$0 --help' for more information." >&2
46194    { (exit 1); exit 1; }; } ;;
46195
46196   *) ac_config_targets="$ac_config_targets $1"
46197      ac_need_defaults=false ;;
46198
46199   esac
46200   shift
46201 done
46202
46203 ac_configure_extra_args=
46204
46205 if $ac_cs_silent; then
46206   exec 6>/dev/null
46207   ac_configure_extra_args="$ac_configure_extra_args --silent"
46208 fi
46209
46210 _ACEOF
46211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46212 if \$ac_cs_recheck; then
46213   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46214   shift
46215   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46216   CONFIG_SHELL='$SHELL'
46217   export CONFIG_SHELL
46218   exec "\$@"
46219 fi
46220
46221 _ACEOF
46222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46223 exec 5>>config.log
46224 {
46225   echo
46226   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46227 ## Running $as_me. ##
46228 _ASBOX
46229   $as_echo "$ac_log"
46230 } >&5
46231
46232 _ACEOF
46233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46234 #
46235 # INIT-COMMANDS
46236 #
46237
46238
46239 # The HP-UX ksh and POSIX shell print the target directory to stdout
46240 # if CDPATH is set.
46241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46242
46243 sed_quote_subst='$sed_quote_subst'
46244 double_quote_subst='$double_quote_subst'
46245 delay_variable_subst='$delay_variable_subst'
46246 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46247 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46248 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46249 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46250 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46251 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46252 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46253 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46254 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46255 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46256 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46257 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46258 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46259 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46260 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46261 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46262 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46263 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46264 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46265 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46266 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46267 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46268 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46269 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46270 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46271 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46272 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46273 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46274 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46275 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46276 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46277 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46278 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46279 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46280 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46281 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46282 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46283 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46284 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46285 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46286 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46287 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46288 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46289 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46290 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"`'
46291 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"`'
46292 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46293 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46294 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46295 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46296 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46297 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46298 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46299 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46300 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46301 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46302 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46303 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46304 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46305 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46306 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46307 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46308 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46309 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46310 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46311 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46312 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46313 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46314 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46315 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46316 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46317 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46318 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46319 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46320 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46321 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46322 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46323 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46324 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46325 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46326 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46327 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46328 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46329 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46330 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46331 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46332 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46333 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46334 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46335 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46336 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46337 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46338 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46339 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46340 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46341 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46342 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46343 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46344 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46345 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46346 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46347 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46348 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46349 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46350 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46351 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46352 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46353 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46354 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46355 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46356 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46357 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46358 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46359 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46360 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46361 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46362 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46363 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46364 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46365 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46366 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46367 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46368 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46369 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46370 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46371 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46372 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46373 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46374 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46375 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46376 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46377 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46378 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46379 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46380 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46381 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46382 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46383 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46384 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46385 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46386 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46387 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46388 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46389 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46390 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46391 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46392 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46393 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46394 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46395 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46396 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46397 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46398 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46399 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46400 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46401 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46402 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46403 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46404 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46405 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46406 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46407 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46408 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46409 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46410 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46411 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46412 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46413 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46414 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46415 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46416 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46417
46418 LTCC='$LTCC'
46419 LTCFLAGS='$LTCFLAGS'
46420 compiler='$compiler_DEFAULT'
46421
46422 # Quote evaled strings.
46423 for var in SED \
46424 GREP \
46425 EGREP \
46426 FGREP \
46427 LD \
46428 NM \
46429 LN_S \
46430 lt_SP2NL \
46431 lt_NL2SP \
46432 reload_flag \
46433 OBJDUMP \
46434 deplibs_check_method \
46435 file_magic_cmd \
46436 AR \
46437 AR_FLAGS \
46438 STRIP \
46439 RANLIB \
46440 CC \
46441 CFLAGS \
46442 compiler \
46443 lt_cv_sys_global_symbol_pipe \
46444 lt_cv_sys_global_symbol_to_cdecl \
46445 lt_cv_sys_global_symbol_to_c_name_address \
46446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46447 SHELL \
46448 ECHO \
46449 lt_prog_compiler_no_builtin_flag \
46450 lt_prog_compiler_wl \
46451 lt_prog_compiler_pic \
46452 lt_prog_compiler_static \
46453 lt_cv_prog_compiler_c_o \
46454 need_locks \
46455 DSYMUTIL \
46456 NMEDIT \
46457 LIPO \
46458 OTOOL \
46459 OTOOL64 \
46460 shrext_cmds \
46461 export_dynamic_flag_spec \
46462 whole_archive_flag_spec \
46463 compiler_needs_object \
46464 with_gnu_ld \
46465 allow_undefined_flag \
46466 no_undefined_flag \
46467 hardcode_libdir_flag_spec \
46468 hardcode_libdir_flag_spec_ld \
46469 hardcode_libdir_separator \
46470 fix_srcfile_path \
46471 exclude_expsyms \
46472 include_expsyms \
46473 file_list_spec \
46474 variables_saved_for_relink \
46475 libname_spec \
46476 library_names_spec \
46477 soname_spec \
46478 finish_eval \
46479 old_striplib \
46480 striplib \
46481 compiler_lib_search_dirs \
46482 predep_objects \
46483 postdep_objects \
46484 predeps \
46485 postdeps \
46486 compiler_lib_search_path \
46487 LD_CXX \
46488 compiler_CXX \
46489 lt_prog_compiler_no_builtin_flag_CXX \
46490 lt_prog_compiler_wl_CXX \
46491 lt_prog_compiler_pic_CXX \
46492 lt_prog_compiler_static_CXX \
46493 lt_cv_prog_compiler_c_o_CXX \
46494 export_dynamic_flag_spec_CXX \
46495 whole_archive_flag_spec_CXX \
46496 compiler_needs_object_CXX \
46497 with_gnu_ld_CXX \
46498 allow_undefined_flag_CXX \
46499 no_undefined_flag_CXX \
46500 hardcode_libdir_flag_spec_CXX \
46501 hardcode_libdir_flag_spec_ld_CXX \
46502 hardcode_libdir_separator_CXX \
46503 fix_srcfile_path_CXX \
46504 exclude_expsyms_CXX \
46505 include_expsyms_CXX \
46506 file_list_spec_CXX \
46507 compiler_lib_search_dirs_CXX \
46508 predep_objects_CXX \
46509 postdep_objects_CXX \
46510 predeps_CXX \
46511 postdeps_CXX \
46512 compiler_lib_search_path_CXX; do
46513     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46514     *[\\\\\\\`\\"\\\$]*)
46515       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46516       ;;
46517     *)
46518       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46519       ;;
46520     esac
46521 done
46522
46523 # Double-quote double-evaled strings.
46524 for var in reload_cmds \
46525 old_postinstall_cmds \
46526 old_postuninstall_cmds \
46527 old_archive_cmds \
46528 extract_expsyms_cmds \
46529 old_archive_from_new_cmds \
46530 old_archive_from_expsyms_cmds \
46531 archive_cmds \
46532 archive_expsym_cmds \
46533 module_cmds \
46534 module_expsym_cmds \
46535 export_symbols_cmds \
46536 prelink_cmds \
46537 postinstall_cmds \
46538 postuninstall_cmds \
46539 finish_cmds \
46540 sys_lib_search_path_spec \
46541 sys_lib_dlsearch_path_spec \
46542 old_archive_cmds_CXX \
46543 old_archive_from_new_cmds_CXX \
46544 old_archive_from_expsyms_cmds_CXX \
46545 archive_cmds_CXX \
46546 archive_expsym_cmds_CXX \
46547 module_cmds_CXX \
46548 module_expsym_cmds_CXX \
46549 export_symbols_cmds_CXX \
46550 prelink_cmds_CXX; do
46551     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46552     *[\\\\\\\`\\"\\\$]*)
46553       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46554       ;;
46555     *)
46556       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46557       ;;
46558     esac
46559 done
46560
46561 # Fix-up fallback echo if it was mangled by the above quoting rules.
46562 case \$lt_ECHO in
46563 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46564   ;;
46565 esac
46566
46567 ac_aux_dir='$ac_aux_dir'
46568 xsi_shell='$xsi_shell'
46569 lt_shell_append='$lt_shell_append'
46570
46571 # See if we are running on zsh, and set the options which allow our
46572 # commands through without removal of \ escapes INIT.
46573 if test -n "\${ZSH_VERSION+set}" ; then
46574    setopt NO_GLOB_SUBST
46575 fi
46576
46577
46578     PACKAGE='$PACKAGE'
46579     VERSION='$VERSION'
46580     TIMESTAMP='$TIMESTAMP'
46581     RM='$RM'
46582     ofile='$ofile'
46583
46584
46585
46586
46587
46588 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46589     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
46590     # from automake.
46591     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46592     # Capture the value of LINGUAS because we need it to compute CATALOGS.
46593     LINGUAS="${LINGUAS-%UNSET%}"
46594
46595
46596 _ACEOF
46597
46598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46599
46600 # Handling of arguments.
46601 for ac_config_target in $ac_config_targets
46602 do
46603   case $ac_config_target in
46604     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
46605     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46606     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46607     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
46608     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46609     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
46610     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
46611     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
46612     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
46613     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
46614     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
46615     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
46616     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
46617     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
46618     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
46619     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
46620     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
46621     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
46622     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46623     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
46624     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
46625     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
46626     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
46627     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
46628     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
46629     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
46630     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
46631     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
46632     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
46633     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
46634     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
46635     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
46636     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
46637     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
46638     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
46639     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
46640     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
46641     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
46642     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
46643     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
46644     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
46645     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46646     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
46647     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
46648     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
46649     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
46650     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
46651     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
46652     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
46653     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
46654     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
46655     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
46656     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
46657     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
46658     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
46659     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
46660     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
46661     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
46662     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
46663     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
46664     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
46665     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
46666     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
46667     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
46668     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
46669     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
46670     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
46671     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
46672     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
46673     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
46674     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
46675     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
46676     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
46677     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
46678     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
46679     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
46680     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
46681     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
46682     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
46683     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
46684     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
46685     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
46686     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
46687     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
46688     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
46689     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
46690     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
46691     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
46692     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
46693     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
46694     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
46695     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
46696     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
46697     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
46698     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
46699     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
46700     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
46701     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
46702     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
46703     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
46704     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
46705     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
46706     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46707     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
46708     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
46709     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
46710     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
46711     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
46712     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
46713     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
46714     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
46715     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46716
46717   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46718 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46719    { (exit 1); exit 1; }; };;
46720   esac
46721 done
46722
46723
46724 # If the user did not use the arguments to specify the items to instantiate,
46725 # then the envvar interface is used.  Set only those that are not.
46726 # We use the long form for the default assignment because of an extremely
46727 # bizarre bug on SunOS 4.1.3.
46728 if $ac_need_defaults; then
46729   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46730   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46731   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46732 fi
46733
46734 # Have a temporary directory for convenience.  Make it in the build tree
46735 # simply because there is no reason against having it here, and in addition,
46736 # creating and moving files from /tmp can sometimes cause problems.
46737 # Hook for its removal unless debugging.
46738 # Note that there is a small window in which the directory will not be cleaned:
46739 # after its creation but before its name has been assigned to `$tmp'.
46740 $debug ||
46741 {
46742   tmp=
46743   trap 'exit_status=$?
46744   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46745 ' 0
46746   trap '{ (exit 1); exit 1; }' 1 2 13 15
46747 }
46748 # Create a (secure) tmp directory for tmp files.
46749
46750 {
46751   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46752   test -n "$tmp" && test -d "$tmp"
46753 }  ||
46754 {
46755   tmp=./conf$$-$RANDOM
46756   (umask 077 && mkdir "$tmp")
46757 } ||
46758 {
46759    $as_echo "$as_me: cannot create a temporary directory in ." >&2
46760    { (exit 1); exit 1; }
46761 }
46762
46763 # Set up the scripts for CONFIG_FILES section.
46764 # No need to generate them if there are no CONFIG_FILES.
46765 # This happens for instance with `./config.status config.h'.
46766 if test -n "$CONFIG_FILES"; then
46767
46768 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
46769   ac_cs_awk_getline=:
46770   ac_cs_awk_pipe_init=
46771   ac_cs_awk_read_file='
46772       while ((getline aline < (F[key])) > 0)
46773         print(aline)
46774       close(F[key])'
46775   ac_cs_awk_pipe_fini=
46776 else
46777   ac_cs_awk_getline=false
46778   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
46779   ac_cs_awk_read_file='
46780       print "|#_!!_#|"
46781       print "cat " F[key] " &&"
46782       '$ac_cs_awk_pipe_init
46783   # The final `:' finishes the AND list.
46784   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
46785 fi
46786 ac_cr='\r'
46787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46789   ac_cs_awk_cr='\\r'
46790 else
46791   ac_cs_awk_cr=$ac_cr
46792 fi
46793
46794 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46795 _ACEOF
46796
46797 # Create commands to substitute file output variables.
46798 {
46799   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
46800   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
46801   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
46802   echo "_ACAWK" &&
46803   echo "_ACEOF"
46804 } >conf$$files.sh &&
46805 . ./conf$$files.sh ||
46806   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46807 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46808    { (exit 1); exit 1; }; }
46809 rm -f conf$$files.sh
46810
46811 {
46812   echo "cat >conf$$subs.awk <<_ACEOF" &&
46813   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46814   echo "_ACEOF"
46815 } >conf$$subs.sh ||
46816   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46817 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46818    { (exit 1); exit 1; }; }
46819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
46820 ac_delim='%!_!# '
46821 for ac_last_try in false false false false false :; do
46822   . ./conf$$subs.sh ||
46823     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46824 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46825    { (exit 1); exit 1; }; }
46826
46827   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46828   if test $ac_delim_n = $ac_delim_num; then
46829     break
46830   elif $ac_last_try; then
46831     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46832 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46833    { (exit 1); exit 1; }; }
46834   else
46835     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46836   fi
46837 done
46838 rm -f conf$$subs.sh
46839
46840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46841 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
46842 _ACEOF
46843 sed -n '
46844 h
46845 s/^/S["/; s/!.*/"]=/
46846 p
46847 g
46848 s/^[^!]*!//
46849 :repl
46850 t repl
46851 s/'"$ac_delim"'$//
46852 t delim
46853 :nl
46854 h
46855 s/\(.\{148\}\).*/\1/
46856 t more1
46857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46858 p
46859 n
46860 b repl
46861 :more1
46862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46863 p
46864 g
46865 s/.\{148\}//
46866 t nl
46867 :delim
46868 h
46869 s/\(.\{148\}\).*/\1/
46870 t more2
46871 s/["\\]/\\&/g; s/^/"/; s/$/"/
46872 p
46873 b
46874 :more2
46875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46876 p
46877 g
46878 s/.\{148\}//
46879 t delim
46880 ' <conf$$subs.awk | sed '
46881 /^[^""]/{
46882   N
46883   s/\n//
46884 }
46885 ' >>$CONFIG_STATUS || ac_write_fail=1
46886 rm -f conf$$subs.awk
46887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46888 _ACAWK
46889 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
46890   for (key in S) S_is_set[key] = 1
46891   FS = "\a"
46892   \$ac_cs_awk_pipe_init
46893 }
46894 {
46895   line = $ 0
46896   nfields = split(line, field, "@")
46897   substed = 0
46898   len = length(field[1])
46899   for (i = 2; i < nfields; i++) {
46900     key = field[i]
46901     keylen = length(key)
46902     if (S_is_set[key]) {
46903       value = S[key]
46904       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46905       len += length(value) + length(field[++i])
46906       substed = 1
46907     } else
46908       len += 1 + keylen
46909   }
46910   if (nfields == 3 && !substed) {
46911     key = field[2]
46912     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
46913       \$ac_cs_awk_read_file
46914       next
46915     }
46916   }
46917   print line
46918 }
46919 \$ac_cs_awk_pipe_fini
46920 _ACAWK
46921 _ACEOF
46922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46924   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46925 else
46926   cat
46927 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
46928   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
46929 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
46930    { (exit 1); exit 1; }; }
46931 _ACEOF
46932
46933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46935 # trailing colons and then remove the whole line if VPATH becomes empty
46936 # (actually we leave an empty line to preserve line numbers).
46937 if test "x$srcdir" = x.; then
46938   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46939 s/:*\$(srcdir):*/:/
46940 s/:*\${srcdir}:*/:/
46941 s/:*@srcdir@:*/:/
46942 s/^\([^=]*=[     ]*\):*/\1/
46943 s/:*$//
46944 s/^[^=]*=[       ]*$//
46945 }'
46946 fi
46947
46948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46949 fi # test -n "$CONFIG_FILES"
46950
46951 # Set up the scripts for CONFIG_HEADERS section.
46952 # No need to generate them if there are no CONFIG_HEADERS.
46953 # This happens for instance with `./config.status Makefile'.
46954 if test -n "$CONFIG_HEADERS"; then
46955 cat >"$tmp/defines.awk" <<\_ACAWK ||
46956 BEGIN {
46957 _ACEOF
46958
46959 # Transform confdefs.h into an awk script `defines.awk', embedded as
46960 # here-document in config.status, that substitutes the proper values into
46961 # config.h.in to produce config.h.
46962
46963 # Create a delimiter string that does not exist in confdefs.h, to ease
46964 # handling of long lines.
46965 ac_delim='%!_!# '
46966 for ac_last_try in false false :; do
46967   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
46968   if test -z "$ac_t"; then
46969     break
46970   elif $ac_last_try; then
46971     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
46972 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
46973    { (exit 1); exit 1; }; }
46974   else
46975     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46976   fi
46977 done
46978
46979 # For the awk script, D is an array of macro values keyed by name,
46980 # likewise P contains macro parameters if any.  Preserve backslash
46981 # newline sequences.
46982
46983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46984 sed -n '
46985 s/.\{148\}/&'"$ac_delim"'/g
46986 t rset
46987 :rset
46988 s/^[     ]*#[    ]*define[       ][      ]*/ /
46989 t def
46990 d
46991 :def
46992 s/\\$//
46993 t bsnl
46994 s/["\\]/\\&/g
46995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46996 D["\1"]=" \3"/p
46997 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46998 d
46999 :bsnl
47000 s/["\\]/\\&/g
47001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47002 D["\1"]=" \3\\\\\\n"\\/p
47003 t cont
47004 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47005 t cont
47006 d
47007 :cont
47008 n
47009 s/.\{148\}/&'"$ac_delim"'/g
47010 t clear
47011 :clear
47012 s/\\$//
47013 t bsnlc
47014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47015 d
47016 :bsnlc
47017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47018 b cont
47019 ' <confdefs.h | sed '
47020 s/'"$ac_delim"'/"\\\
47021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47022
47023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47024   for (key in D) D_is_set[key] = 1
47025   FS = "\a"
47026 }
47027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47028   line = \$ 0
47029   split(line, arg, " ")
47030   if (arg[1] == "#") {
47031     defundef = arg[2]
47032     mac1 = arg[3]
47033   } else {
47034     defundef = substr(arg[1], 2)
47035     mac1 = arg[2]
47036   }
47037   split(mac1, mac2, "(") #)
47038   macro = mac2[1]
47039   prefix = substr(line, 1, index(line, defundef) - 1)
47040   if (D_is_set[macro]) {
47041     # Preserve the white space surrounding the "#".
47042     print prefix "define", macro P[macro] D[macro]
47043     next
47044   } else {
47045     # Replace #undef with comments.  This is necessary, for example,
47046     # in the case of _POSIX_SOURCE, which is predefined and required
47047     # on some systems where configure will not decide to define it.
47048     if (defundef == "undef") {
47049       print "/*", prefix defundef, macro, "*/"
47050       next
47051     }
47052   }
47053 }
47054 { print }
47055 _ACAWK
47056 _ACEOF
47057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47058   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47059 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47060    { (exit 1); exit 1; }; }
47061 fi # test -n "$CONFIG_HEADERS"
47062
47063
47064 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47065 shift
47066 for ac_tag
47067 do
47068   case $ac_tag in
47069   :[FHLC]) ac_mode=$ac_tag; continue;;
47070   esac
47071   case $ac_mode$ac_tag in
47072   :[FHL]*:*);;
47073   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47074 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47075    { (exit 1); exit 1; }; };;
47076   :[FH]-) ac_tag=-:-;;
47077   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47078   esac
47079   ac_save_IFS=$IFS
47080   IFS=:
47081   set x $ac_tag
47082   IFS=$ac_save_IFS
47083   shift
47084   ac_file=$1
47085   shift
47086
47087   case $ac_mode in
47088   :L) ac_source=$1;;
47089   :[FH])
47090     ac_file_inputs=
47091     for ac_f
47092     do
47093       case $ac_f in
47094       -) ac_f="$tmp/stdin";;
47095       *) # Look for the file first in the build tree, then in the source tree
47096          # (if the path is not absolute).  The absolute path cannot be DOS-style,
47097          # because $ac_f cannot contain `:'.
47098          test -f "$ac_f" ||
47099            case $ac_f in
47100            [\\/$]*) false;;
47101            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47102            esac ||
47103            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47104 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47105    { (exit 1); exit 1; }; };;
47106       esac
47107       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47108       ac_file_inputs="$ac_file_inputs '$ac_f'"
47109     done
47110
47111     # Let's still pretend it is `configure' which instantiates (i.e., don't
47112     # use $as_me), people would be surprised to read:
47113     #    /* config.h.  Generated by config.status.  */
47114     configure_input='Generated from '`
47115           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47116         `' by configure.'
47117     if test x"$ac_file" != x-; then
47118       configure_input="$ac_file.  $configure_input"
47119       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47120 $as_echo "$as_me: creating $ac_file" >&6;}
47121     fi
47122     # Neutralize special characters interpreted by sed in replacement strings.
47123     case $configure_input in #(
47124     *\&* | *\|* | *\\* )
47125        ac_sed_conf_input=`$as_echo "$configure_input" |
47126        sed 's/[\\\\&|]/\\\\&/g'`;; #(
47127     *) ac_sed_conf_input=$configure_input;;
47128     esac
47129
47130     case $ac_tag in
47131     *:-:* | *:-) cat >"$tmp/stdin" \
47132       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47133 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47134    { (exit 1); exit 1; }; } ;;
47135     esac
47136     ;;
47137   esac
47138
47139   ac_dir=`$as_dirname -- "$ac_file" ||
47140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47141          X"$ac_file" : 'X\(//\)[^/]' \| \
47142          X"$ac_file" : 'X\(//\)$' \| \
47143          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47144 $as_echo X"$ac_file" |
47145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47146             s//\1/
47147             q
47148           }
47149           /^X\(\/\/\)[^/].*/{
47150             s//\1/
47151             q
47152           }
47153           /^X\(\/\/\)$/{
47154             s//\1/
47155             q
47156           }
47157           /^X\(\/\).*/{
47158             s//\1/
47159             q
47160           }
47161           s/.*/./; q'`
47162   { as_dir="$ac_dir"
47163   case $as_dir in #(
47164   -*) as_dir=./$as_dir;;
47165   esac
47166   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47167     as_dirs=
47168     while :; do
47169       case $as_dir in #(
47170       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47171       *) as_qdir=$as_dir;;
47172       esac
47173       as_dirs="'$as_qdir' $as_dirs"
47174       as_dir=`$as_dirname -- "$as_dir" ||
47175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176          X"$as_dir" : 'X\(//\)[^/]' \| \
47177          X"$as_dir" : 'X\(//\)$' \| \
47178          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47179 $as_echo X"$as_dir" |
47180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47181             s//\1/
47182             q
47183           }
47184           /^X\(\/\/\)[^/].*/{
47185             s//\1/
47186             q
47187           }
47188           /^X\(\/\/\)$/{
47189             s//\1/
47190             q
47191           }
47192           /^X\(\/\).*/{
47193             s//\1/
47194             q
47195           }
47196           s/.*/./; q'`
47197       test -d "$as_dir" && break
47198     done
47199     test -z "$as_dirs" || eval "mkdir $as_dirs"
47200   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47201 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47202    { (exit 1); exit 1; }; }; }
47203   ac_builddir=.
47204
47205 case "$ac_dir" in
47206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47207 *)
47208   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47209   # A ".." for each directory in $ac_dir_suffix.
47210   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47211   case $ac_top_builddir_sub in
47212   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47213   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47214   esac ;;
47215 esac
47216 ac_abs_top_builddir=$ac_pwd
47217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47218 # for backward compatibility:
47219 ac_top_builddir=$ac_top_build_prefix
47220
47221 case $srcdir in
47222   .)  # We are building in place.
47223     ac_srcdir=.
47224     ac_top_srcdir=$ac_top_builddir_sub
47225     ac_abs_top_srcdir=$ac_pwd ;;
47226   [\\/]* | ?:[\\/]* )  # Absolute name.
47227     ac_srcdir=$srcdir$ac_dir_suffix;
47228     ac_top_srcdir=$srcdir
47229     ac_abs_top_srcdir=$srcdir ;;
47230   *) # Relative name.
47231     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47232     ac_top_srcdir=$ac_top_build_prefix$srcdir
47233     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47234 esac
47235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47236
47237
47238   case $ac_mode in
47239   :F)
47240   #
47241   # CONFIG_FILE
47242   #
47243
47244   case $INSTALL in
47245   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47246   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47247   esac
47248 _ACEOF
47249
47250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47251 # If the template does not know about datarootdir, expand it.
47252 # FIXME: This hack should be removed a few years after 2.60.
47253 ac_datarootdir_hack=; ac_datarootdir_seen=
47254
47255 ac_sed_dataroot='
47256 /datarootdir/ {
47257   p
47258   q
47259 }
47260 /@datadir@/p
47261 /@docdir@/p
47262 /@infodir@/p
47263 /@localedir@/p
47264 /@mandir@/p
47265 '
47266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47267 *datarootdir*) ac_datarootdir_seen=yes;;
47268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47269   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47271 _ACEOF
47272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47273   ac_datarootdir_hack='
47274   s&@datadir@&$datadir&g
47275   s&@docdir@&$docdir&g
47276   s&@infodir@&$infodir&g
47277   s&@localedir@&$localedir&g
47278   s&@mandir@&$mandir&g
47279     s&\\\${datarootdir}&$datarootdir&g' ;;
47280 esac
47281 _ACEOF
47282
47283 # Neutralize VPATH when `$srcdir' = `.'.
47284 # Shell code in configure.ac might set extrasub.
47285 # FIXME: do we really want to maintain this feature?
47286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47287 ac_sed_extra="$ac_vpsub
47288 $extrasub
47289 _ACEOF
47290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47291 :t
47292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47293 s|@configure_input@|$ac_sed_conf_input|;t t
47294 s&@top_builddir@&$ac_top_builddir_sub&;t t
47295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47296 s&@srcdir@&$ac_srcdir&;t t
47297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47298 s&@top_srcdir@&$ac_top_srcdir&;t t
47299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47300 s&@builddir@&$ac_builddir&;t t
47301 s&@abs_builddir@&$ac_abs_builddir&;t t
47302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47303 s&@INSTALL@&$ac_INSTALL&;t t
47304 $ac_datarootdir_hack
47305 "
47306 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
47307 if $ac_cs_awk_getline; then
47308   $AWK -f "$tmp/subs.awk"
47309 else
47310   $AWK -f "$tmp/subs.awk" | $SHELL
47311 fi >$tmp/out \
47312   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47314    { (exit 1); exit 1; }; }
47315
47316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47317   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47318   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47319   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47320 which seems to be undefined.  Please make sure it is defined." >&5
47321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47322 which seems to be undefined.  Please make sure it is defined." >&2;}
47323
47324   rm -f "$tmp/stdin"
47325   case $ac_file in
47326   -) cat "$tmp/out" && rm -f "$tmp/out";;
47327   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47328   esac \
47329   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47330 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47331    { (exit 1); exit 1; }; }
47332  ;;
47333   :H)
47334   #
47335   # CONFIG_HEADER
47336   #
47337   if test x"$ac_file" != x-; then
47338     {
47339       $as_echo "/* $configure_input  */" \
47340       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47341     } >"$tmp/config.h" \
47342       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47344    { (exit 1); exit 1; }; }
47345     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47346       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47348     else
47349       rm -f "$ac_file"
47350       mv "$tmp/config.h" "$ac_file" \
47351         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47353    { (exit 1); exit 1; }; }
47354     fi
47355   else
47356     $as_echo "/* $configure_input  */" \
47357       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47358       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47359 $as_echo "$as_me: error: could not create -" >&2;}
47360    { (exit 1); exit 1; }; }
47361   fi
47362  ;;
47363
47364   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47365 $as_echo "$as_me: executing $ac_file commands" >&6;}
47366  ;;
47367   esac
47368
47369
47370   case $ac_file$ac_mode in
47371     "libtool":C)
47372
47373     # See if we are running on zsh, and set the options which allow our
47374     # commands through without removal of \ escapes.
47375     if test -n "${ZSH_VERSION+set}" ; then
47376       setopt NO_GLOB_SUBST
47377     fi
47378
47379     cfgfile="${ofile}T"
47380     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47381     $RM "$cfgfile"
47382
47383     cat <<_LT_EOF >> "$cfgfile"
47384 #! $SHELL
47385
47386 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47387 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47390 #
47391 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47392 #                 2006, 2007, 2008 Free Software Foundation, Inc.
47393 #   Written by Gordon Matzigkeit, 1996
47394 #
47395 #   This file is part of GNU Libtool.
47396 #
47397 # GNU Libtool is free software; you can redistribute it and/or
47398 # modify it under the terms of the GNU General Public License as
47399 # published by the Free Software Foundation; either version 2 of
47400 # the License, or (at your option) any later version.
47401 #
47402 # As a special exception to the GNU General Public License,
47403 # if you distribute this file as part of a program or library that
47404 # is built using GNU Libtool, you may include this file under the
47405 # same distribution terms that you use for the rest of that program.
47406 #
47407 # GNU Libtool is distributed in the hope that it will be useful,
47408 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47409 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47410 # GNU General Public License for more details.
47411 #
47412 # You should have received a copy of the GNU General Public License
47413 # along with GNU Libtool; see the file COPYING.  If not, a copy
47414 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47415 # obtained by writing to the Free Software Foundation, Inc.,
47416 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47417
47418
47419 # The names of the tagged configurations supported by this script.
47420 available_tags="CXX "
47421
47422 # ### BEGIN LIBTOOL CONFIG
47423
47424 # Which release of libtool.m4 was used?
47425 macro_version=$macro_version
47426 macro_revision=$macro_revision
47427
47428 # Whether or not to build shared libraries.
47429 build_libtool_libs=$enable_shared
47430
47431 # Whether or not to build static libraries.
47432 build_old_libs=$enable_static
47433
47434 # What type of objects to build.
47435 pic_mode=$pic_mode
47436
47437 # Whether or not to optimize for fast installation.
47438 fast_install=$enable_fast_install
47439
47440 # The host system.
47441 host_alias=$host_alias
47442 host=$host
47443 host_os=$host_os
47444
47445 # The build system.
47446 build_alias=$build_alias
47447 build=$build
47448 build_os=$build_os
47449
47450 # A sed program that does not truncate output.
47451 SED=$lt_SED
47452
47453 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47454 Xsed="\$SED -e 1s/^X//"
47455
47456 # A grep program that handles long lines.
47457 GREP=$lt_GREP
47458
47459 # An ERE matcher.
47460 EGREP=$lt_EGREP
47461
47462 # A literal string matcher.
47463 FGREP=$lt_FGREP
47464
47465 # A BSD- or MS-compatible name lister.
47466 NM=$lt_NM
47467
47468 # Whether we need soft or hard links.
47469 LN_S=$lt_LN_S
47470
47471 # What is the maximum length of a command?
47472 max_cmd_len=$max_cmd_len
47473
47474 # Object file suffix (normally "o").
47475 objext=$ac_objext
47476
47477 # Executable file suffix (normally "").
47478 exeext=$exeext
47479
47480 # whether the shell understands "unset".
47481 lt_unset=$lt_unset
47482
47483 # turn spaces into newlines.
47484 SP2NL=$lt_lt_SP2NL
47485
47486 # turn newlines into spaces.
47487 NL2SP=$lt_lt_NL2SP
47488
47489 # How to create reloadable object files.
47490 reload_flag=$lt_reload_flag
47491 reload_cmds=$lt_reload_cmds
47492
47493 # An object symbol dumper.
47494 OBJDUMP=$lt_OBJDUMP
47495
47496 # Method to check whether dependent libraries are shared objects.
47497 deplibs_check_method=$lt_deplibs_check_method
47498
47499 # Command to use when deplibs_check_method == "file_magic".
47500 file_magic_cmd=$lt_file_magic_cmd
47501
47502 # The archiver.
47503 AR=$lt_AR
47504 AR_FLAGS=$lt_AR_FLAGS
47505
47506 # A symbol stripping program.
47507 STRIP=$lt_STRIP
47508
47509 # Commands used to install an old-style archive.
47510 RANLIB=$lt_RANLIB
47511 old_postinstall_cmds=$lt_old_postinstall_cmds
47512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47513
47514 # A C compiler.
47515 LTCC=$lt_CC
47516
47517 # LTCC compiler flags.
47518 LTCFLAGS=$lt_CFLAGS
47519
47520 # Take the output of nm and produce a listing of raw symbols and C names.
47521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47522
47523 # Transform the output of nm in a proper C declaration.
47524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47525
47526 # Transform the output of nm in a C name address pair.
47527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47528
47529 # Transform the output of nm in a C name address pair when lib prefix is needed.
47530 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47531
47532 # The name of the directory that contains temporary libtool files.
47533 objdir=$objdir
47534
47535 # Shell to use when invoking shell scripts.
47536 SHELL=$lt_SHELL
47537
47538 # An echo program that does not interpret backslashes.
47539 ECHO=$lt_ECHO
47540
47541 # Used to examine libraries when file_magic_cmd begins with "file".
47542 MAGIC_CMD=$MAGIC_CMD
47543
47544 # Must we lock files when doing compilation?
47545 need_locks=$lt_need_locks
47546
47547 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47548 DSYMUTIL=$lt_DSYMUTIL
47549
47550 # Tool to change global to local symbols on Mac OS X.
47551 NMEDIT=$lt_NMEDIT
47552
47553 # Tool to manipulate fat objects and archives on Mac OS X.
47554 LIPO=$lt_LIPO
47555
47556 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47557 OTOOL=$lt_OTOOL
47558
47559 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47560 OTOOL64=$lt_OTOOL64
47561
47562 # Old archive suffix (normally "a").
47563 libext=$libext
47564
47565 # Shared library suffix (normally ".so").
47566 shrext_cmds=$lt_shrext_cmds
47567
47568 # The commands to extract the exported symbol list from a shared archive.
47569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47570
47571 # Variables whose values should be saved in libtool wrapper scripts and
47572 # restored at link time.
47573 variables_saved_for_relink=$lt_variables_saved_for_relink
47574
47575 # Do we need the "lib" prefix for modules?
47576 need_lib_prefix=$need_lib_prefix
47577
47578 # Do we need a version for libraries?
47579 need_version=$need_version
47580
47581 # Library versioning type.
47582 version_type=$version_type
47583
47584 # Shared library runtime path variable.
47585 runpath_var=$runpath_var
47586
47587 # Shared library path variable.
47588 shlibpath_var=$shlibpath_var
47589
47590 # Is shlibpath searched before the hard-coded library search path?
47591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47592
47593 # Format of library name prefix.
47594 libname_spec=$lt_libname_spec
47595
47596 # List of archive names.  First name is the real one, the rest are links.
47597 # The last name is the one that the linker finds with -lNAME
47598 library_names_spec=$lt_library_names_spec
47599
47600 # The coded name of the library, if different from the real name.
47601 soname_spec=$lt_soname_spec
47602
47603 # Command to use after installation of a shared archive.
47604 postinstall_cmds=$lt_postinstall_cmds
47605
47606 # Command to use after uninstallation of a shared archive.
47607 postuninstall_cmds=$lt_postuninstall_cmds
47608
47609 # Commands used to finish a libtool library installation in a directory.
47610 finish_cmds=$lt_finish_cmds
47611
47612 # As "finish_cmds", except a single script fragment to be evaled but
47613 # not shown.
47614 finish_eval=$lt_finish_eval
47615
47616 # Whether we should hardcode library paths into libraries.
47617 hardcode_into_libs=$hardcode_into_libs
47618
47619 # Compile-time system search path for libraries.
47620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47621
47622 # Run-time system search path for libraries.
47623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47624
47625 # Whether dlopen is supported.
47626 dlopen_support=$enable_dlopen
47627
47628 # Whether dlopen of programs is supported.
47629 dlopen_self=$enable_dlopen_self
47630
47631 # Whether dlopen of statically linked programs is supported.
47632 dlopen_self_static=$enable_dlopen_self_static
47633
47634 # Commands to strip libraries.
47635 old_striplib=$lt_old_striplib
47636 striplib=$lt_striplib
47637
47638
47639 # The linker used to build libraries.
47640 LD=$lt_LD
47641
47642 # Commands used to build an old-style archive.
47643 old_archive_cmds=$lt_old_archive_cmds
47644
47645 # A language specific compiler.
47646 CC=$lt_compiler
47647
47648 # Is the compiler the GNU compiler?
47649 with_gcc=$GCC
47650
47651 # Compiler flag to turn off builtin functions.
47652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47653
47654 # How to pass a linker flag through the compiler.
47655 wl=$lt_lt_prog_compiler_wl
47656
47657 # Additional compiler flags for building library objects.
47658 pic_flag=$lt_lt_prog_compiler_pic
47659
47660 # Compiler flag to prevent dynamic linking.
47661 link_static_flag=$lt_lt_prog_compiler_static
47662
47663 # Does compiler simultaneously support -c and -o options?
47664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47665
47666 # Whether or not to add -lc for building shared libraries.
47667 build_libtool_need_lc=$archive_cmds_need_lc
47668
47669 # Whether or not to disallow shared libs when runtime libs are static.
47670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47671
47672 # Compiler flag to allow reflexive dlopens.
47673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47674
47675 # Compiler flag to generate shared objects directly from archives.
47676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47677
47678 # Whether the compiler copes with passing no objects directly.
47679 compiler_needs_object=$lt_compiler_needs_object
47680
47681 # Create an old-style archive from a shared archive.
47682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47683
47684 # Create a temporary old-style archive to link instead of a shared archive.
47685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47686
47687 # Commands used to build a shared archive.
47688 archive_cmds=$lt_archive_cmds
47689 archive_expsym_cmds=$lt_archive_expsym_cmds
47690
47691 # Commands used to build a loadable module if different from building
47692 # a shared archive.
47693 module_cmds=$lt_module_cmds
47694 module_expsym_cmds=$lt_module_expsym_cmds
47695
47696 # Whether we are building with GNU ld or not.
47697 with_gnu_ld=$lt_with_gnu_ld
47698
47699 # Flag that allows shared libraries with undefined symbols to be built.
47700 allow_undefined_flag=$lt_allow_undefined_flag
47701
47702 # Flag that enforces no undefined symbols.
47703 no_undefined_flag=$lt_no_undefined_flag
47704
47705 # Flag to hardcode \$libdir into a binary during linking.
47706 # This must work even if \$libdir does not exist
47707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47708
47709 # If ld is used when linking, flag to hardcode \$libdir into a binary
47710 # during linking.  This must work even if \$libdir does not exist.
47711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47712
47713 # Whether we need a single "-rpath" flag with a separated argument.
47714 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47715
47716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47717 # DIR into the resulting binary.
47718 hardcode_direct=$hardcode_direct
47719
47720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47721 # DIR into the resulting binary and the resulting library dependency is
47722 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47723 # library is relocated.
47724 hardcode_direct_absolute=$hardcode_direct_absolute
47725
47726 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47727 # into the resulting binary.
47728 hardcode_minus_L=$hardcode_minus_L
47729
47730 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47731 # into the resulting binary.
47732 hardcode_shlibpath_var=$hardcode_shlibpath_var
47733
47734 # Set to "yes" if building a shared library automatically hardcodes DIR
47735 # into the library and all subsequent libraries and executables linked
47736 # against it.
47737 hardcode_automatic=$hardcode_automatic
47738
47739 # Set to yes if linker adds runtime paths of dependent libraries
47740 # to runtime path list.
47741 inherit_rpath=$inherit_rpath
47742
47743 # Whether libtool must link a program against all its dependency libraries.
47744 link_all_deplibs=$link_all_deplibs
47745
47746 # Fix the shell variable \$srcfile for the compiler.
47747 fix_srcfile_path=$lt_fix_srcfile_path
47748
47749 # Set to "yes" if exported symbols are required.
47750 always_export_symbols=$always_export_symbols
47751
47752 # The commands to list exported symbols.
47753 export_symbols_cmds=$lt_export_symbols_cmds
47754
47755 # Symbols that should not be listed in the preloaded symbols.
47756 exclude_expsyms=$lt_exclude_expsyms
47757
47758 # Symbols that must always be exported.
47759 include_expsyms=$lt_include_expsyms
47760
47761 # Commands necessary for linking programs (against libraries) with templates.
47762 prelink_cmds=$lt_prelink_cmds
47763
47764 # Specify filename containing input files.
47765 file_list_spec=$lt_file_list_spec
47766
47767 # How to hardcode a shared library path into an executable.
47768 hardcode_action=$hardcode_action
47769
47770 # The directories searched by this compiler when creating a shared library.
47771 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47772
47773 # Dependencies to place before and after the objects being linked to
47774 # create a shared library.
47775 predep_objects=$lt_predep_objects
47776 postdep_objects=$lt_postdep_objects
47777 predeps=$lt_predeps
47778 postdeps=$lt_postdeps
47779
47780 # The library search path used internally by the compiler when linking
47781 # a shared library.
47782 compiler_lib_search_path=$lt_compiler_lib_search_path
47783
47784 # ### END LIBTOOL CONFIG
47785
47786 _LT_EOF
47787
47788   case $host_os in
47789   aix3*)
47790     cat <<\_LT_EOF >> "$cfgfile"
47791 # AIX sometimes has problems with the GCC collect2 program.  For some
47792 # reason, if we set the COLLECT_NAMES environment variable, the problems
47793 # vanish in a puff of smoke.
47794 if test "X${COLLECT_NAMES+set}" != Xset; then
47795   COLLECT_NAMES=
47796   export COLLECT_NAMES
47797 fi
47798 _LT_EOF
47799     ;;
47800   esac
47801
47802
47803 ltmain="$ac_aux_dir/ltmain.sh"
47804
47805
47806   # We use sed instead of cat because bash on DJGPP gets confused if
47807   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47808   # text mode, it properly converts lines to CR/LF.  This bash problem
47809   # is reportedly fixed, but why not run on old versions too?
47810   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47811     || (rm -f "$cfgfile"; exit 1)
47812
47813   case $xsi_shell in
47814   yes)
47815     cat << \_LT_EOF >> "$cfgfile"
47816
47817 # func_dirname file append nondir_replacement
47818 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47819 # otherwise set result to NONDIR_REPLACEMENT.
47820 func_dirname ()
47821 {
47822   case ${1} in
47823     */*) func_dirname_result="${1%/*}${2}" ;;
47824     *  ) func_dirname_result="${3}" ;;
47825   esac
47826 }
47827
47828 # func_basename file
47829 func_basename ()
47830 {
47831   func_basename_result="${1##*/}"
47832 }
47833
47834 # func_dirname_and_basename file append nondir_replacement
47835 # perform func_basename and func_dirname in a single function
47836 # call:
47837 #   dirname:  Compute the dirname of FILE.  If nonempty,
47838 #             add APPEND to the result, otherwise set result
47839 #             to NONDIR_REPLACEMENT.
47840 #             value returned in "$func_dirname_result"
47841 #   basename: Compute filename of FILE.
47842 #             value retuned in "$func_basename_result"
47843 # Implementation must be kept synchronized with func_dirname
47844 # and func_basename. For efficiency, we do not delegate to
47845 # those functions but instead duplicate the functionality here.
47846 func_dirname_and_basename ()
47847 {
47848   case ${1} in
47849     */*) func_dirname_result="${1%/*}${2}" ;;
47850     *  ) func_dirname_result="${3}" ;;
47851   esac
47852   func_basename_result="${1##*/}"
47853 }
47854
47855 # func_stripname prefix suffix name
47856 # strip PREFIX and SUFFIX off of NAME.
47857 # PREFIX and SUFFIX must not contain globbing or regex special
47858 # characters, hashes, percent signs, but SUFFIX may contain a leading
47859 # dot (in which case that matches only a dot).
47860 func_stripname ()
47861 {
47862   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47863   # positional parameters, so assign one to ordinary parameter first.
47864   func_stripname_result=${3}
47865   func_stripname_result=${func_stripname_result#"${1}"}
47866   func_stripname_result=${func_stripname_result%"${2}"}
47867 }
47868
47869 # func_opt_split
47870 func_opt_split ()
47871 {
47872   func_opt_split_opt=${1%%=*}
47873   func_opt_split_arg=${1#*=}
47874 }
47875
47876 # func_lo2o object
47877 func_lo2o ()
47878 {
47879   case ${1} in
47880     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47881     *)    func_lo2o_result=${1} ;;
47882   esac
47883 }
47884
47885 # func_xform libobj-or-source
47886 func_xform ()
47887 {
47888   func_xform_result=${1%.*}.lo
47889 }
47890
47891 # func_arith arithmetic-term...
47892 func_arith ()
47893 {
47894   func_arith_result=$(( $* ))
47895 }
47896
47897 # func_len string
47898 # STRING may not start with a hyphen.
47899 func_len ()
47900 {
47901   func_len_result=${#1}
47902 }
47903
47904 _LT_EOF
47905     ;;
47906   *) # Bourne compatible functions.
47907     cat << \_LT_EOF >> "$cfgfile"
47908
47909 # func_dirname file append nondir_replacement
47910 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47911 # otherwise set result to NONDIR_REPLACEMENT.
47912 func_dirname ()
47913 {
47914   # Extract subdirectory from the argument.
47915   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47916   if test "X$func_dirname_result" = "X${1}"; then
47917     func_dirname_result="${3}"
47918   else
47919     func_dirname_result="$func_dirname_result${2}"
47920   fi
47921 }
47922
47923 # func_basename file
47924 func_basename ()
47925 {
47926   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47927 }
47928
47929
47930 # func_stripname prefix suffix name
47931 # strip PREFIX and SUFFIX off of NAME.
47932 # PREFIX and SUFFIX must not contain globbing or regex special
47933 # characters, hashes, percent signs, but SUFFIX may contain a leading
47934 # dot (in which case that matches only a dot).
47935 # func_strip_suffix prefix name
47936 func_stripname ()
47937 {
47938   case ${2} in
47939     .*) func_stripname_result=`$ECHO "X${3}" \
47940            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47941     *)  func_stripname_result=`$ECHO "X${3}" \
47942            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47943   esac
47944 }
47945
47946 # sed scripts:
47947 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47948 my_sed_long_arg='1s/^-[^=]*=//'
47949
47950 # func_opt_split
47951 func_opt_split ()
47952 {
47953   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47954   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47955 }
47956
47957 # func_lo2o object
47958 func_lo2o ()
47959 {
47960   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47961 }
47962
47963 # func_xform libobj-or-source
47964 func_xform ()
47965 {
47966   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47967 }
47968
47969 # func_arith arithmetic-term...
47970 func_arith ()
47971 {
47972   func_arith_result=`expr "$@"`
47973 }
47974
47975 # func_len string
47976 # STRING may not start with a hyphen.
47977 func_len ()
47978 {
47979   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47980 }
47981
47982 _LT_EOF
47983 esac
47984
47985 case $lt_shell_append in
47986   yes)
47987     cat << \_LT_EOF >> "$cfgfile"
47988
47989 # func_append var value
47990 # Append VALUE to the end of shell variable VAR.
47991 func_append ()
47992 {
47993   eval "$1+=\$2"
47994 }
47995 _LT_EOF
47996     ;;
47997   *)
47998     cat << \_LT_EOF >> "$cfgfile"
47999
48000 # func_append var value
48001 # Append VALUE to the end of shell variable VAR.
48002 func_append ()
48003 {
48004   eval "$1=\$$1\$2"
48005 }
48006
48007 _LT_EOF
48008     ;;
48009   esac
48010
48011
48012   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48013     || (rm -f "$cfgfile"; exit 1)
48014
48015   mv -f "$cfgfile" "$ofile" ||
48016     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48017   chmod +x "$ofile"
48018
48019
48020     cat <<_LT_EOF >> "$ofile"
48021
48022 # ### BEGIN LIBTOOL TAG CONFIG: CXX
48023
48024 # The linker used to build libraries.
48025 LD=$lt_LD_CXX
48026
48027 # Commands used to build an old-style archive.
48028 old_archive_cmds=$lt_old_archive_cmds_CXX
48029
48030 # A language specific compiler.
48031 CC=$lt_compiler_CXX
48032
48033 # Is the compiler the GNU compiler?
48034 with_gcc=$GCC_CXX
48035
48036 # Compiler flag to turn off builtin functions.
48037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48038
48039 # How to pass a linker flag through the compiler.
48040 wl=$lt_lt_prog_compiler_wl_CXX
48041
48042 # Additional compiler flags for building library objects.
48043 pic_flag=$lt_lt_prog_compiler_pic_CXX
48044
48045 # Compiler flag to prevent dynamic linking.
48046 link_static_flag=$lt_lt_prog_compiler_static_CXX
48047
48048 # Does compiler simultaneously support -c and -o options?
48049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48050
48051 # Whether or not to add -lc for building shared libraries.
48052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48053
48054 # Whether or not to disallow shared libs when runtime libs are static.
48055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48056
48057 # Compiler flag to allow reflexive dlopens.
48058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48059
48060 # Compiler flag to generate shared objects directly from archives.
48061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48062
48063 # Whether the compiler copes with passing no objects directly.
48064 compiler_needs_object=$lt_compiler_needs_object_CXX
48065
48066 # Create an old-style archive from a shared archive.
48067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48068
48069 # Create a temporary old-style archive to link instead of a shared archive.
48070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48071
48072 # Commands used to build a shared archive.
48073 archive_cmds=$lt_archive_cmds_CXX
48074 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48075
48076 # Commands used to build a loadable module if different from building
48077 # a shared archive.
48078 module_cmds=$lt_module_cmds_CXX
48079 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48080
48081 # Whether we are building with GNU ld or not.
48082 with_gnu_ld=$lt_with_gnu_ld_CXX
48083
48084 # Flag that allows shared libraries with undefined symbols to be built.
48085 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48086
48087 # Flag that enforces no undefined symbols.
48088 no_undefined_flag=$lt_no_undefined_flag_CXX
48089
48090 # Flag to hardcode \$libdir into a binary during linking.
48091 # This must work even if \$libdir does not exist
48092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48093
48094 # If ld is used when linking, flag to hardcode \$libdir into a binary
48095 # during linking.  This must work even if \$libdir does not exist.
48096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48097
48098 # Whether we need a single "-rpath" flag with a separated argument.
48099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48100
48101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48102 # DIR into the resulting binary.
48103 hardcode_direct=$hardcode_direct_CXX
48104
48105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48106 # DIR into the resulting binary and the resulting library dependency is
48107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48108 # library is relocated.
48109 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48110
48111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48112 # into the resulting binary.
48113 hardcode_minus_L=$hardcode_minus_L_CXX
48114
48115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48116 # into the resulting binary.
48117 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48118
48119 # Set to "yes" if building a shared library automatically hardcodes DIR
48120 # into the library and all subsequent libraries and executables linked
48121 # against it.
48122 hardcode_automatic=$hardcode_automatic_CXX
48123
48124 # Set to yes if linker adds runtime paths of dependent libraries
48125 # to runtime path list.
48126 inherit_rpath=$inherit_rpath_CXX
48127
48128 # Whether libtool must link a program against all its dependency libraries.
48129 link_all_deplibs=$link_all_deplibs_CXX
48130
48131 # Fix the shell variable \$srcfile for the compiler.
48132 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48133
48134 # Set to "yes" if exported symbols are required.
48135 always_export_symbols=$always_export_symbols_CXX
48136
48137 # The commands to list exported symbols.
48138 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48139
48140 # Symbols that should not be listed in the preloaded symbols.
48141 exclude_expsyms=$lt_exclude_expsyms_CXX
48142
48143 # Symbols that must always be exported.
48144 include_expsyms=$lt_include_expsyms_CXX
48145
48146 # Commands necessary for linking programs (against libraries) with templates.
48147 prelink_cmds=$lt_prelink_cmds_CXX
48148
48149 # Specify filename containing input files.
48150 file_list_spec=$lt_file_list_spec_CXX
48151
48152 # How to hardcode a shared library path into an executable.
48153 hardcode_action=$hardcode_action_CXX
48154
48155 # The directories searched by this compiler when creating a shared library.
48156 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48157
48158 # Dependencies to place before and after the objects being linked to
48159 # create a shared library.
48160 predep_objects=$lt_predep_objects_CXX
48161 postdep_objects=$lt_postdep_objects_CXX
48162 predeps=$lt_predeps_CXX
48163 postdeps=$lt_postdeps_CXX
48164
48165 # The library search path used internally by the compiler when linking
48166 # a shared library.
48167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48168
48169 # ### END LIBTOOL TAG CONFIG: CXX
48170 _LT_EOF
48171
48172  ;;
48173     "default-1":C)
48174     for ac_file in $CONFIG_FILES; do
48175       # Support "outfile[:infile[:infile...]]"
48176       case "$ac_file" in
48177         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
48178       esac
48179       # PO directories have a Makefile.in generated from Makefile.in.in.
48180       case "$ac_file" in */Makefile.in)
48181         # Adjust a relative srcdir.
48182         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
48183         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
48184         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
48185         # In autoconf-2.13 it is called $ac_given_srcdir.
48186         # In autoconf-2.50 it is called $srcdir.
48187         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
48188         case "$ac_given_srcdir" in
48189           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
48190           /*) top_srcdir="$ac_given_srcdir" ;;
48191           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
48192         esac
48193         # Treat a directory as a PO directory if and only if it has a
48194         # POTFILES.in file. This allows packages to have multiple PO
48195         # directories under different names or in different locations.
48196         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
48197           rm -f "$ac_dir/POTFILES"
48198           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
48199           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
48200           POMAKEFILEDEPS="POTFILES.in"
48201           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
48202           # on $ac_dir but don't depend on user-specified configuration
48203           # parameters.
48204           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
48205             # The LINGUAS file contains the set of available languages.
48206             if test -n "$OBSOLETE_ALL_LINGUAS"; then
48207               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
48208             fi
48209             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
48210             # Hide the ALL_LINGUAS assigment from automake.
48211             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
48212             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
48213           else
48214             # The set of available languages was given in configure.in.
48215             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
48216           fi
48217           # Compute POFILES
48218           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
48219           # Compute UPDATEPOFILES
48220           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
48221           # Compute DUMMYPOFILES
48222           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
48223           # Compute GMOFILES
48224           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
48225           case "$ac_given_srcdir" in
48226             .) srcdirpre= ;;
48227             *) srcdirpre='$(srcdir)/' ;;
48228           esac
48229           POFILES=
48230           UPDATEPOFILES=
48231           DUMMYPOFILES=
48232           GMOFILES=
48233           for lang in $ALL_LINGUAS; do
48234             POFILES="$POFILES $srcdirpre$lang.po"
48235             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
48236             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
48237             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
48238           done
48239           # CATALOGS depends on both $ac_dir and the user's LINGUAS
48240           # environment variable.
48241           INST_LINGUAS=
48242           if test -n "$ALL_LINGUAS"; then
48243             for presentlang in $ALL_LINGUAS; do
48244               useit=no
48245               if test "%UNSET%" != "$LINGUAS"; then
48246                 desiredlanguages="$LINGUAS"
48247               else
48248                 desiredlanguages="$ALL_LINGUAS"
48249               fi
48250               for desiredlang in $desiredlanguages; do
48251                 # Use the presentlang catalog if desiredlang is
48252                 #   a. equal to presentlang, or
48253                 #   b. a variant of presentlang (because in this case,
48254                 #      presentlang can be used as a fallback for messages
48255                 #      which are not translated in the desiredlang catalog).
48256                 case "$desiredlang" in
48257                   "$presentlang"*) useit=yes;;
48258                 esac
48259               done
48260               if test $useit = yes; then
48261                 INST_LINGUAS="$INST_LINGUAS $presentlang"
48262               fi
48263             done
48264           fi
48265           CATALOGS=
48266           if test -n "$INST_LINGUAS"; then
48267             for lang in $INST_LINGUAS; do
48268               CATALOGS="$CATALOGS $lang.gmo"
48269             done
48270           fi
48271           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
48272           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"
48273           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
48274             if test -f "$f"; then
48275               case "$f" in
48276                 *.orig | *.bak | *~) ;;
48277                 *) cat "$f" >> "$ac_dir/Makefile" ;;
48278               esac
48279             fi
48280           done
48281         fi
48282         ;;
48283       esac
48284     done ;;
48285     "default":C)
48286  ;;
48287
48288   esac
48289 done # for ac_tag
48290
48291
48292 { (exit 0); exit 0; }
48293 _ACEOF
48294 chmod +x $CONFIG_STATUS
48295 ac_clean_files=$ac_clean_files_save
48296
48297 test $ac_write_fail = 0 ||
48298   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48299 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48300    { (exit 1); exit 1; }; }
48301
48302
48303 # configure is writing to config.log, and then calls config.status.
48304 # config.status does its own redirection, appending to config.log.
48305 # Unfortunately, on DOS this fails, as config.log is still kept open
48306 # by configure, so config.status won't be able to write to it; its
48307 # output is simply discarded.  So we exec the FD to /dev/null,
48308 # effectively closing config.log, so it can be properly (re)opened and
48309 # appended to by config.status.  When coming back to configure, we
48310 # need to make the FD available again.
48311 if test "$no_create" != yes; then
48312   ac_cs_success=:
48313   ac_config_status_args=
48314   test "$silent" = yes &&
48315     ac_config_status_args="$ac_config_status_args --quiet"
48316   exec 5>/dev/null
48317   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48318   exec 5>>config.log
48319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48320   # would make configure fail if this is the last instruction.
48321   $ac_cs_success || { (exit 1); exit 1; }
48322 fi
48323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48324   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48326 fi
48327
48328
48329 if test "${support_bat}" = "yes" ; then
48330    if test "x$QMAKE" = "xnone"; then
48331       { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
48332 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
48333    { (exit 1); exit 1; }; }
48334    fi
48335
48336    QMAKEBIN="qmake"
48337    cd src/qt-console
48338    echo "Creating bat Makefile"
48339    touch bat
48340    chmod 755 bat
48341    rm -f Makefile
48342    $QMAKEBIN
48343    ${MAKE:-make} clean
48344    cd ${BUILD_DIR}
48345 fi
48346
48347 if test X"$GCC" = "Xyes" ; then
48348   echo "Doing make of dependencies"
48349   ${MAKE:-make} depend
48350 fi
48351
48352 cd src/qt-console
48353 chmod 755 install_conf_file build-depkgs-qt-console
48354 cd ${BUILD_DIR}
48355
48356 cd scripts
48357 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
48358 chmod 755 dvd-handler dvd-simulator
48359 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
48360 cd ..
48361
48362 c=updatedb
48363 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
48364 chmod 755 $c/update_postgresql_tables_10_to_11
48365
48366 c=src/cats
48367
48368 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
48369 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
48370
48371 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
48372 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
48373
48374 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
48375 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
48376
48377 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
48378 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
48379
48380 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
48381 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
48382
48383 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
48384 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
48385
48386
48387 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
48388 chmod 755 $c/sqlite
48389 chmod 755 $c/mysql
48390
48391 chmod 755 src/win32/build-depkgs-mingw32
48392
48393 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
48394    largefile_support="yes"
48395 fi
48396
48397 if test X"$GCC" = "Xyes" ; then
48398                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48399    if test "x${CCVERSION}" = "x" ; then
48400       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48401    fi
48402    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48403    if test x"${CXXVERSION}" = x ; then
48404       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48405    fi
48406 fi
48407
48408 # clean up any old junk
48409 echo " "
48410 echo "Cleaning up"
48411 echo " "
48412 ${MAKE:-make} clean
48413
48414 if test "x${db_type}" = "xInternal" ; then
48415    echo " "
48416    echo " "
48417    echo "You have not specified either --enable-client-only or one of the"
48418    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
48419    echo "  This is not permitted. Please reconfigure."
48420    echo " "
48421    echo "Aborting the configuration ..."
48422    echo " "
48423    echo " "
48424    exit 1
48425 fi
48426
48427 echo "
48428 Configuration on `date`:
48429
48430    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
48431    Bacula version:          ${BACULA} ${VERSION} (${DATE})
48432    Source code location:    ${srcdir}
48433    Install binaries:        ${sbindir}
48434    Install libraries:       ${libdir}
48435    Install config files:    ${sysconfdir}
48436    Scripts directory:       ${scriptdir}
48437    Archive directory:       ${archivedir}
48438    Working directory:       ${working_dir}
48439    PID directory:           ${piddir}
48440    Subsys directory:        ${subsysdir}
48441    Man directory:           ${mandir}
48442    Data directory:          ${datarootdir}
48443    Plugin directory:        ${plugindir}
48444    C Compiler:              ${CC} ${CCVERSION}
48445    C++ Compiler:            ${CXX} ${CXXVERSION}
48446    Compiler flags:          ${WCFLAGS} ${CFLAGS}
48447    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
48448    Libraries:               ${LIBS}
48449    Statically Linked Tools: ${support_static_tools}
48450    Statically Linked FD:    ${support_static_fd}
48451    Statically Linked SD:    ${support_static_sd}
48452    Statically Linked DIR:   ${support_static_dir}
48453    Statically Linked CONS:  ${support_static_cons}
48454    Database type:           ${db_type}
48455    Database port:           ${db_port}
48456    Database lib:            ${DB_LIBS}
48457    Database name:           ${db_name}
48458    Database user:           ${db_user}
48459
48460    Job Output Email:        ${job_email}
48461    Traceback Email:         ${dump_email}
48462    SMTP Host Address:       ${smtp_host}
48463
48464    Director Port:           ${dir_port}
48465    File daemon Port:        ${fd_port}
48466    Storage daemon Port:     ${sd_port}
48467
48468    Director User:           ${dir_user}
48469    Director Group:          ${dir_group}
48470    Storage Daemon User:     ${sd_user}
48471    Storage DaemonGroup:     ${sd_group}
48472    File Daemon User:        ${fd_user}
48473    File Daemon Group:       ${fd_group}
48474
48475    SQL binaries Directory   ${SQL_BINDIR}
48476
48477    Large file support:      $largefile_support
48478    Bacula conio support:    ${got_conio} ${CONS_LIBS}
48479    readline support:        ${got_readline} ${PRTREADLINE_SRC}
48480    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
48481    TLS support:             ${support_tls}
48482    Encryption support:      ${support_crypto}
48483    ZLIB support:            ${have_zlib}
48484    enable-smartalloc:       ${support_smartalloc}
48485    enable-lockmgr:          ${support_lockmgr}
48486    bat support:             ${support_bat}
48487    enable-gnome:            ${support_gnome} ${gnome_version}
48488    enable-bwx-console:      ${support_wx_console} ${wx_version}
48489    enable-tray-monitor:     ${support_tray_monitor}
48490    client-only:             ${build_client_only}
48491    build-dird:              ${build_dird}
48492    build-stored:            ${build_stored}
48493    Plugin support:          ${have_plugins}
48494    ACL support:             ${have_acl}
48495    XATTR support:           ${have_xattr}
48496    Python support:          ${support_python} ${PYTHON_LIBS}
48497    Batch insert enabled:    ${support_batch_insert}
48498
48499   " > config.out
48500
48501 # create a small shell script useful for support with
48502 # configure options and config.out info
48503 cat > scripts/bacula_config << EOF
48504 #!/bin/sh
48505 cat << __EOC__
48506 $ $0 $ac_configure_args
48507 EOF
48508 cat config.out >> scripts/bacula_config
48509 echo __EOC__ >> scripts/bacula_config
48510 chmod 755 scripts/bacula_config
48511
48512 cat config.out
48513
48514 # Display a warning message if postgresql client lib is <= 8.1
48515 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
48516         -a x$support_batch_insert = xyes
48517 then
48518         echo "WARNING: Your PostgreSQL client library is too old to detect "
48519         echo " if it was compiled with --enable-thread-safety, consider to"
48520         echo " upgrade it in order to avoid problems with Batch insert mode"
48521         echo
48522 fi