]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Rebuild configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for bacula 5.1.14.
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='bacula'
745 PACKAGE_TARNAME='bacula'
746 PACKAGE_VERSION='5.1.14'
747 PACKAGE_STRING='bacula 5.1.14'
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 DLIB
799 DINCLUDE
800 DEBUG
801 FDLIBS
802 CAP_LIBS
803 ZLIBS
804 LIBOBJS
805 X_EXTRA_LIBS
806 X_LIBS
807 X_PRE_LIBS
808 X_CFLAGS
809 XMKMF
810 GETCONF
811 SHARED_CATALOG_TARGETS
812 DEFAULT_DB_TYPE
813 DB_LIBS
814 DB_BACKENDS
815 DB_PROG_LIB
816 DB_PROG
817 uncomment_dbi
818 DBI_DBD_DRIVERDIR
819 DBI_BINDIR
820 DBI_INCLUDE
821 DBI_LIBS
822 INGRES_BINDIR
823 INGRES_INCLUDE
824 INGRES_LIBS
825 SQLITE_BINDIR
826 SQLITE_INCLUDE
827 SQLITE_LIBS
828 MYSQL_BINDIR
829 MYSQL_INCLUDE
830 MYSQL_LIBS
831 POSTGRESQL_BINDIR
832 POSTGRESQL_INCLUDE
833 POSTGRESQL_LIBS
834 SBINPERM
835 fd_group
836 fd_user
837 sd_group
838 sd_user
839 dir_group
840 dir_user
841 db_port
842 db_password
843 db_user
844 db_name
845 mon_sd_password
846 mon_fd_password
847 mon_dir_password
848 sd_password
849 fd_password
850 dir_password
851 sd_port
852 fd_port
853 dir_port
854 baseport
855 subsysdir
856 piddir
857 smtp_host
858 job_email
859 dump_email
860 plugindir
861 logdir
862 bsrdir
863 scriptdir
864 hostname
865 basename
866 archivedir
867 working_dir
868 OPENSSL_INC
869 OPENSSL_LIBS
870 PYTHON_INCDIR
871 PYTHON_LIBS
872 READLINE_SRC
873 CONS_LDFLAGS
874 CONS_LIBS
875 CONS_SRC
876 CONS_OBJ
877 CONS_INC
878 STORED_DIR
879 DIR_TOOLS
880 DIRD_DIR
881 ALL_DIRS
882 STATIC_WX_CONS
883 STATIC_GNOME_CONS
884 STATIC_CONS
885 STATIC_DIR
886 STATIC_SD
887 STATIC_FD
888 TTOOL_LDFLAGS
889 TRAY_MONITOR_DIR
890 TRAY_MONITOR_LDFLAGS
891 TRAY_MONITOR_CPPFLAGS
892 WX_DIR
893 WXCONS_LDFLAGS
894 WXCONS_CPPFLAGS
895 QWT
896 QWT_LIB
897 QWT_LDFLAGS
898 QWT_INC
899 BAT_DIR
900 INTL_LIBTOOL_SUFFIX_PREFIX
901 INTLOBJS
902 GENCAT
903 INSTOBJEXT
904 DATADIRNAME
905 CATOBJEXT
906 USE_INCLUDED_LIBINTL
907 BUILD_INCLUDED_LIBINTL
908 INTLBISON
909 HAVE_WPRINTF
910 HAVE_SNPRINTF
911 HAVE_ASPRINTF
912 HAVE_POSIX_PRINTF
913 GLIBC21
914 ALLOCA
915 GLIBC2
916 POSUB
917 LTLIBINTL
918 LIBINTL
919 INTLLIBS
920 LTLIBICONV
921 LIBICONV
922 INTL_MACOSX_LIBS
923 MSGMERGE
924 XGETTEXT
925 GMSGFMT
926 MSGFMT
927 USE_NLS
928 MKINSTALLDIRS
929 SET_MAKE
930 HAVE_DARWIN_OS_FALSE
931 HAVE_DARWIN_OS_TRUE
932 HAVE_IRIX_OS_FALSE
933 HAVE_IRIX_OS_TRUE
934 HAVE_SGI_OS_FALSE
935 HAVE_SGI_OS_TRUE
936 HAVE_BSDI_OS_FALSE
937 HAVE_BSDI_OS_TRUE
938 HAVE_OPENBSD_OS_FALSE
939 HAVE_OPENBSD_OS_TRUE
940 HAVE_NETBSD_OS_FALSE
941 HAVE_NETBSD_OS_TRUE
942 HAVE_FREEBSD_OS_FALSE
943 HAVE_FREEBSD_OS_TRUE
944 HAVE_LINUX_OS_FALSE
945 HAVE_LINUX_OS_TRUE
946 HAVE_HPUX_OS_FALSE
947 HAVE_HPUX_OS_TRUE
948 HAVE_AIX_OS_FALSE
949 HAVE_AIX_OS_TRUE
950 HAVE_OSF1_OS_FALSE
951 HAVE_OSF1_OS_TRUE
952 HAVE_SUN_OS_FALSE
953 HAVE_SUN_OS_TRUE
954 INCLUDE_UNINSTALL_TARGET
955 INCLUDE_INSTALL_TARGET
956 FD_PLUGIN_DIR
957 QMAKE_LIBTOOL
958 LIBTOOL_CLEAN_TARGET
959 LIBTOOL_UNINSTALL_TARGET
960 LIBTOOL_INSTALL_TARGET
961 DEFAULT_SHARED_OBJECT_TYPE
962 DEFAULT_ARCHIVE_TYPE
963 DEFAULT_OBJECT_TYPE
964 CXXCPP
965 OTOOL64
966 OTOOL
967 LIPO
968 NMEDIT
969 DSYMUTIL
970 lt_ECHO
971 RANLIB
972 STRIP
973 OBJDUMP
974 LN_S
975 NM
976 ac_ct_DUMPBIN
977 DUMPBIN
978 LD
979 FGREP
980 host_os
981 host_vendor
982 host_cpu
983 host
984 build_os
985 build_vendor
986 build_cpu
987 build
988 LIBTOOL
989 LOCAL_DEFS
990 LOCAL_LDFLAGS
991 LOCAL_CFLAGS
992 LOCAL_LIBS
993 MAKE_SHELL
994 ARFLAGS
995 AWK
996 PIDOF
997 CDRECORD
998 WXFLAGS
999 WXCONFIG
1000 GMAKE
1001 QMAKE
1002 PKGCONFIG
1003 DVDRWFORMAT
1004 DVDRWMEDIAINFO
1005 GROWISOFS
1006 PYTHON
1007 MKISOFS
1008 DD
1009 MTX
1010 OPENSSL
1011 AR
1012 TBL
1013 CMP
1014 ECHO
1015 SED
1016 CP
1017 REMOVE
1018 MV
1019 INSTALL_DATA
1020 INSTALL_SCRIPT
1021 INSTALL_PROGRAM
1022 EGREP
1023 GREP
1024 CPP
1025 ac_ct_CXX
1026 CXXFLAGS
1027 CXX
1028 OBJEXT
1029 EXEEXT
1030 ac_ct_CC
1031 CPPFLAGS
1032 LDFLAGS
1033 CFLAGS
1034 CC
1035 LIBBACFIND_LT_RELEASE
1036 LIBBACCATS_LT_RELEASE
1037 LIBBACSQL_LT_RELEASE
1038 LIBBACPY_LT_RELEASE
1039 LIBBACCFG_LT_RELEASE
1040 LIBBAC_LT_RELEASE
1041 BDB_VERSION
1042 post_host
1043 BACULA
1044 LSMDATE
1045 DATE
1046 VERSION
1047 FALSEPRG
1048 TRUEPRG
1049 WIN32TOPDIR
1050 WIN32MAINDIR
1051 WIN32BUILDDIR
1052 TOP_DIR
1053 BUILD_DIR
1054 target_alias
1055 host_alias
1056 build_alias
1057 LIBS
1058 ECHO_T
1059 ECHO_N
1060 ECHO_C
1061 DEFS
1062 mandir
1063 localedir
1064 libdir
1065 psdir
1066 pdfdir
1067 dvidir
1068 htmldir
1069 infodir
1070 docdir
1071 oldincludedir
1072 includedir
1073 localstatedir
1074 sharedstatedir
1075 sysconfdir
1076 datadir
1077 datarootdir
1078 libexecdir
1079 sbindir
1080 bindir
1081 program_transform_name
1082 prefix
1083 exec_prefix
1084 PACKAGE_BUGREPORT
1085 PACKAGE_STRING
1086 PACKAGE_VERSION
1087 PACKAGE_TARNAME
1088 PACKAGE_NAME
1089 PATH_SEPARATOR
1090 SHELL'
1091 ac_subst_files='MCOMMON'
1092 ac_user_opts='
1093 enable_option_checking
1094 enable_libtool
1095 enable_shared
1096 enable_static
1097 with_pic
1098 enable_fast_install
1099 with_gnu_ld
1100 enable_libtool_lock
1101 enable_includes
1102 enable_nls
1103 enable_rpath
1104 with_libiconv_prefix
1105 with_libintl_prefix
1106 with_included_gettext
1107 enable_gnome
1108 enable_bat
1109 enable_bwx_console
1110 enable_tray_monitor
1111 enable_smartalloc
1112 enable_lockmgr
1113 enable_static_tools
1114 enable_static_fd
1115 enable_static_sd
1116 enable_static_dir
1117 enable_static_cons
1118 enable_client_only
1119 enable_build_dird
1120 enable_build_stored
1121 enable_conio
1122 enable_ipv6
1123 enable_readline
1124 with_readline
1125 with_python
1126 with_tcp_wrappers
1127 with_openssl
1128 with_working_dir
1129 with_archivedir
1130 with_basename
1131 with_hostname
1132 with_scriptdir
1133 with_bsrdir
1134 with_logdir
1135 with_plugindir
1136 with_dump_email
1137 with_job_email
1138 with_smtp_host
1139 with_pid_dir
1140 with_subsys_dir
1141 with_baseport
1142 with_dir_password
1143 with_fd_password
1144 with_sd_password
1145 with_mon_dir_password
1146 with_mon_fd_password
1147 with_mon_sd_password
1148 with_db_name
1149 with_db_user
1150 with_db_password
1151 with_db_port
1152 with_dir_user
1153 with_dir_group
1154 with_sd_user
1155 with_sd_group
1156 with_fd_user
1157 with_fd_group
1158 with_sbin_perm
1159 with_postgresql
1160 with_mysql
1161 with_embedded_mysql
1162 with_sqlite3
1163 with_ingres
1164 with_dbi
1165 with_dbi_driver
1166 enable_batch_insert
1167 enable_largefile
1168 with_x
1169 enable_acl
1170 enable_xattr
1171 '
1172       ac_precious_vars='build_alias
1173 host_alias
1174 target_alias
1175 CC
1176 CFLAGS
1177 LDFLAGS
1178 LIBS
1179 CPPFLAGS
1180 CXX
1181 CXXFLAGS
1182 CCC
1183 CPP
1184 WXCONFIG
1185 WXFLAGS
1186 CXXCPP
1187 XMKMF'
1188
1189
1190 # Initialize some variables set by options.
1191 ac_init_help=
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1198 exec_prefix=NONE
1199 no_create=
1200 no_recursion=
1201 prefix=NONE
1202 program_prefix=NONE
1203 program_suffix=NONE
1204 program_transform_name=s,x,x,
1205 silent=
1206 site=
1207 srcdir=
1208 verbose=
1209 x_includes=NONE
1210 x_libraries=NONE
1211
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1230 htmldir='${docdir}'
1231 dvidir='${docdir}'
1232 pdfdir='${docdir}'
1233 psdir='${docdir}'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1237
1238 ac_prev=
1239 ac_dashdash=
1240 for ac_option
1241 do
1242   # If the previous option needs an argument, assign it.
1243   if test -n "$ac_prev"; then
1244     eval $ac_prev=\$ac_option
1245     ac_prev=
1246     continue
1247   fi
1248
1249   case $ac_option in
1250   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251   *)    ac_optarg=yes ;;
1252   esac
1253
1254   # Accept the important Cygnus configure options, so we can diagnose typos.
1255
1256   case $ac_dashdash$ac_option in
1257   --)
1258     ac_dashdash=yes ;;
1259
1260   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1261     ac_prev=bindir ;;
1262   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1263     bindir=$ac_optarg ;;
1264
1265   -build | --build | --buil | --bui | --bu)
1266     ac_prev=build_alias ;;
1267   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1268     build_alias=$ac_optarg ;;
1269
1270   -cache-file | --cache-file | --cache-fil | --cache-fi \
1271   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1272     ac_prev=cache_file ;;
1273   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1274   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1275     cache_file=$ac_optarg ;;
1276
1277   --config-cache | -C)
1278     cache_file=config.cache ;;
1279
1280   -datadir | --datadir | --datadi | --datad)
1281     ac_prev=datadir ;;
1282   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1283     datadir=$ac_optarg ;;
1284
1285   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1286   | --dataroo | --dataro | --datar)
1287     ac_prev=datarootdir ;;
1288   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1289   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1290     datarootdir=$ac_optarg ;;
1291
1292   -disable-* | --disable-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "enable_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval enable_$ac_useropt=no ;;
1308
1309   -docdir | --docdir | --docdi | --doc | --do)
1310     ac_prev=docdir ;;
1311   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312     docdir=$ac_optarg ;;
1313
1314   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315     ac_prev=dvidir ;;
1316   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317     dvidir=$ac_optarg ;;
1318
1319   -enable-* | --enable-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1324    { (exit 1); exit 1; }; }
1325     ac_useropt_orig=$ac_useropt
1326     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327     case $ac_user_opts in
1328       *"
1329 "enable_$ac_useropt"
1330 "*) ;;
1331       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1332          ac_unrecognized_sep=', ';;
1333     esac
1334     eval enable_$ac_useropt=\$ac_optarg ;;
1335
1336   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1337   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1338   | --exec | --exe | --ex)
1339     ac_prev=exec_prefix ;;
1340   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1341   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1342   | --exec=* | --exe=* | --ex=*)
1343     exec_prefix=$ac_optarg ;;
1344
1345   -gas | --gas | --ga | --g)
1346     # Obsolete; use --with-gas.
1347     with_gas=yes ;;
1348
1349   -help | --help | --hel | --he | -h)
1350     ac_init_help=long ;;
1351   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1352     ac_init_help=recursive ;;
1353   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1354     ac_init_help=short ;;
1355
1356   -host | --host | --hos | --ho)
1357     ac_prev=host_alias ;;
1358   -host=* | --host=* | --hos=* | --ho=*)
1359     host_alias=$ac_optarg ;;
1360
1361   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1362     ac_prev=htmldir ;;
1363   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1364   | --ht=*)
1365     htmldir=$ac_optarg ;;
1366
1367   -includedir | --includedir | --includedi | --included | --include \
1368   | --includ | --inclu | --incl | --inc)
1369     ac_prev=includedir ;;
1370   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1371   | --includ=* | --inclu=* | --incl=* | --inc=*)
1372     includedir=$ac_optarg ;;
1373
1374   -infodir | --infodir | --infodi | --infod | --info | --inf)
1375     ac_prev=infodir ;;
1376   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1377     infodir=$ac_optarg ;;
1378
1379   -libdir | --libdir | --libdi | --libd)
1380     ac_prev=libdir ;;
1381   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1382     libdir=$ac_optarg ;;
1383
1384   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1385   | --libexe | --libex | --libe)
1386     ac_prev=libexecdir ;;
1387   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1388   | --libexe=* | --libex=* | --libe=*)
1389     libexecdir=$ac_optarg ;;
1390
1391   -localedir | --localedir | --localedi | --localed | --locale)
1392     ac_prev=localedir ;;
1393   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1394     localedir=$ac_optarg ;;
1395
1396   -localstatedir | --localstatedir | --localstatedi | --localstated \
1397   | --localstate | --localstat | --localsta | --localst | --locals)
1398     ac_prev=localstatedir ;;
1399   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1400   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1401     localstatedir=$ac_optarg ;;
1402
1403   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1404     ac_prev=mandir ;;
1405   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1406     mandir=$ac_optarg ;;
1407
1408   -nfp | --nfp | --nf)
1409     # Obsolete; use --without-fp.
1410     with_fp=no ;;
1411
1412   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1413   | --no-cr | --no-c | -n)
1414     no_create=yes ;;
1415
1416   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1417   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1418     no_recursion=yes ;;
1419
1420   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1421   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1422   | --oldin | --oldi | --old | --ol | --o)
1423     ac_prev=oldincludedir ;;
1424   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1425   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1426   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1427     oldincludedir=$ac_optarg ;;
1428
1429   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1430     ac_prev=prefix ;;
1431   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1432     prefix=$ac_optarg ;;
1433
1434   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1435   | --program-pre | --program-pr | --program-p)
1436     ac_prev=program_prefix ;;
1437   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1438   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1439     program_prefix=$ac_optarg ;;
1440
1441   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1442   | --program-suf | --program-su | --program-s)
1443     ac_prev=program_suffix ;;
1444   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1445   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1446     program_suffix=$ac_optarg ;;
1447
1448   -program-transform-name | --program-transform-name \
1449   | --program-transform-nam | --program-transform-na \
1450   | --program-transform-n | --program-transform- \
1451   | --program-transform | --program-transfor \
1452   | --program-transfo | --program-transf \
1453   | --program-trans | --program-tran \
1454   | --progr-tra | --program-tr | --program-t)
1455     ac_prev=program_transform_name ;;
1456   -program-transform-name=* | --program-transform-name=* \
1457   | --program-transform-nam=* | --program-transform-na=* \
1458   | --program-transform-n=* | --program-transform-=* \
1459   | --program-transform=* | --program-transfor=* \
1460   | --program-transfo=* | --program-transf=* \
1461   | --program-trans=* | --program-tran=* \
1462   | --progr-tra=* | --program-tr=* | --program-t=*)
1463     program_transform_name=$ac_optarg ;;
1464
1465   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1466     ac_prev=pdfdir ;;
1467   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1468     pdfdir=$ac_optarg ;;
1469
1470   -psdir | --psdir | --psdi | --psd | --ps)
1471     ac_prev=psdir ;;
1472   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1473     psdir=$ac_optarg ;;
1474
1475   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1476   | -silent | --silent | --silen | --sile | --sil)
1477     silent=yes ;;
1478
1479   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1480     ac_prev=sbindir ;;
1481   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1482   | --sbi=* | --sb=*)
1483     sbindir=$ac_optarg ;;
1484
1485   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1486   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1487   | --sharedst | --shareds | --shared | --share | --shar \
1488   | --sha | --sh)
1489     ac_prev=sharedstatedir ;;
1490   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1491   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1492   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1493   | --sha=* | --sh=*)
1494     sharedstatedir=$ac_optarg ;;
1495
1496   -site | --site | --sit)
1497     ac_prev=site ;;
1498   -site=* | --site=* | --sit=*)
1499     site=$ac_optarg ;;
1500
1501   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1502     ac_prev=srcdir ;;
1503   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1504     srcdir=$ac_optarg ;;
1505
1506   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1507   | --syscon | --sysco | --sysc | --sys | --sy)
1508     ac_prev=sysconfdir ;;
1509   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1510   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1511     sysconfdir=$ac_optarg ;;
1512
1513   -target | --target | --targe | --targ | --tar | --ta | --t)
1514     ac_prev=target_alias ;;
1515   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1516     target_alias=$ac_optarg ;;
1517
1518   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1519     verbose=yes ;;
1520
1521   -version | --version | --versio | --versi | --vers | -V)
1522     ac_init_version=: ;;
1523
1524   -with-* | --with-*)
1525     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1526     # Reject names that are not valid shell variable names.
1527     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1528       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1529    { (exit 1); exit 1; }; }
1530     ac_useropt_orig=$ac_useropt
1531     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1532     case $ac_user_opts in
1533       *"
1534 "with_$ac_useropt"
1535 "*) ;;
1536       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1537          ac_unrecognized_sep=', ';;
1538     esac
1539     eval with_$ac_useropt=\$ac_optarg ;;
1540
1541   -without-* | --without-*)
1542     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1543     # Reject names that are not valid shell variable names.
1544     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1546    { (exit 1); exit 1; }; }
1547     ac_useropt_orig=$ac_useropt
1548     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1549     case $ac_user_opts in
1550       *"
1551 "with_$ac_useropt"
1552 "*) ;;
1553       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1554          ac_unrecognized_sep=', ';;
1555     esac
1556     eval with_$ac_useropt=no ;;
1557
1558   --x)
1559     # Obsolete; use --with-x.
1560     with_x=yes ;;
1561
1562   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1563   | --x-incl | --x-inc | --x-in | --x-i)
1564     ac_prev=x_includes ;;
1565   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1566   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1567     x_includes=$ac_optarg ;;
1568
1569   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1570   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1571     ac_prev=x_libraries ;;
1572   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1573   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1574     x_libraries=$ac_optarg ;;
1575
1576   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1577 Try \`$0 --help' for more information." >&2
1578    { (exit 1); exit 1; }; }
1579     ;;
1580
1581   *=*)
1582     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1583     # Reject names that are not valid shell variable names.
1584     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1585       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1586    { (exit 1); exit 1; }; }
1587     eval $ac_envvar=\$ac_optarg
1588     export $ac_envvar ;;
1589
1590   *)
1591     # FIXME: should be removed in autoconf 3.0.
1592     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1593     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1594       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1595     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1596     ;;
1597
1598   esac
1599 done
1600
1601 if test -n "$ac_prev"; then
1602   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1603   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1604    { (exit 1); exit 1; }; }
1605 fi
1606
1607 if test -n "$ac_unrecognized_opts"; then
1608   case $enable_option_checking in
1609     no) ;;
1610     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1611    { (exit 1); exit 1; }; } ;;
1612     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1613   esac
1614 fi
1615
1616 # Check all directory arguments for consistency.
1617 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1618                 datadir sysconfdir sharedstatedir localstatedir includedir \
1619                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1620                 libdir localedir mandir
1621 do
1622   eval ac_val=\$$ac_var
1623   # Remove trailing slashes.
1624   case $ac_val in
1625     */ )
1626       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1627       eval $ac_var=\$ac_val;;
1628   esac
1629   # Be sure to have absolute directory names.
1630   case $ac_val in
1631     [\\/$]* | ?:[\\/]* )  continue;;
1632     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1633   esac
1634   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1635    { (exit 1); exit 1; }; }
1636 done
1637
1638 # There might be people who depend on the old broken behavior: `$host'
1639 # used to hold the argument of --host etc.
1640 # FIXME: To remove some day.
1641 build=$build_alias
1642 host=$host_alias
1643 target=$target_alias
1644
1645 # FIXME: To remove some day.
1646 if test "x$host_alias" != x; then
1647   if test "x$build_alias" = x; then
1648     cross_compiling=maybe
1649     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1650     If a cross compiler is detected then cross compile mode will be used." >&2
1651   elif test "x$build_alias" != "x$host_alias"; then
1652     cross_compiling=yes
1653   fi
1654 fi
1655
1656 ac_tool_prefix=
1657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1658
1659 test "$silent" = yes && exec 6>/dev/null
1660
1661
1662 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663 ac_ls_di=`ls -di .` &&
1664 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1665   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1666    { (exit 1); exit 1; }; }
1667 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1668   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1669    { (exit 1); exit 1; }; }
1670
1671
1672 # Find the source files, if location was not specified.
1673 if test -z "$srcdir"; then
1674   ac_srcdir_defaulted=yes
1675   # Try the directory containing this script, then the parent directory.
1676   ac_confdir=`$as_dirname -- "$as_myself" ||
1677 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678          X"$as_myself" : 'X\(//\)[^/]' \| \
1679          X"$as_myself" : 'X\(//\)$' \| \
1680          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681 $as_echo X"$as_myself" |
1682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683             s//\1/
1684             q
1685           }
1686           /^X\(\/\/\)[^/].*/{
1687             s//\1/
1688             q
1689           }
1690           /^X\(\/\/\)$/{
1691             s//\1/
1692             q
1693           }
1694           /^X\(\/\).*/{
1695             s//\1/
1696             q
1697           }
1698           s/.*/./; q'`
1699   srcdir=$ac_confdir
1700   if test ! -r "$srcdir/$ac_unique_file"; then
1701     srcdir=..
1702   fi
1703 else
1704   ac_srcdir_defaulted=no
1705 fi
1706 if test ! -r "$srcdir/$ac_unique_file"; then
1707   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1708   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1709    { (exit 1); exit 1; }; }
1710 fi
1711 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1712 ac_abs_confdir=`(
1713         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1714    { (exit 1); exit 1; }; }
1715         pwd)`
1716 # When building in place, set srcdir=.
1717 if test "$ac_abs_confdir" = "$ac_pwd"; then
1718   srcdir=.
1719 fi
1720 # Remove unnecessary trailing slashes from srcdir.
1721 # Double slashes in file names in object file debugging info
1722 # mess up M-x gdb in Emacs.
1723 case $srcdir in
1724 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1725 esac
1726 for ac_var in $ac_precious_vars; do
1727   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1728   eval ac_env_${ac_var}_value=\$${ac_var}
1729   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1730   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1731 done
1732
1733 #
1734 # Report the --help message.
1735 #
1736 if test "$ac_init_help" = "long"; then
1737   # Omit some internal or obsolete options to make the list less imposing.
1738   # This message is too long to be a string in the A/UX 3.1 sh.
1739   cat <<_ACEOF
1740 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1741
1742 Usage: $0 [OPTION]... [VAR=VALUE]...
1743
1744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1745 VAR=VALUE.  See below for descriptions of some of the useful variables.
1746
1747 Defaults for the options are specified in brackets.
1748
1749 Configuration:
1750   -h, --help              display this help and exit
1751       --help=short        display options specific to this package
1752       --help=recursive    display the short help of all the included packages
1753   -V, --version           display version information and exit
1754   -q, --quiet, --silent   do not print \`checking...' messages
1755       --cache-file=FILE   cache test results in FILE [disabled]
1756   -C, --config-cache      alias for \`--cache-file=config.cache'
1757   -n, --no-create         do not create output files
1758       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1759
1760 Installation directories:
1761   --prefix=PREFIX         install architecture-independent files in PREFIX
1762                           [$ac_default_prefix]
1763   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1764                           [PREFIX]
1765
1766 By default, \`make install' will install all the files in
1767 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1768 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1769 for instance \`--prefix=\$HOME'.
1770
1771 For better control, use the options below.
1772
1773 Fine tuning of the installation directories:
1774   --bindir=DIR            user executables [EPREFIX/bin]
1775   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1776   --libexecdir=DIR        program executables [EPREFIX/libexec]
1777   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1778   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1779   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1780   --libdir=DIR            object code libraries [EPREFIX/lib]
1781   --includedir=DIR        C header files [PREFIX/include]
1782   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1783   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1784   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1785   --infodir=DIR           info documentation [DATAROOTDIR/info]
1786   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1787   --mandir=DIR            man documentation [DATAROOTDIR/man]
1788   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1789   --htmldir=DIR           html documentation [DOCDIR]
1790   --dvidir=DIR            dvi documentation [DOCDIR]
1791   --pdfdir=DIR            pdf documentation [DOCDIR]
1792   --psdir=DIR             ps documentation [DOCDIR]
1793 _ACEOF
1794
1795   cat <<\_ACEOF
1796
1797 X features:
1798   --x-includes=DIR    X include files are in DIR
1799   --x-libraries=DIR   X library files are in DIR
1800
1801 System types:
1802   --build=BUILD     configure for building on BUILD [guessed]
1803   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1804 _ACEOF
1805 fi
1806
1807 if test -n "$ac_init_help"; then
1808   case $ac_init_help in
1809      short | recursive ) echo "Configuration of bacula 5.1.14:";;
1810    esac
1811   cat <<\_ACEOF
1812
1813 Optional Features:
1814   --disable-option-checking  ignore unrecognized --enable/--with options
1815   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1816   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1817   --enable-libtool        enable building using GNU libtool [default=yes]
1818   --enable-shared[=PKGS]  build shared libraries [default=yes]
1819   --enable-static[=PKGS]  build static libraries [default=no]
1820   --enable-fast-install[=PKGS]
1821                           optimize for fast installation [default=yes]
1822   --disable-libtool-lock  avoid locking (might break parallel builds)
1823   --enable-includes       enable installing of include files [default=no]
1824   --disable-nls           do not use Native Language Support
1825   --disable-rpath         do not hardcode runtime library paths
1826   --enable-gnome          enable build of bgnome-console GUI [default=no]
1827   --enable-bat            enable build of bat Qt4 GUI [default=no]
1828   --enable-bwx-console    enable build of wxWidgets console [default=no]
1829   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1830                           KDE [default=no]
1831   --enable-smartalloc     enable smartalloc debugging support [default=no]
1832   --enable-lockmgr        enable lock manager support [default=no]
1833   --enable-static-tools   enable static tape tools [default=no]
1834   --enable-static-fd      enable static File daemon [default=no]
1835   --enable-static-sd      enable static Storage daemon [default=no]
1836   --enable-static-dir     enable static Director [default=no]
1837   --enable-static-cons    enable static Console [default=no]
1838   --enable-client-only    build client (File daemon) only [default=no]
1839   --enable-build-dird     enable building of dird (Director) [default=yes]
1840   --enable-build-stored   enable building of stored (Storage daemon)
1841                           [default=yes]
1842   --disable-conio         disable conio support [default=no]
1843   --enable-ipv6           enable ipv6 support [default=yes]
1844   --disable-readline      disable readline support [default=yes]
1845   --enable-batch-insert   enable the DB batch insert code [default=yes]
1846   --disable-largefile     omit support for large files
1847   --disable-acl           disable acl support [default=auto]
1848   --disable-xattr         disable xattr support [default=auto]
1849
1850 Optional Packages:
1851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1853   --with-pic              try to use only PIC/non-PIC objects [default=use
1854                           both]
1855   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1856   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1857   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1858   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1859   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1860   --without-libintl-prefix     don't search for libintl in includedir and libdir
1861   --with-included-gettext use the GNU gettext library included here
1862   --with-readline[=DIR]   specify readline library directory
1863   --with-python[=DIR]     Include Python support. DIR is the Python base
1864                           install directory, default is to search through a
1865                           number of common places for the Python files.
1866   --with-tcp-wrappers[=DIR]
1867                           enable tcpwrappers support
1868   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1869   --with-working-dir=PATH specify path of Bacula working directory
1870   --with-archivedir=PATH  specify path of SD archive directory
1871   --with-basename=RESNAME specify base resource name for daemons
1872   --with-hostname=RESNAME specify host name for daemons
1873   --with-scriptdir=PATH   specify path of Bacula scripts directory
1874   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1875   --with-logdir=PATH      specify path of Bacula logs directory
1876   --with-plugindir=PATH   specify path of Bacula plugins directory
1877   --with-dump-email=EMAIL dump email address
1878   --with-job-email=EMAIL  job output email address
1879   --with-smtp-host=HOST   SMTP mail host address
1880   --with-pid-dir=PATH     specify location of Bacula pid files
1881   --with-subsys-dir=PATH  specify location of Bacula subsys file
1882   --with-baseport=PORT    specify base port address for daemons
1883   --with-dir-password=PASSWORD
1884                           specify Director's password
1885   --with-fd-password=PASSWORD
1886                           specify Client's password
1887   --with-sd-password=PASSWORD
1888                           specify Storage daemon's password
1889   --with-mon-dir-password=PASSWORD
1890                           specify Director's password used by the monitor
1891   --with-mon-fd-password=PASSWORD
1892                           specify Client's password used by the monitor
1893   --with-mon-sd-password=PASSWORD
1894                           specify Storage daemon's password used by the
1895                           monitor
1896   --with-db-name=DBNAME   specify database name [default=bacula]
1897   --with-db-user=UNAME    specify database user [default=bacula]
1898   --with-db-password=PWD  specify database password [default=*none*]
1899   --with-db-port=DBPORT   specify a database port [default=null]
1900   --with-dir-user=USER    specify user for Director daemon
1901   --with-dir-group=GROUP  specify group for Director daemon
1902   --with-sd-user=USER     specify user for Storage daemon
1903   --with-sd-group=GROUP   specify group for Storage daemon
1904   --with-fd-user=USER     specify user for File daemon
1905   --with-fd-group=GROUP   specify group for File daemon
1906   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1907   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1908                           base install directory, [default=/usr/local/pgsql]
1909   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1910                           directory, default is to search through a number of
1911                           common places for the MySQL files.
1912   --with-embedded-mysql[=DIR]
1913                           Include MySQL support. DIR is the MySQL base install
1914                           directory, default is to search through a number of
1915                           common places for the MySQL files.
1916   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1917                           install directory, default is to search through a
1918                           number of common places for the SQLite3 files.
1919   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1920                           install directory, default is to search through a
1921                           number of common places for the Ingres files.
1922   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1923                           directory, default is to search through a number of
1924                           common places for the DBI files.
1925   --with-dbi-driver[=DRIVER]
1926                           Suport for DBI driver. DRIVER is the one DBI driver
1927                           like Mysql, Postgresql, others. Default is to not
1928                           configure any driver.
1929   --with-x                use the X Window System
1930
1931 Some influential environment variables:
1932   CC          C compiler command
1933   CFLAGS      C compiler flags
1934   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1935               nonstandard directory <lib dir>
1936   LIBS        libraries to pass to the linker, e.g. -l<library>
1937   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1938               you have headers in a nonstandard directory <include dir>
1939   CXX         C++ compiler command
1940   CXXFLAGS    C++ compiler flags
1941   CPP         C preprocessor
1942   WXCONFIG    wx-config command. On some systems, you must set it to
1943               wx-config-2.6 to use wxWidgets 2.6.
1944   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1945   CXXCPP      C++ preprocessor
1946   XMKMF       Path to xmkmf, Makefile generator for X Window System
1947
1948 Use these variables to override the choices made by `configure' or to help
1949 it to find libraries and programs with nonstandard names/locations.
1950
1951 _ACEOF
1952 ac_status=$?
1953 fi
1954
1955 if test "$ac_init_help" = "recursive"; then
1956   # If there are subdirs, report their specific --help.
1957   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1958     test -d "$ac_dir" ||
1959       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1960       continue
1961     ac_builddir=.
1962
1963 case "$ac_dir" in
1964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1965 *)
1966   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1967   # A ".." for each directory in $ac_dir_suffix.
1968   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1969   case $ac_top_builddir_sub in
1970   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1972   esac ;;
1973 esac
1974 ac_abs_top_builddir=$ac_pwd
1975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir=$ac_top_build_prefix
1978
1979 case $srcdir in
1980   .)  # We are building in place.
1981     ac_srcdir=.
1982     ac_top_srcdir=$ac_top_builddir_sub
1983     ac_abs_top_srcdir=$ac_pwd ;;
1984   [\\/]* | ?:[\\/]* )  # Absolute name.
1985     ac_srcdir=$srcdir$ac_dir_suffix;
1986     ac_top_srcdir=$srcdir
1987     ac_abs_top_srcdir=$srcdir ;;
1988   *) # Relative name.
1989     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990     ac_top_srcdir=$ac_top_build_prefix$srcdir
1991     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1992 esac
1993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1994
1995     cd "$ac_dir" || { ac_status=$?; continue; }
1996     # Check for guested configure.
1997     if test -f "$ac_srcdir/configure.gnu"; then
1998       echo &&
1999       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000     elif test -f "$ac_srcdir/configure"; then
2001       echo &&
2002       $SHELL "$ac_srcdir/configure" --help=recursive
2003     else
2004       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005     fi || ac_status=$?
2006     cd "$ac_pwd" || { ac_status=$?; break; }
2007   done
2008 fi
2009
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2012   cat <<\_ACEOF
2013 bacula configure 5.1.14
2014 generated by GNU Autoconf 2.63
2015
2016 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2017 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2018 This configure script is free software; the Free Software Foundation
2019 gives unlimited permission to copy, distribute and modify it.
2020 _ACEOF
2021   exit
2022 fi
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by bacula $as_me 5.1.14, which was
2028 generated by GNU Autoconf 2.63.  Invocation command line was
2029
2030   $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2048
2049 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2050 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2053 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2054 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2055 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   $as_echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091   for ac_arg
2092   do
2093     case $ac_arg in
2094     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096     | -silent | --silent | --silen | --sile | --sil)
2097       continue ;;
2098     *\'*)
2099       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100     esac
2101     case $ac_pass in
2102     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2103     2)
2104       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2105       if test $ac_must_keep_next = true; then
2106         ac_must_keep_next=false # Got value, back to normal.
2107       else
2108         case $ac_arg in
2109           *=* | --config-cache | -C | -disable-* | --disable-* \
2110           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112           | -with-* | --with-* | -without-* | --without-* | --x)
2113             case "$ac_configure_args0 " in
2114               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115             esac
2116             ;;
2117           -* ) ac_must_keep_next=true ;;
2118         esac
2119       fi
2120       ac_configure_args="$ac_configure_args '$ac_arg'"
2121       ;;
2122     esac
2123   done
2124 done
2125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log.  We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134   # Save into config.log some information that might help in debugging.
2135   {
2136     echo
2137
2138     cat <<\_ASBOX
2139 ## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##
2142 _ASBOX
2143     echo
2144     # The following way of writing the cache mishandles newlines in values,
2145 (
2146   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147     eval ac_val=\$$ac_var
2148     case $ac_val in #(
2149     *${as_nl}*)
2150       case $ac_var in #(
2151       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2153       esac
2154       case $ac_var in #(
2155       _ | IFS | as_nl) ;; #(
2156       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157       *) $as_unset $ac_var ;;
2158       esac ;;
2159     esac
2160   done
2161   (set) 2>&1 |
2162     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163     *${as_nl}ac_space=\ *)
2164       sed -n \
2165         "s/'\''/'\''\\\\'\'''\''/g;
2166           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167       ;; #(
2168     *)
2169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170       ;;
2171     esac |
2172     sort
2173 )
2174     echo
2175
2176     cat <<\_ASBOX
2177 ## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##
2180 _ASBOX
2181     echo
2182     for ac_var in $ac_subst_vars
2183     do
2184       eval ac_val=\$$ac_var
2185       case $ac_val in
2186       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187       esac
2188       $as_echo "$ac_var='\''$ac_val'\''"
2189     done | sort
2190     echo
2191
2192     if test -n "$ac_subst_files"; then
2193       cat <<\_ASBOX
2194 ## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##
2197 _ASBOX
2198       echo
2199       for ac_var in $ac_subst_files
2200       do
2201         eval ac_val=\$$ac_var
2202         case $ac_val in
2203         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204         esac
2205         $as_echo "$ac_var='\''$ac_val'\''"
2206       done | sort
2207       echo
2208     fi
2209
2210     if test -s confdefs.h; then
2211       cat <<\_ASBOX
2212 ## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##
2215 _ASBOX
2216       echo
2217       cat confdefs.h
2218       echo
2219     fi
2220     test "$ac_signal" != 0 &&
2221       $as_echo "$as_me: caught signal $ac_signal"
2222     $as_echo "$as_me: exit $exit_status"
2223   } >&5
2224   rm -f core *.core core.conftest.* &&
2225     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226     exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 # Predefined preprocessor variables.
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 _ACEOF
2241
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2261
2262
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2265 ac_site_file1=NONE
2266 ac_site_file2=NONE
2267 if test -n "$CONFIG_SITE"; then
2268   ac_site_file1=$CONFIG_SITE
2269 elif test "x$prefix" != xNONE; then
2270   ac_site_file1=$prefix/share/config.site
2271   ac_site_file2=$prefix/etc/config.site
2272 else
2273   ac_site_file1=$ac_default_prefix/share/config.site
2274   ac_site_file2=$ac_default_prefix/etc/config.site
2275 fi
2276 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2277 do
2278   test "x$ac_site_file" = xNONE && continue
2279   if test -r "$ac_site_file"; then
2280     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2282     sed 's/^/| /' "$ac_site_file" >&5
2283     . "$ac_site_file"
2284   fi
2285 done
2286
2287 if test -r "$cache_file"; then
2288   # Some versions of bash will fail to source /dev/null (special
2289   # files actually), so we avoid doing that.
2290   if test -f "$cache_file"; then
2291     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2292 $as_echo "$as_me: loading cache $cache_file" >&6;}
2293     case $cache_file in
2294       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295       *)                      . "./$cache_file";;
2296     esac
2297   fi
2298 else
2299   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2300 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301   >$cache_file
2302 fi
2303
2304 # Check that the precious variables saved in the cache have kept the same
2305 # value.
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309   eval ac_new_set=\$ac_env_${ac_var}_set
2310   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311   eval ac_new_val=\$ac_env_${ac_var}_value
2312   case $ac_old_set,$ac_new_set in
2313     set,)
2314       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316       ac_cache_corrupted=: ;;
2317     ,set)
2318       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320       ac_cache_corrupted=: ;;
2321     ,);;
2322     *)
2323       if test "x$ac_old_val" != "x$ac_new_val"; then
2324         # differences in whitespace do not lead to failure.
2325         ac_old_val_w=`echo x $ac_old_val`
2326         ac_new_val_w=`echo x $ac_new_val`
2327         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330           ac_cache_corrupted=:
2331         else
2332           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334           eval $ac_var=\$ac_old_val
2335         fi
2336         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2337 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2338         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2339 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2340       fi;;
2341   esac
2342   # Pass precious variables to config.status.
2343   if test "$ac_new_set" = set; then
2344     case $ac_new_val in
2345     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346     *) ac_arg=$ac_var=$ac_new_val ;;
2347     esac
2348     case " $ac_configure_args " in
2349       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2350       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2351     esac
2352   fi
2353 done
2354 if $ac_cache_corrupted; then
2355   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2360 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
2396
2397 BUILD_DIR=`pwd`
2398 cd ..
2399 TOP_DIR=`pwd`
2400 cd ${BUILD_DIR}
2401
2402
2403 ac_aux_dir=
2404 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2405   if test -f "$ac_dir/install-sh"; then
2406     ac_aux_dir=$ac_dir
2407     ac_install_sh="$ac_aux_dir/install-sh -c"
2408     break
2409   elif test -f "$ac_dir/install.sh"; then
2410     ac_aux_dir=$ac_dir
2411     ac_install_sh="$ac_aux_dir/install.sh -c"
2412     break
2413   elif test -f "$ac_dir/shtool"; then
2414     ac_aux_dir=$ac_dir
2415     ac_install_sh="$ac_aux_dir/shtool install -c"
2416     break
2417   fi
2418 done
2419 if test -z "$ac_aux_dir"; then
2420   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2421 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2422    { (exit 1); exit 1; }; }
2423 fi
2424
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2432
2433
2434 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2435
2436
2437 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2438 WIN32MAINDIR=${BUILD_DIR}
2439 WIN32TOPDIR=${TOP_DIR}
2440
2441
2442
2443
2444 for ac_prog in true
2445 do
2446   # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2451   $as_echo_n "(cached) " >&6
2452 else
2453   case $TRUEPRG in
2454   [\\/]* | ?:[\\/]*)
2455   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2456   ;;
2457   *)
2458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463   for ac_exec_ext in '' $ac_executable_extensions; do
2464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471 IFS=$as_save_IFS
2472
2473   ;;
2474 esac
2475 fi
2476 TRUEPRG=$ac_cv_path_TRUEPRG
2477 if test -n "$TRUEPRG"; then
2478   { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2479 $as_echo "$TRUEPRG" >&6; }
2480 else
2481   { $as_echo "$as_me:$LINENO: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485
2486   test -n "$TRUEPRG" && break
2487 done
2488 test -n "$TRUEPRG" || TRUEPRG=":"
2489
2490 for ac_prog in false
2491 do
2492   # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2497   $as_echo_n "(cached) " >&6
2498 else
2499   case $FALSEPRG in
2500   [\\/]* | ?:[\\/]*)
2501   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2502   ;;
2503   *)
2504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519   ;;
2520 esac
2521 fi
2522 FALSEPRG=$ac_cv_path_FALSEPRG
2523 if test -n "$FALSEPRG"; then
2524   { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2525 $as_echo "$FALSEPRG" >&6; }
2526 else
2527   { $as_echo "$as_me:$LINENO: result: no" >&5
2528 $as_echo "no" >&6; }
2529 fi
2530
2531
2532   test -n "$FALSEPRG" && break
2533 done
2534 test -n "$FALSEPRG" || FALSEPRG=":"
2535
2536
2537
2538 post_host=
2539 if test "x$BACULA" != x; then
2540    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2541 fi
2542 BACULA=${BACULA:-Bacula}
2543 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2544 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2545 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2546 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2547
2548 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2549 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2550 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2551
2552 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2553 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2554 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2555
2556
2557 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2558 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2559
2560 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2561 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
2562
2563
2564 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2565
2566 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2567
2568
2569 echo "configuring for ${BACULA} $VERSION ($DATE)"
2570
2571
2572
2573 ac_ext=c
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2609 $as_echo "$CC" >&6; }
2610 else
2611   { $as_echo "$as_me:$LINENO: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616 fi
2617 if test -z "$ac_cv_prog_CC"; then
2618   ac_ct_CC=$CC
2619   # Extract the first word of "gcc", so it can be a program name with args.
2620 set dummy gcc; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$ac_ct_CC"; then
2627   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636     ac_cv_prog_ac_ct_CC="gcc"
2637     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649 $as_echo "$ac_ct_CC" >&6; }
2650 else
2651   { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655   if test "x$ac_ct_CC" = x; then
2656     CC=""
2657   else
2658     case $cross_compiling:$ac_tool_warned in
2659 yes:)
2660 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2663 esac
2664     CC=$ac_ct_CC
2665   fi
2666 else
2667   CC="$ac_cv_prog_CC"
2668 fi
2669
2670 if test -z "$CC"; then
2671           if test -n "$ac_tool_prefix"; then
2672     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687   for ac_exec_ext in '' $ac_executable_extensions; do
2688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689     ac_cv_prog_CC="${ac_tool_prefix}cc"
2690     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704   { $as_echo "$as_me:$LINENO: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709   fi
2710 fi
2711 if test -z "$CC"; then
2712   # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722   ac_prog_rejected=no
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728   for ac_exec_ext in '' $ac_executable_extensions; do
2729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731        ac_prog_rejected=yes
2732        continue
2733      fi
2734     ac_cv_prog_CC="cc"
2735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 if test $ac_prog_rejected = yes; then
2743   # We found a bogon in the path, so make sure we never use it.
2744   set dummy $ac_cv_prog_CC
2745   shift
2746   if test $# != 0; then
2747     # We chose a different compiler from the bogus one.
2748     # However, it has the same basename, so the bogon will be chosen
2749     # first if we set CC to just the basename; use the full file name.
2750     shift
2751     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752   fi
2753 fi
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761   { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$CC"; then
2768   if test -n "$ac_tool_prefix"; then
2769   for ac_prog in cl.exe
2770   do
2771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$CC"; then
2779   ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803   { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808     test -n "$CC" && break
2809   done
2810 fi
2811 if test -z "$CC"; then
2812   ac_ct_CC=$CC
2813   for ac_prog in cl.exe
2814 do
2815   # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$ac_ct_CC"; then
2823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_ac_ct_CC="$ac_prog"
2833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2846 else
2847   { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852   test -n "$ac_ct_CC" && break
2853 done
2854
2855   if test "x$ac_ct_CC" = x; then
2856     CC=""
2857   else
2858     case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CC=$ac_ct_CC
2865   fi
2866 fi
2867
2868 fi
2869
2870
2871 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details." >&5
2875 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&2;}
2877    { (exit 1); exit 1; }; }; }
2878
2879 # Provide some information about the compiler.
2880 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2881 set X $ac_compile
2882 ac_compiler=$2
2883 { (ac_try="$ac_compiler --version >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890   (eval "$ac_compiler --version >&5") 2>&5
2891   ac_status=$?
2892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900 $as_echo "$ac_try_echo") >&5
2901   (eval "$ac_compiler -v >&5") 2>&5
2902   ac_status=$?
2903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911 $as_echo "$ac_try_echo") >&5
2912   (eval "$ac_compiler -V >&5") 2>&5
2913   ac_status=$?
2914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 ac_clean_files_save=$ac_clean_files
2933 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2934 # Try to create an executable without -o first, disregard a.out.
2935 # It will help us diagnose broken compilers, and finding out an intuition
2936 # of exeext.
2937 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2938 $as_echo_n "checking for C compiler default output file name... " >&6; }
2939 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2940
2941 # The possible output files:
2942 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2943
2944 ac_rmfiles=
2945 for ac_file in $ac_files
2946 do
2947   case $ac_file in
2948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2949     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2950   esac
2951 done
2952 rm -f $ac_rmfiles
2953
2954 if { (ac_try="$ac_link_default"
2955 case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2960 $as_echo "$ac_try_echo") >&5
2961   (eval "$ac_link_default") 2>&5
2962   ac_status=$?
2963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; then
2965   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2966 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2967 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2968 # so that the user can short-circuit this test for compilers unknown to
2969 # Autoconf.
2970 for ac_file in $ac_files ''
2971 do
2972   test -f "$ac_file" || continue
2973   case $ac_file in
2974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2975         ;;
2976     [ab].out )
2977         # We found the default executable, but exeext='' is most
2978         # certainly right.
2979         break;;
2980     *.* )
2981         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2982         then :; else
2983            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984         fi
2985         # We set ac_cv_exeext here because the later test for it is not
2986         # safe: cross compilers may not add the suffix if given an `-o'
2987         # argument, so we may need to know it at that point already.
2988         # Even if this section looks crufty: it has the advantage of
2989         # actually working.
2990         break;;
2991     * )
2992         break;;
2993   esac
2994 done
2995 test "$ac_cv_exeext" = no && ac_cv_exeext=
2996
2997 else
2998   ac_file=''
2999 fi
3000
3001 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3002 $as_echo "$ac_file" >&6; }
3003 if test -z "$ac_file"; then
3004   $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: C compiler cannot create executables
3012 See \`config.log' for more details." >&2;}
3013    { (exit 77); exit 77; }; }; }
3014 fi
3015
3016 ac_exeext=$ac_cv_exeext
3017
3018 # Check that the compiler produces executables we can run.  If not, either
3019 # the compiler is broken, or we cross compile.
3020 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025   if { ac_try='./$ac_file'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032   (eval "$ac_try") 2>&5
3033   ac_status=$?
3034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; }; then
3036     cross_compiling=no
3037   else
3038     if test "$cross_compiling" = maybe; then
3039         cross_compiling=yes
3040     else
3041         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details." >&2;}
3049    { (exit 1); exit 1; }; }; }
3050     fi
3051   fi
3052 fi
3053 { $as_echo "$as_me:$LINENO: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 # Check that the compiler produces executables we can run.  If not, either
3059 # the compiler is broken, or we cross compile.
3060 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3061 $as_echo_n "checking whether we are cross compiling... " >&6; }
3062 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3063 $as_echo "$cross_compiling" >&6; }
3064
3065 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3066 $as_echo_n "checking for suffix of executables... " >&6; }
3067 if { (ac_try="$ac_link"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074   (eval "$ac_link") 2>&5
3075   ac_status=$?
3076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; then
3078   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3080 # work properly (i.e., refer to `conftest.exe'), while it won't with
3081 # `rm'.
3082 for ac_file in conftest.exe conftest conftest.*; do
3083   test -f "$ac_file" || continue
3084   case $ac_file in
3085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087           break;;
3088     * ) break;;
3089   esac
3090 done
3091 else
3092   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3095 See \`config.log' for more details." >&5
3096 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&2;}
3098    { (exit 1); exit 1; }; }; }
3099 fi
3100
3101 rm -f conftest$ac_cv_exeext
3102 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3103 $as_echo "$ac_cv_exeext" >&6; }
3104
3105 rm -f conftest.$ac_ext
3106 EXEEXT=$ac_cv_exeext
3107 ac_exeext=$EXEEXT
3108 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3109 $as_echo_n "checking for suffix of object files... " >&6; }
3110 if test "${ac_cv_objext+set}" = set; then
3111   $as_echo_n "(cached) " >&6
3112 else
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.o conftest.obj
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136   (eval "$ac_compile") 2>&5
3137   ac_status=$?
3138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; then
3140   for ac_file in conftest.o conftest.obj conftest.*; do
3141   test -f "$ac_file" || continue;
3142   case $ac_file in
3143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3145        break;;
3146   esac
3147 done
3148 else
3149   $as_echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&5
3156 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&2;}
3158    { (exit 1); exit 1; }; }; }
3159 fi
3160
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 fi
3163 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3164 $as_echo "$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3166 ac_objext=$OBJEXT
3167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3170   $as_echo_n "(cached) " >&6
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182 #ifndef __GNUC__
3183        choke me
3184 #endif
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3197 $as_echo "$ac_try_echo") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } && {
3205          test -z "$ac_c_werror_flag" ||
3206          test ! -s conftest.err
3207        } && test -s conftest.$ac_objext; then
3208   ac_compiler_gnu=yes
3209 else
3210   $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         ac_compiler_gnu=no
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218
3219 fi
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3223   GCC=yes
3224 else
3225   GCC=
3226 fi
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3231 if test "${ac_cv_prog_cc_g+set}" = set; then
3232   $as_echo_n "(cached) " >&6
3233 else
3234   ac_save_c_werror_flag=$ac_c_werror_flag
3235    ac_c_werror_flag=yes
3236    ac_cv_prog_cc_g=no
3237    CFLAGS="-g"
3238    cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compile") 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } && {
3268          test -z "$ac_c_werror_flag" ||
3269          test ! -s conftest.err
3270        } && test -s conftest.$ac_objext; then
3271   ac_cv_prog_cc_g=yes
3272 else
3273   $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276         CFLAGS=""
3277       cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300   (eval "$ac_compile") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } && {
3307          test -z "$ac_c_werror_flag" ||
3308          test ! -s conftest.err
3309        } && test -s conftest.$ac_objext; then
3310   :
3311 else
3312   $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315         ac_c_werror_flag=$ac_save_c_werror_flag
3316          CFLAGS="-g"
3317          cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_cv_prog_cc_g=yes
3351 else
3352   $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365    ac_c_werror_flag=$ac_save_c_werror_flag
3366 fi
3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 $as_echo "$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370   CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372   if test "$GCC" = yes; then
3373     CFLAGS="-g -O2"
3374   else
3375     CFLAGS="-g"
3376   fi
3377 else
3378   if test "$GCC" = yes; then
3379     CFLAGS="-O2"
3380   else
3381     CFLAGS=
3382   fi
3383 fi
3384 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3386 if test "${ac_cv_prog_cc_c89+set}" = set; then
3387   $as_echo_n "(cached) " >&6
3388 else
3389   ac_cv_prog_cc_c89=no
3390 ac_save_CC=$CC
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405      char **p;
3406      int i;
3407 {
3408   return p[i];
3409 }
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3411 {
3412   char *s;
3413   va_list v;
3414   va_start (v,p);
3415   s = g (p, va_arg (v,int));
3416   va_end (v);
3417   return s;
3418 }
3419
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3421    function prototypes and stuff, but not '\xHH' hex character constants.
3422    These don't provoke an error unfortunately, instead are silently treated
3423    as 'x'.  The following induces an error, until -std is added to get
3424    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3425    array size at least.  It's necessary to write '\x00'==0 to get something
3426    that's true only with -std.  */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430    inside strings and character constants.  */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3440 int
3441 main ()
3442 {
3443 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 do
3451   CC="$ac_save_CC $ac_arg"
3452   rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459 $as_echo "$ac_try_echo") >&5
3460   (eval "$ac_compile") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } && {
3467          test -z "$ac_c_werror_flag" ||
3468          test ! -s conftest.err
3469        } && test -s conftest.$ac_objext; then
3470   ac_cv_prog_cc_c89=$ac_arg
3471 else
3472   $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext
3479   test "x$ac_cv_prog_cc_c89" != "xno" && break
3480 done
3481 rm -f conftest.$ac_ext
3482 CC=$ac_save_CC
3483
3484 fi
3485 # AC_CACHE_VAL
3486 case "x$ac_cv_prog_cc_c89" in
3487   x)
3488     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3489 $as_echo "none needed" >&6; } ;;
3490   xno)
3491     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3492 $as_echo "unsupported" >&6; } ;;
3493   *)
3494     CC="$CC $ac_cv_prog_cc_c89"
3495     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3497 esac
3498
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505
3506 ac_ext=cpp
3507 ac_cpp='$CXXCPP $CPPFLAGS'
3508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3511 if test -z "$CXX"; then
3512   if test -n "$CCC"; then
3513     CXX=$CCC
3514   else
3515     if test -n "$ac_tool_prefix"; then
3516   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3517   do
3518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CXX+set}" = set; then
3523   $as_echo_n "(cached) " >&6
3524 else
3525   if test -n "$CXX"; then
3526   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533   for ac_exec_ext in '' $ac_executable_extensions; do
3534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3536     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 CXX=$ac_cv_prog_CXX
3546 if test -n "$CXX"; then
3547   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3548 $as_echo "$CXX" >&6; }
3549 else
3550   { $as_echo "$as_me:$LINENO: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555     test -n "$CXX" && break
3556   done
3557 fi
3558 if test -z "$CXX"; then
3559   ac_ct_CXX=$CXX
3560   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3561 do
3562   # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test -n "$ac_ct_CXX"; then
3570   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   for ac_exec_ext in '' $ac_executable_extensions; do
3578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579     ac_cv_prog_ac_ct_CXX="$ac_prog"
3580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3590 if test -n "$ac_ct_CXX"; then
3591   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3592 $as_echo "$ac_ct_CXX" >&6; }
3593 else
3594   { $as_echo "$as_me:$LINENO: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599   test -n "$ac_ct_CXX" && break
3600 done
3601
3602   if test "x$ac_ct_CXX" = x; then
3603     CXX="g++"
3604   else
3605     case $cross_compiling:$ac_tool_warned in
3606 yes:)
3607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3610 esac
3611     CXX=$ac_ct_CXX
3612   fi
3613 fi
3614
3615   fi
3616 fi
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 { (ac_try="$ac_compiler --version >&5"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628   (eval "$ac_compiler --version >&5") 2>&5
3629   ac_status=$?
3630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }
3632 { (ac_try="$ac_compiler -v >&5"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639   (eval "$ac_compiler -v >&5") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }
3643 { (ac_try="$ac_compiler -V >&5"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649 $as_echo "$ac_try_echo") >&5
3650   (eval "$ac_compiler -V >&5") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }
3654
3655 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3658   $as_echo_n "(cached) " >&6
3659 else
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670 #ifndef __GNUC__
3671        choke me
3672 #endif
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3685 $as_echo "$ac_try_echo") >&5
3686   (eval "$ac_compile") 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } && {
3693          test -z "$ac_cxx_werror_flag" ||
3694          test ! -s conftest.err
3695        } && test -s conftest.$ac_objext; then
3696   ac_compiler_gnu=yes
3697 else
3698   $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701         ac_compiler_gnu=no
3702 fi
3703
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3706
3707 fi
3708 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3711   GXX=yes
3712 else
3713   GXX=
3714 fi
3715 ac_test_CXXFLAGS=${CXXFLAGS+set}
3716 ac_save_CXXFLAGS=$CXXFLAGS
3717 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3719 if test "${ac_cv_prog_cxx_g+set}" = set; then
3720   $as_echo_n "(cached) " >&6
3721 else
3722   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3723    ac_cxx_werror_flag=yes
3724    ac_cv_prog_cxx_g=no
3725    CXXFLAGS="-g"
3726    cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749   (eval "$ac_compile") 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } && {
3756          test -z "$ac_cxx_werror_flag" ||
3757          test ! -s conftest.err
3758        } && test -s conftest.$ac_objext; then
3759   ac_cv_prog_cxx_g=yes
3760 else
3761   $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764         CXXFLAGS=""
3765       cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788   (eval "$ac_compile") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } && {
3795          test -z "$ac_cxx_werror_flag" ||
3796          test ! -s conftest.err
3797        } && test -s conftest.$ac_objext; then
3798   :
3799 else
3800   $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3804          CXXFLAGS="-g"
3805          cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h.  */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828   (eval "$ac_compile") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } && {
3835          test -z "$ac_cxx_werror_flag" ||
3836          test ! -s conftest.err
3837        } && test -s conftest.$ac_objext; then
3838   ac_cv_prog_cxx_g=yes
3839 else
3840   $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843
3844 fi
3845
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 fi
3851
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3854 fi
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3856 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3857 if test "$ac_test_CXXFLAGS" = set; then
3858   CXXFLAGS=$ac_save_CXXFLAGS
3859 elif test $ac_cv_prog_cxx_g = yes; then
3860   if test "$GXX" = yes; then
3861     CXXFLAGS="-g -O2"
3862   else
3863     CXXFLAGS="-g"
3864   fi
3865 else
3866   if test "$GXX" = yes; then
3867     CXXFLAGS="-O2"
3868   else
3869     CXXFLAGS=
3870   fi
3871 fi
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878 if test "x$CC" != xcc; then
3879   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3880 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3881 else
3882   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3883 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3884 fi
3885 set dummy $CC; ac_cc=`$as_echo "$2" |
3886                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3887 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3888   $as_echo_n "(cached) " >&6
3889 else
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896
3897 int
3898 main ()
3899 {
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 # Make sure it works both with $CC and with simple cc.
3906 # We do the test twice because some compilers refuse to overwrite an
3907 # existing .o file with -o, though they will create one.
3908 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3909 rm -f conftest2.*
3910 if { (case "(($ac_try" in
3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912   *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916   (eval "$ac_try") 2>&5
3917   ac_status=$?
3918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3925 $as_echo "$ac_try_echo") >&5
3926   (eval "$ac_try") 2>&5
3927   ac_status=$?
3928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); };
3930 then
3931   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3932   if test "x$CC" != xcc; then
3933     # Test first that cc exists at all.
3934     if { ac_try='cc -c conftest.$ac_ext >&5'
3935   { (case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941   (eval "$ac_try") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; }; then
3945       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3946       rm -f conftest2.*
3947       if { (case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953   (eval "$ac_try") 2>&5
3954   ac_status=$?
3955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); } &&
3957          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963   (eval "$ac_try") 2>&5
3964   ac_status=$?
3965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); };
3967       then
3968         # cc works too.
3969         :
3970       else
3971         # cc exists but doesn't like -o.
3972         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3973       fi
3974     fi
3975   fi
3976 else
3977   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3978 fi
3979 rm -f core conftest*
3980
3981 fi
3982 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3983   { $as_echo "$as_me:$LINENO: result: yes" >&5
3984 $as_echo "yes" >&6; }
3985 else
3986   { $as_echo "$as_me:$LINENO: result: no" >&5
3987 $as_echo "no" >&6; }
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define NO_MINUS_C_MINUS_O 1
3991 _ACEOF
3992
3993 fi
3994
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4002 # On Suns, sometimes $CPP names a directory.
4003 if test -n "$CPP" && test -d "$CPP"; then
4004   CPP=
4005 fi
4006 if test -z "$CPP"; then
4007   if test "${ac_cv_prog_CPP+set}" = set; then
4008   $as_echo_n "(cached) " >&6
4009 else
4010       # Double quotes because CPP needs to be expanded
4011     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4012     do
4013       ac_preproc_ok=false
4014 for ac_c_preproc_warn_flag in '' yes
4015 do
4016   # Use a header file that comes with gcc, so configuring glibc
4017   # with a fresh cross-compiler works.
4018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019   # <limits.h> exists even on freestanding compilers.
4020   # On the NeXT, cc -E runs the code through the compiler's parser,
4021   # not just through cpp. "Syntax error" is here to catch this case.
4022   cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033                      Syntax error
4034 _ACEOF
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4036 case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4041 $as_echo "$ac_try_echo") >&5
4042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4043   ac_status=$?
4044   grep -v '^ *+' conftest.er1 >conftest.err
4045   rm -f conftest.er1
4046   cat conftest.err >&5
4047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } >/dev/null && {
4049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4050          test ! -s conftest.err
4051        }; then
4052   :
4053 else
4054   $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057   # Broken: fails on valid input.
4058 continue
4059 fi
4060
4061 rm -f conftest.err conftest.$ac_ext
4062
4063   # OK, works on sane cases.  Now check whether nonexistent headers
4064   # can be detected and how.
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <ac_nonexistent.h>
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } >/dev/null && {
4087          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        }; then
4090   # Broken: success on invalid input.
4091 continue
4092 else
4093   $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096   # Passes both tests.
4097 ac_preproc_ok=:
4098 break
4099 fi
4100
4101 rm -f conftest.err conftest.$ac_ext
4102
4103 done
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then
4107   break
4108 fi
4109
4110     done
4111     ac_cv_prog_CPP=$CPP
4112
4113 fi
4114   CPP=$ac_cv_prog_CPP
4115 else
4116   ac_cv_prog_CPP=$CPP
4117 fi
4118 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4119 $as_echo "$CPP" >&6; }
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4122 do
4123   # Use a header file that comes with gcc, so configuring glibc
4124   # with a fresh cross-compiler works.
4125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126   # <limits.h> exists even on freestanding compilers.
4127   # On the NeXT, cc -E runs the code through the compiler's parser,
4128   # not just through cpp. "Syntax error" is here to catch this case.
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140                      Syntax error
4141 _ACEOF
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } >/dev/null && {
4156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157          test ! -s conftest.err
4158        }; then
4159   :
4160 else
4161   $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164   # Broken: fails on valid input.
4165 continue
4166 fi
4167
4168 rm -f conftest.err conftest.$ac_ext
4169
4170   # OK, works on sane cases.  Now check whether nonexistent headers
4171   # can be detected and how.
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #include <ac_nonexistent.h>
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } >/dev/null && {
4194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        }; then
4197   # Broken: success on invalid input.
4198 continue
4199 else
4200   $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203   # Passes both tests.
4204 ac_preproc_ok=:
4205 break
4206 fi
4207
4208 rm -f conftest.err conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4214   :
4215 else
4216   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&5
4220 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4221 See \`config.log' for more details." >&2;}
4222    { (exit 1); exit 1; }; }; }
4223 fi
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4234 if test "${ac_cv_path_GREP+set}" = set; then
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -z "$GREP"; then
4238   ac_path_GREP_found=false
4239   # Loop through the user's path and test for each of PROGNAME-LIST
4240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_prog in grep ggrep; do
4246     for ac_exec_ext in '' $ac_executable_extensions; do
4247       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4248       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249 # Check for GNU ac_path_GREP and select it if it is found.
4250   # Check for GNU $ac_path_GREP
4251 case `"$ac_path_GREP" --version 2>&1` in
4252 *GNU*)
4253   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4254 *)
4255   ac_count=0
4256   $as_echo_n 0123456789 >"conftest.in"
4257   while :
4258   do
4259     cat "conftest.in" "conftest.in" >"conftest.tmp"
4260     mv "conftest.tmp" "conftest.in"
4261     cp "conftest.in" "conftest.nl"
4262     $as_echo 'GREP' >> "conftest.nl"
4263     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265     ac_count=`expr $ac_count + 1`
4266     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4267       # Best one so far, save it but keep looking for a better one
4268       ac_cv_path_GREP="$ac_path_GREP"
4269       ac_path_GREP_max=$ac_count
4270     fi
4271     # 10*(2^10) chars as input seems more than enough
4272     test $ac_count -gt 10 && break
4273   done
4274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275 esac
4276
4277       $ac_path_GREP_found && break 3
4278     done
4279   done
4280 done
4281 IFS=$as_save_IFS
4282   if test -z "$ac_cv_path_GREP"; then
4283     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4284 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4285    { (exit 1); exit 1; }; }
4286   fi
4287 else
4288   ac_cv_path_GREP=$GREP
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294  GREP="$ac_cv_path_GREP"
4295
4296
4297 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303    then ac_cv_path_EGREP="$GREP -E"
4304    else
4305      if test -z "$EGREP"; then
4306   ac_path_EGREP_found=false
4307   # Loop through the user's path and test for each of PROGNAME-LIST
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_prog in egrep; do
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318   # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4320 *GNU*)
4321   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4322 *)
4323   ac_count=0
4324   $as_echo_n 0123456789 >"conftest.in"
4325   while :
4326   do
4327     cat "conftest.in" "conftest.in" >"conftest.tmp"
4328     mv "conftest.tmp" "conftest.in"
4329     cp "conftest.in" "conftest.nl"
4330     $as_echo 'EGREP' >> "conftest.nl"
4331     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333     ac_count=`expr $ac_count + 1`
4334     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335       # Best one so far, save it but keep looking for a better one
4336       ac_cv_path_EGREP="$ac_path_EGREP"
4337       ac_path_EGREP_max=$ac_count
4338     fi
4339     # 10*(2^10) chars as input seems more than enough
4340     test $ac_count -gt 10 && break
4341   done
4342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345       $ac_path_EGREP_found && break 3
4346     done
4347   done
4348 done
4349 IFS=$as_save_IFS
4350   if test -z "$ac_cv_path_EGREP"; then
4351     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353    { (exit 1); exit 1; }; }
4354   fi
4355 else
4356   ac_cv_path_EGREP=$EGREP
4357 fi
4358
4359    fi
4360 fi
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363  EGREP="$ac_cv_path_EGREP"
4364
4365
4366 if test $ac_cv_c_compiler_gnu = yes; then
4367     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4370   $as_echo_n "(cached) " >&6
4371 else
4372     ac_pattern="Autoconf.*'x'"
4373   cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 #include <sgtty.h>
4380 Autoconf TIOCGETP
4381 _ACEOF
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4384   ac_cv_prog_gcc_traditional=yes
4385 else
4386   ac_cv_prog_gcc_traditional=no
4387 fi
4388 rm -f conftest*
4389
4390
4391   if test $ac_cv_prog_gcc_traditional = no; then
4392     cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 #include <termio.h>
4399 Autoconf TCGETA
4400 _ACEOF
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4403   ac_cv_prog_gcc_traditional=yes
4404 fi
4405 rm -f conftest*
4406
4407   fi
4408 fi
4409 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4410 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4411   if test $ac_cv_prog_gcc_traditional = yes; then
4412     CC="$CC -traditional"
4413   fi
4414 fi
4415
4416 BASECC=`basename $CC`
4417 have_gcc=no
4418 if test "x$BASECC" = xgcc; then
4419    cat >>confdefs.h <<\_ACEOF
4420 #define HAVE_GCC 1
4421 _ACEOF
4422
4423    have_gcc=yes
4424 fi
4425 # Extract the first word of "$CXX", so it can be a program name with args.
4426 set dummy $CXX; ac_word=$2
4427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_path_CXX+set}" = set; then
4430   $as_echo_n "(cached) " >&6
4431 else
4432   case $CXX in
4433   [\\/]* | ?:[\\/]*)
4434   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4435   ;;
4436   *)
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4453   ;;
4454 esac
4455 fi
4456 CXX=$ac_cv_path_CXX
4457 if test -n "$CXX"; then
4458   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4459 $as_echo "$CXX" >&6; }
4460 else
4461   { $as_echo "$as_me:$LINENO: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466 if test ! -e $CXX; then
4467    { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4468 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4469    { (exit 1); exit 1; }; }
4470 fi
4471
4472 # Find a good install program.  We prefer a C program (faster),
4473 # so one script is as good as another.  But avoid the broken or
4474 # incompatible versions:
4475 # SysV /etc/install, /usr/sbin/install
4476 # SunOS /usr/etc/install
4477 # IRIX /sbin/install
4478 # AIX /bin/install
4479 # AmigaOS /C/install, which installs bootblocks on floppy discs
4480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4483 # OS/2's system install, which has a completely different semantic
4484 # ./install, which can be erroneously created by make from ./install.sh.
4485 # Reject install programs that cannot install multiple files.
4486 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4488 if test -z "$INSTALL"; then
4489 if test "${ac_cv_path_install+set}" = set; then
4490   $as_echo_n "(cached) " >&6
4491 else
4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   # Account for people who put trailing slashes in PATH elements.
4498 case $as_dir/ in
4499   ./ | .// | /cC/* | \
4500   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4501   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4502   /usr/ucb/* ) ;;
4503   *)
4504     # OSF1 and SCO ODT 3.0 have their own names for install.
4505     # Don't use installbsd from OSF since it installs stuff as root
4506     # by default.
4507     for ac_prog in ginstall scoinst install; do
4508       for ac_exec_ext in '' $ac_executable_extensions; do
4509         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4510           if test $ac_prog = install &&
4511             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4512             # AIX install.  It has an incompatible calling convention.
4513             :
4514           elif test $ac_prog = install &&
4515             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4516             # program-specific install script used by HP pwplus--don't use.
4517             :
4518           else
4519             rm -rf conftest.one conftest.two conftest.dir
4520             echo one > conftest.one
4521             echo two > conftest.two
4522             mkdir conftest.dir
4523             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4524               test -s conftest.one && test -s conftest.two &&
4525               test -s conftest.dir/conftest.one &&
4526               test -s conftest.dir/conftest.two
4527             then
4528               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4529               break 3
4530             fi
4531           fi
4532         fi
4533       done
4534     done
4535     ;;
4536 esac
4537
4538 done
4539 IFS=$as_save_IFS
4540
4541 rm -rf conftest.one conftest.two conftest.dir
4542
4543 fi
4544   if test "${ac_cv_path_install+set}" = set; then
4545     INSTALL=$ac_cv_path_install
4546   else
4547     # As a last resort, use the slow shell script.  Don't cache a
4548     # value for INSTALL within a source directory, because that will
4549     # break other packages using the cache if that directory is
4550     # removed, or if the value is a relative name.
4551     INSTALL=$ac_install_sh
4552   fi
4553 fi
4554 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4555 $as_echo "$INSTALL" >&6; }
4556
4557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4558 # It thinks the first close brace ends the variable substitution.
4559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4560
4561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4562
4563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4564
4565 # Extract the first word of "mv", so it can be a program name with args.
4566 set dummy mv; ac_word=$2
4567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if test "${ac_cv_path_MV+set}" = set; then
4570   $as_echo_n "(cached) " >&6
4571 else
4572   case $MV in
4573   [\\/]* | ?:[\\/]*)
4574   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4575   ;;
4576   *)
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4585     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4593   ;;
4594 esac
4595 fi
4596 MV=$ac_cv_path_MV
4597 if test -n "$MV"; then
4598   { $as_echo "$as_me:$LINENO: result: $MV" >&5
4599 $as_echo "$MV" >&6; }
4600 else
4601   { $as_echo "$as_me:$LINENO: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 # Extract the first word of "rm", so it can be a program name with args.
4607 set dummy rm; ac_word=$2
4608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_path_REMOVE+set}" = set; then
4611   $as_echo_n "(cached) " >&6
4612 else
4613   case $REMOVE in
4614   [\\/]* | ?:[\\/]*)
4615   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4616   ;;
4617   *)
4618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623   for ac_exec_ext in '' $ac_executable_extensions; do
4624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627     break 2
4628   fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4634   ;;
4635 esac
4636 fi
4637 REMOVE=$ac_cv_path_REMOVE
4638 if test -n "$REMOVE"; then
4639   { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4640 $as_echo "$REMOVE" >&6; }
4641 else
4642   { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4644 fi
4645
4646
4647 # Extract the first word of "cp", so it can be a program name with args.
4648 set dummy cp; ac_word=$2
4649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_path_CP+set}" = set; then
4652   $as_echo_n "(cached) " >&6
4653 else
4654   case $CP in
4655   [\\/]* | ?:[\\/]*)
4656   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4657   ;;
4658   *)
4659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4675   ;;
4676 esac
4677 fi
4678 CP=$ac_cv_path_CP
4679 if test -n "$CP"; then
4680   { $as_echo "$as_me:$LINENO: result: $CP" >&5
4681 $as_echo "$CP" >&6; }
4682 else
4683   { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687
4688 # Extract the first word of "sed", so it can be a program name with args.
4689 set dummy sed; ac_word=$2
4690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_path_SED+set}" = set; then
4693   $as_echo_n "(cached) " >&6
4694 else
4695   case $SED in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4716   ;;
4717 esac
4718 fi
4719 SED=$ac_cv_path_SED
4720 if test -n "$SED"; then
4721   { $as_echo "$as_me:$LINENO: result: $SED" >&5
4722 $as_echo "$SED" >&6; }
4723 else
4724   { $as_echo "$as_me:$LINENO: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729 # Extract the first word of "echo", so it can be a program name with args.
4730 set dummy echo; ac_word=$2
4731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_ECHO+set}" = set; then
4734   $as_echo_n "(cached) " >&6
4735 else
4736   case $ECHO in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4757   ;;
4758 esac
4759 fi
4760 ECHO=$ac_cv_path_ECHO
4761 if test -n "$ECHO"; then
4762   { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4763 $as_echo "$ECHO" >&6; }
4764 else
4765   { $as_echo "$as_me:$LINENO: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 # Extract the first word of "cmp", so it can be a program name with args.
4771 set dummy cmp; ac_word=$2
4772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_path_CMP+set}" = set; then
4775   $as_echo_n "(cached) " >&6
4776 else
4777   case $CMP in
4778   [\\/]* | ?:[\\/]*)
4779   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4780   ;;
4781   *)
4782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787   for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4798   ;;
4799 esac
4800 fi
4801 CMP=$ac_cv_path_CMP
4802 if test -n "$CMP"; then
4803   { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4804 $as_echo "$CMP" >&6; }
4805 else
4806   { $as_echo "$as_me:$LINENO: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 # Extract the first word of "tbl", so it can be a program name with args.
4812 set dummy tbl; ac_word=$2
4813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_path_TBL+set}" = set; then
4816   $as_echo_n "(cached) " >&6
4817 else
4818   case $TBL in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4831     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4839   ;;
4840 esac
4841 fi
4842 TBL=$ac_cv_path_TBL
4843 if test -n "$TBL"; then
4844   { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4845 $as_echo "$TBL" >&6; }
4846 else
4847   { $as_echo "$as_me:$LINENO: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 # Extract the first word of "ar", so it can be a program name with args.
4853 set dummy ar; ac_word=$2
4854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_path_AR+set}" = set; then
4857   $as_echo_n "(cached) " >&6
4858 else
4859   case $AR in
4860   [\\/]* | ?:[\\/]*)
4861   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4862   ;;
4863   *)
4864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4872     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4880   ;;
4881 esac
4882 fi
4883 AR=$ac_cv_path_AR
4884 if test -n "$AR"; then
4885   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4886 $as_echo "$AR" >&6; }
4887 else
4888   { $as_echo "$as_me:$LINENO: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 # Extract the first word of "openssl", so it can be a program name with args.
4894 set dummy openssl; ac_word=$2
4895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_path_OPENSSL+set}" = set; then
4898   $as_echo_n "(cached) " >&6
4899 else
4900   case $OPENSSL in
4901   [\\/]* | ?:[\\/]*)
4902   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4903   ;;
4904   *)
4905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4921   ;;
4922 esac
4923 fi
4924 OPENSSL=$ac_cv_path_OPENSSL
4925 if test -n "$OPENSSL"; then
4926   { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4927 $as_echo "$OPENSSL" >&6; }
4928 else
4929   { $as_echo "$as_me:$LINENO: result: no" >&5
4930 $as_echo "no" >&6; }
4931 fi
4932
4933
4934 # Extract the first word of "mtx", so it can be a program name with args.
4935 set dummy mtx; ac_word=$2
4936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if test "${ac_cv_path_MTX+set}" = set; then
4939   $as_echo_n "(cached) " >&6
4940 else
4941   case $MTX in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4954     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4962   ;;
4963 esac
4964 fi
4965 MTX=$ac_cv_path_MTX
4966 if test -n "$MTX"; then
4967   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4968 $as_echo "$MTX" >&6; }
4969 else
4970   { $as_echo "$as_me:$LINENO: result: no" >&5
4971 $as_echo "no" >&6; }
4972 fi
4973
4974
4975 # Extract the first word of "dd", so it can be a program name with args.
4976 set dummy dd; ac_word=$2
4977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_path_DD+set}" = set; then
4980   $as_echo_n "(cached) " >&6
4981 else
4982   case $DD in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4995     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5003   ;;
5004 esac
5005 fi
5006 DD=$ac_cv_path_DD
5007 if test -n "$DD"; then
5008   { $as_echo "$as_me:$LINENO: result: $DD" >&5
5009 $as_echo "$DD" >&6; }
5010 else
5011   { $as_echo "$as_me:$LINENO: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015
5016 # Extract the first word of "mkisofs", so it can be a program name with args.
5017 set dummy mkisofs; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_MKISOFS+set}" = set; then
5021   $as_echo_n "(cached) " >&6
5022 else
5023   case $MKISOFS in
5024   [\\/]* | ?:[\\/]*)
5025   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5026   ;;
5027   *)
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5036     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5044   ;;
5045 esac
5046 fi
5047 MKISOFS=$ac_cv_path_MKISOFS
5048 if test -n "$MKISOFS"; then
5049   { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5050 $as_echo "$MKISOFS" >&6; }
5051 else
5052   { $as_echo "$as_me:$LINENO: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057 # Extract the first word of "python", so it can be a program name with args.
5058 set dummy python; ac_word=$2
5059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_path_PYTHON+set}" = set; then
5062   $as_echo_n "(cached) " >&6
5063 else
5064   case $PYTHON in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5077     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5085   ;;
5086 esac
5087 fi
5088 PYTHON=$ac_cv_path_PYTHON
5089 if test -n "$PYTHON"; then
5090   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5091 $as_echo "$PYTHON" >&6; }
5092 else
5093   { $as_echo "$as_me:$LINENO: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 # Extract the first word of "growisofs", so it can be a program name with args.
5099 set dummy growisofs; ac_word=$2
5100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5103   $as_echo_n "(cached) " >&6
5104 else
5105   case $GROWISOFS in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5126   ;;
5127 esac
5128 fi
5129 GROWISOFS=$ac_cv_path_GROWISOFS
5130 if test -n "$GROWISOFS"; then
5131   { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5132 $as_echo "$GROWISOFS" >&6; }
5133 else
5134   { $as_echo "$as_me:$LINENO: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5140 set dummy dvd+rw-mediainfo; ac_word=$2
5141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5144   $as_echo_n "(cached) " >&6
5145 else
5146   case $DVDRWMEDIAINFO in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5167   ;;
5168 esac
5169 fi
5170 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5171 if test -n "$DVDRWMEDIAINFO"; then
5172   { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5173 $as_echo "$DVDRWMEDIAINFO" >&6; }
5174 else
5175   { $as_echo "$as_me:$LINENO: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5181 set dummy dvd+rw-format; ac_word=$2
5182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $DVDRWFORMAT in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5208   ;;
5209 esac
5210 fi
5211 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5212 if test -n "$DVDRWFORMAT"; then
5213   { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5214 $as_echo "$DVDRWFORMAT" >&6; }
5215 else
5216   { $as_echo "$as_me:$LINENO: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221 # Extract the first word of "pkg-config", so it can be a program name with args.
5222 set dummy pkg-config; ac_word=$2
5223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5226   $as_echo_n "(cached) " >&6
5227 else
5228   case $PKGCONFIG in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238   for ac_exec_ext in '' $ac_executable_extensions; do
5239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5241     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5249   ;;
5250 esac
5251 fi
5252 PKGCONFIG=$ac_cv_path_PKGCONFIG
5253 if test -n "$PKGCONFIG"; then
5254   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5255 $as_echo "$PKGCONFIG" >&6; }
5256 else
5257   { $as_echo "$as_me:$LINENO: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 # Extract the first word of "qmake", so it can be a program name with args.
5263 set dummy qmake; ac_word=$2
5264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_path_QMAKE+set}" = set; then
5267   $as_echo_n "(cached) " >&6
5268 else
5269   case $QMAKE in
5270   [\\/]* | ?:[\\/]*)
5271   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5272   ;;
5273   *)
5274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279   for ac_exec_ext in '' $ac_executable_extensions; do
5280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283     break 2
5284   fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5290   ;;
5291 esac
5292 fi
5293 QMAKE=$ac_cv_path_QMAKE
5294 if test -n "$QMAKE"; then
5295   { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5296 $as_echo "$QMAKE" >&6; }
5297 else
5298   { $as_echo "$as_me:$LINENO: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 # Extract the first word of "gmake", so it can be a program name with args.
5304 set dummy gmake; ac_word=$2
5305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_path_GMAKE+set}" = set; then
5308   $as_echo_n "(cached) " >&6
5309 else
5310   case $GMAKE in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320   for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5323     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5331   ;;
5332 esac
5333 fi
5334 GMAKE=$ac_cv_path_GMAKE
5335 if test -n "$GMAKE"; then
5336   { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5337 $as_echo "$GMAKE" >&6; }
5338 else
5339   { $as_echo "$as_me:$LINENO: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344
5345 if test "x$WXCONFIG" = x; then
5346    WXCONFIG=wx-config
5347 fi
5348 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5349 set dummy ${WXCONFIG}; ac_word=$2
5350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5353   $as_echo_n "(cached) " >&6
5354 else
5355   case $WXCONFIG in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5368     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5374
5375   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5376   ;;
5377 esac
5378 fi
5379 WXCONFIG=$ac_cv_path_WXCONFIG
5380 if test -n "$WXCONFIG"; then
5381   { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5382 $as_echo "$WXCONFIG" >&6; }
5383 else
5384   { $as_echo "$as_me:$LINENO: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389
5390 # Extract the first word of "cdrecord", so it can be a program name with args.
5391 set dummy cdrecord; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_path_CDRECORD+set}" = set; then
5395   $as_echo_n "(cached) " >&6
5396 else
5397   case $CDRECORD in
5398   [\\/]* | ?:[\\/]*)
5399   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5400   ;;
5401   *)
5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5410     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5418   ;;
5419 esac
5420 fi
5421 CDRECORD=$ac_cv_path_CDRECORD
5422 if test -n "$CDRECORD"; then
5423   { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5424 $as_echo "$CDRECORD" >&6; }
5425 else
5426   { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 # Extract the first word of "pidof", so it can be a program name with args.
5432 set dummy pidof; ac_word=$2
5433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_path_PIDOF+set}" = set; then
5436   $as_echo_n "(cached) " >&6
5437 else
5438   case $PIDOF in
5439   [\\/]* | ?:[\\/]*)
5440   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5441   ;;
5442   *)
5443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for ac_exec_ext in '' $ac_executable_extensions; do
5449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5451     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455 done
5456 IFS=$as_save_IFS
5457
5458   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5459   ;;
5460 esac
5461 fi
5462 PIDOF=$ac_cv_path_PIDOF
5463 if test -n "$PIDOF"; then
5464   { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5465 $as_echo "$PIDOF" >&6; }
5466 else
5467   { $as_echo "$as_me:$LINENO: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472 for ac_prog in gawk mawk nawk awk
5473 do
5474   # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if test "${ac_cv_prog_AWK+set}" = set; then
5479   $as_echo_n "(cached) " >&6
5480 else
5481   if test -n "$AWK"; then
5482   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489   for ac_exec_ext in '' $ac_executable_extensions; do
5490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491     ac_cv_prog_AWK="$ac_prog"
5492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 AWK=$ac_cv_prog_AWK
5502 if test -n "$AWK"; then
5503   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5504 $as_echo "$AWK" >&6; }
5505 else
5506   { $as_echo "$as_me:$LINENO: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511   test -n "$AWK" && break
5512 done
5513
5514 # Some AWK programs fail, so test it and warn the user
5515 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5516       { if ((prog == $2) || (("(" prog ")") == $2) ||
5517       (("" prog "") == $2) ||
5518       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5519 else
5520   { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5521    The regex engine of $AWK is too broken to be used you
5522    might want to install GNU AWK.
5523    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5524 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5525    The regex engine of $AWK is too broken to be used you
5526    might want to install GNU AWK.
5527    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5528    { (exit 1); exit 1; }; }
5529 fi
5530 THE_AWK=$AWK
5531 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5532 set dummy $THE_AWK; ac_word=$2
5533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_AWK+set}" = set; then
5536   $as_echo_n "(cached) " >&6
5537 else
5538   case $AWK in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548   for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5551     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5559   ;;
5560 esac
5561 fi
5562 AWK=$ac_cv_path_AWK
5563 if test -n "$AWK"; then
5564   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5565 $as_echo "$AWK" >&6; }
5566 else
5567   { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572
5573
5574 test -n "$ARFLAG" || ARFLAGS="cr"
5575
5576
5577 MAKE_SHELL=/bin/sh
5578
5579
5580
5581
5582
5583
5584
5585 use_libtool=yes
5586 # Check whether --enable-libtool was given.
5587 if test "${enable_libtool+set}" = set; then
5588   enableval=$enable_libtool;
5589        if test x$enableval = xno; then
5590           use_libtool=no
5591        fi
5592
5593
5594 fi
5595
5596 case `pwd` in
5597   *\ * | *\     *)
5598     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5599 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5600 esac
5601
5602
5603
5604 macro_version='2.2.6'
5605 macro_revision='1.3012'
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 ltmain="$ac_aux_dir/ltmain.sh"
5620
5621 # Make sure we can run config.sub.
5622 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5623   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5624 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5625    { (exit 1); exit 1; }; }
5626
5627 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5628 $as_echo_n "checking build system type... " >&6; }
5629 if test "${ac_cv_build+set}" = set; then
5630   $as_echo_n "(cached) " >&6
5631 else
5632   ac_build_alias=$build_alias
5633 test "x$ac_build_alias" = x &&
5634   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5635 test "x$ac_build_alias" = x &&
5636   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5637 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5638    { (exit 1); exit 1; }; }
5639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5640   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5641 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5642    { (exit 1); exit 1; }; }
5643
5644 fi
5645 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5646 $as_echo "$ac_cv_build" >&6; }
5647 case $ac_cv_build in
5648 *-*-*) ;;
5649 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5650 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5651    { (exit 1); exit 1; }; };;
5652 esac
5653 build=$ac_cv_build
5654 ac_save_IFS=$IFS; IFS='-'
5655 set x $ac_cv_build
5656 shift
5657 build_cpu=$1
5658 build_vendor=$2
5659 shift; shift
5660 # Remember, the first character of IFS is used to create $*,
5661 # except with old shells:
5662 build_os=$*
5663 IFS=$ac_save_IFS
5664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5665
5666
5667 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5668 $as_echo_n "checking host system type... " >&6; }
5669 if test "${ac_cv_host+set}" = set; then
5670   $as_echo_n "(cached) " >&6
5671 else
5672   if test "x$host_alias" = x; then
5673   ac_cv_host=$ac_cv_build
5674 else
5675   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5676     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5677 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5678    { (exit 1); exit 1; }; }
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5683 $as_echo "$ac_cv_host" >&6; }
5684 case $ac_cv_host in
5685 *-*-*) ;;
5686 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5687 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5688    { (exit 1); exit 1; }; };;
5689 esac
5690 host=$ac_cv_host
5691 ac_save_IFS=$IFS; IFS='-'
5692 set x $ac_cv_host
5693 shift
5694 host_cpu=$1
5695 host_vendor=$2
5696 shift; shift
5697 # Remember, the first character of IFS is used to create $*,
5698 # except with old shells:
5699 host_os=$*
5700 IFS=$ac_save_IFS
5701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5702
5703
5704 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5705 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5706 if test "${ac_cv_path_SED+set}" = set; then
5707   $as_echo_n "(cached) " >&6
5708 else
5709             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5710      for ac_i in 1 2 3 4 5 6 7; do
5711        ac_script="$ac_script$as_nl$ac_script"
5712      done
5713      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5714      $as_unset ac_script || ac_script=
5715      if test -z "$SED"; then
5716   ac_path_SED_found=false
5717   # Loop through the user's path and test for each of PROGNAME-LIST
5718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723   for ac_prog in sed gsed; do
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5726       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5727 # Check for GNU ac_path_SED and select it if it is found.
5728   # Check for GNU $ac_path_SED
5729 case `"$ac_path_SED" --version 2>&1` in
5730 *GNU*)
5731   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5732 *)
5733   ac_count=0
5734   $as_echo_n 0123456789 >"conftest.in"
5735   while :
5736   do
5737     cat "conftest.in" "conftest.in" >"conftest.tmp"
5738     mv "conftest.tmp" "conftest.in"
5739     cp "conftest.in" "conftest.nl"
5740     $as_echo '' >> "conftest.nl"
5741     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5743     ac_count=`expr $ac_count + 1`
5744     if test $ac_count -gt ${ac_path_SED_max-0}; then
5745       # Best one so far, save it but keep looking for a better one
5746       ac_cv_path_SED="$ac_path_SED"
5747       ac_path_SED_max=$ac_count
5748     fi
5749     # 10*(2^10) chars as input seems more than enough
5750     test $ac_count -gt 10 && break
5751   done
5752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5753 esac
5754
5755       $ac_path_SED_found && break 3
5756     done
5757   done
5758 done
5759 IFS=$as_save_IFS
5760   if test -z "$ac_cv_path_SED"; then
5761     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5762 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5763    { (exit 1); exit 1; }; }
5764   fi
5765 else
5766   ac_cv_path_SED=$SED
5767 fi
5768
5769 fi
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5771 $as_echo "$ac_cv_path_SED" >&6; }
5772  SED="$ac_cv_path_SED"
5773   rm -f conftest.sed
5774
5775 test -z "$SED" && SED=sed
5776 Xsed="$SED -e 1s/^X//"
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5789 $as_echo_n "checking for fgrep... " >&6; }
5790 if test "${ac_cv_path_FGREP+set}" = set; then
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5794    then ac_cv_path_FGREP="$GREP -F"
5795    else
5796      if test -z "$FGREP"; then
5797   ac_path_FGREP_found=false
5798   # Loop through the user's path and test for each of PROGNAME-LIST
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_prog in fgrep; do
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5807       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5808 # Check for GNU ac_path_FGREP and select it if it is found.
5809   # Check for GNU $ac_path_FGREP
5810 case `"$ac_path_FGREP" --version 2>&1` in
5811 *GNU*)
5812   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5813 *)
5814   ac_count=0
5815   $as_echo_n 0123456789 >"conftest.in"
5816   while :
5817   do
5818     cat "conftest.in" "conftest.in" >"conftest.tmp"
5819     mv "conftest.tmp" "conftest.in"
5820     cp "conftest.in" "conftest.nl"
5821     $as_echo 'FGREP' >> "conftest.nl"
5822     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824     ac_count=`expr $ac_count + 1`
5825     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5826       # Best one so far, save it but keep looking for a better one
5827       ac_cv_path_FGREP="$ac_path_FGREP"
5828       ac_path_FGREP_max=$ac_count
5829     fi
5830     # 10*(2^10) chars as input seems more than enough
5831     test $ac_count -gt 10 && break
5832   done
5833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834 esac
5835
5836       $ac_path_FGREP_found && break 3
5837     done
5838   done
5839 done
5840 IFS=$as_save_IFS
5841   if test -z "$ac_cv_path_FGREP"; then
5842     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5843 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5844    { (exit 1); exit 1; }; }
5845   fi
5846 else
5847   ac_cv_path_FGREP=$FGREP
5848 fi
5849
5850    fi
5851 fi
5852 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5853 $as_echo "$ac_cv_path_FGREP" >&6; }
5854  FGREP="$ac_cv_path_FGREP"
5855
5856
5857 test -z "$GREP" && GREP=grep
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 # Check whether --with-gnu-ld was given.
5878 if test "${with_gnu_ld+set}" = set; then
5879   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5880 else
5881   with_gnu_ld=no
5882 fi
5883
5884 ac_prog=ld
5885 if test "$GCC" = yes; then
5886   # Check if gcc -print-prog-name=ld gives a path.
5887   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5888 $as_echo_n "checking for ld used by $CC... " >&6; }
5889   case $host in
5890   *-*-mingw*)
5891     # gcc leaves a trailing carriage return which upsets mingw
5892     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5893   *)
5894     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5895   esac
5896   case $ac_prog in
5897     # Accept absolute paths.
5898     [\\/]* | ?:[\\/]*)
5899       re_direlt='/[^/][^/]*/\.\./'
5900       # Canonicalize the pathname of ld
5901       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5902       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5903         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5904       done
5905       test -z "$LD" && LD="$ac_prog"
5906       ;;
5907   "")
5908     # If it fails, then pretend we aren't using GCC.
5909     ac_prog=ld
5910     ;;
5911   *)
5912     # If it is relative, then search for the first ld in PATH.
5913     with_gnu_ld=unknown
5914     ;;
5915   esac
5916 elif test "$with_gnu_ld" = yes; then
5917   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5918 $as_echo_n "checking for GNU ld... " >&6; }
5919 else
5920   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5921 $as_echo_n "checking for non-GNU ld... " >&6; }
5922 fi
5923 if test "${lt_cv_path_LD+set}" = set; then
5924   $as_echo_n "(cached) " >&6
5925 else
5926   if test -z "$LD"; then
5927   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928   for ac_dir in $PATH; do
5929     IFS="$lt_save_ifs"
5930     test -z "$ac_dir" && ac_dir=.
5931     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5932       lt_cv_path_LD="$ac_dir/$ac_prog"
5933       # Check to see if the program is GNU ld.  I'd rather use --version,
5934       # but apparently some variants of GNU ld only accept -v.
5935       # Break only if it was the GNU/non-GNU ld that we prefer.
5936       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5937       *GNU* | *'with BFD'*)
5938         test "$with_gnu_ld" != no && break
5939         ;;
5940       *)
5941         test "$with_gnu_ld" != yes && break
5942         ;;
5943       esac
5944     fi
5945   done
5946   IFS="$lt_save_ifs"
5947 else
5948   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5949 fi
5950 fi
5951
5952 LD="$lt_cv_path_LD"
5953 if test -n "$LD"; then
5954   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5955 $as_echo "$LD" >&6; }
5956 else
5957   { $as_echo "$as_me:$LINENO: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5961 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5962    { (exit 1); exit 1; }; }
5963 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5964 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5965 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5966   $as_echo_n "(cached) " >&6
5967 else
5968   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5969 case `$LD -v 2>&1 </dev/null` in
5970 *GNU* | *'with BFD'*)
5971   lt_cv_prog_gnu_ld=yes
5972   ;;
5973 *)
5974   lt_cv_prog_gnu_ld=no
5975   ;;
5976 esac
5977 fi
5978 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5979 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5980 with_gnu_ld=$lt_cv_prog_gnu_ld
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5991 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5992 if test "${lt_cv_path_NM+set}" = set; then
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test -n "$NM"; then
5996   # Let the user override the test.
5997   lt_cv_path_NM="$NM"
5998 else
5999   lt_nm_to_check="${ac_tool_prefix}nm"
6000   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6001     lt_nm_to_check="$lt_nm_to_check nm"
6002   fi
6003   for lt_tmp_nm in $lt_nm_to_check; do
6004     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6005     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6006       IFS="$lt_save_ifs"
6007       test -z "$ac_dir" && ac_dir=.
6008       tmp_nm="$ac_dir/$lt_tmp_nm"
6009       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6010         # Check to see if the nm accepts a BSD-compat flag.
6011         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6012         #   nm: unknown option "B" ignored
6013         # Tru64's nm complains that /dev/null is an invalid object file
6014         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6015         */dev/null* | *'Invalid file or object type'*)
6016           lt_cv_path_NM="$tmp_nm -B"
6017           break
6018           ;;
6019         *)
6020           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6021           */dev/null*)
6022             lt_cv_path_NM="$tmp_nm -p"
6023             break
6024             ;;
6025           *)
6026             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6027             continue # so that we can try to find one that supports BSD flags
6028             ;;
6029           esac
6030           ;;
6031         esac
6032       fi
6033     done
6034     IFS="$lt_save_ifs"
6035   done
6036   : ${lt_cv_path_NM=no}
6037 fi
6038 fi
6039 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6040 $as_echo "$lt_cv_path_NM" >&6; }
6041 if test "$lt_cv_path_NM" != "no"; then
6042   NM="$lt_cv_path_NM"
6043 else
6044   # Didn't find any BSD compatible name lister, look for dumpbin.
6045   if test -n "$ac_tool_prefix"; then
6046   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6047   do
6048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$DUMPBIN"; then
6056   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6066     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 DUMPBIN=$ac_cv_prog_DUMPBIN
6076 if test -n "$DUMPBIN"; then
6077   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6078 $as_echo "$DUMPBIN" >&6; }
6079 else
6080   { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085     test -n "$DUMPBIN" && break
6086   done
6087 fi
6088 if test -z "$DUMPBIN"; then
6089   ac_ct_DUMPBIN=$DUMPBIN
6090   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6091 do
6092   # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if test -n "$ac_ct_DUMPBIN"; then
6100   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105   IFS=$as_save_IFS
6106   test -z "$as_dir" && as_dir=.
6107   for ac_exec_ext in '' $ac_executable_extensions; do
6108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6110     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6120 if test -n "$ac_ct_DUMPBIN"; then
6121   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6122 $as_echo "$ac_ct_DUMPBIN" >&6; }
6123 else
6124   { $as_echo "$as_me:$LINENO: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128
6129   test -n "$ac_ct_DUMPBIN" && break
6130 done
6131
6132   if test "x$ac_ct_DUMPBIN" = x; then
6133     DUMPBIN=":"
6134   else
6135     case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141     DUMPBIN=$ac_ct_DUMPBIN
6142   fi
6143 fi
6144
6145
6146   if test "$DUMPBIN" != ":"; then
6147     NM="$DUMPBIN"
6148   fi
6149 fi
6150 test -z "$NM" && NM=nm
6151
6152
6153
6154
6155
6156
6157 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6158 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6159 if test "${lt_cv_nm_interface+set}" = set; then
6160   $as_echo_n "(cached) " >&6
6161 else
6162   lt_cv_nm_interface="BSD nm"
6163   echo "int some_variable = 0;" > conftest.$ac_ext
6164   (eval echo "\"\$as_me:6164: $ac_compile\"" >&5)
6165   (eval "$ac_compile" 2>conftest.err)
6166   cat conftest.err >&5
6167   (eval echo "\"\$as_me:6167: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6168   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6169   cat conftest.err >&5
6170   (eval echo "\"\$as_me:6170: output\"" >&5)
6171   cat conftest.out >&5
6172   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6173     lt_cv_nm_interface="MS dumpbin"
6174   fi
6175   rm -f conftest*
6176 fi
6177 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6178 $as_echo "$lt_cv_nm_interface" >&6; }
6179
6180 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6181 $as_echo_n "checking whether ln -s works... " >&6; }
6182 LN_S=$as_ln_s
6183 if test "$LN_S" = "ln -s"; then
6184   { $as_echo "$as_me:$LINENO: result: yes" >&5
6185 $as_echo "yes" >&6; }
6186 else
6187   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6188 $as_echo "no, using $LN_S" >&6; }
6189 fi
6190
6191 # find the maximum length of command line arguments
6192 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6194 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6195   $as_echo_n "(cached) " >&6
6196 else
6197     i=0
6198   teststring="ABCD"
6199
6200   case $build_os in
6201   msdosdjgpp*)
6202     # On DJGPP, this test can blow up pretty badly due to problems in libc
6203     # (any single argument exceeding 2000 bytes causes a buffer overrun
6204     # during glob expansion).  Even if it were fixed, the result of this
6205     # check would be larger than it should be.
6206     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6207     ;;
6208
6209   gnu*)
6210     # Under GNU Hurd, this test is not required because there is
6211     # no limit to the length of command line arguments.
6212     # Libtool will interpret -1 as no limit whatsoever
6213     lt_cv_sys_max_cmd_len=-1;
6214     ;;
6215
6216   cygwin* | mingw* | cegcc*)
6217     # On Win9x/ME, this test blows up -- it succeeds, but takes
6218     # about 5 minutes as the teststring grows exponentially.
6219     # Worse, since 9x/ME are not pre-emptively multitasking,
6220     # you end up with a "frozen" computer, even though with patience
6221     # the test eventually succeeds (with a max line length of 256k).
6222     # Instead, let's just punt: use the minimum linelength reported by
6223     # all of the supported platforms: 8192 (on NT/2K/XP).
6224     lt_cv_sys_max_cmd_len=8192;
6225     ;;
6226
6227   amigaos*)
6228     # On AmigaOS with pdksh, this test takes hours, literally.
6229     # So we just punt and use a minimum line length of 8192.
6230     lt_cv_sys_max_cmd_len=8192;
6231     ;;
6232
6233   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6234     # This has been around since 386BSD, at least.  Likely further.
6235     if test -x /sbin/sysctl; then
6236       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6237     elif test -x /usr/sbin/sysctl; then
6238       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6239     else
6240       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6241     fi
6242     # And add a safety zone
6243     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6244     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6245     ;;
6246
6247   interix*)
6248     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6249     lt_cv_sys_max_cmd_len=196608
6250     ;;
6251
6252   osf*)
6253     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6254     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6255     # nice to cause kernel panics so lets avoid the loop below.
6256     # First set a reasonable default.
6257     lt_cv_sys_max_cmd_len=16384
6258     #
6259     if test -x /sbin/sysconfig; then
6260       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6261         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6262       esac
6263     fi
6264     ;;
6265   sco3.2v5*)
6266     lt_cv_sys_max_cmd_len=102400
6267     ;;
6268   sysv5* | sco5v6* | sysv4.2uw2*)
6269     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6270     if test -n "$kargmax"; then
6271       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6272     else
6273       lt_cv_sys_max_cmd_len=32768
6274     fi
6275     ;;
6276   *)
6277     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6278     if test -n "$lt_cv_sys_max_cmd_len"; then
6279       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6281     else
6282       # Make teststring a little bigger before we do anything with it.
6283       # a 1K string should be a reasonable start.
6284       for i in 1 2 3 4 5 6 7 8 ; do
6285         teststring=$teststring$teststring
6286       done
6287       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6288       # If test is not a shell built-in, we'll probably end up computing a
6289       # maximum length that is only half of the actual maximum length, but
6290       # we can't tell.
6291       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6292                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6293               test $i != 17 # 1/2 MB should be enough
6294       do
6295         i=`expr $i + 1`
6296         teststring=$teststring$teststring
6297       done
6298       # Only check the string length outside the loop.
6299       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6300       teststring=
6301       # Add a significant safety factor because C++ compilers can tack on
6302       # massive amounts of additional arguments before passing them to the
6303       # linker.  It appears as though 1/2 is a usable value.
6304       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6305     fi
6306     ;;
6307   esac
6308
6309 fi
6310
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6314 else
6315   { $as_echo "$as_me:$LINENO: result: none" >&5
6316 $as_echo "none" >&6; }
6317 fi
6318 max_cmd_len=$lt_cv_sys_max_cmd_len
6319
6320
6321
6322
6323
6324
6325 : ${CP="cp -f"}
6326 : ${MV="mv -f"}
6327 : ${RM="rm -f"}
6328
6329 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6330 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6331 # Try some XSI features
6332 xsi_shell=no
6333 ( _lt_dummy="a/b/c"
6334   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6335       = c,a/b,, \
6336     && eval 'test $(( 1 + 1 )) -eq 2 \
6337     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6338   && xsi_shell=yes
6339 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6340 $as_echo "$xsi_shell" >&6; }
6341
6342
6343 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6344 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6345 lt_shell_append=no
6346 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6347     >/dev/null 2>&1 \
6348   && lt_shell_append=yes
6349 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6350 $as_echo "$lt_shell_append" >&6; }
6351
6352
6353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6354   lt_unset=unset
6355 else
6356   lt_unset=false
6357 fi
6358
6359
6360
6361
6362
6363 # test EBCDIC or ASCII
6364 case `echo X|tr X '\101'` in
6365  A) # ASCII based system
6366     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6367   lt_SP2NL='tr \040 \012'
6368   lt_NL2SP='tr \015\012 \040\040'
6369   ;;
6370  *) # EBCDIC based system
6371   lt_SP2NL='tr \100 \n'
6372   lt_NL2SP='tr \r\n \100\100'
6373   ;;
6374 esac
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6385 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6386 if test "${lt_cv_ld_reload_flag+set}" = set; then
6387   $as_echo_n "(cached) " >&6
6388 else
6389   lt_cv_ld_reload_flag='-r'
6390 fi
6391 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6392 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6393 reload_flag=$lt_cv_ld_reload_flag
6394 case $reload_flag in
6395 "" | " "*) ;;
6396 *) reload_flag=" $reload_flag" ;;
6397 esac
6398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6399 case $host_os in
6400   darwin*)
6401     if test "$GCC" = yes; then
6402       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6403     else
6404       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6405     fi
6406     ;;
6407 esac
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417 if test -n "$ac_tool_prefix"; then
6418   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6423   $as_echo_n "(cached) " >&6
6424 else
6425   if test -n "$OBJDUMP"; then
6426   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433   for ac_exec_ext in '' $ac_executable_extensions; do
6434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6436     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443 fi
6444 fi
6445 OBJDUMP=$ac_cv_prog_OBJDUMP
6446 if test -n "$OBJDUMP"; then
6447   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6448 $as_echo "$OBJDUMP" >&6; }
6449 else
6450   { $as_echo "$as_me:$LINENO: result: no" >&5
6451 $as_echo "no" >&6; }
6452 fi
6453
6454
6455 fi
6456 if test -z "$ac_cv_prog_OBJDUMP"; then
6457   ac_ct_OBJDUMP=$OBJDUMP
6458   # Extract the first word of "objdump", so it can be a program name with args.
6459 set dummy objdump; ac_word=$2
6460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$ac_ct_OBJDUMP"; then
6466   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6476     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6486 if test -n "$ac_ct_OBJDUMP"; then
6487   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6488 $as_echo "$ac_ct_OBJDUMP" >&6; }
6489 else
6490   { $as_echo "$as_me:$LINENO: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494   if test "x$ac_ct_OBJDUMP" = x; then
6495     OBJDUMP="false"
6496   else
6497     case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503     OBJDUMP=$ac_ct_OBJDUMP
6504   fi
6505 else
6506   OBJDUMP="$ac_cv_prog_OBJDUMP"
6507 fi
6508
6509 test -z "$OBJDUMP" && OBJDUMP=objdump
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6520 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6521 if test "${lt_cv_deplibs_check_method+set}" = set; then
6522   $as_echo_n "(cached) " >&6
6523 else
6524   lt_cv_file_magic_cmd='$MAGIC_CMD'
6525 lt_cv_file_magic_test_file=
6526 lt_cv_deplibs_check_method='unknown'
6527 # Need to set the preceding variable on all platforms that support
6528 # interlibrary dependencies.
6529 # 'none' -- dependencies not supported.
6530 # `unknown' -- same as none, but documents that we really don't know.
6531 # 'pass_all' -- all dependencies passed with no checks.
6532 # 'test_compile' -- check by making test program.
6533 # 'file_magic [[regex]]' -- check by looking for files in library path
6534 # which responds to the $file_magic_cmd with a given extended regex.
6535 # If you have `file' or equivalent on your system and you're not sure
6536 # whether `pass_all' will *always* work, you probably want this one.
6537
6538 case $host_os in
6539 aix[4-9]*)
6540   lt_cv_deplibs_check_method=pass_all
6541   ;;
6542
6543 beos*)
6544   lt_cv_deplibs_check_method=pass_all
6545   ;;
6546
6547 bsdi[45]*)
6548   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6549   lt_cv_file_magic_cmd='/usr/bin/file -L'
6550   lt_cv_file_magic_test_file=/shlib/libc.so
6551   ;;
6552
6553 cygwin*)
6554   # func_win32_libid is a shell function defined in ltmain.sh
6555   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6556   lt_cv_file_magic_cmd='func_win32_libid'
6557   ;;
6558
6559 mingw* | pw32*)
6560   # Base MSYS/MinGW do not provide the 'file' command needed by
6561   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6562   # unless we find 'file', for example because we are cross-compiling.
6563   if ( file / ) >/dev/null 2>&1; then
6564     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6565     lt_cv_file_magic_cmd='func_win32_libid'
6566   else
6567     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6568     lt_cv_file_magic_cmd='$OBJDUMP -f'
6569   fi
6570   ;;
6571
6572 cegcc)
6573   # use the weaker test based on 'objdump'. See mingw*.
6574   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6575   lt_cv_file_magic_cmd='$OBJDUMP -f'
6576   ;;
6577
6578 darwin* | rhapsody*)
6579   lt_cv_deplibs_check_method=pass_all
6580   ;;
6581
6582 freebsd* | dragonfly*)
6583   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6584     case $host_cpu in
6585     i*86 )
6586       # Not sure whether the presence of OpenBSD here was a mistake.
6587       # Let's accept both of them until this is cleared up.
6588       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6589       lt_cv_file_magic_cmd=/usr/bin/file
6590       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6591       ;;
6592     esac
6593   else
6594     lt_cv_deplibs_check_method=pass_all
6595   fi
6596   ;;
6597
6598 gnu*)
6599   lt_cv_deplibs_check_method=pass_all
6600   ;;
6601
6602 hpux10.20* | hpux11*)
6603   lt_cv_file_magic_cmd=/usr/bin/file
6604   case $host_cpu in
6605   ia64*)
6606     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6607     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6608     ;;
6609   hppa*64*)
6610     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]'
6611     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6612     ;;
6613   *)
6614     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6615     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6616     ;;
6617   esac
6618   ;;
6619
6620 interix[3-9]*)
6621   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6622   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6623   ;;
6624
6625 irix5* | irix6* | nonstopux*)
6626   case $LD in
6627   *-32|*"-32 ") libmagic=32-bit;;
6628   *-n32|*"-n32 ") libmagic=N32;;
6629   *-64|*"-64 ") libmagic=64-bit;;
6630   *) libmagic=never-match;;
6631   esac
6632   lt_cv_deplibs_check_method=pass_all
6633   ;;
6634
6635 # This must be Linux ELF.
6636 linux* | k*bsd*-gnu)
6637   lt_cv_deplibs_check_method=pass_all
6638   ;;
6639
6640 netbsd*)
6641   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6642     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6643   else
6644     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6645   fi
6646   ;;
6647
6648 newos6*)
6649   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6650   lt_cv_file_magic_cmd=/usr/bin/file
6651   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6652   ;;
6653
6654 *nto* | *qnx*)
6655   lt_cv_deplibs_check_method=pass_all
6656   ;;
6657
6658 openbsd*)
6659   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6660     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6661   else
6662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6663   fi
6664   ;;
6665
6666 osf3* | osf4* | osf5*)
6667   lt_cv_deplibs_check_method=pass_all
6668   ;;
6669
6670 rdos*)
6671   lt_cv_deplibs_check_method=pass_all
6672   ;;
6673
6674 solaris*)
6675   lt_cv_deplibs_check_method=pass_all
6676   ;;
6677
6678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6679   lt_cv_deplibs_check_method=pass_all
6680   ;;
6681
6682 sysv4 | sysv4.3*)
6683   case $host_vendor in
6684   motorola)
6685     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]'
6686     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6687     ;;
6688   ncr)
6689     lt_cv_deplibs_check_method=pass_all
6690     ;;
6691   sequent)
6692     lt_cv_file_magic_cmd='/bin/file'
6693     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6694     ;;
6695   sni)
6696     lt_cv_file_magic_cmd='/bin/file'
6697     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6698     lt_cv_file_magic_test_file=/lib/libc.so
6699     ;;
6700   siemens)
6701     lt_cv_deplibs_check_method=pass_all
6702     ;;
6703   pc)
6704     lt_cv_deplibs_check_method=pass_all
6705     ;;
6706   esac
6707   ;;
6708
6709 tpf*)
6710   lt_cv_deplibs_check_method=pass_all
6711   ;;
6712 esac
6713
6714 fi
6715 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6716 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6717 file_magic_cmd=$lt_cv_file_magic_cmd
6718 deplibs_check_method=$lt_cv_deplibs_check_method
6719 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ar; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_AR+set}" = set; then
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$AR"; then
6741   ac_cv_prog_AR="$AR" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_AR="${ac_tool_prefix}ar"
6751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 AR=$ac_cv_prog_AR
6761 if test -n "$AR"; then
6762   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6763 $as_echo "$AR" >&6; }
6764 else
6765   { $as_echo "$as_me:$LINENO: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_AR"; then
6772   ac_ct_AR=$AR
6773   # Extract the first word of "ar", so it can be a program name with args.
6774 set dummy ar; ac_word=$2
6775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$ac_ct_AR"; then
6781   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_ac_ct_AR="ar"
6791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6801 if test -n "$ac_ct_AR"; then
6802   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6803 $as_echo "$ac_ct_AR" >&6; }
6804 else
6805   { $as_echo "$as_me:$LINENO: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_AR" = x; then
6810     AR="false"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     AR=$ac_ct_AR
6819   fi
6820 else
6821   AR="$ac_cv_prog_AR"
6822 fi
6823
6824 test -z "$AR" && AR=ar
6825 test -z "$AR_FLAGS" && AR_FLAGS=cru
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837 if test -n "$ac_tool_prefix"; then
6838   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}strip; ac_word=$2
6840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_STRIP+set}" = set; then
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$STRIP"; then
6846   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6856     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 STRIP=$ac_cv_prog_STRIP
6866 if test -n "$STRIP"; then
6867   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6868 $as_echo "$STRIP" >&6; }
6869 else
6870   { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875 fi
6876 if test -z "$ac_cv_prog_STRIP"; then
6877   ac_ct_STRIP=$STRIP
6878   # Extract the first word of "strip", so it can be a program name with args.
6879 set dummy strip; ac_word=$2
6880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$ac_ct_STRIP"; then
6886   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_prog_ac_ct_STRIP="strip"
6896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6906 if test -n "$ac_ct_STRIP"; then
6907   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6908 $as_echo "$ac_ct_STRIP" >&6; }
6909 else
6910   { $as_echo "$as_me:$LINENO: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913
6914   if test "x$ac_ct_STRIP" = x; then
6915     STRIP=":"
6916   else
6917     case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923     STRIP=$ac_ct_STRIP
6924   fi
6925 else
6926   STRIP="$ac_cv_prog_STRIP"
6927 fi
6928
6929 test -z "$STRIP" && STRIP=:
6930
6931
6932
6933
6934
6935
6936 if test -n "$ac_tool_prefix"; then
6937   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_RANLIB+set}" = set; then
6942   $as_echo_n "(cached) " >&6
6943 else
6944   if test -n "$RANLIB"; then
6945   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950   IFS=$as_save_IFS
6951   test -z "$as_dir" && as_dir=.
6952   for ac_exec_ext in '' $ac_executable_extensions; do
6953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6955     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956     break 2
6957   fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 RANLIB=$ac_cv_prog_RANLIB
6965 if test -n "$RANLIB"; then
6966   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6967 $as_echo "$RANLIB" >&6; }
6968 else
6969   { $as_echo "$as_me:$LINENO: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973
6974 fi
6975 if test -z "$ac_cv_prog_RANLIB"; then
6976   ac_ct_RANLIB=$RANLIB
6977   # Extract the first word of "ranlib", so it can be a program name with args.
6978 set dummy ranlib; ac_word=$2
6979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$ac_ct_RANLIB"; then
6985   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992   for ac_exec_ext in '' $ac_executable_extensions; do
6993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994     ac_cv_prog_ac_ct_RANLIB="ranlib"
6995     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7005 if test -n "$ac_ct_RANLIB"; then
7006   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7007 $as_echo "$ac_ct_RANLIB" >&6; }
7008 else
7009   { $as_echo "$as_me:$LINENO: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013   if test "x$ac_ct_RANLIB" = x; then
7014     RANLIB=":"
7015   else
7016     case $cross_compiling:$ac_tool_warned in
7017 yes:)
7018 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020 ac_tool_warned=yes ;;
7021 esac
7022     RANLIB=$ac_ct_RANLIB
7023   fi
7024 else
7025   RANLIB="$ac_cv_prog_RANLIB"
7026 fi
7027
7028 test -z "$RANLIB" && RANLIB=:
7029
7030
7031
7032
7033
7034
7035 # Determine commands to create old-style static archives.
7036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7037 old_postinstall_cmds='chmod 644 $oldlib'
7038 old_postuninstall_cmds=
7039
7040 if test -n "$RANLIB"; then
7041   case $host_os in
7042   openbsd*)
7043     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7044     ;;
7045   *)
7046     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7047     ;;
7048   esac
7049   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7050 fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 # If no C compiler was specified, use CC.
7086 LTCC=${LTCC-"$CC"}
7087
7088 # If no C compiler flags were specified, use CFLAGS.
7089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7090
7091 # Allow CC to be a program name with arguments.
7092 compiler=$CC
7093
7094
7095 # Check for command to grab the raw symbol name followed by C symbol from nm.
7096 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7097 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7099   $as_echo_n "(cached) " >&6
7100 else
7101
7102 # These are sane defaults that work on at least a few old systems.
7103 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7104
7105 # Character class describing NM global symbol codes.
7106 symcode='[BCDEGRST]'
7107
7108 # Regexp to match symbols that can be accessed directly from C.
7109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7110
7111 # Define system-specific variables.
7112 case $host_os in
7113 aix*)
7114   symcode='[BCDT]'
7115   ;;
7116 cygwin* | mingw* | pw32* | cegcc*)
7117   symcode='[ABCDGISTW]'
7118   ;;
7119 hpux*)
7120   if test "$host_cpu" = ia64; then
7121     symcode='[ABCDEGRST]'
7122   fi
7123   ;;
7124 irix* | nonstopux*)
7125   symcode='[BCDEGRST]'
7126   ;;
7127 osf*)
7128   symcode='[BCDEGQRST]'
7129   ;;
7130 solaris*)
7131   symcode='[BDRT]'
7132   ;;
7133 sco3.2v5*)
7134   symcode='[DT]'
7135   ;;
7136 sysv4.2uw2*)
7137   symcode='[DT]'
7138   ;;
7139 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7140   symcode='[ABDT]'
7141   ;;
7142 sysv4)
7143   symcode='[DFNSTU]'
7144   ;;
7145 esac
7146
7147 # If we're using GNU nm, then use its standard symbol codes.
7148 case `$NM -V 2>&1` in
7149 *GNU* | *'with BFD'*)
7150   symcode='[ABCDGIRSTW]' ;;
7151 esac
7152
7153 # Transform an extracted symbol line into a proper C declaration.
7154 # Some systems (esp. on ia64) link data and code symbols differently,
7155 # so use this general approach.
7156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7157
7158 # Transform an extracted symbol line into symbol name and symbol address
7159 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7160 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'"
7161
7162 # Handle CRLF in mingw tool chain
7163 opt_cr=
7164 case $build_os in
7165 mingw*)
7166   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167   ;;
7168 esac
7169
7170 # Try without a prefix underscore, then with it.
7171 for ac_symprfx in "" "_"; do
7172
7173   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7174   symxfrm="\\1 $ac_symprfx\\2 \\2"
7175
7176   # Write the raw and C identifiers.
7177   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7178     # Fake it for dumpbin and say T for any non-static function
7179     # and D for any global variable.
7180     # Also find C++ and __fastcall symbols from MSVC++,
7181     # which start with @ or ?.
7182     lt_cv_sys_global_symbol_pipe="$AWK '"\
7183 "     {last_section=section; section=\$ 3};"\
7184 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7185 "     \$ 0!~/External *\|/{next};"\
7186 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7187 "     {if(hide[section]) next};"\
7188 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7189 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7190 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7191 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7192 "     ' prfx=^$ac_symprfx"
7193   else
7194     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7195   fi
7196
7197   # Check to see that the pipe works correctly.
7198   pipe_works=no
7199
7200   rm -f conftest*
7201   cat > conftest.$ac_ext <<_LT_EOF
7202 #ifdef __cplusplus
7203 extern "C" {
7204 #endif
7205 char nm_test_var;
7206 void nm_test_func(void);
7207 void nm_test_func(void){}
7208 #ifdef __cplusplus
7209 }
7210 #endif
7211 int main(){nm_test_var='a';nm_test_func();return(0);}
7212 _LT_EOF
7213
7214   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>&5
7216   ac_status=$?
7217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }; then
7219     # Now try to grab the symbols.
7220     nlist=conftest.nm
7221     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7222   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } && test -s "$nlist"; then
7226       # Try sorting and uniquifying the output.
7227       if sort "$nlist" | uniq > "$nlist"T; then
7228         mv -f "$nlist"T "$nlist"
7229       else
7230         rm -f "$nlist"T
7231       fi
7232
7233       # Make sure that we snagged all the symbols we need.
7234       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7235         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7236           cat <<_LT_EOF > conftest.$ac_ext
7237 #ifdef __cplusplus
7238 extern "C" {
7239 #endif
7240
7241 _LT_EOF
7242           # Now generate the symbol file.
7243           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7244
7245           cat <<_LT_EOF >> conftest.$ac_ext
7246
7247 /* The mapping between symbol names and symbols.  */
7248 const struct {
7249   const char *name;
7250   void       *address;
7251 }
7252 lt__PROGRAM__LTX_preloaded_symbols[] =
7253 {
7254   { "@PROGRAM@", (void *) 0 },
7255 _LT_EOF
7256           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7257           cat <<\_LT_EOF >> conftest.$ac_ext
7258   {0, (void *) 0}
7259 };
7260
7261 /* This works around a problem in FreeBSD linker */
7262 #ifdef FREEBSD_WORKAROUND
7263 static const void *lt_preloaded_setup() {
7264   return lt__PROGRAM__LTX_preloaded_symbols;
7265 }
7266 #endif
7267
7268 #ifdef __cplusplus
7269 }
7270 #endif
7271 _LT_EOF
7272           # Now try linking the two files.
7273           mv conftest.$ac_objext conftstm.$ac_objext
7274           lt_save_LIBS="$LIBS"
7275           lt_save_CFLAGS="$CFLAGS"
7276           LIBS="conftstm.$ac_objext"
7277           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7278           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279   (eval $ac_link) 2>&5
7280   ac_status=$?
7281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7283             pipe_works=yes
7284           fi
7285           LIBS="$lt_save_LIBS"
7286           CFLAGS="$lt_save_CFLAGS"
7287         else
7288           echo "cannot find nm_test_func in $nlist" >&5
7289         fi
7290       else
7291         echo "cannot find nm_test_var in $nlist" >&5
7292       fi
7293     else
7294       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7295     fi
7296   else
7297     echo "$progname: failed program was:" >&5
7298     cat conftest.$ac_ext >&5
7299   fi
7300   rm -rf conftest* conftst*
7301
7302   # Do not use the global_symbol_pipe unless it works.
7303   if test "$pipe_works" = yes; then
7304     break
7305   else
7306     lt_cv_sys_global_symbol_pipe=
7307   fi
7308 done
7309
7310 fi
7311
7312 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7313   lt_cv_sys_global_symbol_to_cdecl=
7314 fi
7315 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7316   { $as_echo "$as_me:$LINENO: result: failed" >&5
7317 $as_echo "failed" >&6; }
7318 else
7319   { $as_echo "$as_me:$LINENO: result: ok" >&5
7320 $as_echo "ok" >&6; }
7321 fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344 # Check whether --enable-libtool-lock was given.
7345 if test "${enable_libtool_lock+set}" = set; then
7346   enableval=$enable_libtool_lock;
7347 fi
7348
7349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7350
7351 # Some flags need to be propagated to the compiler or linker for good
7352 # libtool support.
7353 case $host in
7354 ia64-*-hpux*)
7355   # Find out which ABI we are using.
7356   echo 'int i;' > conftest.$ac_ext
7357   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358   (eval $ac_compile) 2>&5
7359   ac_status=$?
7360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; then
7362     case `/usr/bin/file conftest.$ac_objext` in
7363       *ELF-32*)
7364         HPUX_IA64_MODE="32"
7365         ;;
7366       *ELF-64*)
7367         HPUX_IA64_MODE="64"
7368         ;;
7369     esac
7370   fi
7371   rm -rf conftest*
7372   ;;
7373 *-*-irix6*)
7374   # Find out which ABI we are using.
7375   echo '#line 7375 "configure"' > conftest.$ac_ext
7376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>&5
7378   ac_status=$?
7379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; then
7381     if test "$lt_cv_prog_gnu_ld" = yes; then
7382       case `/usr/bin/file conftest.$ac_objext` in
7383         *32-bit*)
7384           LD="${LD-ld} -melf32bsmip"
7385           ;;
7386         *N32*)
7387           LD="${LD-ld} -melf32bmipn32"
7388           ;;
7389         *64-bit*)
7390           LD="${LD-ld} -melf64bmip"
7391         ;;
7392       esac
7393     else
7394       case `/usr/bin/file conftest.$ac_objext` in
7395         *32-bit*)
7396           LD="${LD-ld} -32"
7397           ;;
7398         *N32*)
7399           LD="${LD-ld} -n32"
7400           ;;
7401         *64-bit*)
7402           LD="${LD-ld} -64"
7403           ;;
7404       esac
7405     fi
7406   fi
7407   rm -rf conftest*
7408   ;;
7409
7410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7411 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7412   # Find out which ABI we are using.
7413   echo 'int i;' > conftest.$ac_ext
7414   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>&5
7416   ac_status=$?
7417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }; then
7419     case `/usr/bin/file conftest.o` in
7420       *32-bit*)
7421         case $host in
7422           x86_64-*kfreebsd*-gnu)
7423             LD="${LD-ld} -m elf_i386_fbsd"
7424             ;;
7425           x86_64-*linux*)
7426             LD="${LD-ld} -m elf_i386"
7427             ;;
7428           ppc64-*linux*|powerpc64-*linux*)
7429             LD="${LD-ld} -m elf32ppclinux"
7430             ;;
7431           s390x-*linux*)
7432             LD="${LD-ld} -m elf_s390"
7433             ;;
7434           sparc64-*linux*)
7435             LD="${LD-ld} -m elf32_sparc"
7436             ;;
7437         esac
7438         ;;
7439       *64-bit*)
7440         case $host in
7441           x86_64-*kfreebsd*-gnu)
7442             LD="${LD-ld} -m elf_x86_64_fbsd"
7443             ;;
7444           x86_64-*linux*)
7445             LD="${LD-ld} -m elf_x86_64"
7446             ;;
7447           ppc*-*linux*|powerpc*-*linux*)
7448             LD="${LD-ld} -m elf64ppc"
7449             ;;
7450           s390*-*linux*|s390*-*tpf*)
7451             LD="${LD-ld} -m elf64_s390"
7452             ;;
7453           sparc*-*linux*)
7454             LD="${LD-ld} -m elf64_sparc"
7455             ;;
7456         esac
7457         ;;
7458     esac
7459   fi
7460   rm -rf conftest*
7461   ;;
7462
7463 *-*-sco3.2v5*)
7464   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465   SAVE_CFLAGS="$CFLAGS"
7466   CFLAGS="$CFLAGS -belf"
7467   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7469 if test "${lt_cv_cc_needs_belf+set}" = set; then
7470   $as_echo_n "(cached) " >&6
7471 else
7472   ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478      cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h.  */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h.  */
7484
7485 int
7486 main ()
7487 {
7488
7489   ;
7490   return 0;
7491 }
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (ac_try="$ac_link"
7495 case "(($ac_try" in
7496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497   *) ac_try_echo=$ac_try;;
7498 esac
7499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501   (eval "$ac_link") 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } && {
7508          test -z "$ac_c_werror_flag" ||
7509          test ! -s conftest.err
7510        } && test -s conftest$ac_exeext && {
7511          test "$cross_compiling" = yes ||
7512          $as_test_x conftest$ac_exeext
7513        }; then
7514   lt_cv_cc_needs_belf=yes
7515 else
7516   $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519         lt_cv_cc_needs_belf=no
7520 fi
7521
7522 rm -rf conftest.dSYM
7523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7524       conftest$ac_exeext conftest.$ac_ext
7525      ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531 fi
7532 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7534   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7535     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7536     CFLAGS="$SAVE_CFLAGS"
7537   fi
7538   ;;
7539 sparc*-*solaris*)
7540   # Find out which ABI we are using.
7541   echo 'int i;' > conftest.$ac_ext
7542   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543   (eval $ac_compile) 2>&5
7544   ac_status=$?
7545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; then
7547     case `/usr/bin/file conftest.o` in
7548     *64-bit*)
7549       case $lt_cv_prog_gnu_ld in
7550       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7551       *)
7552         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7553           LD="${LD-ld} -64"
7554         fi
7555         ;;
7556       esac
7557       ;;
7558     esac
7559   fi
7560   rm -rf conftest*
7561   ;;
7562 esac
7563
7564 need_locks="$enable_libtool_lock"
7565
7566
7567   case $host_os in
7568     rhapsody* | darwin*)
7569     if test -n "$ac_tool_prefix"; then
7570   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$DSYMUTIL"; then
7578   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7601 else
7602   { $as_echo "$as_me:$LINENO: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609   ac_ct_DSYMUTIL=$DSYMUTIL
7610   # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$ac_ct_DSYMUTIL"; then
7618   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642   { $as_echo "$as_me:$LINENO: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646   if test "x$ac_ct_DSYMUTIL" = x; then
7647     DSYMUTIL=":"
7648   else
7649     case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655     DSYMUTIL=$ac_ct_DSYMUTIL
7656   fi
7657 else
7658   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7659 fi
7660
7661     if test -n "$ac_tool_prefix"; then
7662   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7667   $as_echo_n "(cached) " >&6
7668 else
7669   if test -n "$NMEDIT"; then
7670   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7693 else
7694   { $as_echo "$as_me:$LINENO: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698
7699 fi
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701   ac_ct_NMEDIT=$NMEDIT
7702   # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7707   $as_echo_n "(cached) " >&6
7708 else
7709   if test -n "$ac_ct_NMEDIT"; then
7710   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717   for ac_exec_ext in '' $ac_executable_extensions; do
7718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724 done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7733 else
7734   { $as_echo "$as_me:$LINENO: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738   if test "x$ac_ct_NMEDIT" = x; then
7739     NMEDIT=":"
7740   else
7741     case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747     NMEDIT=$ac_ct_NMEDIT
7748   fi
7749 else
7750   NMEDIT="$ac_cv_prog_NMEDIT"
7751 fi
7752
7753     if test -n "$ac_tool_prefix"; then
7754   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_LIPO+set}" = set; then
7759   $as_echo_n "(cached) " >&6
7760 else
7761   if test -n "$LIPO"; then
7762   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769   for ac_exec_ext in '' $ac_executable_extensions; do
7770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7785 else
7786   { $as_echo "$as_me:$LINENO: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790
7791 fi
7792 if test -z "$ac_cv_prog_LIPO"; then
7793   ac_ct_LIPO=$LIPO
7794   # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$ac_ct_LIPO"; then
7802   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_ac_ct_LIPO="lipo"
7812     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7825 else
7826   { $as_echo "$as_me:$LINENO: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830   if test "x$ac_ct_LIPO" = x; then
7831     LIPO=":"
7832   else
7833     case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839     LIPO=$ac_ct_LIPO
7840   fi
7841 else
7842   LIPO="$ac_cv_prog_LIPO"
7843 fi
7844
7845     if test -n "$ac_tool_prefix"; then
7846   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_OTOOL+set}" = set; then
7851   $as_echo_n "(cached) " >&6
7852 else
7853   if test -n "$OTOOL"; then
7854   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861   for ac_exec_ext in '' $ac_executable_extensions; do
7862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868 done
7869 IFS=$as_save_IFS
7870
7871 fi
7872 fi
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7877 else
7878   { $as_echo "$as_me:$LINENO: result: no" >&5
7879 $as_echo "no" >&6; }
7880 fi
7881
7882
7883 fi
7884 if test -z "$ac_cv_prog_OTOOL"; then
7885   ac_ct_OTOOL=$OTOOL
7886   # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7891   $as_echo_n "(cached) " >&6
7892 else
7893   if test -n "$ac_ct_OTOOL"; then
7894   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901   for ac_exec_ext in '' $ac_executable_extensions; do
7902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903     ac_cv_prog_ac_ct_OTOOL="otool"
7904     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908 done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7917 else
7918   { $as_echo "$as_me:$LINENO: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922   if test "x$ac_ct_OTOOL" = x; then
7923     OTOOL=":"
7924   else
7925     case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931     OTOOL=$ac_ct_OTOOL
7932   fi
7933 else
7934   OTOOL="$ac_cv_prog_OTOOL"
7935 fi
7936
7937     if test -n "$ac_tool_prefix"; then
7938   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7943   $as_echo_n "(cached) " >&6
7944 else
7945   if test -n "$OTOOL64"; then
7946   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953   for ac_exec_ext in '' $ac_executable_extensions; do
7954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7969 else
7970   { $as_echo "$as_me:$LINENO: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977   ac_ct_OTOOL64=$OTOOL64
7978   # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7983   $as_echo_n "(cached) " >&6
7984 else
7985   if test -n "$ac_ct_OTOOL64"; then
7986   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993   for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_prog_ac_ct_OTOOL64="otool64"
7996     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8009 else
8010   { $as_echo "$as_me:$LINENO: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014   if test "x$ac_ct_OTOOL64" = x; then
8015     OTOOL64=":"
8016   else
8017     case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023     OTOOL64=$ac_ct_OTOOL64
8024   fi
8025 else
8026   OTOOL64="$ac_cv_prog_OTOOL64"
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8058   $as_echo_n "(cached) " >&6
8059 else
8060   lt_cv_apple_cc_single_mod=no
8061       if test -z "${LT_MULTI_MODULE}"; then
8062         # By default we will add the -single_module flag. You can override
8063         # by either setting the environment variable LT_MULTI_MODULE
8064         # non-empty at configure time, or by adding -multi_module to the
8065         # link flags.
8066         rm -rf libconftest.dylib*
8067         echo "int foo(void){return 1;}" > conftest.c
8068         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8072         _lt_result=$?
8073         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074           lt_cv_apple_cc_single_mod=yes
8075         else
8076           cat conftest.err >&5
8077         fi
8078         rm -rf libconftest.dylib*
8079         rm -f conftest.*
8080       fi
8081 fi
8082 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8087   $as_echo_n "(cached) " >&6
8088 else
8089   lt_cv_ld_exported_symbols_list=no
8090       save_LDFLAGS=$LDFLAGS
8091       echo "_main" > conftest.sym
8092       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093       cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8115 $as_echo "$ac_try_echo") >&5
8116   (eval "$ac_link") 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } && {
8123          test -z "$ac_c_werror_flag" ||
8124          test ! -s conftest.err
8125        } && test -s conftest$ac_exeext && {
8126          test "$cross_compiling" = yes ||
8127          $as_test_x conftest$ac_exeext
8128        }; then
8129   lt_cv_ld_exported_symbols_list=yes
8130 else
8131   $as_echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134         lt_cv_ld_exported_symbols_list=no
8135 fi
8136
8137 rm -rf conftest.dSYM
8138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8139       conftest$ac_exeext conftest.$ac_ext
8140         LDFLAGS="$save_LDFLAGS"
8141
8142 fi
8143 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8144 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8145     case $host_os in
8146     rhapsody* | darwin1.[012])
8147       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8148     darwin1.*)
8149       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8150     darwin*) # darwin 5.x on
8151       # if running on 10.5 or later, the deployment target defaults
8152       # to the OS version, if on x86, and 10.4, the deployment
8153       # target defaults to 10.4. Don't you love it?
8154       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8155         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8156           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8157         10.[012]*)
8158           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8159         10.*)
8160           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8161       esac
8162     ;;
8163   esac
8164     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8165       _lt_dar_single_mod='$single_module'
8166     fi
8167     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8168       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8169     else
8170       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8171     fi
8172     if test "$DSYMUTIL" != ":"; then
8173       _lt_dsymutil='~$DSYMUTIL $lib || :'
8174     else
8175       _lt_dsymutil=
8176     fi
8177     ;;
8178   esac
8179
8180 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8181 $as_echo_n "checking for ANSI C header files... " >&6; }
8182 if test "${ac_cv_header_stdc+set}" = set; then
8183   $as_echo_n "(cached) " >&6
8184 else
8185   cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191 #include <stdlib.h>
8192 #include <stdarg.h>
8193 #include <string.h>
8194 #include <float.h>
8195
8196 int
8197 main ()
8198 {
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8211 $as_echo "$ac_try_echo") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } && {
8219          test -z "$ac_c_werror_flag" ||
8220          test ! -s conftest.err
8221        } && test -s conftest.$ac_objext; then
8222   ac_cv_header_stdc=yes
8223 else
8224   $as_echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227         ac_cv_header_stdc=no
8228 fi
8229
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231
8232 if test $ac_cv_header_stdc = yes; then
8233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 #include <string.h>
8241
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244   $EGREP "memchr" >/dev/null 2>&1; then
8245   :
8246 else
8247   ac_cv_header_stdc=no
8248 fi
8249 rm -f conftest*
8250
8251 fi
8252
8253 if test $ac_cv_header_stdc = yes; then
8254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8255   cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261 #include <stdlib.h>
8262
8263 _ACEOF
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265   $EGREP "free" >/dev/null 2>&1; then
8266   :
8267 else
8268   ac_cv_header_stdc=no
8269 fi
8270 rm -f conftest*
8271
8272 fi
8273
8274 if test $ac_cv_header_stdc = yes; then
8275   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8276   if test "$cross_compiling" = yes; then
8277   :
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 #include <ctype.h>
8286 #include <stdlib.h>
8287 #if ((' ' & 0x0FF) == 0x020)
8288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8290 #else
8291 # define ISLOWER(c) \
8292                    (('a' <= (c) && (c) <= 'i') \
8293                      || ('j' <= (c) && (c) <= 'r') \
8294                      || ('s' <= (c) && (c) <= 'z'))
8295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8296 #endif
8297
8298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8299 int
8300 main ()
8301 {
8302   int i;
8303   for (i = 0; i < 256; i++)
8304     if (XOR (islower (i), ISLOWER (i))
8305         || toupper (i) != TOUPPER (i))
8306       return 2;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8312 case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318   (eval "$ac_link") 2>&5
8319   ac_status=$?
8320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8322   { (case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8327 $as_echo "$ac_try_echo") >&5
8328   (eval "$ac_try") 2>&5
8329   ac_status=$?
8330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   :
8333 else
8334   $as_echo "$as_me: program exited with status $ac_status" >&5
8335 $as_echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 ( exit $ac_status )
8339 ac_cv_header_stdc=no
8340 fi
8341 rm -rf conftest.dSYM
8342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8343 fi
8344
8345
8346 fi
8347 fi
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8349 $as_echo "$ac_cv_header_stdc" >&6; }
8350 if test $ac_cv_header_stdc = yes; then
8351
8352 cat >>confdefs.h <<\_ACEOF
8353 #define STDC_HEADERS 1
8354 _ACEOF
8355
8356 fi
8357
8358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8369                   inttypes.h stdint.h unistd.h
8370 do
8371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 $as_echo_n "checking for $ac_header... " >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375   $as_echo_n "(cached) " >&6
8376 else
8377   cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383 $ac_includes_default
8384
8385 #include <$ac_header>
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395   (eval "$ac_compile") 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } && {
8402          test -z "$ac_c_werror_flag" ||
8403          test ! -s conftest.err
8404        } && test -s conftest.$ac_objext; then
8405   eval "$as_ac_Header=yes"
8406 else
8407   $as_echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410         eval "$as_ac_Header=no"
8411 fi
8412
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415 ac_res=`eval 'as_val=${'$as_ac_Header'}
8416                  $as_echo "$as_val"'`
8417                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8418 $as_echo "$ac_res" >&6; }
8419 as_val=`eval 'as_val=${'$as_ac_Header'}
8420                  $as_echo "$as_val"'`
8421    if test "x$as_val" = x""yes; then
8422   cat >>confdefs.h <<_ACEOF
8423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8424 _ACEOF
8425
8426 fi
8427
8428 done
8429
8430
8431
8432 for ac_header in dlfcn.h
8433 do
8434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8436 $as_echo_n "checking for $ac_header... " >&6; }
8437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8438   $as_echo_n "(cached) " >&6
8439 else
8440   cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 $ac_includes_default
8447
8448 #include <$ac_header>
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458   (eval "$ac_compile") 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } && {
8465          test -z "$ac_c_werror_flag" ||
8466          test ! -s conftest.err
8467        } && test -s conftest.$ac_objext; then
8468   eval "$as_ac_Header=yes"
8469 else
8470   $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473         eval "$as_ac_Header=no"
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 fi
8478 ac_res=`eval 'as_val=${'$as_ac_Header'}
8479                  $as_echo "$as_val"'`
8480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8481 $as_echo "$ac_res" >&6; }
8482 as_val=`eval 'as_val=${'$as_ac_Header'}
8483                  $as_echo "$as_val"'`
8484    if test "x$as_val" = x""yes; then
8485   cat >>confdefs.h <<_ACEOF
8486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 _ACEOF
8488
8489 fi
8490
8491 done
8492
8493
8494
8495 ac_ext=cpp
8496 ac_cpp='$CXXCPP $CPPFLAGS'
8497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8500 if test -z "$CXX"; then
8501   if test -n "$CCC"; then
8502     CXX=$CCC
8503   else
8504     if test -n "$ac_tool_prefix"; then
8505   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8506   do
8507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_prog_CXX+set}" = set; then
8512   $as_echo_n "(cached) " >&6
8513 else
8514   if test -n "$CXX"; then
8515   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520   IFS=$as_save_IFS
8521   test -z "$as_dir" && as_dir=.
8522   for ac_exec_ext in '' $ac_executable_extensions; do
8523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8525     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526     break 2
8527   fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 CXX=$ac_cv_prog_CXX
8535 if test -n "$CXX"; then
8536   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8537 $as_echo "$CXX" >&6; }
8538 else
8539   { $as_echo "$as_me:$LINENO: result: no" >&5
8540 $as_echo "no" >&6; }
8541 fi
8542
8543
8544     test -n "$CXX" && break
8545   done
8546 fi
8547 if test -z "$CXX"; then
8548   ac_ct_CXX=$CXX
8549   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8550 do
8551   # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy $ac_prog; ac_word=$2
8553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8556   $as_echo_n "(cached) " >&6
8557 else
8558   if test -n "$ac_ct_CXX"; then
8559   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564   IFS=$as_save_IFS
8565   test -z "$as_dir" && as_dir=.
8566   for ac_exec_ext in '' $ac_executable_extensions; do
8567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568     ac_cv_prog_ac_ct_CXX="$ac_prog"
8569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570     break 2
8571   fi
8572 done
8573 done
8574 IFS=$as_save_IFS
8575
8576 fi
8577 fi
8578 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8579 if test -n "$ac_ct_CXX"; then
8580   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8581 $as_echo "$ac_ct_CXX" >&6; }
8582 else
8583   { $as_echo "$as_me:$LINENO: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587
8588   test -n "$ac_ct_CXX" && break
8589 done
8590
8591   if test "x$ac_ct_CXX" = x; then
8592     CXX="g++"
8593   else
8594     case $cross_compiling:$ac_tool_warned in
8595 yes:)
8596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8598 ac_tool_warned=yes ;;
8599 esac
8600     CXX=$ac_ct_CXX
8601   fi
8602 fi
8603
8604   fi
8605 fi
8606 # Provide some information about the compiler.
8607 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8608 set X $ac_compile
8609 ac_compiler=$2
8610 { (ac_try="$ac_compiler --version >&5"
8611 case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8616 $as_echo "$ac_try_echo") >&5
8617   (eval "$ac_compiler --version >&5") 2>&5
8618   ac_status=$?
8619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }
8621 { (ac_try="$ac_compiler -v >&5"
8622 case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8627 $as_echo "$ac_try_echo") >&5
8628   (eval "$ac_compiler -v >&5") 2>&5
8629   ac_status=$?
8630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }
8632 { (ac_try="$ac_compiler -V >&5"
8633 case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639   (eval "$ac_compiler -V >&5") 2>&5
8640   ac_status=$?
8641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }
8643
8644 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8645 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8646 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8647   $as_echo_n "(cached) " >&6
8648 else
8649   cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655
8656 int
8657 main ()
8658 {
8659 #ifndef __GNUC__
8660        choke me
8661 #endif
8662
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674 $as_echo "$ac_try_echo") >&5
8675   (eval "$ac_compile") 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } && {
8682          test -z "$ac_cxx_werror_flag" ||
8683          test ! -s conftest.err
8684        } && test -s conftest.$ac_objext; then
8685   ac_compiler_gnu=yes
8686 else
8687   $as_echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690         ac_compiler_gnu=no
8691 fi
8692
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8695
8696 fi
8697 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8698 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8699 if test $ac_compiler_gnu = yes; then
8700   GXX=yes
8701 else
8702   GXX=
8703 fi
8704 ac_test_CXXFLAGS=${CXXFLAGS+set}
8705 ac_save_CXXFLAGS=$CXXFLAGS
8706 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8707 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8708 if test "${ac_cv_prog_cxx_g+set}" = set; then
8709   $as_echo_n "(cached) " >&6
8710 else
8711   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8712    ac_cxx_werror_flag=yes
8713    ac_cv_prog_cxx_g=no
8714    CXXFLAGS="-g"
8715    cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721
8722 int
8723 main ()
8724 {
8725
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 rm -f conftest.$ac_objext
8731 if { (ac_try="$ac_compile"
8732 case "(($ac_try" in
8733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734   *) ac_try_echo=$ac_try;;
8735 esac
8736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8737 $as_echo "$ac_try_echo") >&5
8738   (eval "$ac_compile") 2>conftest.er1
8739   ac_status=$?
8740   grep -v '^ *+' conftest.er1 >conftest.err
8741   rm -f conftest.er1
8742   cat conftest.err >&5
8743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } && {
8745          test -z "$ac_cxx_werror_flag" ||
8746          test ! -s conftest.err
8747        } && test -s conftest.$ac_objext; then
8748   ac_cv_prog_cxx_g=yes
8749 else
8750   $as_echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753         CXXFLAGS=""
8754       cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760
8761 int
8762 main ()
8763 {
8764
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8771 case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777   (eval "$ac_compile") 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
8781   cat conftest.err >&5
8782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && {
8784          test -z "$ac_cxx_werror_flag" ||
8785          test ! -s conftest.err
8786        } && test -s conftest.$ac_objext; then
8787   :
8788 else
8789   $as_echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8793          CXXFLAGS="-g"
8794          cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800
8801 int
8802 main ()
8803 {
8804
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817   (eval "$ac_compile") 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } && {
8824          test -z "$ac_cxx_werror_flag" ||
8825          test ! -s conftest.err
8826        } && test -s conftest.$ac_objext; then
8827   ac_cv_prog_cxx_g=yes
8828 else
8829   $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832
8833 fi
8834
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8843 fi
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8845 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8846 if test "$ac_test_CXXFLAGS" = set; then
8847   CXXFLAGS=$ac_save_CXXFLAGS
8848 elif test $ac_cv_prog_cxx_g = yes; then
8849   if test "$GXX" = yes; then
8850     CXXFLAGS="-g -O2"
8851   else
8852     CXXFLAGS="-g"
8853   fi
8854 else
8855   if test "$GXX" = yes; then
8856     CXXFLAGS="-O2"
8857   else
8858     CXXFLAGS=
8859   fi
8860 fi
8861 ac_ext=c
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8868     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8869     (test "X$CXX" != "Xg++"))) ; then
8870   ac_ext=cpp
8871 ac_cpp='$CXXCPP $CPPFLAGS'
8872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8875 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8877 if test -z "$CXXCPP"; then
8878   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8879   $as_echo_n "(cached) " >&6
8880 else
8881       # Double quotes because CXXCPP needs to be expanded
8882     for CXXCPP in "$CXX -E" "/lib/cpp"
8883     do
8884       ac_preproc_ok=false
8885 for ac_cxx_preproc_warn_flag in '' yes
8886 do
8887   # Use a header file that comes with gcc, so configuring glibc
8888   # with a fresh cross-compiler works.
8889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8890   # <limits.h> exists even on freestanding compilers.
8891   # On the NeXT, cc -E runs the code through the compiler's parser,
8892   # not just through cpp. "Syntax error" is here to catch this case.
8893   cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8904                      Syntax error
8905 _ACEOF
8906 if { (ac_try="$ac_cpp conftest.$ac_ext"
8907 case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } >/dev/null && {
8920          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8921          test ! -s conftest.err
8922        }; then
8923   :
8924 else
8925   $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928   # Broken: fails on valid input.
8929 continue
8930 fi
8931
8932 rm -f conftest.err conftest.$ac_ext
8933
8934   # OK, works on sane cases.  Now check whether nonexistent headers
8935   # can be detected and how.
8936   cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942 #include <ac_nonexistent.h>
8943 _ACEOF
8944 if { (ac_try="$ac_cpp conftest.$ac_ext"
8945 case "(($ac_try" in
8946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947   *) ac_try_echo=$ac_try;;
8948 esac
8949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950 $as_echo "$ac_try_echo") >&5
8951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8952   ac_status=$?
8953   grep -v '^ *+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } >/dev/null && {
8958          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8959          test ! -s conftest.err
8960        }; then
8961   # Broken: success on invalid input.
8962 continue
8963 else
8964   $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967   # Passes both tests.
8968 ac_preproc_ok=:
8969 break
8970 fi
8971
8972 rm -f conftest.err conftest.$ac_ext
8973
8974 done
8975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8976 rm -f conftest.err conftest.$ac_ext
8977 if $ac_preproc_ok; then
8978   break
8979 fi
8980
8981     done
8982     ac_cv_prog_CXXCPP=$CXXCPP
8983
8984 fi
8985   CXXCPP=$ac_cv_prog_CXXCPP
8986 else
8987   ac_cv_prog_CXXCPP=$CXXCPP
8988 fi
8989 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8990 $as_echo "$CXXCPP" >&6; }
8991 ac_preproc_ok=false
8992 for ac_cxx_preproc_warn_flag in '' yes
8993 do
8994   # Use a header file that comes with gcc, so configuring glibc
8995   # with a fresh cross-compiler works.
8996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8997   # <limits.h> exists even on freestanding compilers.
8998   # On the NeXT, cc -E runs the code through the compiler's parser,
8999   # not just through cpp. "Syntax error" is here to catch this case.
9000   cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006 #ifdef __STDC__
9007 # include <limits.h>
9008 #else
9009 # include <assert.h>
9010 #endif
9011                      Syntax error
9012 _ACEOF
9013 if { (ac_try="$ac_cpp conftest.$ac_ext"
9014 case "(($ac_try" in
9015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016   *) ac_try_echo=$ac_try;;
9017 esac
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } >/dev/null && {
9027          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9028          test ! -s conftest.err
9029        }; then
9030   :
9031 else
9032   $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035   # Broken: fails on valid input.
9036 continue
9037 fi
9038
9039 rm -f conftest.err conftest.$ac_ext
9040
9041   # OK, works on sane cases.  Now check whether nonexistent headers
9042   # can be detected and how.
9043   cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049 #include <ac_nonexistent.h>
9050 _ACEOF
9051 if { (ac_try="$ac_cpp conftest.$ac_ext"
9052 case "(($ac_try" in
9053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054   *) ac_try_echo=$ac_try;;
9055 esac
9056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9057 $as_echo "$ac_try_echo") >&5
9058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } >/dev/null && {
9065          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9066          test ! -s conftest.err
9067        }; then
9068   # Broken: success on invalid input.
9069 continue
9070 else
9071   $as_echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074   # Passes both tests.
9075 ac_preproc_ok=:
9076 break
9077 fi
9078
9079 rm -f conftest.err conftest.$ac_ext
9080
9081 done
9082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9083 rm -f conftest.err conftest.$ac_ext
9084 if $ac_preproc_ok; then
9085   :
9086 else
9087   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9089 _lt_caught_CXX_error=yes; }
9090 fi
9091
9092 ac_ext=c
9093 ac_cpp='$CPP $CPPFLAGS'
9094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
9098 else
9099   _lt_caught_CXX_error=yes
9100 fi
9101
9102
9103
9104
9105
9106 # Set options
9107 # Check whether --enable-shared was given.
9108 if test "${enable_shared+set}" = set; then
9109   enableval=$enable_shared; p=${PACKAGE-default}
9110     case $enableval in
9111     yes) enable_shared=yes ;;
9112     no) enable_shared=no ;;
9113     *)
9114       enable_shared=no
9115       # Look at the argument we got.  We use all the common list separators.
9116       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9117       for pkg in $enableval; do
9118         IFS="$lt_save_ifs"
9119         if test "X$pkg" = "X$p"; then
9120           enable_shared=yes
9121         fi
9122       done
9123       IFS="$lt_save_ifs"
9124       ;;
9125     esac
9126 else
9127   enable_shared=yes
9128 fi
9129
9130
9131
9132
9133
9134
9135
9136 # Check whether --enable-static was given.
9137 if test "${enable_static+set}" = set; then
9138   enableval=$enable_static; p=${PACKAGE-default}
9139     case $enableval in
9140     yes) enable_static=yes ;;
9141     no) enable_static=no ;;
9142     *)
9143      enable_static=no
9144       # Look at the argument we got.  We use all the common list separators.
9145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9146       for pkg in $enableval; do
9147         IFS="$lt_save_ifs"
9148         if test "X$pkg" = "X$p"; then
9149           enable_static=yes
9150         fi
9151       done
9152       IFS="$lt_save_ifs"
9153       ;;
9154     esac
9155 else
9156   enable_static=no
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168         enable_dlopen=no
9169
9170
9171   enable_win32_dll=no
9172
9173
9174
9175
9176
9177 # Check whether --with-pic was given.
9178 if test "${with_pic+set}" = set; then
9179   withval=$with_pic; pic_mode="$withval"
9180 else
9181   pic_mode=default
9182 fi
9183
9184
9185 test -z "$pic_mode" && pic_mode=default
9186
9187
9188
9189
9190
9191
9192
9193   # Check whether --enable-fast-install was given.
9194 if test "${enable_fast_install+set}" = set; then
9195   enableval=$enable_fast_install; p=${PACKAGE-default}
9196     case $enableval in
9197     yes) enable_fast_install=yes ;;
9198     no) enable_fast_install=no ;;
9199     *)
9200       enable_fast_install=no
9201       # Look at the argument we got.  We use all the common list separators.
9202       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9203       for pkg in $enableval; do
9204         IFS="$lt_save_ifs"
9205         if test "X$pkg" = "X$p"; then
9206           enable_fast_install=yes
9207         fi
9208       done
9209       IFS="$lt_save_ifs"
9210       ;;
9211     esac
9212 else
9213   enable_fast_install=yes
9214 fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226 # This can be used to rebuild libtool when needed
9227 LIBTOOL_DEPS="$ltmain"
9228
9229 # Always use our own libtool.
9230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256 test -z "$LN_S" && LN_S="ln -s"
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 if test -n "${ZSH_VERSION+set}" ; then
9272    setopt NO_GLOB_SUBST
9273 fi
9274
9275 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9276 $as_echo_n "checking for objdir... " >&6; }
9277 if test "${lt_cv_objdir+set}" = set; then
9278   $as_echo_n "(cached) " >&6
9279 else
9280   rm -f .libs 2>/dev/null
9281 mkdir .libs 2>/dev/null
9282 if test -d .libs; then
9283   lt_cv_objdir=.libs
9284 else
9285   # MS-DOS does not allow filenames that begin with a dot.
9286   lt_cv_objdir=_libs
9287 fi
9288 rmdir .libs 2>/dev/null
9289 fi
9290 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9291 $as_echo "$lt_cv_objdir" >&6; }
9292 objdir=$lt_cv_objdir
9293
9294
9295
9296
9297
9298 cat >>confdefs.h <<_ACEOF
9299 #define LT_OBJDIR "$lt_cv_objdir/"
9300 _ACEOF
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318 case $host_os in
9319 aix3*)
9320   # AIX sometimes has problems with the GCC collect2 program.  For some
9321   # reason, if we set the COLLECT_NAMES environment variable, the problems
9322   # vanish in a puff of smoke.
9323   if test "X${COLLECT_NAMES+set}" != Xset; then
9324     COLLECT_NAMES=
9325     export COLLECT_NAMES
9326   fi
9327   ;;
9328 esac
9329
9330 # Sed substitution that helps us do robust quoting.  It backslashifies
9331 # metacharacters that are still active within double-quoted strings.
9332 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9333
9334 # Same as above, but do not quote variable references.
9335 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9336
9337 # Sed substitution to delay expansion of an escaped shell variable in a
9338 # double_quote_subst'ed string.
9339 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9340
9341 # Sed substitution to delay expansion of an escaped single quote.
9342 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9343
9344 # Sed substitution to avoid accidental globbing in evaled expressions
9345 no_glob_subst='s/\*/\\\*/g'
9346
9347 # Global variables:
9348 ofile=libtool
9349 can_build_shared=yes
9350
9351 # All known linkers require a `.a' archive for static linking (except MSVC,
9352 # which needs '.lib').
9353 libext=a
9354
9355 with_gnu_ld="$lt_cv_prog_gnu_ld"
9356
9357 old_CC="$CC"
9358 old_CFLAGS="$CFLAGS"
9359
9360 # Set sane defaults for various variables
9361 test -z "$CC" && CC=cc
9362 test -z "$LTCC" && LTCC=$CC
9363 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9364 test -z "$LD" && LD=ld
9365 test -z "$ac_objext" && ac_objext=o
9366
9367 for cc_temp in $compiler""; do
9368   case $cc_temp in
9369     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9370     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9371     \-*) ;;
9372     *) break;;
9373   esac
9374 done
9375 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9376
9377
9378 # Only perform the check for file, if the check method requires it
9379 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9380 case $deplibs_check_method in
9381 file_magic*)
9382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9383     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9384 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9386   $as_echo_n "(cached) " >&6
9387 else
9388   case $MAGIC_CMD in
9389 [\\/*] |  ?:[\\/]*)
9390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9391   ;;
9392 *)
9393   lt_save_MAGIC_CMD="$MAGIC_CMD"
9394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9396   for ac_dir in $ac_dummy; do
9397     IFS="$lt_save_ifs"
9398     test -z "$ac_dir" && ac_dir=.
9399     if test -f $ac_dir/${ac_tool_prefix}file; then
9400       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9401       if test -n "$file_magic_test_file"; then
9402         case $deplibs_check_method in
9403         "file_magic "*)
9404           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9407             $EGREP "$file_magic_regex" > /dev/null; then
9408             :
9409           else
9410             cat <<_LT_EOF 1>&2
9411
9412 *** Warning: the command libtool uses to detect shared libraries,
9413 *** $file_magic_cmd, produces output that libtool cannot recognize.
9414 *** The result is that libtool may fail to recognize shared libraries
9415 *** as such.  This will affect the creation of libtool libraries that
9416 *** depend on shared libraries, but programs linked with such libtool
9417 *** libraries will work regardless of this problem.  Nevertheless, you
9418 *** may want to report the problem to your system manager and/or to
9419 *** bug-libtool@gnu.org
9420
9421 _LT_EOF
9422           fi ;;
9423         esac
9424       fi
9425       break
9426     fi
9427   done
9428   IFS="$lt_save_ifs"
9429   MAGIC_CMD="$lt_save_MAGIC_CMD"
9430   ;;
9431 esac
9432 fi
9433
9434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9435 if test -n "$MAGIC_CMD"; then
9436   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9437 $as_echo "$MAGIC_CMD" >&6; }
9438 else
9439   { $as_echo "$as_me:$LINENO: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443
9444
9445
9446
9447 if test -z "$lt_cv_path_MAGIC_CMD"; then
9448   if test -n "$ac_tool_prefix"; then
9449     { $as_echo "$as_me:$LINENO: checking for file" >&5
9450 $as_echo_n "checking for file... " >&6; }
9451 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9452   $as_echo_n "(cached) " >&6
9453 else
9454   case $MAGIC_CMD in
9455 [\\/*] |  ?:[\\/]*)
9456   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9457   ;;
9458 *)
9459   lt_save_MAGIC_CMD="$MAGIC_CMD"
9460   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9461   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9462   for ac_dir in $ac_dummy; do
9463     IFS="$lt_save_ifs"
9464     test -z "$ac_dir" && ac_dir=.
9465     if test -f $ac_dir/file; then
9466       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9467       if test -n "$file_magic_test_file"; then
9468         case $deplibs_check_method in
9469         "file_magic "*)
9470           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9471           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9472           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9473             $EGREP "$file_magic_regex" > /dev/null; then
9474             :
9475           else
9476             cat <<_LT_EOF 1>&2
9477
9478 *** Warning: the command libtool uses to detect shared libraries,
9479 *** $file_magic_cmd, produces output that libtool cannot recognize.
9480 *** The result is that libtool may fail to recognize shared libraries
9481 *** as such.  This will affect the creation of libtool libraries that
9482 *** depend on shared libraries, but programs linked with such libtool
9483 *** libraries will work regardless of this problem.  Nevertheless, you
9484 *** may want to report the problem to your system manager and/or to
9485 *** bug-libtool@gnu.org
9486
9487 _LT_EOF
9488           fi ;;
9489         esac
9490       fi
9491       break
9492     fi
9493   done
9494   IFS="$lt_save_ifs"
9495   MAGIC_CMD="$lt_save_MAGIC_CMD"
9496   ;;
9497 esac
9498 fi
9499
9500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9501 if test -n "$MAGIC_CMD"; then
9502   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9503 $as_echo "$MAGIC_CMD" >&6; }
9504 else
9505   { $as_echo "$as_me:$LINENO: result: no" >&5
9506 $as_echo "no" >&6; }
9507 fi
9508
9509
9510   else
9511     MAGIC_CMD=:
9512   fi
9513 fi
9514
9515   fi
9516   ;;
9517 esac
9518
9519 # Use C for the default configuration in the libtool script
9520
9521 lt_save_CC="$CC"
9522 ac_ext=c
9523 ac_cpp='$CPP $CPPFLAGS'
9524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9527
9528
9529 # Source file extension for C test sources.
9530 ac_ext=c
9531
9532 # Object file extension for compiled C test sources.
9533 objext=o
9534 objext=$objext
9535
9536 # Code to be used in simple compile tests
9537 lt_simple_compile_test_code="int some_variable = 0;"
9538
9539 # Code to be used in simple link tests
9540 lt_simple_link_test_code='int main(){return(0);}'
9541
9542
9543
9544
9545
9546
9547
9548 # If no C compiler was specified, use CC.
9549 LTCC=${LTCC-"$CC"}
9550
9551 # If no C compiler flags were specified, use CFLAGS.
9552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9553
9554 # Allow CC to be a program name with arguments.
9555 compiler=$CC
9556
9557 # Save the default compiler, since it gets overwritten when the other
9558 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9559 compiler_DEFAULT=$CC
9560
9561 # save warnings/boilerplate of simple test code
9562 ac_outfile=conftest.$ac_objext
9563 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9564 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9565 _lt_compiler_boilerplate=`cat conftest.err`
9566 $RM conftest*
9567
9568 ac_outfile=conftest.$ac_objext
9569 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9570 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9571 _lt_linker_boilerplate=`cat conftest.err`
9572 $RM -r conftest*
9573
9574
9575 ## CAVEAT EMPTOR:
9576 ## There is no encapsulation within the following macros, do not change
9577 ## the running order or otherwise move them around unless you know exactly
9578 ## what you are doing...
9579 if test -n "$compiler"; then
9580
9581 lt_prog_compiler_no_builtin_flag=
9582
9583 if test "$GCC" = yes; then
9584   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9585
9586   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9589   $as_echo_n "(cached) " >&6
9590 else
9591   lt_cv_prog_compiler_rtti_exceptions=no
9592    ac_outfile=conftest.$ac_objext
9593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594    lt_compiler_flag="-fno-rtti -fno-exceptions"
9595    # Insert the option either (1) after the last *FLAGS variable, or
9596    # (2) before a word containing "conftest.", or (3) at the end.
9597    # Note that $ac_compile itself does not contain backslashes and begins
9598    # with a dollar sign (not a hyphen), so the echo should work correctly.
9599    # The option is referenced via a variable to avoid confusing sed.
9600    lt_compile=`echo "$ac_compile" | $SED \
9601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603    -e 's:$: $lt_compiler_flag:'`
9604    (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
9605    (eval "$lt_compile" 2>conftest.err)
9606    ac_status=$?
9607    cat conftest.err >&5
9608    echo "$as_me:9608: \$? = $ac_status" >&5
9609    if (exit $ac_status) && test -s "$ac_outfile"; then
9610      # The compiler can only warn and ignore the option if not recognized
9611      # So say no if there are warnings other than the usual output.
9612      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9613      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9614      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9615        lt_cv_prog_compiler_rtti_exceptions=yes
9616      fi
9617    fi
9618    $RM conftest*
9619
9620 fi
9621 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9623
9624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9625     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9626 else
9627     :
9628 fi
9629
9630 fi
9631
9632
9633
9634
9635
9636
9637   lt_prog_compiler_wl=
9638 lt_prog_compiler_pic=
9639 lt_prog_compiler_static=
9640
9641 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9642 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9643
9644   if test "$GCC" = yes; then
9645     lt_prog_compiler_wl='-Wl,'
9646     lt_prog_compiler_static='-static'
9647
9648     case $host_os in
9649       aix*)
9650       # All AIX code is PIC.
9651       if test "$host_cpu" = ia64; then
9652         # AIX 5 now supports IA64 processor
9653         lt_prog_compiler_static='-Bstatic'
9654       fi
9655       ;;
9656
9657     amigaos*)
9658       case $host_cpu in
9659       powerpc)
9660             # see comment about AmigaOS4 .so support
9661             lt_prog_compiler_pic='-fPIC'
9662         ;;
9663       m68k)
9664             # FIXME: we need at least 68020 code to build shared libraries, but
9665             # adding the `-m68020' flag to GCC prevents building anything better,
9666             # like `-m68040'.
9667             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9668         ;;
9669       esac
9670       ;;
9671
9672     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9673       # PIC is the default for these OSes.
9674       ;;
9675
9676     mingw* | cygwin* | pw32* | os2* | cegcc*)
9677       # This hack is so that the source file can tell whether it is being
9678       # built for inclusion in a dll (and should export symbols for example).
9679       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9680       # (--disable-auto-import) libraries
9681       lt_prog_compiler_pic='-DDLL_EXPORT'
9682       ;;
9683
9684     darwin* | rhapsody*)
9685       # PIC is the default on this platform
9686       # Common symbols not allowed in MH_DYLIB files
9687       lt_prog_compiler_pic='-fno-common'
9688       ;;
9689
9690     hpux*)
9691       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9692       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9693       # sets the default TLS model and affects inlining.
9694       case $host_cpu in
9695       hppa*64*)
9696         # +Z the default
9697         ;;
9698       *)
9699         lt_prog_compiler_pic='-fPIC'
9700         ;;
9701       esac
9702       ;;
9703
9704     interix[3-9]*)
9705       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9706       # Instead, we relocate shared libraries at runtime.
9707       ;;
9708
9709     msdosdjgpp*)
9710       # Just because we use GCC doesn't mean we suddenly get shared libraries
9711       # on systems that don't support them.
9712       lt_prog_compiler_can_build_shared=no
9713       enable_shared=no
9714       ;;
9715
9716     *nto* | *qnx*)
9717       # QNX uses GNU C++, but need to define -shared option too, otherwise
9718       # it will coredump.
9719       lt_prog_compiler_pic='-fPIC -shared'
9720       ;;
9721
9722     sysv4*MP*)
9723       if test -d /usr/nec; then
9724         lt_prog_compiler_pic=-Kconform_pic
9725       fi
9726       ;;
9727
9728     *)
9729       lt_prog_compiler_pic='-fPIC'
9730       ;;
9731     esac
9732   else
9733     # PORTME Check for flag to pass linker flags through the system compiler.
9734     case $host_os in
9735     aix*)
9736       lt_prog_compiler_wl='-Wl,'
9737       if test "$host_cpu" = ia64; then
9738         # AIX 5 now supports IA64 processor
9739         lt_prog_compiler_static='-Bstatic'
9740       else
9741         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9742       fi
9743       ;;
9744
9745     mingw* | cygwin* | pw32* | os2* | cegcc*)
9746       # This hack is so that the source file can tell whether it is being
9747       # built for inclusion in a dll (and should export symbols for example).
9748       lt_prog_compiler_pic='-DDLL_EXPORT'
9749       ;;
9750
9751     hpux9* | hpux10* | hpux11*)
9752       lt_prog_compiler_wl='-Wl,'
9753       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9754       # not for PA HP-UX.
9755       case $host_cpu in
9756       hppa*64*|ia64*)
9757         # +Z the default
9758         ;;
9759       *)
9760         lt_prog_compiler_pic='+Z'
9761         ;;
9762       esac
9763       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9764       lt_prog_compiler_static='${wl}-a ${wl}archive'
9765       ;;
9766
9767     irix5* | irix6* | nonstopux*)
9768       lt_prog_compiler_wl='-Wl,'
9769       # PIC (with -KPIC) is the default.
9770       lt_prog_compiler_static='-non_shared'
9771       ;;
9772
9773     linux* | k*bsd*-gnu)
9774       case $cc_basename in
9775       # old Intel for x86_64 which still supported -KPIC.
9776       ecc*)
9777         lt_prog_compiler_wl='-Wl,'
9778         lt_prog_compiler_pic='-KPIC'
9779         lt_prog_compiler_static='-static'
9780         ;;
9781       # icc used to be incompatible with GCC.
9782       # ICC 10 doesn't accept -KPIC any more.
9783       icc* | ifort*)
9784         lt_prog_compiler_wl='-Wl,'
9785         lt_prog_compiler_pic='-fPIC'
9786         lt_prog_compiler_static='-static'
9787         ;;
9788       # Lahey Fortran 8.1.
9789       lf95*)
9790         lt_prog_compiler_wl='-Wl,'
9791         lt_prog_compiler_pic='--shared'
9792         lt_prog_compiler_static='--static'
9793         ;;
9794       pgcc* | pgf77* | pgf90* | pgf95*)
9795         # Portland Group compilers (*not* the Pentium gcc compiler,
9796         # which looks to be a dead project)
9797         lt_prog_compiler_wl='-Wl,'
9798         lt_prog_compiler_pic='-fpic'
9799         lt_prog_compiler_static='-Bstatic'
9800         ;;
9801       ccc*)
9802         lt_prog_compiler_wl='-Wl,'
9803         # All Alpha code is PIC.
9804         lt_prog_compiler_static='-non_shared'
9805         ;;
9806       xl*)
9807         # IBM XL C 8.0/Fortran 10.1 on PPC
9808         lt_prog_compiler_wl='-Wl,'
9809         lt_prog_compiler_pic='-qpic'
9810         lt_prog_compiler_static='-qstaticlink'
9811         ;;
9812       *)
9813         case `$CC -V 2>&1 | sed 5q` in
9814         *Sun\ C*)
9815           # Sun C 5.9
9816           lt_prog_compiler_pic='-KPIC'
9817           lt_prog_compiler_static='-Bstatic'
9818           lt_prog_compiler_wl='-Wl,'
9819           ;;
9820         *Sun\ F*)
9821           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9822           lt_prog_compiler_pic='-KPIC'
9823           lt_prog_compiler_static='-Bstatic'
9824           lt_prog_compiler_wl=''
9825           ;;
9826         esac
9827         ;;
9828       esac
9829       ;;
9830
9831     newsos6)
9832       lt_prog_compiler_pic='-KPIC'
9833       lt_prog_compiler_static='-Bstatic'
9834       ;;
9835
9836     *nto* | *qnx*)
9837       # QNX uses GNU C++, but need to define -shared option too, otherwise
9838       # it will coredump.
9839       lt_prog_compiler_pic='-fPIC -shared'
9840       ;;
9841
9842     osf3* | osf4* | osf5*)
9843       lt_prog_compiler_wl='-Wl,'
9844       # All OSF/1 code is PIC.
9845       lt_prog_compiler_static='-non_shared'
9846       ;;
9847
9848     rdos*)
9849       lt_prog_compiler_static='-non_shared'
9850       ;;
9851
9852     solaris*)
9853       lt_prog_compiler_pic='-KPIC'
9854       lt_prog_compiler_static='-Bstatic'
9855       case $cc_basename in
9856       f77* | f90* | f95*)
9857         lt_prog_compiler_wl='-Qoption ld ';;
9858       *)
9859         lt_prog_compiler_wl='-Wl,';;
9860       esac
9861       ;;
9862
9863     sunos4*)
9864       lt_prog_compiler_wl='-Qoption ld '
9865       lt_prog_compiler_pic='-PIC'
9866       lt_prog_compiler_static='-Bstatic'
9867       ;;
9868
9869     sysv4 | sysv4.2uw2* | sysv4.3*)
9870       lt_prog_compiler_wl='-Wl,'
9871       lt_prog_compiler_pic='-KPIC'
9872       lt_prog_compiler_static='-Bstatic'
9873       ;;
9874
9875     sysv4*MP*)
9876       if test -d /usr/nec ;then
9877         lt_prog_compiler_pic='-Kconform_pic'
9878         lt_prog_compiler_static='-Bstatic'
9879       fi
9880       ;;
9881
9882     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9883       lt_prog_compiler_wl='-Wl,'
9884       lt_prog_compiler_pic='-KPIC'
9885       lt_prog_compiler_static='-Bstatic'
9886       ;;
9887
9888     unicos*)
9889       lt_prog_compiler_wl='-Wl,'
9890       lt_prog_compiler_can_build_shared=no
9891       ;;
9892
9893     uts4*)
9894       lt_prog_compiler_pic='-pic'
9895       lt_prog_compiler_static='-Bstatic'
9896       ;;
9897
9898     *)
9899       lt_prog_compiler_can_build_shared=no
9900       ;;
9901     esac
9902   fi
9903
9904 case $host_os in
9905   # For platforms which do not support PIC, -DPIC is meaningless:
9906   *djgpp*)
9907     lt_prog_compiler_pic=
9908     ;;
9909   *)
9910     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9911     ;;
9912 esac
9913 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9914 $as_echo "$lt_prog_compiler_pic" >&6; }
9915
9916
9917
9918
9919
9920
9921 #
9922 # Check to make sure the PIC flag actually works.
9923 #
9924 if test -n "$lt_prog_compiler_pic"; then
9925   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9926 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9927 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9928   $as_echo_n "(cached) " >&6
9929 else
9930   lt_cv_prog_compiler_pic_works=no
9931    ac_outfile=conftest.$ac_objext
9932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9934    # Insert the option either (1) after the last *FLAGS variable, or
9935    # (2) before a word containing "conftest.", or (3) at the end.
9936    # Note that $ac_compile itself does not contain backslashes and begins
9937    # with a dollar sign (not a hyphen), so the echo should work correctly.
9938    # The option is referenced via a variable to avoid confusing sed.
9939    lt_compile=`echo "$ac_compile" | $SED \
9940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9942    -e 's:$: $lt_compiler_flag:'`
9943    (eval echo "\"\$as_me:9943: $lt_compile\"" >&5)
9944    (eval "$lt_compile" 2>conftest.err)
9945    ac_status=$?
9946    cat conftest.err >&5
9947    echo "$as_me:9947: \$? = $ac_status" >&5
9948    if (exit $ac_status) && test -s "$ac_outfile"; then
9949      # The compiler can only warn and ignore the option if not recognized
9950      # So say no if there are warnings other than the usual output.
9951      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9952      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9954        lt_cv_prog_compiler_pic_works=yes
9955      fi
9956    fi
9957    $RM conftest*
9958
9959 fi
9960 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9961 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9962
9963 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9964     case $lt_prog_compiler_pic in
9965      "" | " "*) ;;
9966      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9967      esac
9968 else
9969     lt_prog_compiler_pic=
9970      lt_prog_compiler_can_build_shared=no
9971 fi
9972
9973 fi
9974
9975
9976
9977
9978
9979
9980 #
9981 # Check to make sure the static flag actually works.
9982 #
9983 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9984 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9985 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9986 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9987   $as_echo_n "(cached) " >&6
9988 else
9989   lt_cv_prog_compiler_static_works=no
9990    save_LDFLAGS="$LDFLAGS"
9991    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9992    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9993    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9994      # The linker can only warn and ignore the option if not recognized
9995      # So say no if there are warnings
9996      if test -s conftest.err; then
9997        # Append any errors to the config.log.
9998        cat conftest.err 1>&5
9999        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10000        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10001        if diff conftest.exp conftest.er2 >/dev/null; then
10002          lt_cv_prog_compiler_static_works=yes
10003        fi
10004      else
10005        lt_cv_prog_compiler_static_works=yes
10006      fi
10007    fi
10008    $RM -r conftest*
10009    LDFLAGS="$save_LDFLAGS"
10010
10011 fi
10012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10013 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10014
10015 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10016     :
10017 else
10018     lt_prog_compiler_static=
10019 fi
10020
10021
10022
10023
10024
10025
10026
10027   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10029 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10030   $as_echo_n "(cached) " >&6
10031 else
10032   lt_cv_prog_compiler_c_o=no
10033    $RM -r conftest 2>/dev/null
10034    mkdir conftest
10035    cd conftest
10036    mkdir out
10037    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10038
10039    lt_compiler_flag="-o out/conftest2.$ac_objext"
10040    # Insert the option either (1) after the last *FLAGS variable, or
10041    # (2) before a word containing "conftest.", or (3) at the end.
10042    # Note that $ac_compile itself does not contain backslashes and begins
10043    # with a dollar sign (not a hyphen), so the echo should work correctly.
10044    lt_compile=`echo "$ac_compile" | $SED \
10045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10047    -e 's:$: $lt_compiler_flag:'`
10048    (eval echo "\"\$as_me:10048: $lt_compile\"" >&5)
10049    (eval "$lt_compile" 2>out/conftest.err)
10050    ac_status=$?
10051    cat out/conftest.err >&5
10052    echo "$as_me:10052: \$? = $ac_status" >&5
10053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10054    then
10055      # The compiler can only warn and ignore the option if not recognized
10056      # So say no if there are warnings
10057      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10058      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10059      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10060        lt_cv_prog_compiler_c_o=yes
10061      fi
10062    fi
10063    chmod u+w . 2>&5
10064    $RM conftest*
10065    # SGI C++ compiler will create directory out/ii_files/ for
10066    # template instantiation
10067    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10068    $RM out/* && rmdir out
10069    cd ..
10070    $RM -r conftest
10071    $RM conftest*
10072
10073 fi
10074 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10076
10077
10078
10079
10080
10081
10082   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10084 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10085   $as_echo_n "(cached) " >&6
10086 else
10087   lt_cv_prog_compiler_c_o=no
10088    $RM -r conftest 2>/dev/null
10089    mkdir conftest
10090    cd conftest
10091    mkdir out
10092    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10093
10094    lt_compiler_flag="-o out/conftest2.$ac_objext"
10095    # Insert the option either (1) after the last *FLAGS variable, or
10096    # (2) before a word containing "conftest.", or (3) at the end.
10097    # Note that $ac_compile itself does not contain backslashes and begins
10098    # with a dollar sign (not a hyphen), so the echo should work correctly.
10099    lt_compile=`echo "$ac_compile" | $SED \
10100    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10101    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10102    -e 's:$: $lt_compiler_flag:'`
10103    (eval echo "\"\$as_me:10103: $lt_compile\"" >&5)
10104    (eval "$lt_compile" 2>out/conftest.err)
10105    ac_status=$?
10106    cat out/conftest.err >&5
10107    echo "$as_me:10107: \$? = $ac_status" >&5
10108    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10109    then
10110      # The compiler can only warn and ignore the option if not recognized
10111      # So say no if there are warnings
10112      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10113      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10114      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10115        lt_cv_prog_compiler_c_o=yes
10116      fi
10117    fi
10118    chmod u+w . 2>&5
10119    $RM conftest*
10120    # SGI C++ compiler will create directory out/ii_files/ for
10121    # template instantiation
10122    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10123    $RM out/* && rmdir out
10124    cd ..
10125    $RM -r conftest
10126    $RM conftest*
10127
10128 fi
10129 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10130 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10131
10132
10133
10134
10135 hard_links="nottested"
10136 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10137   # do not overwrite the value of need_locks provided by the user
10138   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10139 $as_echo_n "checking if we can lock with hard links... " >&6; }
10140   hard_links=yes
10141   $RM conftest*
10142   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10143   touch conftest.a
10144   ln conftest.a conftest.b 2>&5 || hard_links=no
10145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10146   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10147 $as_echo "$hard_links" >&6; }
10148   if test "$hard_links" = no; then
10149     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10150 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10151     need_locks=warn
10152   fi
10153 else
10154   need_locks=no
10155 fi
10156
10157
10158
10159
10160
10161
10162   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10163 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10164
10165   runpath_var=
10166   allow_undefined_flag=
10167   always_export_symbols=no
10168   archive_cmds=
10169   archive_expsym_cmds=
10170   compiler_needs_object=no
10171   enable_shared_with_static_runtimes=no
10172   export_dynamic_flag_spec=
10173   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10174   hardcode_automatic=no
10175   hardcode_direct=no
10176   hardcode_direct_absolute=no
10177   hardcode_libdir_flag_spec=
10178   hardcode_libdir_flag_spec_ld=
10179   hardcode_libdir_separator=
10180   hardcode_minus_L=no
10181   hardcode_shlibpath_var=unsupported
10182   inherit_rpath=no
10183   link_all_deplibs=unknown
10184   module_cmds=
10185   module_expsym_cmds=
10186   old_archive_from_new_cmds=
10187   old_archive_from_expsyms_cmds=
10188   thread_safe_flag_spec=
10189   whole_archive_flag_spec=
10190   # include_expsyms should be a list of space-separated symbols to be *always*
10191   # included in the symbol list
10192   include_expsyms=
10193   # exclude_expsyms can be an extended regexp of symbols to exclude
10194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10196   # as well as any symbol that contains `d'.
10197   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10199   # platforms (ab)use it in PIC code, but their linkers get confused if
10200   # the symbol is explicitly referenced.  Since portable code cannot
10201   # rely on this symbol name, it's probably fine to never include it in
10202   # preloaded symbol tables.
10203   # Exclude shared library initialization/finalization symbols.
10204   extract_expsyms_cmds=
10205
10206   case $host_os in
10207   cygwin* | mingw* | pw32* | cegcc*)
10208     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10209     # When not using gcc, we currently assume that we are using
10210     # Microsoft Visual C++.
10211     if test "$GCC" != yes; then
10212       with_gnu_ld=no
10213     fi
10214     ;;
10215   interix*)
10216     # we just hope/assume this is gcc and not c89 (= MSVC++)
10217     with_gnu_ld=yes
10218     ;;
10219   openbsd*)
10220     with_gnu_ld=no
10221     ;;
10222   esac
10223
10224   ld_shlibs=yes
10225   if test "$with_gnu_ld" = yes; then
10226     # If archive_cmds runs LD, not CC, wlarc should be empty
10227     wlarc='${wl}'
10228
10229     # Set some defaults for GNU ld with shared library support. These
10230     # are reset later if shared libraries are not supported. Putting them
10231     # here allows them to be overridden if necessary.
10232     runpath_var=LD_RUN_PATH
10233     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234     export_dynamic_flag_spec='${wl}--export-dynamic'
10235     # ancient GNU ld didn't support --whole-archive et. al.
10236     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10237       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10238     else
10239       whole_archive_flag_spec=
10240     fi
10241     supports_anon_versioning=no
10242     case `$LD -v 2>&1` in
10243       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10244       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10245       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10246       *\ 2.11.*) ;; # other 2.11 versions
10247       *) supports_anon_versioning=yes ;;
10248     esac
10249
10250     # See if GNU ld supports shared libraries.
10251     case $host_os in
10252     aix[3-9]*)
10253       # On AIX/PPC, the GNU linker is very broken
10254       if test "$host_cpu" != ia64; then
10255         ld_shlibs=no
10256         cat <<_LT_EOF 1>&2
10257
10258 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10259 *** to be unable to reliably create shared libraries on AIX.
10260 *** Therefore, libtool is disabling shared libraries support.  If you
10261 *** really care for shared libraries, you may want to modify your PATH
10262 *** so that a non-GNU linker is found, and then restart.
10263
10264 _LT_EOF
10265       fi
10266       ;;
10267
10268     amigaos*)
10269       case $host_cpu in
10270       powerpc)
10271             # see comment about AmigaOS4 .so support
10272             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273             archive_expsym_cmds=''
10274         ;;
10275       m68k)
10276             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)'
10277             hardcode_libdir_flag_spec='-L$libdir'
10278             hardcode_minus_L=yes
10279         ;;
10280       esac
10281       ;;
10282
10283     beos*)
10284       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285         allow_undefined_flag=unsupported
10286         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10287         # support --undefined.  This deserves some investigation.  FIXME
10288         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289       else
10290         ld_shlibs=no
10291       fi
10292       ;;
10293
10294     cygwin* | mingw* | pw32* | cegcc*)
10295       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10296       # as there is no search path for DLLs.
10297       hardcode_libdir_flag_spec='-L$libdir'
10298       allow_undefined_flag=unsupported
10299       always_export_symbols=no
10300       enable_shared_with_static_runtimes=yes
10301       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10302
10303       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10305         # If the export-symbols file already is a .def file (1st line
10306         # is EXPORTS), use it as is; otherwise, prepend...
10307         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10308           cp $export_symbols $output_objdir/$soname.def;
10309         else
10310           echo EXPORTS > $output_objdir/$soname.def;
10311           cat $export_symbols >> $output_objdir/$soname.def;
10312         fi~
10313         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10314       else
10315         ld_shlibs=no
10316       fi
10317       ;;
10318
10319     interix[3-9]*)
10320       hardcode_direct=no
10321       hardcode_shlibpath_var=no
10322       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10323       export_dynamic_flag_spec='${wl}-E'
10324       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10325       # Instead, shared libraries are loaded at an image base (0x10000000 by
10326       # default) and relocated if they conflict, which is a slow very memory
10327       # consuming and fragmenting process.  To avoid this, we pick a random,
10328       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10329       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10330       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10331       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'
10332       ;;
10333
10334     gnu* | linux* | tpf* | k*bsd*-gnu)
10335       tmp_diet=no
10336       if test "$host_os" = linux-dietlibc; then
10337         case $cc_basename in
10338           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10339         esac
10340       fi
10341       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10342          && test "$tmp_diet" = no
10343       then
10344         tmp_addflag=
10345         tmp_sharedflag='-shared'
10346         case $cc_basename,$host_cpu in
10347         pgcc*)                          # Portland Group C compiler
10348           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'
10349           tmp_addflag=' $pic_flag'
10350           ;;
10351         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10352           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'
10353           tmp_addflag=' $pic_flag -Mnomain' ;;
10354         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10355           tmp_addflag=' -i_dynamic' ;;
10356         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10357           tmp_addflag=' -i_dynamic -nofor_main' ;;
10358         ifc* | ifort*)                  # Intel Fortran compiler
10359           tmp_addflag=' -nofor_main' ;;
10360         lf95*)                          # Lahey Fortran 8.1
10361           whole_archive_flag_spec=
10362           tmp_sharedflag='--shared' ;;
10363         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10364           tmp_sharedflag='-qmkshrobj'
10365           tmp_addflag= ;;
10366         esac
10367         case `$CC -V 2>&1 | sed 5q` in
10368         *Sun\ C*)                       # Sun C 5.9
10369           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'
10370           compiler_needs_object=yes
10371           tmp_sharedflag='-G' ;;
10372         *Sun\ F*)                       # Sun Fortran 8.3
10373           tmp_sharedflag='-G' ;;
10374         esac
10375         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376
10377         if test "x$supports_anon_versioning" = xyes; then
10378           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10379             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10380             echo "local: *; };" >> $output_objdir/$libname.ver~
10381             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10382         fi
10383
10384         case $cc_basename in
10385         xlf*)
10386           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10387           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10388           hardcode_libdir_flag_spec=
10389           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10390           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10391           if test "x$supports_anon_versioning" = xyes; then
10392             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10393               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10394               echo "local: *; };" >> $output_objdir/$libname.ver~
10395               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10396           fi
10397           ;;
10398         esac
10399       else
10400         ld_shlibs=no
10401       fi
10402       ;;
10403
10404     netbsd*)
10405       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10406         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10407         wlarc=
10408       else
10409         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10411       fi
10412       ;;
10413
10414     solaris*)
10415       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10416         ld_shlibs=no
10417         cat <<_LT_EOF 1>&2
10418
10419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10420 *** create shared libraries on Solaris systems.  Therefore, libtool
10421 *** is disabling shared libraries support.  We urge you to upgrade GNU
10422 *** binutils to release 2.9.1 or newer.  Another option is to modify
10423 *** your PATH or compiler configuration so that the native linker is
10424 *** used, and then restart.
10425
10426 _LT_EOF
10427       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10428         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10430       else
10431         ld_shlibs=no
10432       fi
10433       ;;
10434
10435     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10436       case `$LD -v 2>&1` in
10437         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10438         ld_shlibs=no
10439         cat <<_LT_EOF 1>&2
10440
10441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10442 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10443 *** is disabling shared libraries support.  We urge you to upgrade GNU
10444 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10445 *** your PATH or compiler configuration so that the native linker is
10446 *** used, and then restart.
10447
10448 _LT_EOF
10449         ;;
10450         *)
10451           # For security reasons, it is highly recommended that you always
10452           # use absolute paths for naming shared libraries, and exclude the
10453           # DT_RUNPATH tag from executables and libraries.  But doing so
10454           # requires that you compile everything twice, which is a pain.
10455           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10456             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10457             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10459           else
10460             ld_shlibs=no
10461           fi
10462         ;;
10463       esac
10464       ;;
10465
10466     sunos4*)
10467       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10468       wlarc=
10469       hardcode_direct=yes
10470       hardcode_shlibpath_var=no
10471       ;;
10472
10473     *)
10474       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10475         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10476         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10477       else
10478         ld_shlibs=no
10479       fi
10480       ;;
10481     esac
10482
10483     if test "$ld_shlibs" = no; then
10484       runpath_var=
10485       hardcode_libdir_flag_spec=
10486       export_dynamic_flag_spec=
10487       whole_archive_flag_spec=
10488     fi
10489   else
10490     # PORTME fill in a description of your system's linker (not GNU ld)
10491     case $host_os in
10492     aix3*)
10493       allow_undefined_flag=unsupported
10494       always_export_symbols=yes
10495       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'
10496       # Note: this linker hardcodes the directories in LIBPATH if there
10497       # are no directories specified by -L.
10498       hardcode_minus_L=yes
10499       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10500         # Neither direct hardcoding nor static linking is supported with a
10501         # broken collect2.
10502         hardcode_direct=unsupported
10503       fi
10504       ;;
10505
10506     aix[4-9]*)
10507       if test "$host_cpu" = ia64; then
10508         # On IA64, the linker does run time linking by default, so we don't
10509         # have to do anything special.
10510         aix_use_runtimelinking=no
10511         exp_sym_flag='-Bexport'
10512         no_entry_flag=""
10513       else
10514         # If we're using GNU nm, then we don't want the "-C" option.
10515         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10516         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10517           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'
10518         else
10519           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'
10520         fi
10521         aix_use_runtimelinking=no
10522
10523         # Test if we are trying to use run time linking or normal
10524         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10525         # need to do runtime linking.
10526         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10527           for ld_flag in $LDFLAGS; do
10528           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10529             aix_use_runtimelinking=yes
10530             break
10531           fi
10532           done
10533           ;;
10534         esac
10535
10536         exp_sym_flag='-bexport'
10537         no_entry_flag='-bnoentry'
10538       fi
10539
10540       # When large executables or shared objects are built, AIX ld can
10541       # have problems creating the table of contents.  If linking a library
10542       # or program results in "error TOC overflow" add -mminimal-toc to
10543       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10544       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10545
10546       archive_cmds=''
10547       hardcode_direct=yes
10548       hardcode_direct_absolute=yes
10549       hardcode_libdir_separator=':'
10550       link_all_deplibs=yes
10551       file_list_spec='${wl}-f,'
10552
10553       if test "$GCC" = yes; then
10554         case $host_os in aix4.[012]|aix4.[012].*)
10555         # We only want to do this on AIX 4.2 and lower, the check
10556         # below for broken collect2 doesn't work under 4.3+
10557           collect2name=`${CC} -print-prog-name=collect2`
10558           if test -f "$collect2name" &&
10559            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10560           then
10561           # We have reworked collect2
10562           :
10563           else
10564           # We have old collect2
10565           hardcode_direct=unsupported
10566           # It fails to find uninstalled libraries when the uninstalled
10567           # path is not listed in the libpath.  Setting hardcode_minus_L
10568           # to unsupported forces relinking
10569           hardcode_minus_L=yes
10570           hardcode_libdir_flag_spec='-L$libdir'
10571           hardcode_libdir_separator=
10572           fi
10573           ;;
10574         esac
10575         shared_flag='-shared'
10576         if test "$aix_use_runtimelinking" = yes; then
10577           shared_flag="$shared_flag "'${wl}-G'
10578         fi
10579       else
10580         # not using gcc
10581         if test "$host_cpu" = ia64; then
10582         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10583         # chokes on -Wl,-G. The following line is correct:
10584           shared_flag='-G'
10585         else
10586           if test "$aix_use_runtimelinking" = yes; then
10587             shared_flag='${wl}-G'
10588           else
10589             shared_flag='${wl}-bM:SRE'
10590           fi
10591         fi
10592       fi
10593
10594       export_dynamic_flag_spec='${wl}-bexpall'
10595       # It seems that -bexpall does not export symbols beginning with
10596       # underscore (_), so it is better to generate a list of symbols to export.
10597       always_export_symbols=yes
10598       if test "$aix_use_runtimelinking" = yes; then
10599         # Warning - without using the other runtime loading flags (-brtl),
10600         # -berok will link without error, but may produce a broken library.
10601         allow_undefined_flag='-berok'
10602         # Determine the default libpath from the value encoded in an
10603         # empty executable.
10604         cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610
10611 int
10612 main ()
10613 {
10614
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (ac_try="$ac_link"
10621 case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626 $as_echo "$ac_try_echo") >&5
10627   (eval "$ac_link") 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } && {
10634          test -z "$ac_c_werror_flag" ||
10635          test ! -s conftest.err
10636        } && test -s conftest$ac_exeext && {
10637          test "$cross_compiling" = yes ||
10638          $as_test_x conftest$ac_exeext
10639        }; then
10640
10641 lt_aix_libpath_sed='
10642     /Import File Strings/,/^$/ {
10643         /^0/ {
10644             s/^0  *\(.*\)$/\1/
10645             p
10646         }
10647     }'
10648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10649 # Check for a 64-bit object if we didn't find anything.
10650 if test -z "$aix_libpath"; then
10651   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10652 fi
10653 else
10654   $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657
10658 fi
10659
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662       conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664
10665         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10666         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"
10667       else
10668         if test "$host_cpu" = ia64; then
10669           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10670           allow_undefined_flag="-z nodefs"
10671           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"
10672         else
10673          # Determine the default libpath from the value encoded in an
10674          # empty executable.
10675          cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681
10682 int
10683 main ()
10684 {
10685
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10697 $as_echo "$ac_try_echo") >&5
10698   (eval "$ac_link") 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } && {
10705          test -z "$ac_c_werror_flag" ||
10706          test ! -s conftest.err
10707        } && test -s conftest$ac_exeext && {
10708          test "$cross_compiling" = yes ||
10709          $as_test_x conftest$ac_exeext
10710        }; then
10711
10712 lt_aix_libpath_sed='
10713     /Import File Strings/,/^$/ {
10714         /^0/ {
10715             s/^0  *\(.*\)$/\1/
10716             p
10717         }
10718     }'
10719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10720 # Check for a 64-bit object if we didn't find anything.
10721 if test -z "$aix_libpath"; then
10722   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10723 fi
10724 else
10725   $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728
10729 fi
10730
10731 rm -rf conftest.dSYM
10732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10733       conftest$ac_exeext conftest.$ac_ext
10734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10735
10736          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10737           # Warning - without using the other run time loading flags,
10738           # -berok will link without error, but may produce a broken library.
10739           no_undefined_flag=' ${wl}-bernotok'
10740           allow_undefined_flag=' ${wl}-berok'
10741           # Exported symbols can be pulled into shared objects from archives
10742           whole_archive_flag_spec='$convenience'
10743           archive_cmds_need_lc=yes
10744           # This is similar to how AIX traditionally builds its shared libraries.
10745           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'
10746         fi
10747       fi
10748       ;;
10749
10750     amigaos*)
10751       case $host_cpu in
10752       powerpc)
10753             # see comment about AmigaOS4 .so support
10754             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10755             archive_expsym_cmds=''
10756         ;;
10757       m68k)
10758             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)'
10759             hardcode_libdir_flag_spec='-L$libdir'
10760             hardcode_minus_L=yes
10761         ;;
10762       esac
10763       ;;
10764
10765     bsdi[45]*)
10766       export_dynamic_flag_spec=-rdynamic
10767       ;;
10768
10769     cygwin* | mingw* | pw32* | cegcc*)
10770       # When not using gcc, we currently assume that we are using
10771       # Microsoft Visual C++.
10772       # hardcode_libdir_flag_spec is actually meaningless, as there is
10773       # no search path for DLLs.
10774       hardcode_libdir_flag_spec=' '
10775       allow_undefined_flag=unsupported
10776       # Tell ltmain to make .lib files, not .a files.
10777       libext=lib
10778       # Tell ltmain to make .dll files, not .so files.
10779       shrext_cmds=".dll"
10780       # FIXME: Setting linknames here is a bad hack.
10781       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10782       # The linker will automatically build a .lib file if we build a DLL.
10783       old_archive_from_new_cmds='true'
10784       # FIXME: Should let the user specify the lib program.
10785       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10786       fix_srcfile_path='`cygpath -w "$srcfile"`'
10787       enable_shared_with_static_runtimes=yes
10788       ;;
10789
10790     darwin* | rhapsody*)
10791
10792
10793   archive_cmds_need_lc=no
10794   hardcode_direct=no
10795   hardcode_automatic=yes
10796   hardcode_shlibpath_var=unsupported
10797   whole_archive_flag_spec=''
10798   link_all_deplibs=yes
10799   allow_undefined_flag="$_lt_dar_allow_undefined"
10800   case $cc_basename in
10801      ifort*) _lt_dar_can_shared=yes ;;
10802      *) _lt_dar_can_shared=$GCC ;;
10803   esac
10804   if test "$_lt_dar_can_shared" = "yes"; then
10805     output_verbose_link_cmd=echo
10806     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10807     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10808     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}"
10809     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}"
10810
10811   else
10812   ld_shlibs=no
10813   fi
10814
10815       ;;
10816
10817     dgux*)
10818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819       hardcode_libdir_flag_spec='-L$libdir'
10820       hardcode_shlibpath_var=no
10821       ;;
10822
10823     freebsd1*)
10824       ld_shlibs=no
10825       ;;
10826
10827     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10828     # support.  Future versions do this automatically, but an explicit c++rt0.o
10829     # does not break anything, and helps significantly (at the cost of a little
10830     # extra space).
10831     freebsd2.2*)
10832       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10833       hardcode_libdir_flag_spec='-R$libdir'
10834       hardcode_direct=yes
10835       hardcode_shlibpath_var=no
10836       ;;
10837
10838     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10839     freebsd2*)
10840       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10841       hardcode_direct=yes
10842       hardcode_minus_L=yes
10843       hardcode_shlibpath_var=no
10844       ;;
10845
10846     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10847     freebsd* | dragonfly*)
10848       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10849       hardcode_libdir_flag_spec='-R$libdir'
10850       hardcode_direct=yes
10851       hardcode_shlibpath_var=no
10852       ;;
10853
10854     hpux9*)
10855       if test "$GCC" = yes; then
10856         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'
10857       else
10858         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'
10859       fi
10860       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10861       hardcode_libdir_separator=:
10862       hardcode_direct=yes
10863
10864       # hardcode_minus_L: Not really in the search PATH,
10865       # but as the default location of the library.
10866       hardcode_minus_L=yes
10867       export_dynamic_flag_spec='${wl}-E'
10868       ;;
10869
10870     hpux10*)
10871       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10872         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10873       else
10874         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10875       fi
10876       if test "$with_gnu_ld" = no; then
10877         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10878         hardcode_libdir_flag_spec_ld='+b $libdir'
10879         hardcode_libdir_separator=:
10880         hardcode_direct=yes
10881         hardcode_direct_absolute=yes
10882         export_dynamic_flag_spec='${wl}-E'
10883         # hardcode_minus_L: Not really in the search PATH,
10884         # but as the default location of the library.
10885         hardcode_minus_L=yes
10886       fi
10887       ;;
10888
10889     hpux11*)
10890       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10891         case $host_cpu in
10892         hppa*64*)
10893           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10894           ;;
10895         ia64*)
10896           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10897           ;;
10898         *)
10899           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10900           ;;
10901         esac
10902       else
10903         case $host_cpu in
10904         hppa*64*)
10905           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906           ;;
10907         ia64*)
10908           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10909           ;;
10910         *)
10911           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10912           ;;
10913         esac
10914       fi
10915       if test "$with_gnu_ld" = no; then
10916         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10917         hardcode_libdir_separator=:
10918
10919         case $host_cpu in
10920         hppa*64*|ia64*)
10921           hardcode_direct=no
10922           hardcode_shlibpath_var=no
10923           ;;
10924         *)
10925           hardcode_direct=yes
10926           hardcode_direct_absolute=yes
10927           export_dynamic_flag_spec='${wl}-E'
10928
10929           # hardcode_minus_L: Not really in the search PATH,
10930           # but as the default location of the library.
10931           hardcode_minus_L=yes
10932           ;;
10933         esac
10934       fi
10935       ;;
10936
10937     irix5* | irix6* | nonstopux*)
10938       if test "$GCC" = yes; then
10939         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'
10940         # Try to use the -exported_symbol ld option, if it does not
10941         # work, assume that -exports_file does not work either and
10942         # implicitly export all symbols.
10943         save_LDFLAGS="$LDFLAGS"
10944         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10945         cat >conftest.$ac_ext <<_ACEOF
10946 int foo(void) {}
10947 _ACEOF
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956   (eval "$ac_link") 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } && {
10963          test -z "$ac_c_werror_flag" ||
10964          test ! -s conftest.err
10965        } && test -s conftest$ac_exeext && {
10966          test "$cross_compiling" = yes ||
10967          $as_test_x conftest$ac_exeext
10968        }; then
10969   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'
10970
10971 else
10972   $as_echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975
10976 fi
10977
10978 rm -rf conftest.dSYM
10979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10980       conftest$ac_exeext conftest.$ac_ext
10981         LDFLAGS="$save_LDFLAGS"
10982       else
10983         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'
10984         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'
10985       fi
10986       archive_cmds_need_lc='no'
10987       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10988       hardcode_libdir_separator=:
10989       inherit_rpath=yes
10990       link_all_deplibs=yes
10991       ;;
10992
10993     netbsd*)
10994       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10995         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10996       else
10997         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10998       fi
10999       hardcode_libdir_flag_spec='-R$libdir'
11000       hardcode_direct=yes
11001       hardcode_shlibpath_var=no
11002       ;;
11003
11004     newsos6)
11005       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006       hardcode_direct=yes
11007       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11008       hardcode_libdir_separator=:
11009       hardcode_shlibpath_var=no
11010       ;;
11011
11012     *nto* | *qnx*)
11013       ;;
11014
11015     openbsd*)
11016       if test -f /usr/libexec/ld.so; then
11017         hardcode_direct=yes
11018         hardcode_shlibpath_var=no
11019         hardcode_direct_absolute=yes
11020         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11021           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11023           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11024           export_dynamic_flag_spec='${wl}-E'
11025         else
11026           case $host_os in
11027            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11028              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11029              hardcode_libdir_flag_spec='-R$libdir'
11030              ;;
11031            *)
11032              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11034              ;;
11035           esac
11036         fi
11037       else
11038         ld_shlibs=no
11039       fi
11040       ;;
11041
11042     os2*)
11043       hardcode_libdir_flag_spec='-L$libdir'
11044       hardcode_minus_L=yes
11045       allow_undefined_flag=unsupported
11046       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'
11047       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11048       ;;
11049
11050     osf3*)
11051       if test "$GCC" = yes; then
11052         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11053         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'
11054       else
11055         allow_undefined_flag=' -expect_unresolved \*'
11056         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'
11057       fi
11058       archive_cmds_need_lc='no'
11059       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11060       hardcode_libdir_separator=:
11061       ;;
11062
11063     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11064       if test "$GCC" = yes; then
11065         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11066         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'
11067         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11068       else
11069         allow_undefined_flag=' -expect_unresolved \*'
11070         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'
11071         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~
11072         $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'
11073
11074         # Both c and cxx compiler support -rpath directly
11075         hardcode_libdir_flag_spec='-rpath $libdir'
11076       fi
11077       archive_cmds_need_lc='no'
11078       hardcode_libdir_separator=:
11079       ;;
11080
11081     solaris*)
11082       no_undefined_flag=' -z defs'
11083       if test "$GCC" = yes; then
11084         wlarc='${wl}'
11085         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11086         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11087           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11088       else
11089         case `$CC -V 2>&1` in
11090         *"Compilers 5.0"*)
11091           wlarc=''
11092           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11094           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11095           ;;
11096         *)
11097           wlarc='${wl}'
11098           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11099           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11100           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11101           ;;
11102         esac
11103       fi
11104       hardcode_libdir_flag_spec='-R$libdir'
11105       hardcode_shlibpath_var=no
11106       case $host_os in
11107       solaris2.[0-5] | solaris2.[0-5].*) ;;
11108       *)
11109         # The compiler driver will combine and reorder linker options,
11110         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11111         # but is careful enough not to reorder.
11112         # Supported since Solaris 2.6 (maybe 2.5.1?)
11113         if test "$GCC" = yes; then
11114           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11115         else
11116           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11117         fi
11118         ;;
11119       esac
11120       link_all_deplibs=yes
11121       ;;
11122
11123     sunos4*)
11124       if test "x$host_vendor" = xsequent; then
11125         # Use $CC to link under sequent, because it throws in some extra .o
11126         # files that make .init and .fini sections work.
11127         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11128       else
11129         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11130       fi
11131       hardcode_libdir_flag_spec='-L$libdir'
11132       hardcode_direct=yes
11133       hardcode_minus_L=yes
11134       hardcode_shlibpath_var=no
11135       ;;
11136
11137     sysv4)
11138       case $host_vendor in
11139         sni)
11140           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141           hardcode_direct=yes # is this really true???
11142         ;;
11143         siemens)
11144           ## LD is ld it makes a PLAMLIB
11145           ## CC just makes a GrossModule.
11146           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11147           reload_cmds='$CC -r -o $output$reload_objs'
11148           hardcode_direct=no
11149         ;;
11150         motorola)
11151           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11152           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11153         ;;
11154       esac
11155       runpath_var='LD_RUN_PATH'
11156       hardcode_shlibpath_var=no
11157       ;;
11158
11159     sysv4.3*)
11160       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161       hardcode_shlibpath_var=no
11162       export_dynamic_flag_spec='-Bexport'
11163       ;;
11164
11165     sysv4*MP*)
11166       if test -d /usr/nec; then
11167         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168         hardcode_shlibpath_var=no
11169         runpath_var=LD_RUN_PATH
11170         hardcode_runpath_var=yes
11171         ld_shlibs=yes
11172       fi
11173       ;;
11174
11175     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11176       no_undefined_flag='${wl}-z,text'
11177       archive_cmds_need_lc=no
11178       hardcode_shlibpath_var=no
11179       runpath_var='LD_RUN_PATH'
11180
11181       if test "$GCC" = yes; then
11182         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184       else
11185         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11187       fi
11188       ;;
11189
11190     sysv5* | sco3.2v5* | sco5v6*)
11191       # Note: We can NOT use -z defs as we might desire, because we do not
11192       # link with -lc, and that would cause any symbols used from libc to
11193       # always be unresolved, which means just about no library would
11194       # ever link correctly.  If we're not using GNU ld we use -z text
11195       # though, which does catch some bad symbols but isn't as heavy-handed
11196       # as -z defs.
11197       no_undefined_flag='${wl}-z,text'
11198       allow_undefined_flag='${wl}-z,nodefs'
11199       archive_cmds_need_lc=no
11200       hardcode_shlibpath_var=no
11201       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11202       hardcode_libdir_separator=':'
11203       link_all_deplibs=yes
11204       export_dynamic_flag_spec='${wl}-Bexport'
11205       runpath_var='LD_RUN_PATH'
11206
11207       if test "$GCC" = yes; then
11208         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11210       else
11211         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11212         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11213       fi
11214       ;;
11215
11216     uts4*)
11217       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11218       hardcode_libdir_flag_spec='-L$libdir'
11219       hardcode_shlibpath_var=no
11220       ;;
11221
11222     *)
11223       ld_shlibs=no
11224       ;;
11225     esac
11226
11227     if test x$host_vendor = xsni; then
11228       case $host in
11229       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11230         export_dynamic_flag_spec='${wl}-Blargedynsym'
11231         ;;
11232       esac
11233     fi
11234   fi
11235
11236 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11237 $as_echo "$ld_shlibs" >&6; }
11238 test "$ld_shlibs" = no && can_build_shared=no
11239
11240 with_gnu_ld=$with_gnu_ld
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 #
11257 # Do we need to explicitly link libc?
11258 #
11259 case "x$archive_cmds_need_lc" in
11260 x|xyes)
11261   # Assume -lc should be added
11262   archive_cmds_need_lc=yes
11263
11264   if test "$enable_shared" = yes && test "$GCC" = yes; then
11265     case $archive_cmds in
11266     *'~'*)
11267       # FIXME: we may have to deal with multi-command sequences.
11268       ;;
11269     '$CC '*)
11270       # Test whether the compiler implicitly links with -lc since on some
11271       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11272       # to ld, don't add -lc before -lgcc.
11273       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11274 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11275       $RM conftest*
11276       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11277
11278       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279   (eval $ac_compile) 2>&5
11280   ac_status=$?
11281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } 2>conftest.err; then
11283         soname=conftest
11284         lib=conftest
11285         libobjs=conftest.$ac_objext
11286         deplibs=
11287         wl=$lt_prog_compiler_wl
11288         pic_flag=$lt_prog_compiler_pic
11289         compiler_flags=-v
11290         linker_flags=-v
11291         verstring=
11292         output_objdir=.
11293         libname=conftest
11294         lt_save_allow_undefined_flag=$allow_undefined_flag
11295         allow_undefined_flag=
11296         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11297   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11298   ac_status=$?
11299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }
11301         then
11302           archive_cmds_need_lc=no
11303         else
11304           archive_cmds_need_lc=yes
11305         fi
11306         allow_undefined_flag=$lt_save_allow_undefined_flag
11307       else
11308         cat conftest.err 1>&5
11309       fi
11310       $RM conftest*
11311       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11312 $as_echo "$archive_cmds_need_lc" >&6; }
11313       ;;
11314     esac
11315   fi
11316   ;;
11317 esac
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
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11477
11478 if test "$GCC" = yes; then
11479   case $host_os in
11480     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11481     *) lt_awk_arg="/^libraries:/" ;;
11482   esac
11483   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11485     # if the path contains ";" then we assume it to be the separator
11486     # otherwise default to the standard path separator (i.e. ":") - it is
11487     # assumed that no part of a normal pathname contains ";" but that should
11488     # okay in the real world where ";" in dirpaths is itself problematic.
11489     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11490   else
11491     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11492   fi
11493   # Ok, now we have the path, separated by spaces, we can step through it
11494   # and add multilib dir if necessary.
11495   lt_tmp_lt_search_path_spec=
11496   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11497   for lt_sys_path in $lt_search_path_spec; do
11498     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11499       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11500     else
11501       test -d "$lt_sys_path" && \
11502         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11503     fi
11504   done
11505   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11506 BEGIN {RS=" "; FS="/|\n";} {
11507   lt_foo="";
11508   lt_count=0;
11509   for (lt_i = NF; lt_i > 0; lt_i--) {
11510     if ($lt_i != "" && $lt_i != ".") {
11511       if ($lt_i == "..") {
11512         lt_count++;
11513       } else {
11514         if (lt_count == 0) {
11515           lt_foo="/" $lt_i lt_foo;
11516         } else {
11517           lt_count--;
11518         }
11519       }
11520     }
11521   }
11522   if (lt_foo != "") { lt_freq[lt_foo]++; }
11523   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11524 }'`
11525   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11526 else
11527   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11528 fi
11529 library_names_spec=
11530 libname_spec='lib$name'
11531 soname_spec=
11532 shrext_cmds=".so"
11533 postinstall_cmds=
11534 postuninstall_cmds=
11535 finish_cmds=
11536 finish_eval=
11537 shlibpath_var=
11538 shlibpath_overrides_runpath=unknown
11539 version_type=none
11540 dynamic_linker="$host_os ld.so"
11541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11542 need_lib_prefix=unknown
11543 hardcode_into_libs=no
11544
11545 # when you set need_version to no, make sure it does not cause -set_version
11546 # flags to be left without arguments
11547 need_version=unknown
11548
11549 case $host_os in
11550 aix3*)
11551   version_type=linux
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11553   shlibpath_var=LIBPATH
11554
11555   # AIX 3 has no versioning support, so we append a major version to the name.
11556   soname_spec='${libname}${release}${shared_ext}$major'
11557   ;;
11558
11559 aix[4-9]*)
11560   version_type=linux
11561   need_lib_prefix=no
11562   need_version=no
11563   hardcode_into_libs=yes
11564   if test "$host_cpu" = ia64; then
11565     # AIX 5 supports IA64
11566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11567     shlibpath_var=LD_LIBRARY_PATH
11568   else
11569     # With GCC up to 2.95.x, collect2 would create an import file
11570     # for dependence libraries.  The import file would start with
11571     # the line `#! .'.  This would cause the generated library to
11572     # depend on `.', always an invalid library.  This was fixed in
11573     # development snapshots of GCC prior to 3.0.
11574     case $host_os in
11575       aix4 | aix4.[01] | aix4.[01].*)
11576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11577            echo ' yes '
11578            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11579         :
11580       else
11581         can_build_shared=no
11582       fi
11583       ;;
11584     esac
11585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11586     # soname into executable. Probably we can add versioning support to
11587     # collect2, so additional links can be useful in future.
11588     if test "$aix_use_runtimelinking" = yes; then
11589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11590       # instead of lib<name>.a to let people know that these are not
11591       # typical AIX shared libraries.
11592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593     else
11594       # We preserve .a as extension for shared libraries through AIX4.2
11595       # and later when we are not doing run time linking.
11596       library_names_spec='${libname}${release}.a $libname.a'
11597       soname_spec='${libname}${release}${shared_ext}$major'
11598     fi
11599     shlibpath_var=LIBPATH
11600   fi
11601   ;;
11602
11603 amigaos*)
11604   case $host_cpu in
11605   powerpc)
11606     # Since July 2007 AmigaOS4 officially supports .so libraries.
11607     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609     ;;
11610   m68k)
11611     library_names_spec='$libname.ixlibrary $libname.a'
11612     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11613     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'
11614     ;;
11615   esac
11616   ;;
11617
11618 beos*)
11619   library_names_spec='${libname}${shared_ext}'
11620   dynamic_linker="$host_os ld.so"
11621   shlibpath_var=LIBRARY_PATH
11622   ;;
11623
11624 bsdi[45]*)
11625   version_type=linux
11626   need_version=no
11627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628   soname_spec='${libname}${release}${shared_ext}$major'
11629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11630   shlibpath_var=LD_LIBRARY_PATH
11631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11633   # the default ld.so.conf also contains /usr/contrib/lib and
11634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11635   # libtool to hard-code these into programs
11636   ;;
11637
11638 cygwin* | mingw* | pw32* | cegcc*)
11639   version_type=windows
11640   shrext_cmds=".dll"
11641   need_version=no
11642   need_lib_prefix=no
11643
11644   case $GCC,$host_os in
11645   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11646     library_names_spec='$libname.dll.a'
11647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11648     postinstall_cmds='base_file=`basename \${file}`~
11649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11650       dldir=$destdir/`dirname \$dlpath`~
11651       test -d \$dldir || mkdir -p \$dldir~
11652       $install_prog $dir/$dlname \$dldir/$dlname~
11653       chmod a+x \$dldir/$dlname~
11654       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11655         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11656       fi'
11657     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11658       dlpath=$dir/\$dldll~
11659        $RM \$dlpath'
11660     shlibpath_overrides_runpath=yes
11661
11662     case $host_os in
11663     cygwin*)
11664       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11665       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11666       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11667       ;;
11668     mingw* | cegcc*)
11669       # MinGW DLLs use traditional 'lib' prefix
11670       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11671       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11672       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11673         # It is most probably a Windows format PATH printed by
11674         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11675         # path with ; separators, and with drive letters. We can handle the
11676         # drive letters (cygwin fileutils understands them), so leave them,
11677         # especially as we might pass files found there to a mingw objdump,
11678         # which wouldn't understand a cygwinified path. Ahh.
11679         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11680       else
11681         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11682       fi
11683       ;;
11684     pw32*)
11685       # pw32 DLLs use 'pw' prefix rather than 'lib'
11686       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11687       ;;
11688     esac
11689     ;;
11690
11691   *)
11692     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11693     ;;
11694   esac
11695   dynamic_linker='Win32 ld.exe'
11696   # FIXME: first we should search . and the directory the executable is in
11697   shlibpath_var=PATH
11698   ;;
11699
11700 darwin* | rhapsody*)
11701   dynamic_linker="$host_os dyld"
11702   version_type=darwin
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11706   soname_spec='${libname}${release}${major}$shared_ext'
11707   shlibpath_overrides_runpath=yes
11708   shlibpath_var=DYLD_LIBRARY_PATH
11709   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11710
11711   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11713   ;;
11714
11715 dgux*)
11716   version_type=linux
11717   need_lib_prefix=no
11718   need_version=no
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11720   soname_spec='${libname}${release}${shared_ext}$major'
11721   shlibpath_var=LD_LIBRARY_PATH
11722   ;;
11723
11724 freebsd1*)
11725   dynamic_linker=no
11726   ;;
11727
11728 freebsd* | dragonfly*)
11729   # DragonFly does not have aout.  When/if they implement a new
11730   # versioning mechanism, adjust this.
11731   if test -x /usr/bin/objformat; then
11732     objformat=`/usr/bin/objformat`
11733   else
11734     case $host_os in
11735     freebsd[123]*) objformat=aout ;;
11736     *) objformat=elf ;;
11737     esac
11738   fi
11739   version_type=freebsd-$objformat
11740   case $version_type in
11741     freebsd-elf*)
11742       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11743       need_version=no
11744       need_lib_prefix=no
11745       ;;
11746     freebsd-*)
11747       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11748       need_version=yes
11749       ;;
11750   esac
11751   shlibpath_var=LD_LIBRARY_PATH
11752   case $host_os in
11753   freebsd2*)
11754     shlibpath_overrides_runpath=yes
11755     ;;
11756   freebsd3.[01]* | freebsdelf3.[01]*)
11757     shlibpath_overrides_runpath=yes
11758     hardcode_into_libs=yes
11759     ;;
11760   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11761   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11762     shlibpath_overrides_runpath=no
11763     hardcode_into_libs=yes
11764     ;;
11765   *) # from 4.6 on, and DragonFly
11766     shlibpath_overrides_runpath=yes
11767     hardcode_into_libs=yes
11768     ;;
11769   esac
11770   ;;
11771
11772 gnu*)
11773   version_type=linux
11774   need_lib_prefix=no
11775   need_version=no
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11777   soname_spec='${libname}${release}${shared_ext}$major'
11778   shlibpath_var=LD_LIBRARY_PATH
11779   hardcode_into_libs=yes
11780   ;;
11781
11782 hpux9* | hpux10* | hpux11*)
11783   # Give a soname corresponding to the major version so that dld.sl refuses to
11784   # link against other versions.
11785   version_type=sunos
11786   need_lib_prefix=no
11787   need_version=no
11788   case $host_cpu in
11789   ia64*)
11790     shrext_cmds='.so'
11791     hardcode_into_libs=yes
11792     dynamic_linker="$host_os dld.so"
11793     shlibpath_var=LD_LIBRARY_PATH
11794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796     soname_spec='${libname}${release}${shared_ext}$major'
11797     if test "X$HPUX_IA64_MODE" = X32; then
11798       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11799     else
11800       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11801     fi
11802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11803     ;;
11804   hppa*64*)
11805     shrext_cmds='.sl'
11806     hardcode_into_libs=yes
11807     dynamic_linker="$host_os dld.sl"
11808     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11809     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811     soname_spec='${libname}${release}${shared_ext}$major'
11812     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11814     ;;
11815   *)
11816     shrext_cmds='.sl'
11817     dynamic_linker="$host_os dld.sl"
11818     shlibpath_var=SHLIB_PATH
11819     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821     soname_spec='${libname}${release}${shared_ext}$major'
11822     ;;
11823   esac
11824   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11825   postinstall_cmds='chmod 555 $lib'
11826   ;;
11827
11828 interix[3-9]*)
11829   version_type=linux
11830   need_lib_prefix=no
11831   need_version=no
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11833   soname_spec='${libname}${release}${shared_ext}$major'
11834   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   shlibpath_overrides_runpath=no
11837   hardcode_into_libs=yes
11838   ;;
11839
11840 irix5* | irix6* | nonstopux*)
11841   case $host_os in
11842     nonstopux*) version_type=nonstopux ;;
11843     *)
11844         if test "$lt_cv_prog_gnu_ld" = yes; then
11845                 version_type=linux
11846         else
11847                 version_type=irix
11848         fi ;;
11849   esac
11850   need_lib_prefix=no
11851   need_version=no
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11854   case $host_os in
11855   irix5* | nonstopux*)
11856     libsuff= shlibsuff=
11857     ;;
11858   *)
11859     case $LD in # libtool.m4 will add one of these switches to LD
11860     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11861       libsuff= shlibsuff= libmagic=32-bit;;
11862     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11863       libsuff=32 shlibsuff=N32 libmagic=N32;;
11864     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11865       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11866     *) libsuff= shlibsuff= libmagic=never-match;;
11867     esac
11868     ;;
11869   esac
11870   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11871   shlibpath_overrides_runpath=no
11872   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11873   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11874   hardcode_into_libs=yes
11875   ;;
11876
11877 # No shared lib support for Linux oldld, aout, or coff.
11878 linux*oldld* | linux*aout* | linux*coff*)
11879   dynamic_linker=no
11880   ;;
11881
11882 # This must be Linux ELF.
11883 linux* | k*bsd*-gnu)
11884   version_type=linux
11885   need_lib_prefix=no
11886   need_version=no
11887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11888   soname_spec='${libname}${release}${shared_ext}$major'
11889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11890   shlibpath_var=LD_LIBRARY_PATH
11891   shlibpath_overrides_runpath=no
11892   # Some binutils ld are patched to set DT_RUNPATH
11893   save_LDFLAGS=$LDFLAGS
11894   save_libdir=$libdir
11895   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11896        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11897   cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 int
11905 main ()
11906 {
11907
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11919 $as_echo "$ac_try_echo") >&5
11920   (eval "$ac_link") 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } && {
11927          test -z "$ac_c_werror_flag" ||
11928          test ! -s conftest.err
11929        } && test -s conftest$ac_exeext && {
11930          test "$cross_compiling" = yes ||
11931          $as_test_x conftest$ac_exeext
11932        }; then
11933   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11934   shlibpath_overrides_runpath=yes
11935 fi
11936
11937 else
11938   $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941
11942 fi
11943
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946       conftest$ac_exeext conftest.$ac_ext
11947   LDFLAGS=$save_LDFLAGS
11948   libdir=$save_libdir
11949
11950   # This implies no fast_install, which is unacceptable.
11951   # Some rework will be needed to allow for fast_install
11952   # before this can be enabled.
11953   hardcode_into_libs=yes
11954
11955   # Append ld.so.conf contents to the search path
11956   if test -f /etc/ld.so.conf; then
11957     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' ' '`
11958     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11959   fi
11960
11961   # We used to test for /lib/ld.so.1 and disable shared libraries on
11962   # powerpc, because MkLinux only supported shared libraries with the
11963   # GNU dynamic linker.  Since this was broken with cross compilers,
11964   # most powerpc-linux boxes support dynamic linking these days and
11965   # people can always --disable-shared, the test was removed, and we
11966   # assume the GNU/Linux dynamic linker is in use.
11967   dynamic_linker='GNU/Linux ld.so'
11968   ;;
11969
11970 netbsd*)
11971   version_type=sunos
11972   need_lib_prefix=no
11973   need_version=no
11974   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11976     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977     dynamic_linker='NetBSD (a.out) ld.so'
11978   else
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     dynamic_linker='NetBSD ld.elf_so'
11982   fi
11983   shlibpath_var=LD_LIBRARY_PATH
11984   shlibpath_overrides_runpath=yes
11985   hardcode_into_libs=yes
11986   ;;
11987
11988 newsos6)
11989   version_type=linux
11990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991   shlibpath_var=LD_LIBRARY_PATH
11992   shlibpath_overrides_runpath=yes
11993   ;;
11994
11995 *nto* | *qnx*)
11996   version_type=qnx
11997   need_lib_prefix=no
11998   need_version=no
11999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000   soname_spec='${libname}${release}${shared_ext}$major'
12001   shlibpath_var=LD_LIBRARY_PATH
12002   shlibpath_overrides_runpath=no
12003   hardcode_into_libs=yes
12004   dynamic_linker='ldqnx.so'
12005   ;;
12006
12007 openbsd*)
12008   version_type=sunos
12009   sys_lib_dlsearch_path_spec="/usr/lib"
12010   need_lib_prefix=no
12011   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12012   case $host_os in
12013     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12014     *)                          need_version=no  ;;
12015   esac
12016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018   shlibpath_var=LD_LIBRARY_PATH
12019   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12020     case $host_os in
12021       openbsd2.[89] | openbsd2.[89].*)
12022         shlibpath_overrides_runpath=no
12023         ;;
12024       *)
12025         shlibpath_overrides_runpath=yes
12026         ;;
12027       esac
12028   else
12029     shlibpath_overrides_runpath=yes
12030   fi
12031   ;;
12032
12033 os2*)
12034   libname_spec='$name'
12035   shrext_cmds=".dll"
12036   need_lib_prefix=no
12037   library_names_spec='$libname${shared_ext} $libname.a'
12038   dynamic_linker='OS/2 ld.exe'
12039   shlibpath_var=LIBPATH
12040   ;;
12041
12042 osf3* | osf4* | osf5*)
12043   version_type=osf
12044   need_lib_prefix=no
12045   need_version=no
12046   soname_spec='${libname}${release}${shared_ext}$major'
12047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048   shlibpath_var=LD_LIBRARY_PATH
12049   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12050   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12051   ;;
12052
12053 rdos*)
12054   dynamic_linker=no
12055   ;;
12056
12057 solaris*)
12058   version_type=linux
12059   need_lib_prefix=no
12060   need_version=no
12061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062   soname_spec='${libname}${release}${shared_ext}$major'
12063   shlibpath_var=LD_LIBRARY_PATH
12064   shlibpath_overrides_runpath=yes
12065   hardcode_into_libs=yes
12066   # ldd complains unless libraries are executable
12067   postinstall_cmds='chmod +x $lib'
12068   ;;
12069
12070 sunos4*)
12071   version_type=sunos
12072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12074   shlibpath_var=LD_LIBRARY_PATH
12075   shlibpath_overrides_runpath=yes
12076   if test "$with_gnu_ld" = yes; then
12077     need_lib_prefix=no
12078   fi
12079   need_version=yes
12080   ;;
12081
12082 sysv4 | sysv4.3*)
12083   version_type=linux
12084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085   soname_spec='${libname}${release}${shared_ext}$major'
12086   shlibpath_var=LD_LIBRARY_PATH
12087   case $host_vendor in
12088     sni)
12089       shlibpath_overrides_runpath=no
12090       need_lib_prefix=no
12091       runpath_var=LD_RUN_PATH
12092       ;;
12093     siemens)
12094       need_lib_prefix=no
12095       ;;
12096     motorola)
12097       need_lib_prefix=no
12098       need_version=no
12099       shlibpath_overrides_runpath=no
12100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12101       ;;
12102   esac
12103   ;;
12104
12105 sysv4*MP*)
12106   if test -d /usr/nec ;then
12107     version_type=linux
12108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12109     soname_spec='$libname${shared_ext}.$major'
12110     shlibpath_var=LD_LIBRARY_PATH
12111   fi
12112   ;;
12113
12114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12115   version_type=freebsd-elf
12116   need_lib_prefix=no
12117   need_version=no
12118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12119   soname_spec='${libname}${release}${shared_ext}$major'
12120   shlibpath_var=LD_LIBRARY_PATH
12121   shlibpath_overrides_runpath=yes
12122   hardcode_into_libs=yes
12123   if test "$with_gnu_ld" = yes; then
12124     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12125   else
12126     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12127     case $host_os in
12128       sco3.2v5*)
12129         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12130         ;;
12131     esac
12132   fi
12133   sys_lib_dlsearch_path_spec='/usr/lib'
12134   ;;
12135
12136 tpf*)
12137   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12138   version_type=linux
12139   need_lib_prefix=no
12140   need_version=no
12141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142   shlibpath_var=LD_LIBRARY_PATH
12143   shlibpath_overrides_runpath=no
12144   hardcode_into_libs=yes
12145   ;;
12146
12147 uts4*)
12148   version_type=linux
12149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150   soname_spec='${libname}${release}${shared_ext}$major'
12151   shlibpath_var=LD_LIBRARY_PATH
12152   ;;
12153
12154 *)
12155   dynamic_linker=no
12156   ;;
12157 esac
12158 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12159 $as_echo "$dynamic_linker" >&6; }
12160 test "$dynamic_linker" = no && can_build_shared=no
12161
12162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12163 if test "$GCC" = yes; then
12164   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12165 fi
12166
12167 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12168   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12169 fi
12170 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12171   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12172 fi
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
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12261 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12262 hardcode_action=
12263 if test -n "$hardcode_libdir_flag_spec" ||
12264    test -n "$runpath_var" ||
12265    test "X$hardcode_automatic" = "Xyes" ; then
12266
12267   # We can hardcode non-existent directories.
12268   if test "$hardcode_direct" != no &&
12269      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12270      # have to relink, otherwise we might link with an installed library
12271      # when we should be linking with a yet-to-be-installed one
12272      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12273      test "$hardcode_minus_L" != no; then
12274     # Linking always hardcodes the temporary library directory.
12275     hardcode_action=relink
12276   else
12277     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12278     hardcode_action=immediate
12279   fi
12280 else
12281   # We cannot hardcode anything, or else we can only hardcode existing
12282   # directories.
12283   hardcode_action=unsupported
12284 fi
12285 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12286 $as_echo "$hardcode_action" >&6; }
12287
12288 if test "$hardcode_action" = relink ||
12289    test "$inherit_rpath" = yes; then
12290   # Fast installation is not supported
12291   enable_fast_install=no
12292 elif test "$shlibpath_overrides_runpath" = yes ||
12293      test "$enable_shared" = no; then
12294   # Fast installation is not necessary
12295   enable_fast_install=needless
12296 fi
12297
12298
12299
12300
12301
12302
12303   if test "x$enable_dlopen" != xyes; then
12304   enable_dlopen=unknown
12305   enable_dlopen_self=unknown
12306   enable_dlopen_self_static=unknown
12307 else
12308   lt_cv_dlopen=no
12309   lt_cv_dlopen_libs=
12310
12311   case $host_os in
12312   beos*)
12313     lt_cv_dlopen="load_add_on"
12314     lt_cv_dlopen_libs=
12315     lt_cv_dlopen_self=yes
12316     ;;
12317
12318   mingw* | pw32* | cegcc*)
12319     lt_cv_dlopen="LoadLibrary"
12320     lt_cv_dlopen_libs=
12321     ;;
12322
12323   cygwin*)
12324     lt_cv_dlopen="dlopen"
12325     lt_cv_dlopen_libs=
12326     ;;
12327
12328   darwin*)
12329   # if libdl is installed we need to link against it
12330     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12333   $as_echo_n "(cached) " >&6
12334 else
12335   ac_check_lib_save_LIBS=$LIBS
12336 LIBS="-ldl  $LIBS"
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345    Use char because int might match the return type of a GCC
12346    builtin and then its argument prototype would still apply.  */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dlopen ();
12351 int
12352 main ()
12353 {
12354 return dlopen ();
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367   (eval "$ac_link") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && {
12374          test -z "$ac_c_werror_flag" ||
12375          test ! -s conftest.err
12376        } && test -s conftest$ac_exeext && {
12377          test "$cross_compiling" = yes ||
12378          $as_test_x conftest$ac_exeext
12379        }; then
12380   ac_cv_lib_dl_dlopen=yes
12381 else
12382   $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385         ac_cv_lib_dl_dlopen=no
12386 fi
12387
12388 rm -rf conftest.dSYM
12389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12390       conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12392 fi
12393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12395 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12397 else
12398
12399     lt_cv_dlopen="dyld"
12400     lt_cv_dlopen_libs=
12401     lt_cv_dlopen_self=yes
12402
12403 fi
12404
12405     ;;
12406
12407   *)
12408     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12409 $as_echo_n "checking for shl_load... " >&6; }
12410 if test "${ac_cv_func_shl_load+set}" = set; then
12411   $as_echo_n "(cached) " >&6
12412 else
12413   cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12421 #define shl_load innocuous_shl_load
12422
12423 /* System header to define __stub macros and hopefully few prototypes,
12424     which can conflict with char shl_load (); below.
12425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426     <limits.h> exists even on freestanding compilers.  */
12427
12428 #ifdef __STDC__
12429 # include <limits.h>
12430 #else
12431 # include <assert.h>
12432 #endif
12433
12434 #undef shl_load
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437    Use char because int might match the return type of a GCC
12438    builtin and then its argument prototype would still apply.  */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char shl_load ();
12443 /* The GNU C library defines this for functions which it implements
12444     to always fail with ENOSYS.  Some functions are actually named
12445     something starting with __ and the normal name is an alias.  */
12446 #if defined __stub_shl_load || defined __stub___shl_load
12447 choke me
12448 #endif
12449
12450 int
12451 main ()
12452 {
12453 return shl_load ();
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466   (eval "$ac_link") 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } && {
12473          test -z "$ac_c_werror_flag" ||
12474          test ! -s conftest.err
12475        } && test -s conftest$ac_exeext && {
12476          test "$cross_compiling" = yes ||
12477          $as_test_x conftest$ac_exeext
12478        }; then
12479   ac_cv_func_shl_load=yes
12480 else
12481   $as_echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484         ac_cv_func_shl_load=no
12485 fi
12486
12487 rm -rf conftest.dSYM
12488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12489       conftest$ac_exeext conftest.$ac_ext
12490 fi
12491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12492 $as_echo "$ac_cv_func_shl_load" >&6; }
12493 if test "x$ac_cv_func_shl_load" = x""yes; then
12494   lt_cv_dlopen="shl_load"
12495 else
12496   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12497 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12498 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12499   $as_echo_n "(cached) " >&6
12500 else
12501   ac_check_lib_save_LIBS=$LIBS
12502 LIBS="-ldld  $LIBS"
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h.  */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h.  */
12509
12510 /* Override any GCC internal prototype to avoid an error.
12511    Use char because int might match the return type of a GCC
12512    builtin and then its argument prototype would still apply.  */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 char shl_load ();
12517 int
12518 main ()
12519 {
12520 return shl_load ();
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12532 $as_echo "$ac_try_echo") >&5
12533   (eval "$ac_link") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } && {
12540          test -z "$ac_c_werror_flag" ||
12541          test ! -s conftest.err
12542        } && test -s conftest$ac_exeext && {
12543          test "$cross_compiling" = yes ||
12544          $as_test_x conftest$ac_exeext
12545        }; then
12546   ac_cv_lib_dld_shl_load=yes
12547 else
12548   $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         ac_cv_lib_dld_shl_load=no
12552 fi
12553
12554 rm -rf conftest.dSYM
12555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12556       conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12560 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12561 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12562   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12563 else
12564   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12565 $as_echo_n "checking for dlopen... " >&6; }
12566 if test "${ac_cv_func_dlopen+set}" = set; then
12567   $as_echo_n "(cached) " >&6
12568 else
12569   cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12577 #define dlopen innocuous_dlopen
12578
12579 /* System header to define __stub macros and hopefully few prototypes,
12580     which can conflict with char dlopen (); below.
12581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582     <limits.h> exists even on freestanding compilers.  */
12583
12584 #ifdef __STDC__
12585 # include <limits.h>
12586 #else
12587 # include <assert.h>
12588 #endif
12589
12590 #undef dlopen
12591
12592 /* Override any GCC internal prototype to avoid an error.
12593    Use char because int might match the return type of a GCC
12594    builtin and then its argument prototype would still apply.  */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char dlopen ();
12599 /* The GNU C library defines this for functions which it implements
12600     to always fail with ENOSYS.  Some functions are actually named
12601     something starting with __ and the normal name is an alias.  */
12602 #if defined __stub_dlopen || defined __stub___dlopen
12603 choke me
12604 #endif
12605
12606 int
12607 main ()
12608 {
12609 return dlopen ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622   (eval "$ac_link") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } && {
12629          test -z "$ac_c_werror_flag" ||
12630          test ! -s conftest.err
12631        } && test -s conftest$ac_exeext && {
12632          test "$cross_compiling" = yes ||
12633          $as_test_x conftest$ac_exeext
12634        }; then
12635   ac_cv_func_dlopen=yes
12636 else
12637   $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         ac_cv_func_dlopen=no
12641 fi
12642
12643 rm -rf conftest.dSYM
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645       conftest$ac_exeext conftest.$ac_ext
12646 fi
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12648 $as_echo "$ac_cv_func_dlopen" >&6; }
12649 if test "x$ac_cv_func_dlopen" = x""yes; then
12650   lt_cv_dlopen="dlopen"
12651 else
12652   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12655   $as_echo_n "(cached) " >&6
12656 else
12657   ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-ldl  $LIBS"
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667    Use char because int might match the return type of a GCC
12668    builtin and then its argument prototype would still apply.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char dlopen ();
12673 int
12674 main ()
12675 {
12676 return dlopen ();
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (ac_try="$ac_link"
12683 case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12688 $as_echo "$ac_try_echo") >&5
12689   (eval "$ac_link") 2>conftest.er1
12690   ac_status=$?
12691   grep -v '^ *+' conftest.er1 >conftest.err
12692   rm -f conftest.er1
12693   cat conftest.err >&5
12694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } && {
12696          test -z "$ac_c_werror_flag" ||
12697          test ! -s conftest.err
12698        } && test -s conftest$ac_exeext && {
12699          test "$cross_compiling" = yes ||
12700          $as_test_x conftest$ac_exeext
12701        }; then
12702   ac_cv_lib_dl_dlopen=yes
12703 else
12704   $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707         ac_cv_lib_dl_dlopen=no
12708 fi
12709
12710 rm -rf conftest.dSYM
12711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12712       conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12717 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12718   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12719 else
12720   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12721 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12722 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12723   $as_echo_n "(cached) " >&6
12724 else
12725   ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lsvld  $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733
12734 /* Override any GCC internal prototype to avoid an error.
12735    Use char because int might match the return type of a GCC
12736    builtin and then its argument prototype would still apply.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char dlopen ();
12741 int
12742 main ()
12743 {
12744 return dlopen ();
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757   (eval "$ac_link") 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } && {
12764          test -z "$ac_c_werror_flag" ||
12765          test ! -s conftest.err
12766        } && test -s conftest$ac_exeext && {
12767          test "$cross_compiling" = yes ||
12768          $as_test_x conftest$ac_exeext
12769        }; then
12770   ac_cv_lib_svld_dlopen=yes
12771 else
12772   $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775         ac_cv_lib_svld_dlopen=no
12776 fi
12777
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12780       conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12785 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12787 else
12788   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12791   $as_echo_n "(cached) " >&6
12792 else
12793   ac_check_lib_save_LIBS=$LIBS
12794 LIBS="-ldld  $LIBS"
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801
12802 /* Override any GCC internal prototype to avoid an error.
12803    Use char because int might match the return type of a GCC
12804    builtin and then its argument prototype would still apply.  */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char dld_link ();
12809 int
12810 main ()
12811 {
12812 return dld_link ();
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12824 $as_echo "$ac_try_echo") >&5
12825   (eval "$ac_link") 2>conftest.er1
12826   ac_status=$?
12827   grep -v '^ *+' conftest.er1 >conftest.err
12828   rm -f conftest.er1
12829   cat conftest.err >&5
12830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); } && {
12832          test -z "$ac_c_werror_flag" ||
12833          test ! -s conftest.err
12834        } && test -s conftest$ac_exeext && {
12835          test "$cross_compiling" = yes ||
12836          $as_test_x conftest$ac_exeext
12837        }; then
12838   ac_cv_lib_dld_dld_link=yes
12839 else
12840   $as_echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843         ac_cv_lib_dld_dld_link=no
12844 fi
12845
12846 rm -rf conftest.dSYM
12847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12848       conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS
12850 fi
12851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12853 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12854   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12855 fi
12856
12857
12858 fi
12859
12860
12861 fi
12862
12863
12864 fi
12865
12866
12867 fi
12868
12869
12870 fi
12871
12872     ;;
12873   esac
12874
12875   if test "x$lt_cv_dlopen" != xno; then
12876     enable_dlopen=yes
12877   else
12878     enable_dlopen=no
12879   fi
12880
12881   case $lt_cv_dlopen in
12882   dlopen)
12883     save_CPPFLAGS="$CPPFLAGS"
12884     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12885
12886     save_LDFLAGS="$LDFLAGS"
12887     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12888
12889     save_LIBS="$LIBS"
12890     LIBS="$lt_cv_dlopen_libs $LIBS"
12891
12892     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12894 if test "${lt_cv_dlopen_self+set}" = set; then
12895   $as_echo_n "(cached) " >&6
12896 else
12897           if test "$cross_compiling" = yes; then :
12898   lt_cv_dlopen_self=cross
12899 else
12900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12901   lt_status=$lt_dlunknown
12902   cat > conftest.$ac_ext <<_LT_EOF
12903 #line 12903 "configure"
12904 #include "confdefs.h"
12905
12906 #if HAVE_DLFCN_H
12907 #include <dlfcn.h>
12908 #endif
12909
12910 #include <stdio.h>
12911
12912 #ifdef RTLD_GLOBAL
12913 #  define LT_DLGLOBAL           RTLD_GLOBAL
12914 #else
12915 #  ifdef DL_GLOBAL
12916 #    define LT_DLGLOBAL         DL_GLOBAL
12917 #  else
12918 #    define LT_DLGLOBAL         0
12919 #  endif
12920 #endif
12921
12922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12923    find out it does not work in some platform. */
12924 #ifndef LT_DLLAZY_OR_NOW
12925 #  ifdef RTLD_LAZY
12926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12927 #  else
12928 #    ifdef DL_LAZY
12929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12930 #    else
12931 #      ifdef RTLD_NOW
12932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12933 #      else
12934 #        ifdef DL_NOW
12935 #          define LT_DLLAZY_OR_NOW      DL_NOW
12936 #        else
12937 #          define LT_DLLAZY_OR_NOW      0
12938 #        endif
12939 #      endif
12940 #    endif
12941 #  endif
12942 #endif
12943
12944 void fnord() { int i=42;}
12945 int main ()
12946 {
12947   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948   int status = $lt_dlunknown;
12949
12950   if (self)
12951     {
12952       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12953       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12954       /* dlclose (self); */
12955     }
12956   else
12957     puts (dlerror ());
12958
12959   return status;
12960 }
12961 _LT_EOF
12962   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963   (eval $ac_link) 2>&5
12964   ac_status=$?
12965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12967     (./conftest; exit; ) >&5 2>/dev/null
12968     lt_status=$?
12969     case x$lt_status in
12970       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12971       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12972       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12973     esac
12974   else :
12975     # compilation failed
12976     lt_cv_dlopen_self=no
12977   fi
12978 fi
12979 rm -fr conftest*
12980
12981
12982 fi
12983 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12984 $as_echo "$lt_cv_dlopen_self" >&6; }
12985
12986     if test "x$lt_cv_dlopen_self" = xyes; then
12987       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12988       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12990 if test "${lt_cv_dlopen_self_static+set}" = set; then
12991   $as_echo_n "(cached) " >&6
12992 else
12993           if test "$cross_compiling" = yes; then :
12994   lt_cv_dlopen_self_static=cross
12995 else
12996   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12997   lt_status=$lt_dlunknown
12998   cat > conftest.$ac_ext <<_LT_EOF
12999 #line 12999 "configure"
13000 #include "confdefs.h"
13001
13002 #if HAVE_DLFCN_H
13003 #include <dlfcn.h>
13004 #endif
13005
13006 #include <stdio.h>
13007
13008 #ifdef RTLD_GLOBAL
13009 #  define LT_DLGLOBAL           RTLD_GLOBAL
13010 #else
13011 #  ifdef DL_GLOBAL
13012 #    define LT_DLGLOBAL         DL_GLOBAL
13013 #  else
13014 #    define LT_DLGLOBAL         0
13015 #  endif
13016 #endif
13017
13018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13019    find out it does not work in some platform. */
13020 #ifndef LT_DLLAZY_OR_NOW
13021 #  ifdef RTLD_LAZY
13022 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13023 #  else
13024 #    ifdef DL_LAZY
13025 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13026 #    else
13027 #      ifdef RTLD_NOW
13028 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13029 #      else
13030 #        ifdef DL_NOW
13031 #          define LT_DLLAZY_OR_NOW      DL_NOW
13032 #        else
13033 #          define LT_DLLAZY_OR_NOW      0
13034 #        endif
13035 #      endif
13036 #    endif
13037 #  endif
13038 #endif
13039
13040 void fnord() { int i=42;}
13041 int main ()
13042 {
13043   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13044   int status = $lt_dlunknown;
13045
13046   if (self)
13047     {
13048       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13049       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13050       /* dlclose (self); */
13051     }
13052   else
13053     puts (dlerror ());
13054
13055   return status;
13056 }
13057 _LT_EOF
13058   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059   (eval $ac_link) 2>&5
13060   ac_status=$?
13061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13063     (./conftest; exit; ) >&5 2>/dev/null
13064     lt_status=$?
13065     case x$lt_status in
13066       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13067       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13068       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13069     esac
13070   else :
13071     # compilation failed
13072     lt_cv_dlopen_self_static=no
13073   fi
13074 fi
13075 rm -fr conftest*
13076
13077
13078 fi
13079 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13080 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13081     fi
13082
13083     CPPFLAGS="$save_CPPFLAGS"
13084     LDFLAGS="$save_LDFLAGS"
13085     LIBS="$save_LIBS"
13086     ;;
13087   esac
13088
13089   case $lt_cv_dlopen_self in
13090   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13091   *) enable_dlopen_self=unknown ;;
13092   esac
13093
13094   case $lt_cv_dlopen_self_static in
13095   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13096   *) enable_dlopen_self_static=unknown ;;
13097   esac
13098 fi
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116 striplib=
13117 old_striplib=
13118 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13119 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13120 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13121   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13122   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13123   { $as_echo "$as_me:$LINENO: result: yes" >&5
13124 $as_echo "yes" >&6; }
13125 else
13126 # FIXME - insert some real tests, host_os isn't really good enough
13127   case $host_os in
13128   darwin*)
13129     if test -n "$STRIP" ; then
13130       striplib="$STRIP -x"
13131       old_striplib="$STRIP -S"
13132       { $as_echo "$as_me:$LINENO: result: yes" >&5
13133 $as_echo "yes" >&6; }
13134     else
13135       { $as_echo "$as_me:$LINENO: result: no" >&5
13136 $as_echo "no" >&6; }
13137     fi
13138     ;;
13139   *)
13140     { $as_echo "$as_me:$LINENO: result: no" >&5
13141 $as_echo "no" >&6; }
13142     ;;
13143   esac
13144 fi
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157   # Report which library types will actually be built
13158   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13160   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13161 $as_echo "$can_build_shared" >&6; }
13162
13163   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13164 $as_echo_n "checking whether to build shared libraries... " >&6; }
13165   test "$can_build_shared" = "no" && enable_shared=no
13166
13167   # On AIX, shared libraries and static libraries use the same namespace, and
13168   # are all built from PIC.
13169   case $host_os in
13170   aix3*)
13171     test "$enable_shared" = yes && enable_static=no
13172     if test -n "$RANLIB"; then
13173       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13174       postinstall_cmds='$RANLIB $lib'
13175     fi
13176     ;;
13177
13178   aix[4-9]*)
13179     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13180       test "$enable_shared" = yes && enable_static=no
13181     fi
13182     ;;
13183   esac
13184   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13185 $as_echo "$enable_shared" >&6; }
13186
13187   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13188 $as_echo_n "checking whether to build static libraries... " >&6; }
13189   # Make sure either enable_shared or enable_static is yes.
13190   test "$enable_shared" = yes || enable_static=yes
13191   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13192 $as_echo "$enable_static" >&6; }
13193
13194
13195
13196
13197 fi
13198 ac_ext=c
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13203
13204 CC="$lt_save_CC"
13205
13206
13207 ac_ext=cpp
13208 ac_cpp='$CXXCPP $CPPFLAGS'
13209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13212
13213 archive_cmds_need_lc_CXX=no
13214 allow_undefined_flag_CXX=
13215 always_export_symbols_CXX=no
13216 archive_expsym_cmds_CXX=
13217 compiler_needs_object_CXX=no
13218 export_dynamic_flag_spec_CXX=
13219 hardcode_direct_CXX=no
13220 hardcode_direct_absolute_CXX=no
13221 hardcode_libdir_flag_spec_CXX=
13222 hardcode_libdir_flag_spec_ld_CXX=
13223 hardcode_libdir_separator_CXX=
13224 hardcode_minus_L_CXX=no
13225 hardcode_shlibpath_var_CXX=unsupported
13226 hardcode_automatic_CXX=no
13227 inherit_rpath_CXX=no
13228 module_cmds_CXX=
13229 module_expsym_cmds_CXX=
13230 link_all_deplibs_CXX=unknown
13231 old_archive_cmds_CXX=$old_archive_cmds
13232 no_undefined_flag_CXX=
13233 whole_archive_flag_spec_CXX=
13234 enable_shared_with_static_runtimes_CXX=no
13235
13236 # Source file extension for C++ test sources.
13237 ac_ext=cpp
13238
13239 # Object file extension for compiled C++ test sources.
13240 objext=o
13241 objext_CXX=$objext
13242
13243 # No sense in running all these tests if we already determined that
13244 # the CXX compiler isn't working.  Some variables (like enable_shared)
13245 # are currently assumed to apply to all compilers on this platform,
13246 # and will be corrupted by setting them based on a non-working compiler.
13247 if test "$_lt_caught_CXX_error" != yes; then
13248   # Code to be used in simple compile tests
13249   lt_simple_compile_test_code="int some_variable = 0;"
13250
13251   # Code to be used in simple link tests
13252   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13253
13254   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13255
13256
13257
13258
13259
13260
13261 # If no C compiler was specified, use CC.
13262 LTCC=${LTCC-"$CC"}
13263
13264 # If no C compiler flags were specified, use CFLAGS.
13265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13266
13267 # Allow CC to be a program name with arguments.
13268 compiler=$CC
13269
13270
13271   # save warnings/boilerplate of simple test code
13272   ac_outfile=conftest.$ac_objext
13273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13275 _lt_compiler_boilerplate=`cat conftest.err`
13276 $RM conftest*
13277
13278   ac_outfile=conftest.$ac_objext
13279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13281 _lt_linker_boilerplate=`cat conftest.err`
13282 $RM -r conftest*
13283
13284
13285   # Allow CC to be a program name with arguments.
13286   lt_save_CC=$CC
13287   lt_save_LD=$LD
13288   lt_save_GCC=$GCC
13289   GCC=$GXX
13290   lt_save_with_gnu_ld=$with_gnu_ld
13291   lt_save_path_LD=$lt_cv_path_LD
13292   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13293     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13294   else
13295     $as_unset lt_cv_prog_gnu_ld
13296   fi
13297   if test -n "${lt_cv_path_LDCXX+set}"; then
13298     lt_cv_path_LD=$lt_cv_path_LDCXX
13299   else
13300     $as_unset lt_cv_path_LD
13301   fi
13302   test -z "${LDCXX+set}" || LD=$LDCXX
13303   CC=${CXX-"c++"}
13304   compiler=$CC
13305   compiler_CXX=$CC
13306   for cc_temp in $compiler""; do
13307   case $cc_temp in
13308     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13309     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13310     \-*) ;;
13311     *) break;;
13312   esac
13313 done
13314 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13315
13316
13317   if test -n "$compiler"; then
13318     # We don't want -fno-exception when compiling C++ code, so set the
13319     # no_builtin_flag separately
13320     if test "$GXX" = yes; then
13321       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13322     else
13323       lt_prog_compiler_no_builtin_flag_CXX=
13324     fi
13325
13326     if test "$GXX" = yes; then
13327       # Set up default GNU C++ configuration
13328
13329
13330
13331 # Check whether --with-gnu-ld was given.
13332 if test "${with_gnu_ld+set}" = set; then
13333   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13334 else
13335   with_gnu_ld=no
13336 fi
13337
13338 ac_prog=ld
13339 if test "$GCC" = yes; then
13340   # Check if gcc -print-prog-name=ld gives a path.
13341   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13342 $as_echo_n "checking for ld used by $CC... " >&6; }
13343   case $host in
13344   *-*-mingw*)
13345     # gcc leaves a trailing carriage return which upsets mingw
13346     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13347   *)
13348     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13349   esac
13350   case $ac_prog in
13351     # Accept absolute paths.
13352     [\\/]* | ?:[\\/]*)
13353       re_direlt='/[^/][^/]*/\.\./'
13354       # Canonicalize the pathname of ld
13355       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13356       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13357         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13358       done
13359       test -z "$LD" && LD="$ac_prog"
13360       ;;
13361   "")
13362     # If it fails, then pretend we aren't using GCC.
13363     ac_prog=ld
13364     ;;
13365   *)
13366     # If it is relative, then search for the first ld in PATH.
13367     with_gnu_ld=unknown
13368     ;;
13369   esac
13370 elif test "$with_gnu_ld" = yes; then
13371   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13372 $as_echo_n "checking for GNU ld... " >&6; }
13373 else
13374   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13375 $as_echo_n "checking for non-GNU ld... " >&6; }
13376 fi
13377 if test "${lt_cv_path_LD+set}" = set; then
13378   $as_echo_n "(cached) " >&6
13379 else
13380   if test -z "$LD"; then
13381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13382   for ac_dir in $PATH; do
13383     IFS="$lt_save_ifs"
13384     test -z "$ac_dir" && ac_dir=.
13385     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13386       lt_cv_path_LD="$ac_dir/$ac_prog"
13387       # Check to see if the program is GNU ld.  I'd rather use --version,
13388       # but apparently some variants of GNU ld only accept -v.
13389       # Break only if it was the GNU/non-GNU ld that we prefer.
13390       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13391       *GNU* | *'with BFD'*)
13392         test "$with_gnu_ld" != no && break
13393         ;;
13394       *)
13395         test "$with_gnu_ld" != yes && break
13396         ;;
13397       esac
13398     fi
13399   done
13400   IFS="$lt_save_ifs"
13401 else
13402   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13403 fi
13404 fi
13405
13406 LD="$lt_cv_path_LD"
13407 if test -n "$LD"; then
13408   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13409 $as_echo "$LD" >&6; }
13410 else
13411   { $as_echo "$as_me:$LINENO: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13415 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13416    { (exit 1); exit 1; }; }
13417 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13419 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13420   $as_echo_n "(cached) " >&6
13421 else
13422   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13423 case `$LD -v 2>&1 </dev/null` in
13424 *GNU* | *'with BFD'*)
13425   lt_cv_prog_gnu_ld=yes
13426   ;;
13427 *)
13428   lt_cv_prog_gnu_ld=no
13429   ;;
13430 esac
13431 fi
13432 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13434 with_gnu_ld=$lt_cv_prog_gnu_ld
13435
13436
13437
13438
13439
13440
13441
13442       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13443       # archiving commands below assume that GNU ld is being used.
13444       if test "$with_gnu_ld" = yes; then
13445         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13446         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'
13447
13448         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13449         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450
13451         # If archive_cmds runs LD, not CC, wlarc should be empty
13452         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13453         #     investigate it a little bit more. (MM)
13454         wlarc='${wl}'
13455
13456         # ancient GNU ld didn't support --whole-archive et. al.
13457         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13458           $GREP 'no-whole-archive' > /dev/null; then
13459           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13460         else
13461           whole_archive_flag_spec_CXX=
13462         fi
13463       else
13464         with_gnu_ld=no
13465         wlarc=
13466
13467         # A generic and very simple default shared library creation
13468         # command for GNU C++ for the case where it uses the native
13469         # linker, instead of GNU ld.  If possible, this setting should
13470         # overridden to take advantage of the native linker features on
13471         # the platform it is being used on.
13472         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13473       fi
13474
13475       # Commands to make compiler produce verbose output that lists
13476       # what "hidden" libraries, object files and flags are used when
13477       # linking a shared library.
13478       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13479
13480     else
13481       GXX=no
13482       with_gnu_ld=no
13483       wlarc=
13484     fi
13485
13486     # PORTME: fill in a description of your system's C++ link characteristics
13487     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13488 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13489     ld_shlibs_CXX=yes
13490     case $host_os in
13491       aix3*)
13492         # FIXME: insert proper C++ library support
13493         ld_shlibs_CXX=no
13494         ;;
13495       aix[4-9]*)
13496         if test "$host_cpu" = ia64; then
13497           # On IA64, the linker does run time linking by default, so we don't
13498           # have to do anything special.
13499           aix_use_runtimelinking=no
13500           exp_sym_flag='-Bexport'
13501           no_entry_flag=""
13502         else
13503           aix_use_runtimelinking=no
13504
13505           # Test if we are trying to use run time linking or normal
13506           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13507           # need to do runtime linking.
13508           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13509             for ld_flag in $LDFLAGS; do
13510               case $ld_flag in
13511               *-brtl*)
13512                 aix_use_runtimelinking=yes
13513                 break
13514                 ;;
13515               esac
13516             done
13517             ;;
13518           esac
13519
13520           exp_sym_flag='-bexport'
13521           no_entry_flag='-bnoentry'
13522         fi
13523
13524         # When large executables or shared objects are built, AIX ld can
13525         # have problems creating the table of contents.  If linking a library
13526         # or program results in "error TOC overflow" add -mminimal-toc to
13527         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13528         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13529
13530         archive_cmds_CXX=''
13531         hardcode_direct_CXX=yes
13532         hardcode_direct_absolute_CXX=yes
13533         hardcode_libdir_separator_CXX=':'
13534         link_all_deplibs_CXX=yes
13535         file_list_spec_CXX='${wl}-f,'
13536
13537         if test "$GXX" = yes; then
13538           case $host_os in aix4.[012]|aix4.[012].*)
13539           # We only want to do this on AIX 4.2 and lower, the check
13540           # below for broken collect2 doesn't work under 4.3+
13541           collect2name=`${CC} -print-prog-name=collect2`
13542           if test -f "$collect2name" &&
13543              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13544           then
13545             # We have reworked collect2
13546             :
13547           else
13548             # We have old collect2
13549             hardcode_direct_CXX=unsupported
13550             # It fails to find uninstalled libraries when the uninstalled
13551             # path is not listed in the libpath.  Setting hardcode_minus_L
13552             # to unsupported forces relinking
13553             hardcode_minus_L_CXX=yes
13554             hardcode_libdir_flag_spec_CXX='-L$libdir'
13555             hardcode_libdir_separator_CXX=
13556           fi
13557           esac
13558           shared_flag='-shared'
13559           if test "$aix_use_runtimelinking" = yes; then
13560             shared_flag="$shared_flag "'${wl}-G'
13561           fi
13562         else
13563           # not using gcc
13564           if test "$host_cpu" = ia64; then
13565           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13566           # chokes on -Wl,-G. The following line is correct:
13567           shared_flag='-G'
13568           else
13569             if test "$aix_use_runtimelinking" = yes; then
13570               shared_flag='${wl}-G'
13571             else
13572               shared_flag='${wl}-bM:SRE'
13573             fi
13574           fi
13575         fi
13576
13577         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13578         # It seems that -bexpall does not export symbols beginning with
13579         # underscore (_), so it is better to generate a list of symbols to
13580         # export.
13581         always_export_symbols_CXX=yes
13582         if test "$aix_use_runtimelinking" = yes; then
13583           # Warning - without using the other runtime loading flags (-brtl),
13584           # -berok will link without error, but may produce a broken library.
13585           allow_undefined_flag_CXX='-berok'
13586           # Determine the default libpath from the value encoded in an empty
13587           # executable.
13588           cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594
13595 int
13596 main ()
13597 {
13598
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607   *) ac_try_echo=$ac_try;;
13608 esac
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611   (eval "$ac_link") 2>conftest.er1
13612   ac_status=$?
13613   grep -v '^ *+' conftest.er1 >conftest.err
13614   rm -f conftest.er1
13615   cat conftest.err >&5
13616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } && {
13618          test -z "$ac_cxx_werror_flag" ||
13619          test ! -s conftest.err
13620        } && test -s conftest$ac_exeext && {
13621          test "$cross_compiling" = yes ||
13622          $as_test_x conftest$ac_exeext
13623        }; then
13624
13625 lt_aix_libpath_sed='
13626     /Import File Strings/,/^$/ {
13627         /^0/ {
13628             s/^0  *\(.*\)$/\1/
13629             p
13630         }
13631     }'
13632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13633 # Check for a 64-bit object if we didn't find anything.
13634 if test -z "$aix_libpath"; then
13635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13636 fi
13637 else
13638   $as_echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641
13642 fi
13643
13644 rm -rf conftest.dSYM
13645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13646       conftest$ac_exeext conftest.$ac_ext
13647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13648
13649           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13650
13651           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"
13652         else
13653           if test "$host_cpu" = ia64; then
13654             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13655             allow_undefined_flag_CXX="-z nodefs"
13656             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"
13657           else
13658             # Determine the default libpath from the value encoded in an
13659             # empty executable.
13660             cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666
13667 int
13668 main ()
13669 {
13670
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 rm -f conftest.$ac_objext conftest$ac_exeext
13676 if { (ac_try="$ac_link"
13677 case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683   (eval "$ac_link") 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } && {
13690          test -z "$ac_cxx_werror_flag" ||
13691          test ! -s conftest.err
13692        } && test -s conftest$ac_exeext && {
13693          test "$cross_compiling" = yes ||
13694          $as_test_x conftest$ac_exeext
13695        }; then
13696
13697 lt_aix_libpath_sed='
13698     /Import File Strings/,/^$/ {
13699         /^0/ {
13700             s/^0  *\(.*\)$/\1/
13701             p
13702         }
13703     }'
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705 # Check for a 64-bit object if we didn't find anything.
13706 if test -z "$aix_libpath"; then
13707   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708 fi
13709 else
13710   $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713
13714 fi
13715
13716 rm -rf conftest.dSYM
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718       conftest$ac_exeext conftest.$ac_ext
13719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13720
13721             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13722             # Warning - without using the other run time loading flags,
13723             # -berok will link without error, but may produce a broken library.
13724             no_undefined_flag_CXX=' ${wl}-bernotok'
13725             allow_undefined_flag_CXX=' ${wl}-berok'
13726             # Exported symbols can be pulled into shared objects from archives
13727             whole_archive_flag_spec_CXX='$convenience'
13728             archive_cmds_need_lc_CXX=yes
13729             # This is similar to how AIX traditionally builds its shared
13730             # libraries.
13731             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'
13732           fi
13733         fi
13734         ;;
13735
13736       beos*)
13737         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13738           allow_undefined_flag_CXX=unsupported
13739           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13740           # support --undefined.  This deserves some investigation.  FIXME
13741           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13742         else
13743           ld_shlibs_CXX=no
13744         fi
13745         ;;
13746
13747       chorus*)
13748         case $cc_basename in
13749           *)
13750           # FIXME: insert proper C++ library support
13751           ld_shlibs_CXX=no
13752           ;;
13753         esac
13754         ;;
13755
13756       cygwin* | mingw* | pw32* | cegcc*)
13757         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13758         # as there is no search path for DLLs.
13759         hardcode_libdir_flag_spec_CXX='-L$libdir'
13760         allow_undefined_flag_CXX=unsupported
13761         always_export_symbols_CXX=no
13762         enable_shared_with_static_runtimes_CXX=yes
13763
13764         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13765           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'
13766           # If the export-symbols file already is a .def file (1st line
13767           # is EXPORTS), use it as is; otherwise, prepend...
13768           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13769             cp $export_symbols $output_objdir/$soname.def;
13770           else
13771             echo EXPORTS > $output_objdir/$soname.def;
13772             cat $export_symbols >> $output_objdir/$soname.def;
13773           fi~
13774           $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'
13775         else
13776           ld_shlibs_CXX=no
13777         fi
13778         ;;
13779       darwin* | rhapsody*)
13780
13781
13782   archive_cmds_need_lc_CXX=no
13783   hardcode_direct_CXX=no
13784   hardcode_automatic_CXX=yes
13785   hardcode_shlibpath_var_CXX=unsupported
13786   whole_archive_flag_spec_CXX=''
13787   link_all_deplibs_CXX=yes
13788   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13789   case $cc_basename in
13790      ifort*) _lt_dar_can_shared=yes ;;
13791      *) _lt_dar_can_shared=$GCC ;;
13792   esac
13793   if test "$_lt_dar_can_shared" = "yes"; then
13794     output_verbose_link_cmd=echo
13795     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}"
13796     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13797     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}"
13798     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}"
13799        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13800       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}"
13801       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}"
13802     fi
13803
13804   else
13805   ld_shlibs_CXX=no
13806   fi
13807
13808         ;;
13809
13810       dgux*)
13811         case $cc_basename in
13812           ec++*)
13813             # FIXME: insert proper C++ library support
13814             ld_shlibs_CXX=no
13815             ;;
13816           ghcx*)
13817             # Green Hills C++ Compiler
13818             # FIXME: insert proper C++ library support
13819             ld_shlibs_CXX=no
13820             ;;
13821           *)
13822             # FIXME: insert proper C++ library support
13823             ld_shlibs_CXX=no
13824             ;;
13825         esac
13826         ;;
13827
13828       freebsd[12]*)
13829         # C++ shared libraries reported to be fairly broken before
13830         # switch to ELF
13831         ld_shlibs_CXX=no
13832         ;;
13833
13834       freebsd-elf*)
13835         archive_cmds_need_lc_CXX=no
13836         ;;
13837
13838       freebsd* | dragonfly*)
13839         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13840         # conventions
13841         ld_shlibs_CXX=yes
13842         ;;
13843
13844       gnu*)
13845         ;;
13846
13847       hpux9*)
13848         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13849         hardcode_libdir_separator_CXX=:
13850         export_dynamic_flag_spec_CXX='${wl}-E'
13851         hardcode_direct_CXX=yes
13852         hardcode_minus_L_CXX=yes # Not in the search PATH,
13853                                              # but as the default
13854                                              # location of the library.
13855
13856         case $cc_basename in
13857           CC*)
13858             # FIXME: insert proper C++ library support
13859             ld_shlibs_CXX=no
13860             ;;
13861           aCC*)
13862             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'
13863             # Commands to make compiler produce verbose output that lists
13864             # what "hidden" libraries, object files and flags are used when
13865             # linking a shared library.
13866             #
13867             # There doesn't appear to be a way to prevent this compiler from
13868             # explicitly linking system object files so we need to strip them
13869             # from the output so that they don't get included in the library
13870             # dependencies.
13871             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'
13872             ;;
13873           *)
13874             if test "$GXX" = yes; then
13875               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'
13876             else
13877               # FIXME: insert proper C++ library support
13878               ld_shlibs_CXX=no
13879             fi
13880             ;;
13881         esac
13882         ;;
13883
13884       hpux10*|hpux11*)
13885         if test $with_gnu_ld = no; then
13886           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13887           hardcode_libdir_separator_CXX=:
13888
13889           case $host_cpu in
13890             hppa*64*|ia64*)
13891               ;;
13892             *)
13893               export_dynamic_flag_spec_CXX='${wl}-E'
13894               ;;
13895           esac
13896         fi
13897         case $host_cpu in
13898           hppa*64*|ia64*)
13899             hardcode_direct_CXX=no
13900             hardcode_shlibpath_var_CXX=no
13901             ;;
13902           *)
13903             hardcode_direct_CXX=yes
13904             hardcode_direct_absolute_CXX=yes
13905             hardcode_minus_L_CXX=yes # Not in the search PATH,
13906                                                  # but as the default
13907                                                  # location of the library.
13908             ;;
13909         esac
13910
13911         case $cc_basename in
13912           CC*)
13913             # FIXME: insert proper C++ library support
13914             ld_shlibs_CXX=no
13915             ;;
13916           aCC*)
13917             case $host_cpu in
13918               hppa*64*)
13919                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13920                 ;;
13921               ia64*)
13922                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13923                 ;;
13924               *)
13925                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13926                 ;;
13927             esac
13928             # Commands to make compiler produce verbose output that lists
13929             # what "hidden" libraries, object files and flags are used when
13930             # linking a shared library.
13931             #
13932             # There doesn't appear to be a way to prevent this compiler from
13933             # explicitly linking system object files so we need to strip them
13934             # from the output so that they don't get included in the library
13935             # dependencies.
13936             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'
13937             ;;
13938           *)
13939             if test "$GXX" = yes; then
13940               if test $with_gnu_ld = no; then
13941                 case $host_cpu in
13942                   hppa*64*)
13943                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944                     ;;
13945                   ia64*)
13946                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13947                     ;;
13948                   *)
13949                     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'
13950                     ;;
13951                 esac
13952               fi
13953             else
13954               # FIXME: insert proper C++ library support
13955               ld_shlibs_CXX=no
13956             fi
13957             ;;
13958         esac
13959         ;;
13960
13961       interix[3-9]*)
13962         hardcode_direct_CXX=no
13963         hardcode_shlibpath_var_CXX=no
13964         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13965         export_dynamic_flag_spec_CXX='${wl}-E'
13966         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13967         # Instead, shared libraries are loaded at an image base (0x10000000 by
13968         # default) and relocated if they conflict, which is a slow very memory
13969         # consuming and fragmenting process.  To avoid this, we pick a random,
13970         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13971         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13972         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'
13973         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'
13974         ;;
13975       irix5* | irix6*)
13976         case $cc_basename in
13977           CC*)
13978             # SGI C++
13979             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'
13980
13981             # Archives containing C++ object files must be created using
13982             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13983             # necessary to make sure instantiated templates are included
13984             # in the archive.
13985             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13986             ;;
13987           *)
13988             if test "$GXX" = yes; then
13989               if test "$with_gnu_ld" = no; then
13990                 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'
13991               else
13992                 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'
13993               fi
13994             fi
13995             link_all_deplibs_CXX=yes
13996             ;;
13997         esac
13998         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999         hardcode_libdir_separator_CXX=:
14000         inherit_rpath_CXX=yes
14001         ;;
14002
14003       linux* | k*bsd*-gnu)
14004         case $cc_basename in
14005           KCC*)
14006             # Kuck and Associates, Inc. (KAI) C++ Compiler
14007
14008             # KCC will only create a shared library if the output file
14009             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14010             # to its proper name (with version) after linking.
14011             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'
14012             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'
14013             # Commands to make compiler produce verbose output that lists
14014             # what "hidden" libraries, object files and flags are used when
14015             # linking a shared library.
14016             #
14017             # There doesn't appear to be a way to prevent this compiler from
14018             # explicitly linking system object files so we need to strip them
14019             # from the output so that they don't get included in the library
14020             # dependencies.
14021             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'
14022
14023             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14024             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14025
14026             # Archives containing C++ object files must be created using
14027             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14028             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14029             ;;
14030           icpc* | ecpc* )
14031             # Intel C++
14032             with_gnu_ld=yes
14033             # version 8.0 and above of icpc choke on multiply defined symbols
14034             # if we add $predep_objects and $postdep_objects, however 7.1 and
14035             # earlier do not add the objects themselves.
14036             case `$CC -V 2>&1` in
14037               *"Version 7."*)
14038                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039                 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'
14040                 ;;
14041               *)  # Version 8.0 or newer
14042                 tmp_idyn=
14043                 case $host_cpu in
14044                   ia64*) tmp_idyn=' -i_dynamic';;
14045                 esac
14046                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14047                 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'
14048                 ;;
14049             esac
14050             archive_cmds_need_lc_CXX=no
14051             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14052             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14053             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14054             ;;
14055           pgCC* | pgcpp*)
14056             # Portland Group C++ compiler
14057             case `$CC -V` in
14058             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14059               prelink_cmds_CXX='tpldir=Template.dir~
14060                 rm -rf $tpldir~
14061                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14062                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14063               old_archive_cmds_CXX='tpldir=Template.dir~
14064                 rm -rf $tpldir~
14065                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14066                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14067                 $RANLIB $oldlib'
14068               archive_cmds_CXX='tpldir=Template.dir~
14069                 rm -rf $tpldir~
14070                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14071                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14072               archive_expsym_cmds_CXX='tpldir=Template.dir~
14073                 rm -rf $tpldir~
14074                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14075                 $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'
14076               ;;
14077             *) # Version 6 will use weak symbols
14078               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14079               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'
14080               ;;
14081             esac
14082
14083             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14084             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14085             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'
14086             ;;
14087           cxx*)
14088             # Compaq C++
14089             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090             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'
14091
14092             runpath_var=LD_RUN_PATH
14093             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14094             hardcode_libdir_separator_CXX=:
14095
14096             # Commands to make compiler produce verbose output that lists
14097             # what "hidden" libraries, object files and flags are used when
14098             # linking a shared library.
14099             #
14100             # There doesn't appear to be a way to prevent this compiler from
14101             # explicitly linking system object files so we need to strip them
14102             # from the output so that they don't get included in the library
14103             # dependencies.
14104             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'
14105             ;;
14106           xl*)
14107             # IBM XL 8.0 on PPC, with GNU ld
14108             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14109             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14110             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111             if test "x$supports_anon_versioning" = xyes; then
14112               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14113                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14114                 echo "local: *; };" >> $output_objdir/$libname.ver~
14115                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14116             fi
14117             ;;
14118           *)
14119             case `$CC -V 2>&1 | sed 5q` in
14120             *Sun\ C*)
14121               # Sun C++ 5.9
14122               no_undefined_flag_CXX=' -zdefs'
14123               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14124               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'
14125               hardcode_libdir_flag_spec_CXX='-R$libdir'
14126               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'
14127               compiler_needs_object_CXX=yes
14128
14129               # Not sure whether something based on
14130               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14131               # would be better.
14132               output_verbose_link_cmd='echo'
14133
14134               # Archives containing C++ object files must be created using
14135               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14136               # necessary to make sure instantiated templates are included
14137               # in the archive.
14138               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14139               ;;
14140             esac
14141             ;;
14142         esac
14143         ;;
14144
14145       lynxos*)
14146         # FIXME: insert proper C++ library support
14147         ld_shlibs_CXX=no
14148         ;;
14149
14150       m88k*)
14151         # FIXME: insert proper C++ library support
14152         ld_shlibs_CXX=no
14153         ;;
14154
14155       mvs*)
14156         case $cc_basename in
14157           cxx*)
14158             # FIXME: insert proper C++ library support
14159             ld_shlibs_CXX=no
14160             ;;
14161           *)
14162             # FIXME: insert proper C++ library support
14163             ld_shlibs_CXX=no
14164             ;;
14165         esac
14166         ;;
14167
14168       netbsd*)
14169         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14170           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14171           wlarc=
14172           hardcode_libdir_flag_spec_CXX='-R$libdir'
14173           hardcode_direct_CXX=yes
14174           hardcode_shlibpath_var_CXX=no
14175         fi
14176         # Workaround some broken pre-1.5 toolchains
14177         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14178         ;;
14179
14180       *nto* | *qnx*)
14181         ld_shlibs_CXX=yes
14182         ;;
14183
14184       openbsd2*)
14185         # C++ shared libraries are fairly broken
14186         ld_shlibs_CXX=no
14187         ;;
14188
14189       openbsd*)
14190         if test -f /usr/libexec/ld.so; then
14191           hardcode_direct_CXX=yes
14192           hardcode_shlibpath_var_CXX=no
14193           hardcode_direct_absolute_CXX=yes
14194           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14195           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14196           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14197             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14198             export_dynamic_flag_spec_CXX='${wl}-E'
14199             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14200           fi
14201           output_verbose_link_cmd=echo
14202         else
14203           ld_shlibs_CXX=no
14204         fi
14205         ;;
14206
14207       osf3* | osf4* | osf5*)
14208         case $cc_basename in
14209           KCC*)
14210             # Kuck and Associates, Inc. (KAI) C++ Compiler
14211
14212             # KCC will only create a shared library if the output file
14213             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14214             # to its proper name (with version) after linking.
14215             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'
14216
14217             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14218             hardcode_libdir_separator_CXX=:
14219
14220             # Archives containing C++ object files must be created using
14221             # the KAI C++ compiler.
14222             case $host in
14223               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14224               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14225             esac
14226             ;;
14227           RCC*)
14228             # Rational C++ 2.4.1
14229             # FIXME: insert proper C++ library support
14230             ld_shlibs_CXX=no
14231             ;;
14232           cxx*)
14233             case $host in
14234               osf3*)
14235                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14236                 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'
14237                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14238                 ;;
14239               *)
14240                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14241                 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'
14242                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14243                   echo "-hidden">> $lib.exp~
14244                   $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~
14245                   $RM $lib.exp'
14246                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14247                 ;;
14248             esac
14249
14250             hardcode_libdir_separator_CXX=:
14251
14252             # Commands to make compiler produce verbose output that lists
14253             # what "hidden" libraries, object files and flags are used when
14254             # linking a shared library.
14255             #
14256             # There doesn't appear to be a way to prevent this compiler from
14257             # explicitly linking system object files so we need to strip them
14258             # from the output so that they don't get included in the library
14259             # dependencies.
14260             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'
14261             ;;
14262           *)
14263             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14264               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14265               case $host in
14266                 osf3*)
14267                   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'
14268                   ;;
14269                 *)
14270                   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'
14271                   ;;
14272               esac
14273
14274               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14275               hardcode_libdir_separator_CXX=:
14276
14277               # Commands to make compiler produce verbose output that lists
14278               # what "hidden" libraries, object files and flags are used when
14279               # linking a shared library.
14280               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14281
14282             else
14283               # FIXME: insert proper C++ library support
14284               ld_shlibs_CXX=no
14285             fi
14286             ;;
14287         esac
14288         ;;
14289
14290       psos*)
14291         # FIXME: insert proper C++ library support
14292         ld_shlibs_CXX=no
14293         ;;
14294
14295       sunos4*)
14296         case $cc_basename in
14297           CC*)
14298             # Sun C++ 4.x
14299             # FIXME: insert proper C++ library support
14300             ld_shlibs_CXX=no
14301             ;;
14302           lcc*)
14303             # Lucid
14304             # FIXME: insert proper C++ library support
14305             ld_shlibs_CXX=no
14306             ;;
14307           *)
14308             # FIXME: insert proper C++ library support
14309             ld_shlibs_CXX=no
14310             ;;
14311         esac
14312         ;;
14313
14314       solaris*)
14315         case $cc_basename in
14316           CC*)
14317             # Sun C++ 4.2, 5.x and Centerline C++
14318             archive_cmds_need_lc_CXX=yes
14319             no_undefined_flag_CXX=' -zdefs'
14320             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14321             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14322               $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'
14323
14324             hardcode_libdir_flag_spec_CXX='-R$libdir'
14325             hardcode_shlibpath_var_CXX=no
14326             case $host_os in
14327               solaris2.[0-5] | solaris2.[0-5].*) ;;
14328               *)
14329                 # The compiler driver will combine and reorder linker options,
14330                 # but understands `-z linker_flag'.
14331                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14332                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14333                 ;;
14334             esac
14335             link_all_deplibs_CXX=yes
14336
14337             output_verbose_link_cmd='echo'
14338
14339             # Archives containing C++ object files must be created using
14340             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14341             # necessary to make sure instantiated templates are included
14342             # in the archive.
14343             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14344             ;;
14345           gcx*)
14346             # Green Hills C++ Compiler
14347             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14348
14349             # The C++ compiler must be used to create the archive.
14350             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14351             ;;
14352           *)
14353             # GNU C++ compiler with Solaris linker
14354             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14355               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14356               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14357                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14358                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14359                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14360
14361                 # Commands to make compiler produce verbose output that lists
14362                 # what "hidden" libraries, object files and flags are used when
14363                 # linking a shared library.
14364                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14365               else
14366                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14367                 # platform.
14368                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14369                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14370                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14371
14372                 # Commands to make compiler produce verbose output that lists
14373                 # what "hidden" libraries, object files and flags are used when
14374                 # linking a shared library.
14375                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14376               fi
14377
14378               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14379               case $host_os in
14380                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14381                 *)
14382                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14383                   ;;
14384               esac
14385             fi
14386             ;;
14387         esac
14388         ;;
14389
14390     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14391       no_undefined_flag_CXX='${wl}-z,text'
14392       archive_cmds_need_lc_CXX=no
14393       hardcode_shlibpath_var_CXX=no
14394       runpath_var='LD_RUN_PATH'
14395
14396       case $cc_basename in
14397         CC*)
14398           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400           ;;
14401         *)
14402           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404           ;;
14405       esac
14406       ;;
14407
14408       sysv5* | sco3.2v5* | sco5v6*)
14409         # Note: We can NOT use -z defs as we might desire, because we do not
14410         # link with -lc, and that would cause any symbols used from libc to
14411         # always be unresolved, which means just about no library would
14412         # ever link correctly.  If we're not using GNU ld we use -z text
14413         # though, which does catch some bad symbols but isn't as heavy-handed
14414         # as -z defs.
14415         no_undefined_flag_CXX='${wl}-z,text'
14416         allow_undefined_flag_CXX='${wl}-z,nodefs'
14417         archive_cmds_need_lc_CXX=no
14418         hardcode_shlibpath_var_CXX=no
14419         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14420         hardcode_libdir_separator_CXX=':'
14421         link_all_deplibs_CXX=yes
14422         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14423         runpath_var='LD_RUN_PATH'
14424
14425         case $cc_basename in
14426           CC*)
14427             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14428             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14429             ;;
14430           *)
14431             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14432             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14433             ;;
14434         esac
14435       ;;
14436
14437       tandem*)
14438         case $cc_basename in
14439           NCC*)
14440             # NonStop-UX NCC 3.20
14441             # FIXME: insert proper C++ library support
14442             ld_shlibs_CXX=no
14443             ;;
14444           *)
14445             # FIXME: insert proper C++ library support
14446             ld_shlibs_CXX=no
14447             ;;
14448         esac
14449         ;;
14450
14451       vxworks*)
14452         # FIXME: insert proper C++ library support
14453         ld_shlibs_CXX=no
14454         ;;
14455
14456       *)
14457         # FIXME: insert proper C++ library support
14458         ld_shlibs_CXX=no
14459         ;;
14460     esac
14461
14462     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14463 $as_echo "$ld_shlibs_CXX" >&6; }
14464     test "$ld_shlibs_CXX" = no && can_build_shared=no
14465
14466     GCC_CXX="$GXX"
14467     LD_CXX="$LD"
14468
14469     ## CAVEAT EMPTOR:
14470     ## There is no encapsulation within the following macros, do not change
14471     ## the running order or otherwise move them around unless you know exactly
14472     ## what you are doing...
14473     # Dependencies to place before and after the object being linked:
14474 predep_objects_CXX=
14475 postdep_objects_CXX=
14476 predeps_CXX=
14477 postdeps_CXX=
14478 compiler_lib_search_path_CXX=
14479
14480 cat > conftest.$ac_ext <<_LT_EOF
14481 class Foo
14482 {
14483 public:
14484   Foo (void) { a = 0; }
14485 private:
14486   int a;
14487 };
14488 _LT_EOF
14489
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491   (eval $ac_compile) 2>&5
14492   ac_status=$?
14493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }; then
14495   # Parse the compiler output and extract the necessary
14496   # objects, libraries and library flags.
14497
14498   # Sentinel used to keep track of whether or not we are before
14499   # the conftest object file.
14500   pre_test_object_deps_done=no
14501
14502   for p in `eval "$output_verbose_link_cmd"`; do
14503     case $p in
14504
14505     -L* | -R* | -l*)
14506        # Some compilers place space between "-{L,R}" and the path.
14507        # Remove the space.
14508        if test $p = "-L" ||
14509           test $p = "-R"; then
14510          prev=$p
14511          continue
14512        else
14513          prev=
14514        fi
14515
14516        if test "$pre_test_object_deps_done" = no; then
14517          case $p in
14518          -L* | -R*)
14519            # Internal compiler library paths should come after those
14520            # provided the user.  The postdeps already come after the
14521            # user supplied libs so there is no need to process them.
14522            if test -z "$compiler_lib_search_path_CXX"; then
14523              compiler_lib_search_path_CXX="${prev}${p}"
14524            else
14525              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14526            fi
14527            ;;
14528          # The "-l" case would never come before the object being
14529          # linked, so don't bother handling this case.
14530          esac
14531        else
14532          if test -z "$postdeps_CXX"; then
14533            postdeps_CXX="${prev}${p}"
14534          else
14535            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14536          fi
14537        fi
14538        ;;
14539
14540     *.$objext)
14541        # This assumes that the test object file only shows up
14542        # once in the compiler output.
14543        if test "$p" = "conftest.$objext"; then
14544          pre_test_object_deps_done=yes
14545          continue
14546        fi
14547
14548        if test "$pre_test_object_deps_done" = no; then
14549          if test -z "$predep_objects_CXX"; then
14550            predep_objects_CXX="$p"
14551          else
14552            predep_objects_CXX="$predep_objects_CXX $p"
14553          fi
14554        else
14555          if test -z "$postdep_objects_CXX"; then
14556            postdep_objects_CXX="$p"
14557          else
14558            postdep_objects_CXX="$postdep_objects_CXX $p"
14559          fi
14560        fi
14561        ;;
14562
14563     *) ;; # Ignore the rest.
14564
14565     esac
14566   done
14567
14568   # Clean up.
14569   rm -f a.out a.exe
14570 else
14571   echo "libtool.m4: error: problem compiling CXX test program"
14572 fi
14573
14574 $RM -f confest.$objext
14575
14576 # PORTME: override above test on systems where it is broken
14577 case $host_os in
14578 interix[3-9]*)
14579   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14580   # hack all around it, let's just trust "g++" to DTRT.
14581   predep_objects_CXX=
14582   postdep_objects_CXX=
14583   postdeps_CXX=
14584   ;;
14585
14586 linux*)
14587   case `$CC -V 2>&1 | sed 5q` in
14588   *Sun\ C*)
14589     # Sun C++ 5.9
14590
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     if test "$solaris_use_stlport4" != yes; then
14602       postdeps_CXX='-library=Cstd -library=Crun'
14603     fi
14604     ;;
14605   esac
14606   ;;
14607
14608 solaris*)
14609   case $cc_basename in
14610   CC*)
14611     # The more standards-conforming stlport4 library is
14612     # incompatible with the Cstd library. Avoid specifying
14613     # it if it's in CXXFLAGS. Ignore libCrun as
14614     # -library=stlport4 depends on it.
14615     case " $CXX $CXXFLAGS " in
14616     *" -library=stlport4 "*)
14617       solaris_use_stlport4=yes
14618       ;;
14619     esac
14620
14621     # Adding this requires a known-good setup of shared libraries for
14622     # Sun compiler versions before 5.6, else PIC objects from an old
14623     # archive will be linked into the output, leading to subtle bugs.
14624     if test "$solaris_use_stlport4" != yes; then
14625       postdeps_CXX='-library=Cstd -library=Crun'
14626     fi
14627     ;;
14628   esac
14629   ;;
14630 esac
14631
14632
14633 case " $postdeps_CXX " in
14634 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14635 esac
14636  compiler_lib_search_dirs_CXX=
14637 if test -n "${compiler_lib_search_path_CXX}"; then
14638  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14639 fi
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671     lt_prog_compiler_wl_CXX=
14672 lt_prog_compiler_pic_CXX=
14673 lt_prog_compiler_static_CXX=
14674
14675 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14677
14678   # C++ specific cases for pic, static, wl, etc.
14679   if test "$GXX" = yes; then
14680     lt_prog_compiler_wl_CXX='-Wl,'
14681     lt_prog_compiler_static_CXX='-static'
14682
14683     case $host_os in
14684     aix*)
14685       # All AIX code is PIC.
14686       if test "$host_cpu" = ia64; then
14687         # AIX 5 now supports IA64 processor
14688         lt_prog_compiler_static_CXX='-Bstatic'
14689       fi
14690       ;;
14691
14692     amigaos*)
14693       case $host_cpu in
14694       powerpc)
14695             # see comment about AmigaOS4 .so support
14696             lt_prog_compiler_pic_CXX='-fPIC'
14697         ;;
14698       m68k)
14699             # FIXME: we need at least 68020 code to build shared libraries, but
14700             # adding the `-m68020' flag to GCC prevents building anything better,
14701             # like `-m68040'.
14702             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14703         ;;
14704       esac
14705       ;;
14706
14707     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14708       # PIC is the default for these OSes.
14709       ;;
14710     mingw* | cygwin* | os2* | pw32* | cegcc*)
14711       # This hack is so that the source file can tell whether it is being
14712       # built for inclusion in a dll (and should export symbols for example).
14713       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14714       # (--disable-auto-import) libraries
14715       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14716       ;;
14717     darwin* | rhapsody*)
14718       # PIC is the default on this platform
14719       # Common symbols not allowed in MH_DYLIB files
14720       lt_prog_compiler_pic_CXX='-fno-common'
14721       ;;
14722     *djgpp*)
14723       # DJGPP does not support shared libraries at all
14724       lt_prog_compiler_pic_CXX=
14725       ;;
14726     interix[3-9]*)
14727       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14728       # Instead, we relocate shared libraries at runtime.
14729       ;;
14730     sysv4*MP*)
14731       if test -d /usr/nec; then
14732         lt_prog_compiler_pic_CXX=-Kconform_pic
14733       fi
14734       ;;
14735     hpux*)
14736       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14737       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14738       # sets the default TLS model and affects inlining.
14739       case $host_cpu in
14740       hppa*64*)
14741         ;;
14742       *)
14743         lt_prog_compiler_pic_CXX='-fPIC'
14744         ;;
14745       esac
14746       ;;
14747     *qnx* | *nto*)
14748       # QNX uses GNU C++, but need to define -shared option too, otherwise
14749       # it will coredump.
14750       lt_prog_compiler_pic_CXX='-fPIC -shared'
14751       ;;
14752     *)
14753       lt_prog_compiler_pic_CXX='-fPIC'
14754       ;;
14755     esac
14756   else
14757     case $host_os in
14758       aix[4-9]*)
14759         # All AIX code is PIC.
14760         if test "$host_cpu" = ia64; then
14761           # AIX 5 now supports IA64 processor
14762           lt_prog_compiler_static_CXX='-Bstatic'
14763         else
14764           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14765         fi
14766         ;;
14767       chorus*)
14768         case $cc_basename in
14769         cxch68*)
14770           # Green Hills C++ Compiler
14771           # _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"
14772           ;;
14773         esac
14774         ;;
14775       dgux*)
14776         case $cc_basename in
14777           ec++*)
14778             lt_prog_compiler_pic_CXX='-KPIC'
14779             ;;
14780           ghcx*)
14781             # Green Hills C++ Compiler
14782             lt_prog_compiler_pic_CXX='-pic'
14783             ;;
14784           *)
14785             ;;
14786         esac
14787         ;;
14788       freebsd* | dragonfly*)
14789         # FreeBSD uses GNU C++
14790         ;;
14791       hpux9* | hpux10* | hpux11*)
14792         case $cc_basename in
14793           CC*)
14794             lt_prog_compiler_wl_CXX='-Wl,'
14795             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14796             if test "$host_cpu" != ia64; then
14797               lt_prog_compiler_pic_CXX='+Z'
14798             fi
14799             ;;
14800           aCC*)
14801             lt_prog_compiler_wl_CXX='-Wl,'
14802             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14803             case $host_cpu in
14804             hppa*64*|ia64*)
14805               # +Z the default
14806               ;;
14807             *)
14808               lt_prog_compiler_pic_CXX='+Z'
14809               ;;
14810             esac
14811             ;;
14812           *)
14813             ;;
14814         esac
14815         ;;
14816       interix*)
14817         # This is c89, which is MS Visual C++ (no shared libs)
14818         # Anyone wants to do a port?
14819         ;;
14820       irix5* | irix6* | nonstopux*)
14821         case $cc_basename in
14822           CC*)
14823             lt_prog_compiler_wl_CXX='-Wl,'
14824             lt_prog_compiler_static_CXX='-non_shared'
14825             # CC pic flag -KPIC is the default.
14826             ;;
14827           *)
14828             ;;
14829         esac
14830         ;;
14831       linux* | k*bsd*-gnu)
14832         case $cc_basename in
14833           KCC*)
14834             # KAI C++ Compiler
14835             lt_prog_compiler_wl_CXX='--backend -Wl,'
14836             lt_prog_compiler_pic_CXX='-fPIC'
14837             ;;
14838           ecpc* )
14839             # old Intel C++ for x86_64 which still supported -KPIC.
14840             lt_prog_compiler_wl_CXX='-Wl,'
14841             lt_prog_compiler_pic_CXX='-KPIC'
14842             lt_prog_compiler_static_CXX='-static'
14843             ;;
14844           icpc* )
14845             # Intel C++, used to be incompatible with GCC.
14846             # ICC 10 doesn't accept -KPIC any more.
14847             lt_prog_compiler_wl_CXX='-Wl,'
14848             lt_prog_compiler_pic_CXX='-fPIC'
14849             lt_prog_compiler_static_CXX='-static'
14850             ;;
14851           pgCC* | pgcpp*)
14852             # Portland Group C++ compiler
14853             lt_prog_compiler_wl_CXX='-Wl,'
14854             lt_prog_compiler_pic_CXX='-fpic'
14855             lt_prog_compiler_static_CXX='-Bstatic'
14856             ;;
14857           cxx*)
14858             # Compaq C++
14859             # Make sure the PIC flag is empty.  It appears that all Alpha
14860             # Linux and Compaq Tru64 Unix objects are PIC.
14861             lt_prog_compiler_pic_CXX=
14862             lt_prog_compiler_static_CXX='-non_shared'
14863             ;;
14864           xlc* | xlC*)
14865             # IBM XL 8.0 on PPC
14866             lt_prog_compiler_wl_CXX='-Wl,'
14867             lt_prog_compiler_pic_CXX='-qpic'
14868             lt_prog_compiler_static_CXX='-qstaticlink'
14869             ;;
14870           *)
14871             case `$CC -V 2>&1 | sed 5q` in
14872             *Sun\ C*)
14873               # Sun C++ 5.9
14874               lt_prog_compiler_pic_CXX='-KPIC'
14875               lt_prog_compiler_static_CXX='-Bstatic'
14876               lt_prog_compiler_wl_CXX='-Qoption ld '
14877               ;;
14878             esac
14879             ;;
14880         esac
14881         ;;
14882       lynxos*)
14883         ;;
14884       m88k*)
14885         ;;
14886       mvs*)
14887         case $cc_basename in
14888           cxx*)
14889             lt_prog_compiler_pic_CXX='-W c,exportall'
14890             ;;
14891           *)
14892             ;;
14893         esac
14894         ;;
14895       netbsd*)
14896         ;;
14897       *qnx* | *nto*)
14898         # QNX uses GNU C++, but need to define -shared option too, otherwise
14899         # it will coredump.
14900         lt_prog_compiler_pic_CXX='-fPIC -shared'
14901         ;;
14902       osf3* | osf4* | osf5*)
14903         case $cc_basename in
14904           KCC*)
14905             lt_prog_compiler_wl_CXX='--backend -Wl,'
14906             ;;
14907           RCC*)
14908             # Rational C++ 2.4.1
14909             lt_prog_compiler_pic_CXX='-pic'
14910             ;;
14911           cxx*)
14912             # Digital/Compaq C++
14913             lt_prog_compiler_wl_CXX='-Wl,'
14914             # Make sure the PIC flag is empty.  It appears that all Alpha
14915             # Linux and Compaq Tru64 Unix objects are PIC.
14916             lt_prog_compiler_pic_CXX=
14917             lt_prog_compiler_static_CXX='-non_shared'
14918             ;;
14919           *)
14920             ;;
14921         esac
14922         ;;
14923       psos*)
14924         ;;
14925       solaris*)
14926         case $cc_basename in
14927           CC*)
14928             # Sun C++ 4.2, 5.x and Centerline C++
14929             lt_prog_compiler_pic_CXX='-KPIC'
14930             lt_prog_compiler_static_CXX='-Bstatic'
14931             lt_prog_compiler_wl_CXX='-Qoption ld '
14932             ;;
14933           gcx*)
14934             # Green Hills C++ Compiler
14935             lt_prog_compiler_pic_CXX='-PIC'
14936             ;;
14937           *)
14938             ;;
14939         esac
14940         ;;
14941       sunos4*)
14942         case $cc_basename in
14943           CC*)
14944             # Sun C++ 4.x
14945             lt_prog_compiler_pic_CXX='-pic'
14946             lt_prog_compiler_static_CXX='-Bstatic'
14947             ;;
14948           lcc*)
14949             # Lucid
14950             lt_prog_compiler_pic_CXX='-pic'
14951             ;;
14952           *)
14953             ;;
14954         esac
14955         ;;
14956       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14957         case $cc_basename in
14958           CC*)
14959             lt_prog_compiler_wl_CXX='-Wl,'
14960             lt_prog_compiler_pic_CXX='-KPIC'
14961             lt_prog_compiler_static_CXX='-Bstatic'
14962             ;;
14963         esac
14964         ;;
14965       tandem*)
14966         case $cc_basename in
14967           NCC*)
14968             # NonStop-UX NCC 3.20
14969             lt_prog_compiler_pic_CXX='-KPIC'
14970             ;;
14971           *)
14972             ;;
14973         esac
14974         ;;
14975       vxworks*)
14976         ;;
14977       *)
14978         lt_prog_compiler_can_build_shared_CXX=no
14979         ;;
14980     esac
14981   fi
14982
14983 case $host_os in
14984   # For platforms which do not support PIC, -DPIC is meaningless:
14985   *djgpp*)
14986     lt_prog_compiler_pic_CXX=
14987     ;;
14988   *)
14989     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14990     ;;
14991 esac
14992 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14993 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14994
14995
14996
14997 #
14998 # Check to make sure the PIC flag actually works.
14999 #
15000 if test -n "$lt_prog_compiler_pic_CXX"; then
15001   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15003 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15004   $as_echo_n "(cached) " >&6
15005 else
15006   lt_cv_prog_compiler_pic_works_CXX=no
15007    ac_outfile=conftest.$ac_objext
15008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15010    # Insert the option either (1) after the last *FLAGS variable, or
15011    # (2) before a word containing "conftest.", or (3) at the end.
15012    # Note that $ac_compile itself does not contain backslashes and begins
15013    # with a dollar sign (not a hyphen), so the echo should work correctly.
15014    # The option is referenced via a variable to avoid confusing sed.
15015    lt_compile=`echo "$ac_compile" | $SED \
15016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15018    -e 's:$: $lt_compiler_flag:'`
15019    (eval echo "\"\$as_me:15019: $lt_compile\"" >&5)
15020    (eval "$lt_compile" 2>conftest.err)
15021    ac_status=$?
15022    cat conftest.err >&5
15023    echo "$as_me:15023: \$? = $ac_status" >&5
15024    if (exit $ac_status) && test -s "$ac_outfile"; then
15025      # The compiler can only warn and ignore the option if not recognized
15026      # So say no if there are warnings other than the usual output.
15027      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15030        lt_cv_prog_compiler_pic_works_CXX=yes
15031      fi
15032    fi
15033    $RM conftest*
15034
15035 fi
15036 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15037 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15038
15039 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15040     case $lt_prog_compiler_pic_CXX in
15041      "" | " "*) ;;
15042      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15043      esac
15044 else
15045     lt_prog_compiler_pic_CXX=
15046      lt_prog_compiler_can_build_shared_CXX=no
15047 fi
15048
15049 fi
15050
15051
15052
15053 #
15054 # Check to make sure the static flag actually works.
15055 #
15056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15057 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15059 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15060   $as_echo_n "(cached) " >&6
15061 else
15062   lt_cv_prog_compiler_static_works_CXX=no
15063    save_LDFLAGS="$LDFLAGS"
15064    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15065    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15066    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15067      # The linker can only warn and ignore the option if not recognized
15068      # So say no if there are warnings
15069      if test -s conftest.err; then
15070        # Append any errors to the config.log.
15071        cat conftest.err 1>&5
15072        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15073        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15074        if diff conftest.exp conftest.er2 >/dev/null; then
15075          lt_cv_prog_compiler_static_works_CXX=yes
15076        fi
15077      else
15078        lt_cv_prog_compiler_static_works_CXX=yes
15079      fi
15080    fi
15081    $RM -r conftest*
15082    LDFLAGS="$save_LDFLAGS"
15083
15084 fi
15085 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15086 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15087
15088 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15089     :
15090 else
15091     lt_prog_compiler_static_CXX=
15092 fi
15093
15094
15095
15096
15097     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15100   $as_echo_n "(cached) " >&6
15101 else
15102   lt_cv_prog_compiler_c_o_CXX=no
15103    $RM -r conftest 2>/dev/null
15104    mkdir conftest
15105    cd conftest
15106    mkdir out
15107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15108
15109    lt_compiler_flag="-o out/conftest2.$ac_objext"
15110    # Insert the option either (1) after the last *FLAGS variable, or
15111    # (2) before a word containing "conftest.", or (3) at the end.
15112    # Note that $ac_compile itself does not contain backslashes and begins
15113    # with a dollar sign (not a hyphen), so the echo should work correctly.
15114    lt_compile=`echo "$ac_compile" | $SED \
15115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15117    -e 's:$: $lt_compiler_flag:'`
15118    (eval echo "\"\$as_me:15118: $lt_compile\"" >&5)
15119    (eval "$lt_compile" 2>out/conftest.err)
15120    ac_status=$?
15121    cat out/conftest.err >&5
15122    echo "$as_me:15122: \$? = $ac_status" >&5
15123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15124    then
15125      # The compiler can only warn and ignore the option if not recognized
15126      # So say no if there are warnings
15127      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15128      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15129      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15130        lt_cv_prog_compiler_c_o_CXX=yes
15131      fi
15132    fi
15133    chmod u+w . 2>&5
15134    $RM conftest*
15135    # SGI C++ compiler will create directory out/ii_files/ for
15136    # template instantiation
15137    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15138    $RM out/* && rmdir out
15139    cd ..
15140    $RM -r conftest
15141    $RM conftest*
15142
15143 fi
15144 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15145 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15146
15147
15148
15149     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15152   $as_echo_n "(cached) " >&6
15153 else
15154   lt_cv_prog_compiler_c_o_CXX=no
15155    $RM -r conftest 2>/dev/null
15156    mkdir conftest
15157    cd conftest
15158    mkdir out
15159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15160
15161    lt_compiler_flag="-o out/conftest2.$ac_objext"
15162    # Insert the option either (1) after the last *FLAGS variable, or
15163    # (2) before a word containing "conftest.", or (3) at the end.
15164    # Note that $ac_compile itself does not contain backslashes and begins
15165    # with a dollar sign (not a hyphen), so the echo should work correctly.
15166    lt_compile=`echo "$ac_compile" | $SED \
15167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15169    -e 's:$: $lt_compiler_flag:'`
15170    (eval echo "\"\$as_me:15170: $lt_compile\"" >&5)
15171    (eval "$lt_compile" 2>out/conftest.err)
15172    ac_status=$?
15173    cat out/conftest.err >&5
15174    echo "$as_me:15174: \$? = $ac_status" >&5
15175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15176    then
15177      # The compiler can only warn and ignore the option if not recognized
15178      # So say no if there are warnings
15179      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15182        lt_cv_prog_compiler_c_o_CXX=yes
15183      fi
15184    fi
15185    chmod u+w . 2>&5
15186    $RM conftest*
15187    # SGI C++ compiler will create directory out/ii_files/ for
15188    # template instantiation
15189    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15190    $RM out/* && rmdir out
15191    cd ..
15192    $RM -r conftest
15193    $RM conftest*
15194
15195 fi
15196 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15198
15199
15200
15201
15202 hard_links="nottested"
15203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15204   # do not overwrite the value of need_locks provided by the user
15205   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15206 $as_echo_n "checking if we can lock with hard links... " >&6; }
15207   hard_links=yes
15208   $RM conftest*
15209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15210   touch conftest.a
15211   ln conftest.a conftest.b 2>&5 || hard_links=no
15212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15213   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15214 $as_echo "$hard_links" >&6; }
15215   if test "$hard_links" = no; then
15216     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15218     need_locks=warn
15219   fi
15220 else
15221   need_locks=no
15222 fi
15223
15224
15225
15226     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15228
15229   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15230   case $host_os in
15231   aix[4-9]*)
15232     # If we're using GNU nm, then we don't want the "-C" option.
15233     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15235       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'
15236     else
15237       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'
15238     fi
15239     ;;
15240   pw32*)
15241     export_symbols_cmds_CXX="$ltdll_cmds"
15242   ;;
15243   cygwin* | mingw* | cegcc*)
15244     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'
15245   ;;
15246   *)
15247     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15248   ;;
15249   esac
15250   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15251
15252 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15253 $as_echo "$ld_shlibs_CXX" >&6; }
15254 test "$ld_shlibs_CXX" = no && can_build_shared=no
15255
15256 with_gnu_ld_CXX=$with_gnu_ld
15257
15258
15259
15260
15261
15262
15263 #
15264 # Do we need to explicitly link libc?
15265 #
15266 case "x$archive_cmds_need_lc_CXX" in
15267 x|xyes)
15268   # Assume -lc should be added
15269   archive_cmds_need_lc_CXX=yes
15270
15271   if test "$enable_shared" = yes && test "$GCC" = yes; then
15272     case $archive_cmds_CXX in
15273     *'~'*)
15274       # FIXME: we may have to deal with multi-command sequences.
15275       ;;
15276     '$CC '*)
15277       # Test whether the compiler implicitly links with -lc since on some
15278       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15279       # to ld, don't add -lc before -lgcc.
15280       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15281 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15282       $RM conftest*
15283       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15284
15285       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286   (eval $ac_compile) 2>&5
15287   ac_status=$?
15288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } 2>conftest.err; then
15290         soname=conftest
15291         lib=conftest
15292         libobjs=conftest.$ac_objext
15293         deplibs=
15294         wl=$lt_prog_compiler_wl_CXX
15295         pic_flag=$lt_prog_compiler_pic_CXX
15296         compiler_flags=-v
15297         linker_flags=-v
15298         verstring=
15299         output_objdir=.
15300         libname=conftest
15301         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15302         allow_undefined_flag_CXX=
15303         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15304   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15305   ac_status=$?
15306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }
15308         then
15309           archive_cmds_need_lc_CXX=no
15310         else
15311           archive_cmds_need_lc_CXX=yes
15312         fi
15313         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15314       else
15315         cat conftest.err 1>&5
15316       fi
15317       $RM conftest*
15318       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15320       ;;
15321     esac
15322   fi
15323   ;;
15324 esac
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
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15391
15392 library_names_spec=
15393 libname_spec='lib$name'
15394 soname_spec=
15395 shrext_cmds=".so"
15396 postinstall_cmds=
15397 postuninstall_cmds=
15398 finish_cmds=
15399 finish_eval=
15400 shlibpath_var=
15401 shlibpath_overrides_runpath=unknown
15402 version_type=none
15403 dynamic_linker="$host_os ld.so"
15404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15405 need_lib_prefix=unknown
15406 hardcode_into_libs=no
15407
15408 # when you set need_version to no, make sure it does not cause -set_version
15409 # flags to be left without arguments
15410 need_version=unknown
15411
15412 case $host_os in
15413 aix3*)
15414   version_type=linux
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15416   shlibpath_var=LIBPATH
15417
15418   # AIX 3 has no versioning support, so we append a major version to the name.
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   ;;
15421
15422 aix[4-9]*)
15423   version_type=linux
15424   need_lib_prefix=no
15425   need_version=no
15426   hardcode_into_libs=yes
15427   if test "$host_cpu" = ia64; then
15428     # AIX 5 supports IA64
15429     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15430     shlibpath_var=LD_LIBRARY_PATH
15431   else
15432     # With GCC up to 2.95.x, collect2 would create an import file
15433     # for dependence libraries.  The import file would start with
15434     # the line `#! .'.  This would cause the generated library to
15435     # depend on `.', always an invalid library.  This was fixed in
15436     # development snapshots of GCC prior to 3.0.
15437     case $host_os in
15438       aix4 | aix4.[01] | aix4.[01].*)
15439       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15440            echo ' yes '
15441            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15442         :
15443       else
15444         can_build_shared=no
15445       fi
15446       ;;
15447     esac
15448     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15449     # soname into executable. Probably we can add versioning support to
15450     # collect2, so additional links can be useful in future.
15451     if test "$aix_use_runtimelinking" = yes; then
15452       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15453       # instead of lib<name>.a to let people know that these are not
15454       # typical AIX shared libraries.
15455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456     else
15457       # We preserve .a as extension for shared libraries through AIX4.2
15458       # and later when we are not doing run time linking.
15459       library_names_spec='${libname}${release}.a $libname.a'
15460       soname_spec='${libname}${release}${shared_ext}$major'
15461     fi
15462     shlibpath_var=LIBPATH
15463   fi
15464   ;;
15465
15466 amigaos*)
15467   case $host_cpu in
15468   powerpc)
15469     # Since July 2007 AmigaOS4 officially supports .so libraries.
15470     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472     ;;
15473   m68k)
15474     library_names_spec='$libname.ixlibrary $libname.a'
15475     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15476     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'
15477     ;;
15478   esac
15479   ;;
15480
15481 beos*)
15482   library_names_spec='${libname}${shared_ext}'
15483   dynamic_linker="$host_os ld.so"
15484   shlibpath_var=LIBRARY_PATH
15485   ;;
15486
15487 bsdi[45]*)
15488   version_type=linux
15489   need_version=no
15490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15493   shlibpath_var=LD_LIBRARY_PATH
15494   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15495   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15496   # the default ld.so.conf also contains /usr/contrib/lib and
15497   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15498   # libtool to hard-code these into programs
15499   ;;
15500
15501 cygwin* | mingw* | pw32* | cegcc*)
15502   version_type=windows
15503   shrext_cmds=".dll"
15504   need_version=no
15505   need_lib_prefix=no
15506
15507   case $GCC,$host_os in
15508   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15509     library_names_spec='$libname.dll.a'
15510     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15511     postinstall_cmds='base_file=`basename \${file}`~
15512       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15513       dldir=$destdir/`dirname \$dlpath`~
15514       test -d \$dldir || mkdir -p \$dldir~
15515       $install_prog $dir/$dlname \$dldir/$dlname~
15516       chmod a+x \$dldir/$dlname~
15517       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15518         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15519       fi'
15520     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15521       dlpath=$dir/\$dldll~
15522        $RM \$dlpath'
15523     shlibpath_overrides_runpath=yes
15524
15525     case $host_os in
15526     cygwin*)
15527       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15528       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15529       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15530       ;;
15531     mingw* | cegcc*)
15532       # MinGW DLLs use traditional 'lib' prefix
15533       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15534       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15535       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15536         # It is most probably a Windows format PATH printed by
15537         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15538         # path with ; separators, and with drive letters. We can handle the
15539         # drive letters (cygwin fileutils understands them), so leave them,
15540         # especially as we might pass files found there to a mingw objdump,
15541         # which wouldn't understand a cygwinified path. Ahh.
15542         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15543       else
15544         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15545       fi
15546       ;;
15547     pw32*)
15548       # pw32 DLLs use 'pw' prefix rather than 'lib'
15549       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550       ;;
15551     esac
15552     ;;
15553
15554   *)
15555     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15556     ;;
15557   esac
15558   dynamic_linker='Win32 ld.exe'
15559   # FIXME: first we should search . and the directory the executable is in
15560   shlibpath_var=PATH
15561   ;;
15562
15563 darwin* | rhapsody*)
15564   dynamic_linker="$host_os dyld"
15565   version_type=darwin
15566   need_lib_prefix=no
15567   need_version=no
15568   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15569   soname_spec='${libname}${release}${major}$shared_ext'
15570   shlibpath_overrides_runpath=yes
15571   shlibpath_var=DYLD_LIBRARY_PATH
15572   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15573
15574   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15575   ;;
15576
15577 dgux*)
15578   version_type=linux
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   ;;
15585
15586 freebsd1*)
15587   dynamic_linker=no
15588   ;;
15589
15590 freebsd* | dragonfly*)
15591   # DragonFly does not have aout.  When/if they implement a new
15592   # versioning mechanism, adjust this.
15593   if test -x /usr/bin/objformat; then
15594     objformat=`/usr/bin/objformat`
15595   else
15596     case $host_os in
15597     freebsd[123]*) objformat=aout ;;
15598     *) objformat=elf ;;
15599     esac
15600   fi
15601   version_type=freebsd-$objformat
15602   case $version_type in
15603     freebsd-elf*)
15604       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15605       need_version=no
15606       need_lib_prefix=no
15607       ;;
15608     freebsd-*)
15609       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15610       need_version=yes
15611       ;;
15612   esac
15613   shlibpath_var=LD_LIBRARY_PATH
15614   case $host_os in
15615   freebsd2*)
15616     shlibpath_overrides_runpath=yes
15617     ;;
15618   freebsd3.[01]* | freebsdelf3.[01]*)
15619     shlibpath_overrides_runpath=yes
15620     hardcode_into_libs=yes
15621     ;;
15622   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15623   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15624     shlibpath_overrides_runpath=no
15625     hardcode_into_libs=yes
15626     ;;
15627   *) # from 4.6 on, and DragonFly
15628     shlibpath_overrides_runpath=yes
15629     hardcode_into_libs=yes
15630     ;;
15631   esac
15632   ;;
15633
15634 gnu*)
15635   version_type=linux
15636   need_lib_prefix=no
15637   need_version=no
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   hardcode_into_libs=yes
15642   ;;
15643
15644 hpux9* | hpux10* | hpux11*)
15645   # Give a soname corresponding to the major version so that dld.sl refuses to
15646   # link against other versions.
15647   version_type=sunos
15648   need_lib_prefix=no
15649   need_version=no
15650   case $host_cpu in
15651   ia64*)
15652     shrext_cmds='.so'
15653     hardcode_into_libs=yes
15654     dynamic_linker="$host_os dld.so"
15655     shlibpath_var=LD_LIBRARY_PATH
15656     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658     soname_spec='${libname}${release}${shared_ext}$major'
15659     if test "X$HPUX_IA64_MODE" = X32; then
15660       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15661     else
15662       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15663     fi
15664     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15665     ;;
15666   hppa*64*)
15667     shrext_cmds='.sl'
15668     hardcode_into_libs=yes
15669     dynamic_linker="$host_os dld.sl"
15670     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15671     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673     soname_spec='${libname}${release}${shared_ext}$major'
15674     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15675     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15676     ;;
15677   *)
15678     shrext_cmds='.sl'
15679     dynamic_linker="$host_os dld.sl"
15680     shlibpath_var=SHLIB_PATH
15681     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683     soname_spec='${libname}${release}${shared_ext}$major'
15684     ;;
15685   esac
15686   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15687   postinstall_cmds='chmod 555 $lib'
15688   ;;
15689
15690 interix[3-9]*)
15691   version_type=linux
15692   need_lib_prefix=no
15693   need_version=no
15694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15695   soname_spec='${libname}${release}${shared_ext}$major'
15696   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15697   shlibpath_var=LD_LIBRARY_PATH
15698   shlibpath_overrides_runpath=no
15699   hardcode_into_libs=yes
15700   ;;
15701
15702 irix5* | irix6* | nonstopux*)
15703   case $host_os in
15704     nonstopux*) version_type=nonstopux ;;
15705     *)
15706         if test "$lt_cv_prog_gnu_ld" = yes; then
15707                 version_type=linux
15708         else
15709                 version_type=irix
15710         fi ;;
15711   esac
15712   need_lib_prefix=no
15713   need_version=no
15714   soname_spec='${libname}${release}${shared_ext}$major'
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15716   case $host_os in
15717   irix5* | nonstopux*)
15718     libsuff= shlibsuff=
15719     ;;
15720   *)
15721     case $LD in # libtool.m4 will add one of these switches to LD
15722     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15723       libsuff= shlibsuff= libmagic=32-bit;;
15724     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15725       libsuff=32 shlibsuff=N32 libmagic=N32;;
15726     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15727       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15728     *) libsuff= shlibsuff= libmagic=never-match;;
15729     esac
15730     ;;
15731   esac
15732   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15733   shlibpath_overrides_runpath=no
15734   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15735   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15736   hardcode_into_libs=yes
15737   ;;
15738
15739 # No shared lib support for Linux oldld, aout, or coff.
15740 linux*oldld* | linux*aout* | linux*coff*)
15741   dynamic_linker=no
15742   ;;
15743
15744 # This must be Linux ELF.
15745 linux* | k*bsd*-gnu)
15746   version_type=linux
15747   need_lib_prefix=no
15748   need_version=no
15749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750   soname_spec='${libname}${release}${shared_ext}$major'
15751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   shlibpath_overrides_runpath=no
15754   # Some binutils ld are patched to set DT_RUNPATH
15755   save_LDFLAGS=$LDFLAGS
15756   save_libdir=$libdir
15757   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15758        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15759   cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765
15766 int
15767 main ()
15768 {
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (ac_try="$ac_link"
15776 case "(($ac_try" in
15777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778   *) ac_try_echo=$ac_try;;
15779 esac
15780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15781 $as_echo "$ac_try_echo") >&5
15782   (eval "$ac_link") 2>conftest.er1
15783   ac_status=$?
15784   grep -v '^ *+' conftest.er1 >conftest.err
15785   rm -f conftest.er1
15786   cat conftest.err >&5
15787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } && {
15789          test -z "$ac_cxx_werror_flag" ||
15790          test ! -s conftest.err
15791        } && test -s conftest$ac_exeext && {
15792          test "$cross_compiling" = yes ||
15793          $as_test_x conftest$ac_exeext
15794        }; then
15795   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15796   shlibpath_overrides_runpath=yes
15797 fi
15798
15799 else
15800   $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803
15804 fi
15805
15806 rm -rf conftest.dSYM
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808       conftest$ac_exeext conftest.$ac_ext
15809   LDFLAGS=$save_LDFLAGS
15810   libdir=$save_libdir
15811
15812   # This implies no fast_install, which is unacceptable.
15813   # Some rework will be needed to allow for fast_install
15814   # before this can be enabled.
15815   hardcode_into_libs=yes
15816
15817   # Append ld.so.conf contents to the search path
15818   if test -f /etc/ld.so.conf; then
15819     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' ' '`
15820     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15821   fi
15822
15823   # We used to test for /lib/ld.so.1 and disable shared libraries on
15824   # powerpc, because MkLinux only supported shared libraries with the
15825   # GNU dynamic linker.  Since this was broken with cross compilers,
15826   # most powerpc-linux boxes support dynamic linking these days and
15827   # people can always --disable-shared, the test was removed, and we
15828   # assume the GNU/Linux dynamic linker is in use.
15829   dynamic_linker='GNU/Linux ld.so'
15830   ;;
15831
15832 netbsd*)
15833   version_type=sunos
15834   need_lib_prefix=no
15835   need_version=no
15836   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15838     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15839     dynamic_linker='NetBSD (a.out) ld.so'
15840   else
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     dynamic_linker='NetBSD ld.elf_so'
15844   fi
15845   shlibpath_var=LD_LIBRARY_PATH
15846   shlibpath_overrides_runpath=yes
15847   hardcode_into_libs=yes
15848   ;;
15849
15850 newsos6)
15851   version_type=linux
15852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   shlibpath_overrides_runpath=yes
15855   ;;
15856
15857 *nto* | *qnx*)
15858   version_type=qnx
15859   need_lib_prefix=no
15860   need_version=no
15861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862   soname_spec='${libname}${release}${shared_ext}$major'
15863   shlibpath_var=LD_LIBRARY_PATH
15864   shlibpath_overrides_runpath=no
15865   hardcode_into_libs=yes
15866   dynamic_linker='ldqnx.so'
15867   ;;
15868
15869 openbsd*)
15870   version_type=sunos
15871   sys_lib_dlsearch_path_spec="/usr/lib"
15872   need_lib_prefix=no
15873   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15874   case $host_os in
15875     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15876     *)                          need_version=no  ;;
15877   esac
15878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15880   shlibpath_var=LD_LIBRARY_PATH
15881   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15882     case $host_os in
15883       openbsd2.[89] | openbsd2.[89].*)
15884         shlibpath_overrides_runpath=no
15885         ;;
15886       *)
15887         shlibpath_overrides_runpath=yes
15888         ;;
15889       esac
15890   else
15891     shlibpath_overrides_runpath=yes
15892   fi
15893   ;;
15894
15895 os2*)
15896   libname_spec='$name'
15897   shrext_cmds=".dll"
15898   need_lib_prefix=no
15899   library_names_spec='$libname${shared_ext} $libname.a'
15900   dynamic_linker='OS/2 ld.exe'
15901   shlibpath_var=LIBPATH
15902   ;;
15903
15904 osf3* | osf4* | osf5*)
15905   version_type=osf
15906   need_lib_prefix=no
15907   need_version=no
15908   soname_spec='${libname}${release}${shared_ext}$major'
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15912   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15913   ;;
15914
15915 rdos*)
15916   dynamic_linker=no
15917   ;;
15918
15919 solaris*)
15920   version_type=linux
15921   need_lib_prefix=no
15922   need_version=no
15923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924   soname_spec='${libname}${release}${shared_ext}$major'
15925   shlibpath_var=LD_LIBRARY_PATH
15926   shlibpath_overrides_runpath=yes
15927   hardcode_into_libs=yes
15928   # ldd complains unless libraries are executable
15929   postinstall_cmds='chmod +x $lib'
15930   ;;
15931
15932 sunos4*)
15933   version_type=sunos
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15935   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15936   shlibpath_var=LD_LIBRARY_PATH
15937   shlibpath_overrides_runpath=yes
15938   if test "$with_gnu_ld" = yes; then
15939     need_lib_prefix=no
15940   fi
15941   need_version=yes
15942   ;;
15943
15944 sysv4 | sysv4.3*)
15945   version_type=linux
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   case $host_vendor in
15950     sni)
15951       shlibpath_overrides_runpath=no
15952       need_lib_prefix=no
15953       runpath_var=LD_RUN_PATH
15954       ;;
15955     siemens)
15956       need_lib_prefix=no
15957       ;;
15958     motorola)
15959       need_lib_prefix=no
15960       need_version=no
15961       shlibpath_overrides_runpath=no
15962       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15963       ;;
15964   esac
15965   ;;
15966
15967 sysv4*MP*)
15968   if test -d /usr/nec ;then
15969     version_type=linux
15970     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15971     soname_spec='$libname${shared_ext}.$major'
15972     shlibpath_var=LD_LIBRARY_PATH
15973   fi
15974   ;;
15975
15976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15977   version_type=freebsd-elf
15978   need_lib_prefix=no
15979   need_version=no
15980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15981   soname_spec='${libname}${release}${shared_ext}$major'
15982   shlibpath_var=LD_LIBRARY_PATH
15983   shlibpath_overrides_runpath=yes
15984   hardcode_into_libs=yes
15985   if test "$with_gnu_ld" = yes; then
15986     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15987   else
15988     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15989     case $host_os in
15990       sco3.2v5*)
15991         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15992         ;;
15993     esac
15994   fi
15995   sys_lib_dlsearch_path_spec='/usr/lib'
15996   ;;
15997
15998 tpf*)
15999   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16000   version_type=linux
16001   need_lib_prefix=no
16002   need_version=no
16003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004   shlibpath_var=LD_LIBRARY_PATH
16005   shlibpath_overrides_runpath=no
16006   hardcode_into_libs=yes
16007   ;;
16008
16009 uts4*)
16010   version_type=linux
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012   soname_spec='${libname}${release}${shared_ext}$major'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   ;;
16015
16016 *)
16017   dynamic_linker=no
16018   ;;
16019 esac
16020 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16021 $as_echo "$dynamic_linker" >&6; }
16022 test "$dynamic_linker" = no && can_build_shared=no
16023
16024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16025 if test "$GCC" = yes; then
16026   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16027 fi
16028
16029 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16030   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16031 fi
16032 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16033   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16034 fi
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16073 hardcode_action_CXX=
16074 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16075    test -n "$runpath_var_CXX" ||
16076    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16077
16078   # We can hardcode non-existent directories.
16079   if test "$hardcode_direct_CXX" != no &&
16080      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16081      # have to relink, otherwise we might link with an installed library
16082      # when we should be linking with a yet-to-be-installed one
16083      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16084      test "$hardcode_minus_L_CXX" != no; then
16085     # Linking always hardcodes the temporary library directory.
16086     hardcode_action_CXX=relink
16087   else
16088     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16089     hardcode_action_CXX=immediate
16090   fi
16091 else
16092   # We cannot hardcode anything, or else we can only hardcode existing
16093   # directories.
16094   hardcode_action_CXX=unsupported
16095 fi
16096 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16097 $as_echo "$hardcode_action_CXX" >&6; }
16098
16099 if test "$hardcode_action_CXX" = relink ||
16100    test "$inherit_rpath_CXX" = yes; then
16101   # Fast installation is not supported
16102   enable_fast_install=no
16103 elif test "$shlibpath_overrides_runpath" = yes ||
16104      test "$enable_shared" = no; then
16105   # Fast installation is not necessary
16106   enable_fast_install=needless
16107 fi
16108
16109
16110
16111
16112
16113
16114
16115   fi # test -n "$compiler"
16116
16117   CC=$lt_save_CC
16118   LDCXX=$LD
16119   LD=$lt_save_LD
16120   GCC=$lt_save_GCC
16121   with_gnu_ld=$lt_save_with_gnu_ld
16122   lt_cv_path_LDCXX=$lt_cv_path_LD
16123   lt_cv_path_LD=$lt_save_path_LD
16124   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16125   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16126 fi # test "$_lt_caught_CXX_error" != yes
16127
16128 ac_ext=c
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146         ac_config_commands="$ac_config_commands libtool"
16147
16148
16149
16150
16151 # Only expand once:
16152
16153
16154
16155
16156 if test x$use_libtool != xno; then
16157    DEFAULT_OBJECT_TYPE=".lo"
16158    DEFAULT_ARCHIVE_TYPE=".la"
16159    DEFAULT_SHARED_OBJECT_TYPE=".la"
16160    LIBTOOL="\$(LIBTOOL)"
16161    LIBTOOL_INSTALL_TARGET="libtool-install"
16162    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16163    LIBTOOL_CLEAN_TARGET="libtool-clean"
16164    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16165    FD_PLUGIN_DIR="src/plugins/fd"
16166    have_plugins=yes
16167 else
16168    DEFAULT_OBJECT_TYPE=".o"
16169    DEFAULT_ARCHIVE_TYPE=".a"
16170    DEFAULT_SHARED_OBJECT_TYPE=".so"
16171    LIBTOOL="# \$(LIBTOOL)"
16172    LIBTOOL_INSTALL_TARGET=""
16173    LIBTOOL_UNINSTALL_TARGET=""
16174    LIBTOOL_CLEAN_TARGET=""
16175    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16176    FD_PLUGIN_DIR=""
16177    have_plugins=no
16178 fi
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190 # Check whether --enable-includes was given.
16191 if test "${enable_includes+set}" = set; then
16192   enableval=$enable_includes;
16193        if test x$enableval = xyes; then
16194           install_includes=yes
16195        fi
16196
16197
16198 fi
16199
16200
16201
16202 if test x$use_libtool != xno -a x$install_includes = xyes; then
16203    INCLUDE_INSTALL_TARGET="install-includes"
16204    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16205 else
16206    INCLUDE_INSTALL_TARGET=""
16207    INCLUDE_UNINSTALL_TARGET=""
16208 fi
16209
16210
16211
16212
16213 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16214 $as_echo_n "checking host system type... " >&6; }
16215 if test "${ac_cv_host+set}" = set; then
16216   $as_echo_n "(cached) " >&6
16217 else
16218   if test "x$host_alias" = x; then
16219   ac_cv_host=$ac_cv_build
16220 else
16221   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16222     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16224    { (exit 1); exit 1; }; }
16225 fi
16226
16227 fi
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16229 $as_echo "$ac_cv_host" >&6; }
16230 case $ac_cv_host in
16231 *-*-*) ;;
16232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16234    { (exit 1); exit 1; }; };;
16235 esac
16236 host=$ac_cv_host
16237 ac_save_IFS=$IFS; IFS='-'
16238 set x $ac_cv_host
16239 shift
16240 host_cpu=$1
16241 host_vendor=$2
16242 shift; shift
16243 # Remember, the first character of IFS is used to create $*,
16244 # except with old shells:
16245 host_os=$*
16246 IFS=$ac_save_IFS
16247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16248
16249
16250 case $host_os in
16251   *cygwin* ) CYGWIN=yes;;
16252          * ) CYGWIN=no;;
16253 esac
16254
16255 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16256 then
16257
16258
16259 if $TRUEPRG; then
16260   HAVE_SUN_OS_TRUE=
16261   HAVE_SUN_OS_FALSE='#'
16262 else
16263   HAVE_SUN_OS_TRUE='#'
16264   HAVE_SUN_OS_FALSE=
16265 fi
16266         cat >>confdefs.h <<\_ACEOF
16267 #define HAVE_SUN_OS 1
16268 _ACEOF
16269
16270 else
16271
16272
16273 if $FALSEPRG; then
16274   HAVE_SUN_OS_TRUE=
16275   HAVE_SUN_OS_FALSE='#'
16276 else
16277   HAVE_SUN_OS_TRUE='#'
16278   HAVE_SUN_OS_FALSE=
16279 fi
16280 fi
16281
16282 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16283 then
16284
16285
16286 if $TRUEPRG; then
16287   HAVE_OSF1_OS_TRUE=
16288   HAVE_OSF1_OS_FALSE='#'
16289 else
16290   HAVE_OSF1_OS_TRUE='#'
16291   HAVE_OSF1_OS_FALSE=
16292 fi
16293         cat >>confdefs.h <<\_ACEOF
16294 #define HAVE_OSF1_OS 1
16295 _ACEOF
16296
16297 else
16298
16299
16300 if $FALSEPRG; then
16301   HAVE_OSF1_OS_TRUE=
16302   HAVE_OSF1_OS_FALSE='#'
16303 else
16304   HAVE_OSF1_OS_TRUE='#'
16305   HAVE_OSF1_OS_FALSE=
16306 fi
16307 fi
16308
16309 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16310 then
16311
16312
16313 if $TRUEPRG; then
16314   HAVE_AIX_OS_TRUE=
16315   HAVE_AIX_OS_FALSE='#'
16316 else
16317   HAVE_AIX_OS_TRUE='#'
16318   HAVE_AIX_OS_FALSE=
16319 fi
16320         cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_AIX_OS 1
16322 _ACEOF
16323
16324 else
16325
16326
16327 if $FALSEPRG; then
16328   HAVE_AIX_OS_TRUE=
16329   HAVE_AIX_OS_FALSE='#'
16330 else
16331   HAVE_AIX_OS_TRUE='#'
16332   HAVE_AIX_OS_FALSE=
16333 fi
16334 fi
16335
16336 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16337 then
16338
16339
16340 if $TRUEPRG; then
16341   HAVE_HPUX_OS_TRUE=
16342   HAVE_HPUX_OS_FALSE='#'
16343 else
16344   HAVE_HPUX_OS_TRUE='#'
16345   HAVE_HPUX_OS_FALSE=
16346 fi
16347         cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_HPUX_OS 1
16349 _ACEOF
16350
16351 else
16352
16353
16354 if $FALSEPRG; then
16355   HAVE_HPUX_OS_TRUE=
16356   HAVE_HPUX_OS_FALSE='#'
16357 else
16358   HAVE_HPUX_OS_TRUE='#'
16359   HAVE_HPUX_OS_FALSE=
16360 fi
16361 fi
16362
16363 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16364 then
16365
16366
16367 if $TRUEPRG; then
16368   HAVE_LINUX_OS_TRUE=
16369   HAVE_LINUX_OS_FALSE='#'
16370 else
16371   HAVE_LINUX_OS_TRUE='#'
16372   HAVE_LINUX_OS_FALSE=
16373 fi
16374         cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_LINUX_OS 1
16376 _ACEOF
16377
16378 else
16379
16380
16381 if $FALSEPRG; then
16382   HAVE_LINUX_OS_TRUE=
16383   HAVE_LINUX_OS_FALSE='#'
16384 else
16385   HAVE_LINUX_OS_TRUE='#'
16386   HAVE_LINUX_OS_FALSE=
16387 fi
16388 fi
16389
16390 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16391 then
16392
16393
16394 if $TRUEPRG; then
16395   HAVE_FREEBSD_OS_TRUE=
16396   HAVE_FREEBSD_OS_FALSE='#'
16397 else
16398   HAVE_FREEBSD_OS_TRUE='#'
16399   HAVE_FREEBSD_OS_FALSE=
16400 fi
16401         cat >>confdefs.h <<\_ACEOF
16402 #define HAVE_FREEBSD_OS 1
16403 _ACEOF
16404
16405 else
16406
16407
16408 if $FALSEPRG; then
16409   HAVE_FREEBSD_OS_TRUE=
16410   HAVE_FREEBSD_OS_FALSE='#'
16411 else
16412   HAVE_FREEBSD_OS_TRUE='#'
16413   HAVE_FREEBSD_OS_FALSE=
16414 fi
16415 fi
16416
16417 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16418 then
16419
16420
16421 if $TRUEPRG; then
16422   HAVE_NETBSD_OS_TRUE=
16423   HAVE_NETBSD_OS_FALSE='#'
16424 else
16425   HAVE_NETBSD_OS_TRUE='#'
16426   HAVE_NETBSD_OS_FALSE=
16427 fi
16428         cat >>confdefs.h <<\_ACEOF
16429 #define HAVE_NETBSD_OS 1
16430 _ACEOF
16431
16432 else
16433
16434
16435 if $FALSEPRG; then
16436   HAVE_NETBSD_OS_TRUE=
16437   HAVE_NETBSD_OS_FALSE='#'
16438 else
16439   HAVE_NETBSD_OS_TRUE='#'
16440   HAVE_NETBSD_OS_FALSE=
16441 fi
16442 fi
16443
16444 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16445 then
16446
16447
16448 if $TRUEPRG; then
16449   HAVE_OPENBSD_OS_TRUE=
16450   HAVE_OPENBSD_OS_FALSE='#'
16451 else
16452   HAVE_OPENBSD_OS_TRUE='#'
16453   HAVE_OPENBSD_OS_FALSE=
16454 fi
16455         cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_OPENBSD_OS 1
16457 _ACEOF
16458
16459 else
16460
16461
16462 if $FALSEPRG; then
16463   HAVE_OPENBSD_OS_TRUE=
16464   HAVE_OPENBSD_OS_FALSE='#'
16465 else
16466   HAVE_OPENBSD_OS_TRUE='#'
16467   HAVE_OPENBSD_OS_FALSE=
16468 fi
16469 fi
16470
16471 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16472 then
16473
16474
16475 if $TRUEPRG; then
16476   HAVE_BSDI_OS_TRUE=
16477   HAVE_BSDI_OS_FALSE='#'
16478 else
16479   HAVE_BSDI_OS_TRUE='#'
16480   HAVE_BSDI_OS_FALSE=
16481 fi
16482         cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_BSDI_OS 1
16484 _ACEOF
16485
16486 else
16487
16488
16489 if $FALSEPRG; then
16490   HAVE_BSDI_OS_TRUE=
16491   HAVE_BSDI_OS_FALSE='#'
16492 else
16493   HAVE_BSDI_OS_TRUE='#'
16494   HAVE_BSDI_OS_FALSE=
16495 fi
16496 fi
16497
16498 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16499 then
16500
16501
16502 if $TRUEPRG; then
16503   HAVE_SGI_OS_TRUE=
16504   HAVE_SGI_OS_FALSE='#'
16505 else
16506   HAVE_SGI_OS_TRUE='#'
16507   HAVE_SGI_OS_FALSE=
16508 fi
16509         cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_SGI_OS 1
16511 _ACEOF
16512
16513 else
16514
16515
16516 if $FALSEPRG; then
16517   HAVE_SGI_OS_TRUE=
16518   HAVE_SGI_OS_FALSE='#'
16519 else
16520   HAVE_SGI_OS_TRUE='#'
16521   HAVE_SGI_OS_FALSE=
16522 fi
16523 fi
16524
16525 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16526 then
16527
16528
16529 if $TRUEPRG; then
16530   HAVE_IRIX_OS_TRUE=
16531   HAVE_IRIX_OS_FALSE='#'
16532 else
16533   HAVE_IRIX_OS_TRUE='#'
16534   HAVE_IRIX_OS_FALSE=
16535 fi
16536         cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_IRIX_OS 1
16538 _ACEOF
16539
16540 else
16541
16542
16543 if $FALSEPRG; then
16544   HAVE_IRIX_OS_TRUE=
16545   HAVE_IRIX_OS_FALSE='#'
16546 else
16547   HAVE_IRIX_OS_TRUE='#'
16548   HAVE_IRIX_OS_FALSE=
16549 fi
16550 fi
16551
16552 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16553 then
16554
16555
16556 if $TRUEPRG; then
16557   HAVE_DARWIN_OS_TRUE=
16558   HAVE_DARWIN_OS_FALSE='#'
16559 else
16560   HAVE_DARWIN_OS_TRUE='#'
16561   HAVE_DARWIN_OS_FALSE=
16562 fi
16563     cat >>confdefs.h <<\_ACEOF
16564 #define HAVE_DARWIN_OS 1
16565 _ACEOF
16566
16567 else
16568
16569
16570 if $FALSEPRG; then
16571   HAVE_DARWIN_OS_TRUE=
16572   HAVE_DARWIN_OS_FALSE='#'
16573 else
16574   HAVE_DARWIN_OS_TRUE='#'
16575   HAVE_DARWIN_OS_FALSE=
16576 fi
16577 fi
16578
16579
16580 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16581 $as_echo_n "checking for Operating System Distribution... " >&6; }
16582 if test "x$DISTNAME" != "x"
16583 then
16584         echo "distname set to $DISTNAME"
16585 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16586 then
16587         DISTNAME=alpha
16588 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16589 then
16590         DISTNAME=aix
16591 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16592 then
16593         DISTNAME=hpux
16594 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16595 then
16596         DISTNAME=solaris
16597 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16598 then
16599         DISTNAME=freebsd
16600 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16601 then
16602         DISTNAME=netbsd
16603 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16604 then
16605         DISTNAME=openbsd
16606 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16607 then
16608         DISTNAME=irix
16609 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16610 then
16611         DISTNAME=bsdi
16612 elif test -f /etc/SuSE-release
16613 then
16614         DISTNAME=suse
16615 elif test -d /etc/SuSEconfig
16616 then
16617         DISTNAME=suse5
16618 elif test -f /etc/mandrake-release
16619 then
16620         DISTNAME=mandrake
16621 elif test -f /etc/whitebox-release
16622 then
16623        DISTNAME=redhat
16624 elif test -f /etc/redhat-release
16625 then
16626         DISTNAME=redhat
16627 elif test -f /etc/gentoo-release
16628 then
16629         DISTNAME=gentoo
16630 elif test -f /etc/debian_version
16631 then
16632         DISTNAME=debian
16633 elif test -f /etc/slackware-version
16634 then
16635         DISTNAME=slackware
16636 elif test x$host_vendor = xapple
16637 then
16638     DISTNAME=osx
16639 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16640 then
16641     DISTNAME=darwin
16642 elif test -f /etc/engarde-version
16643 then
16644         DISTNAME=engarde
16645 elif test -f /etc/arch-release
16646 then
16647         DISTNAME=archlinux
16648 elif test "$CYGWIN" = yes
16649 then
16650         DISTNAME=cygwin
16651         cat >>confdefs.h <<\_ACEOF
16652 #define HAVE_CYGWIN 1
16653 _ACEOF
16654
16655 else
16656         DISTNAME=unknown
16657 fi
16658 { $as_echo "$as_me:$LINENO: result: done" >&5
16659 $as_echo "done" >&6; }
16660
16661
16662 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16663 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16664 set x ${MAKE-make}
16665 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16666 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16667   $as_echo_n "(cached) " >&6
16668 else
16669   cat >conftest.make <<\_ACEOF
16670 SHELL = /bin/sh
16671 all:
16672         @echo '@@@%%%=$(MAKE)=@@@%%%'
16673 _ACEOF
16674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16676   *@@@%%%=?*=@@@%%%*)
16677     eval ac_cv_prog_make_${ac_make}_set=yes;;
16678   *)
16679     eval ac_cv_prog_make_${ac_make}_set=no;;
16680 esac
16681 rm -f conftest.make
16682 fi
16683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16684   { $as_echo "$as_me:$LINENO: result: yes" >&5
16685 $as_echo "yes" >&6; }
16686   SET_MAKE=
16687 else
16688   { $as_echo "$as_me:$LINENO: result: no" >&5
16689 $as_echo "no" >&6; }
16690   SET_MAKE="MAKE=${MAKE-make}"
16691 fi
16692
16693
16694
16695         MKINSTALLDIRS=
16696   if test -n "$ac_aux_dir"; then
16697     case "$ac_aux_dir" in
16698       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16699       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16700     esac
16701   fi
16702   if test -z "$MKINSTALLDIRS"; then
16703     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16704   fi
16705
16706
16707
16708   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16709 $as_echo_n "checking whether NLS is requested... " >&6; }
16710     # Check whether --enable-nls was given.
16711 if test "${enable_nls+set}" = set; then
16712   enableval=$enable_nls; USE_NLS=$enableval
16713 else
16714   USE_NLS=yes
16715 fi
16716
16717   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16718 $as_echo "$USE_NLS" >&6; }
16719
16720
16721
16722
16723
16724
16725 # Prepare PATH_SEPARATOR.
16726 # The user is always right.
16727 if test "${PATH_SEPARATOR+set}" != set; then
16728   echo "#! /bin/sh" >conf$$.sh
16729   echo  "exit 0"   >>conf$$.sh
16730   chmod +x conf$$.sh
16731   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16732     PATH_SEPARATOR=';'
16733   else
16734     PATH_SEPARATOR=:
16735   fi
16736   rm -f conf$$.sh
16737 fi
16738
16739 # Find out how to test for executable files. Don't use a zero-byte file,
16740 # as systems may use methods other than mode bits to determine executability.
16741 cat >conf$$.file <<_ASEOF
16742 #! /bin/sh
16743 exit 0
16744 _ASEOF
16745 chmod +x conf$$.file
16746 if test -x conf$$.file >/dev/null 2>&1; then
16747   ac_executable_p="test -x"
16748 else
16749   ac_executable_p="test -f"
16750 fi
16751 rm -f conf$$.file
16752
16753 # Extract the first word of "msgfmt", so it can be a program name with args.
16754 set dummy msgfmt; ac_word=$2
16755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16756 $as_echo_n "checking for $ac_word... " >&6; }
16757 if test "${ac_cv_path_MSGFMT+set}" = set; then
16758   $as_echo_n "(cached) " >&6
16759 else
16760   case "$MSGFMT" in
16761   [\\/]* | ?:[\\/]*)
16762     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16763     ;;
16764   *)
16765     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16766     for ac_dir in $PATH; do
16767       IFS="$ac_save_IFS"
16768       test -z "$ac_dir" && ac_dir=.
16769       for ac_exec_ext in '' $ac_executable_extensions; do
16770         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16771           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16772           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16773      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16774             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16775             break 2
16776           fi
16777         fi
16778       done
16779     done
16780     IFS="$ac_save_IFS"
16781   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16782     ;;
16783 esac
16784 fi
16785 MSGFMT="$ac_cv_path_MSGFMT"
16786 if test "$MSGFMT" != ":"; then
16787   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16788 $as_echo "$MSGFMT" >&6; }
16789 else
16790   { $as_echo "$as_me:$LINENO: result: no" >&5
16791 $as_echo "no" >&6; }
16792 fi
16793
16794   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16795 set dummy gmsgfmt; ac_word=$2
16796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16797 $as_echo_n "checking for $ac_word... " >&6; }
16798 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16799   $as_echo_n "(cached) " >&6
16800 else
16801   case $GMSGFMT in
16802   [\\/]* | ?:[\\/]*)
16803   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16804   ;;
16805   *)
16806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16807 for as_dir in $PATH
16808 do
16809   IFS=$as_save_IFS
16810   test -z "$as_dir" && as_dir=.
16811   for ac_exec_ext in '' $ac_executable_extensions; do
16812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16813     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16814     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16815     break 2
16816   fi
16817 done
16818 done
16819 IFS=$as_save_IFS
16820
16821   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16822   ;;
16823 esac
16824 fi
16825 GMSGFMT=$ac_cv_path_GMSGFMT
16826 if test -n "$GMSGFMT"; then
16827   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16828 $as_echo "$GMSGFMT" >&6; }
16829 else
16830   { $as_echo "$as_me:$LINENO: result: no" >&5
16831 $as_echo "no" >&6; }
16832 fi
16833
16834
16835
16836
16837 # Prepare PATH_SEPARATOR.
16838 # The user is always right.
16839 if test "${PATH_SEPARATOR+set}" != set; then
16840   echo "#! /bin/sh" >conf$$.sh
16841   echo  "exit 0"   >>conf$$.sh
16842   chmod +x conf$$.sh
16843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16844     PATH_SEPARATOR=';'
16845   else
16846     PATH_SEPARATOR=:
16847   fi
16848   rm -f conf$$.sh
16849 fi
16850
16851 # Find out how to test for executable files. Don't use a zero-byte file,
16852 # as systems may use methods other than mode bits to determine executability.
16853 cat >conf$$.file <<_ASEOF
16854 #! /bin/sh
16855 exit 0
16856 _ASEOF
16857 chmod +x conf$$.file
16858 if test -x conf$$.file >/dev/null 2>&1; then
16859   ac_executable_p="test -x"
16860 else
16861   ac_executable_p="test -f"
16862 fi
16863 rm -f conf$$.file
16864
16865 # Extract the first word of "xgettext", so it can be a program name with args.
16866 set dummy xgettext; ac_word=$2
16867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16868 $as_echo_n "checking for $ac_word... " >&6; }
16869 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16870   $as_echo_n "(cached) " >&6
16871 else
16872   case "$XGETTEXT" in
16873   [\\/]* | ?:[\\/]*)
16874     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16875     ;;
16876   *)
16877     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16878     for ac_dir in $PATH; do
16879       IFS="$ac_save_IFS"
16880       test -z "$ac_dir" && ac_dir=.
16881       for ac_exec_ext in '' $ac_executable_extensions; do
16882         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16883           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16884           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16885      (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
16886             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16887             break 2
16888           fi
16889         fi
16890       done
16891     done
16892     IFS="$ac_save_IFS"
16893   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16894     ;;
16895 esac
16896 fi
16897 XGETTEXT="$ac_cv_path_XGETTEXT"
16898 if test "$XGETTEXT" != ":"; then
16899   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16900 $as_echo "$XGETTEXT" >&6; }
16901 else
16902   { $as_echo "$as_me:$LINENO: result: no" >&5
16903 $as_echo "no" >&6; }
16904 fi
16905
16906     rm -f messages.po
16907
16908
16909 # Prepare PATH_SEPARATOR.
16910 # The user is always right.
16911 if test "${PATH_SEPARATOR+set}" != set; then
16912   echo "#! /bin/sh" >conf$$.sh
16913   echo  "exit 0"   >>conf$$.sh
16914   chmod +x conf$$.sh
16915   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16916     PATH_SEPARATOR=';'
16917   else
16918     PATH_SEPARATOR=:
16919   fi
16920   rm -f conf$$.sh
16921 fi
16922
16923 # Find out how to test for executable files. Don't use a zero-byte file,
16924 # as systems may use methods other than mode bits to determine executability.
16925 cat >conf$$.file <<_ASEOF
16926 #! /bin/sh
16927 exit 0
16928 _ASEOF
16929 chmod +x conf$$.file
16930 if test -x conf$$.file >/dev/null 2>&1; then
16931   ac_executable_p="test -x"
16932 else
16933   ac_executable_p="test -f"
16934 fi
16935 rm -f conf$$.file
16936
16937 # Extract the first word of "msgmerge", so it can be a program name with args.
16938 set dummy msgmerge; ac_word=$2
16939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16942   $as_echo_n "(cached) " >&6
16943 else
16944   case "$MSGMERGE" in
16945   [\\/]* | ?:[\\/]*)
16946     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16947     ;;
16948   *)
16949     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16950     for ac_dir in $PATH; do
16951       IFS="$ac_save_IFS"
16952       test -z "$ac_dir" && ac_dir=.
16953       for ac_exec_ext in '' $ac_executable_extensions; do
16954         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16955           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16956           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16957             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16958             break 2
16959           fi
16960         fi
16961       done
16962     done
16963     IFS="$ac_save_IFS"
16964   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16965     ;;
16966 esac
16967 fi
16968 MSGMERGE="$ac_cv_path_MSGMERGE"
16969 if test "$MSGMERGE" != ":"; then
16970   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16971 $as_echo "$MSGMERGE" >&6; }
16972 else
16973   { $as_echo "$as_me:$LINENO: result: no" >&5
16974 $as_echo "no" >&6; }
16975 fi
16976
16977
16978       if test "$GMSGFMT" != ":"; then
16979             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16980        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16981       : ;
16982     else
16983       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16984       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16985 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16986       GMSGFMT=":"
16987     fi
16988   fi
16989
16990       if test "$XGETTEXT" != ":"; then
16991             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16992        (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
16993       : ;
16994     else
16995       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16996 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16997       XGETTEXT=":"
16998     fi
16999         rm -f messages.po
17000   fi
17001
17002   ac_config_commands="$ac_config_commands default-1"
17003
17004
17005
17006       if test "X$prefix" = "XNONE"; then
17007     acl_final_prefix="$ac_default_prefix"
17008   else
17009     acl_final_prefix="$prefix"
17010   fi
17011   if test "X$exec_prefix" = "XNONE"; then
17012     acl_final_exec_prefix='${prefix}'
17013   else
17014     acl_final_exec_prefix="$exec_prefix"
17015   fi
17016   acl_save_prefix="$prefix"
17017   prefix="$acl_final_prefix"
17018   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17019   prefix="$acl_save_prefix"
17020
17021
17022 # Check whether --with-gnu-ld was given.
17023 if test "${with_gnu_ld+set}" = set; then
17024   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17025 else
17026   with_gnu_ld=no
17027 fi
17028
17029 # Prepare PATH_SEPARATOR.
17030 # The user is always right.
17031 if test "${PATH_SEPARATOR+set}" != set; then
17032   echo "#! /bin/sh" >conf$$.sh
17033   echo  "exit 0"   >>conf$$.sh
17034   chmod +x conf$$.sh
17035   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17036     PATH_SEPARATOR=';'
17037   else
17038     PATH_SEPARATOR=:
17039   fi
17040   rm -f conf$$.sh
17041 fi
17042 ac_prog=ld
17043 if test "$GCC" = yes; then
17044   # Check if gcc -print-prog-name=ld gives a path.
17045   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17046 $as_echo_n "checking for ld used by GCC... " >&6; }
17047   case $host in
17048   *-*-mingw*)
17049     # gcc leaves a trailing carriage return which upsets mingw
17050     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17051   *)
17052     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17053   esac
17054   case $ac_prog in
17055     # Accept absolute paths.
17056     [\\/]* | [A-Za-z]:[\\/]*)
17057       re_direlt='/[^/][^/]*/\.\./'
17058       # Canonicalize the path of ld
17059       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17060       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17061         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17062       done
17063       test -z "$LD" && LD="$ac_prog"
17064       ;;
17065   "")
17066     # If it fails, then pretend we aren't using GCC.
17067     ac_prog=ld
17068     ;;
17069   *)
17070     # If it is relative, then search for the first ld in PATH.
17071     with_gnu_ld=unknown
17072     ;;
17073   esac
17074 elif test "$with_gnu_ld" = yes; then
17075   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17076 $as_echo_n "checking for GNU ld... " >&6; }
17077 else
17078   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079 $as_echo_n "checking for non-GNU ld... " >&6; }
17080 fi
17081 if test "${acl_cv_path_LD+set}" = set; then
17082   $as_echo_n "(cached) " >&6
17083 else
17084   if test -z "$LD"; then
17085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17086   for ac_dir in $PATH; do
17087     test -z "$ac_dir" && ac_dir=.
17088     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17089       acl_cv_path_LD="$ac_dir/$ac_prog"
17090       # Check to see if the program is GNU ld.  I'd rather use --version,
17091       # but apparently some GNU ld's only accept -v.
17092       # Break only if it was the GNU/non-GNU ld that we prefer.
17093       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17094       *GNU* | *'with BFD'*)
17095         test "$with_gnu_ld" != no && break ;;
17096       *)
17097         test "$with_gnu_ld" != yes && break ;;
17098       esac
17099     fi
17100   done
17101   IFS="$ac_save_ifs"
17102 else
17103   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17104 fi
17105 fi
17106
17107 LD="$acl_cv_path_LD"
17108 if test -n "$LD"; then
17109   { $as_echo "$as_me:$LINENO: result: $LD" >&5
17110 $as_echo "$LD" >&6; }
17111 else
17112   { $as_echo "$as_me:$LINENO: result: no" >&5
17113 $as_echo "no" >&6; }
17114 fi
17115 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17116 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17117    { (exit 1); exit 1; }; }
17118 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17120 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17121   $as_echo_n "(cached) " >&6
17122 else
17123   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17124 case `$LD -v 2>&1 </dev/null` in
17125 *GNU* | *'with BFD'*)
17126   acl_cv_prog_gnu_ld=yes ;;
17127 *)
17128   acl_cv_prog_gnu_ld=no ;;
17129 esac
17130 fi
17131 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17133 with_gnu_ld=$acl_cv_prog_gnu_ld
17134
17135
17136
17137
17138                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17139 $as_echo_n "checking for shared library run path origin... " >&6; }
17140 if test "${acl_cv_rpath+set}" = set; then
17141   $as_echo_n "(cached) " >&6
17142 else
17143
17144     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17145     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17146     . ./conftest.sh
17147     rm -f ./conftest.sh
17148     acl_cv_rpath=done
17149
17150 fi
17151 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17152 $as_echo "$acl_cv_rpath" >&6; }
17153   wl="$acl_cv_wl"
17154   libext="$acl_cv_libext"
17155   shlibext="$acl_cv_shlibext"
17156   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17157   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17158   hardcode_direct="$acl_cv_hardcode_direct"
17159   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17160     # Check whether --enable-rpath was given.
17161 if test "${enable_rpath+set}" = set; then
17162   enableval=$enable_rpath; :
17163 else
17164   enable_rpath=yes
17165 fi
17166
17167
17168
17169
17170
17171
17172
17173
17174     use_additional=yes
17175
17176   acl_save_prefix="$prefix"
17177   prefix="$acl_final_prefix"
17178   acl_save_exec_prefix="$exec_prefix"
17179   exec_prefix="$acl_final_exec_prefix"
17180
17181     eval additional_includedir=\"$includedir\"
17182     eval additional_libdir=\"$libdir\"
17183
17184   exec_prefix="$acl_save_exec_prefix"
17185   prefix="$acl_save_prefix"
17186
17187
17188 # Check whether --with-libiconv-prefix was given.
17189 if test "${with_libiconv_prefix+set}" = set; then
17190   withval=$with_libiconv_prefix;
17191     if test "X$withval" = "Xno"; then
17192       use_additional=no
17193     else
17194       if test "X$withval" = "X"; then
17195
17196   acl_save_prefix="$prefix"
17197   prefix="$acl_final_prefix"
17198   acl_save_exec_prefix="$exec_prefix"
17199   exec_prefix="$acl_final_exec_prefix"
17200
17201           eval additional_includedir=\"$includedir\"
17202           eval additional_libdir=\"$libdir\"
17203
17204   exec_prefix="$acl_save_exec_prefix"
17205   prefix="$acl_save_prefix"
17206
17207       else
17208         additional_includedir="$withval/include"
17209         additional_libdir="$withval/lib"
17210       fi
17211     fi
17212
17213 fi
17214
17215       LIBICONV=
17216   LTLIBICONV=
17217   INCICONV=
17218   rpathdirs=
17219   ltrpathdirs=
17220   names_already_handled=
17221   names_next_round='iconv '
17222   while test -n "$names_next_round"; do
17223     names_this_round="$names_next_round"
17224     names_next_round=
17225     for name in $names_this_round; do
17226       already_handled=
17227       for n in $names_already_handled; do
17228         if test "$n" = "$name"; then
17229           already_handled=yes
17230           break
17231         fi
17232       done
17233       if test -z "$already_handled"; then
17234         names_already_handled="$names_already_handled $name"
17235                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17236         eval value=\"\$HAVE_LIB$uppername\"
17237         if test -n "$value"; then
17238           if test "$value" = yes; then
17239             eval value=\"\$LIB$uppername\"
17240             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17241             eval value=\"\$LTLIB$uppername\"
17242             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17243           else
17244                                     :
17245           fi
17246         else
17247                               found_dir=
17248           found_la=
17249           found_so=
17250           found_a=
17251           if test $use_additional = yes; then
17252             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17253               found_dir="$additional_libdir"
17254               found_so="$additional_libdir/lib$name.$shlibext"
17255               if test -f "$additional_libdir/lib$name.la"; then
17256                 found_la="$additional_libdir/lib$name.la"
17257               fi
17258             else
17259               if test -f "$additional_libdir/lib$name.$libext"; then
17260                 found_dir="$additional_libdir"
17261                 found_a="$additional_libdir/lib$name.$libext"
17262                 if test -f "$additional_libdir/lib$name.la"; then
17263                   found_la="$additional_libdir/lib$name.la"
17264                 fi
17265               fi
17266             fi
17267           fi
17268           if test "X$found_dir" = "X"; then
17269             for x in $LDFLAGS $LTLIBICONV; do
17270
17271   acl_save_prefix="$prefix"
17272   prefix="$acl_final_prefix"
17273   acl_save_exec_prefix="$exec_prefix"
17274   exec_prefix="$acl_final_exec_prefix"
17275   eval x=\"$x\"
17276   exec_prefix="$acl_save_exec_prefix"
17277   prefix="$acl_save_prefix"
17278
17279               case "$x" in
17280                 -L*)
17281                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17282                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17283                     found_dir="$dir"
17284                     found_so="$dir/lib$name.$shlibext"
17285                     if test -f "$dir/lib$name.la"; then
17286                       found_la="$dir/lib$name.la"
17287                     fi
17288                   else
17289                     if test -f "$dir/lib$name.$libext"; then
17290                       found_dir="$dir"
17291                       found_a="$dir/lib$name.$libext"
17292                       if test -f "$dir/lib$name.la"; then
17293                         found_la="$dir/lib$name.la"
17294                       fi
17295                     fi
17296                   fi
17297                   ;;
17298               esac
17299               if test "X$found_dir" != "X"; then
17300                 break
17301               fi
17302             done
17303           fi
17304           if test "X$found_dir" != "X"; then
17305                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17306             if test "X$found_so" != "X"; then
17307                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17308                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17309               else
17310                                                                                 haveit=
17311                 for x in $ltrpathdirs; do
17312                   if test "X$x" = "X$found_dir"; then
17313                     haveit=yes
17314                     break
17315                   fi
17316                 done
17317                 if test -z "$haveit"; then
17318                   ltrpathdirs="$ltrpathdirs $found_dir"
17319                 fi
17320                                 if test "$hardcode_direct" = yes; then
17321                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17322                 else
17323                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17324                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17325                                                             haveit=
17326                     for x in $rpathdirs; do
17327                       if test "X$x" = "X$found_dir"; then
17328                         haveit=yes
17329                         break
17330                       fi
17331                     done
17332                     if test -z "$haveit"; then
17333                       rpathdirs="$rpathdirs $found_dir"
17334                     fi
17335                   else
17336                                                                                 haveit=
17337                     for x in $LDFLAGS $LIBICONV; do
17338
17339   acl_save_prefix="$prefix"
17340   prefix="$acl_final_prefix"
17341   acl_save_exec_prefix="$exec_prefix"
17342   exec_prefix="$acl_final_exec_prefix"
17343   eval x=\"$x\"
17344   exec_prefix="$acl_save_exec_prefix"
17345   prefix="$acl_save_prefix"
17346
17347                       if test "X$x" = "X-L$found_dir"; then
17348                         haveit=yes
17349                         break
17350                       fi
17351                     done
17352                     if test -z "$haveit"; then
17353                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17354                     fi
17355                     if test "$hardcode_minus_L" != no; then
17356                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17357                     else
17358                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17359                     fi
17360                   fi
17361                 fi
17362               fi
17363             else
17364               if test "X$found_a" != "X"; then
17365                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17366               else
17367                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17368               fi
17369             fi
17370                         additional_includedir=
17371             case "$found_dir" in
17372               */lib | */lib/)
17373                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17374                 additional_includedir="$basedir/include"
17375                 ;;
17376             esac
17377             if test "X$additional_includedir" != "X"; then
17378                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17379                 haveit=
17380                 if test "X$additional_includedir" = "X/usr/local/include"; then
17381                   if test -n "$GCC"; then
17382                     case $host_os in
17383                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17384                     esac
17385                   fi
17386                 fi
17387                 if test -z "$haveit"; then
17388                   for x in $CPPFLAGS $INCICONV; do
17389
17390   acl_save_prefix="$prefix"
17391   prefix="$acl_final_prefix"
17392   acl_save_exec_prefix="$exec_prefix"
17393   exec_prefix="$acl_final_exec_prefix"
17394   eval x=\"$x\"
17395   exec_prefix="$acl_save_exec_prefix"
17396   prefix="$acl_save_prefix"
17397
17398                     if test "X$x" = "X-I$additional_includedir"; then
17399                       haveit=yes
17400                       break
17401                     fi
17402                   done
17403                   if test -z "$haveit"; then
17404                     if test -d "$additional_includedir"; then
17405                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17406                     fi
17407                   fi
17408                 fi
17409               fi
17410             fi
17411                         if test -n "$found_la"; then
17412                                                         save_libdir="$libdir"
17413               case "$found_la" in
17414                 */* | *\\*) . "$found_la" ;;
17415                 *) . "./$found_la" ;;
17416               esac
17417               libdir="$save_libdir"
17418                             for dep in $dependency_libs; do
17419                 case "$dep" in
17420                   -L*)
17421                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17422                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17423                       haveit=
17424                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17425                         if test -n "$GCC"; then
17426                           case $host_os in
17427                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17428                           esac
17429                         fi
17430                       fi
17431                       if test -z "$haveit"; then
17432                         haveit=
17433                         for x in $LDFLAGS $LIBICONV; do
17434
17435   acl_save_prefix="$prefix"
17436   prefix="$acl_final_prefix"
17437   acl_save_exec_prefix="$exec_prefix"
17438   exec_prefix="$acl_final_exec_prefix"
17439   eval x=\"$x\"
17440   exec_prefix="$acl_save_exec_prefix"
17441   prefix="$acl_save_prefix"
17442
17443                           if test "X$x" = "X-L$additional_libdir"; then
17444                             haveit=yes
17445                             break
17446                           fi
17447                         done
17448                         if test -z "$haveit"; then
17449                           if test -d "$additional_libdir"; then
17450                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17451                           fi
17452                         fi
17453                         haveit=
17454                         for x in $LDFLAGS $LTLIBICONV; do
17455
17456   acl_save_prefix="$prefix"
17457   prefix="$acl_final_prefix"
17458   acl_save_exec_prefix="$exec_prefix"
17459   exec_prefix="$acl_final_exec_prefix"
17460   eval x=\"$x\"
17461   exec_prefix="$acl_save_exec_prefix"
17462   prefix="$acl_save_prefix"
17463
17464                           if test "X$x" = "X-L$additional_libdir"; then
17465                             haveit=yes
17466                             break
17467                           fi
17468                         done
17469                         if test -z "$haveit"; then
17470                           if test -d "$additional_libdir"; then
17471                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17472                           fi
17473                         fi
17474                       fi
17475                     fi
17476                     ;;
17477                   -R*)
17478                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17479                     if test "$enable_rpath" != no; then
17480                                                                   haveit=
17481                       for x in $rpathdirs; do
17482                         if test "X$x" = "X$dir"; then
17483                           haveit=yes
17484                           break
17485                         fi
17486                       done
17487                       if test -z "$haveit"; then
17488                         rpathdirs="$rpathdirs $dir"
17489                       fi
17490                                                                   haveit=
17491                       for x in $ltrpathdirs; do
17492                         if test "X$x" = "X$dir"; then
17493                           haveit=yes
17494                           break
17495                         fi
17496                       done
17497                       if test -z "$haveit"; then
17498                         ltrpathdirs="$ltrpathdirs $dir"
17499                       fi
17500                     fi
17501                     ;;
17502                   -l*)
17503                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17504                     ;;
17505                   *.la)
17506                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17507                     ;;
17508                   *)
17509                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17510                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17511                     ;;
17512                 esac
17513               done
17514             fi
17515           else
17516                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17517             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17518           fi
17519         fi
17520       fi
17521     done
17522   done
17523   if test "X$rpathdirs" != "X"; then
17524     if test -n "$hardcode_libdir_separator"; then
17525                         alldirs=
17526       for found_dir in $rpathdirs; do
17527         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17528       done
17529             acl_save_libdir="$libdir"
17530       libdir="$alldirs"
17531       eval flag=\"$hardcode_libdir_flag_spec\"
17532       libdir="$acl_save_libdir"
17533       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17534     else
17535             for found_dir in $rpathdirs; do
17536         acl_save_libdir="$libdir"
17537         libdir="$found_dir"
17538         eval flag=\"$hardcode_libdir_flag_spec\"
17539         libdir="$acl_save_libdir"
17540         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17541       done
17542     fi
17543   fi
17544   if test "X$ltrpathdirs" != "X"; then
17545             for found_dir in $ltrpathdirs; do
17546       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17547     done
17548   fi
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17568 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17569 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17570   $as_echo_n "(cached) " >&6
17571 else
17572   gt_save_CPPFLAGS="$CPPFLAGS"
17573      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17574      gt_save_LIBS="$LIBS"
17575      LIBS="$LIBS -framework CoreFoundation"
17576      cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582 #include <CFPreferences.h>
17583 int
17584 main ()
17585 {
17586 CFPreferencesCopyAppValue(NULL, NULL)
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17598 $as_echo "$ac_try_echo") >&5
17599   (eval "$ac_link") 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } && {
17606          test -z "$ac_c_werror_flag" ||
17607          test ! -s conftest.err
17608        } && test -s conftest$ac_exeext && {
17609          test "$cross_compiling" = yes ||
17610          $as_test_x conftest$ac_exeext
17611        }; then
17612   gt_cv_func_CFPreferencesCopyAppValue=yes
17613 else
17614   $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         gt_cv_func_CFPreferencesCopyAppValue=no
17618 fi
17619
17620 rm -rf conftest.dSYM
17621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17622       conftest$ac_exeext conftest.$ac_ext
17623      CPPFLAGS="$gt_save_CPPFLAGS"
17624      LIBS="$gt_save_LIBS"
17625 fi
17626 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17627 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17628   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17629
17630 cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17632 _ACEOF
17633
17634   fi
17635     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17636 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17637 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17638   $as_echo_n "(cached) " >&6
17639 else
17640   gt_save_CPPFLAGS="$CPPFLAGS"
17641      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17642      gt_save_LIBS="$LIBS"
17643      LIBS="$LIBS -framework CoreFoundation"
17644      cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650 #include <CFLocale.h>
17651 int
17652 main ()
17653 {
17654 CFLocaleCopyCurrent();
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17666 $as_echo "$ac_try_echo") >&5
17667   (eval "$ac_link") 2>conftest.er1
17668   ac_status=$?
17669   grep -v '^ *+' conftest.er1 >conftest.err
17670   rm -f conftest.er1
17671   cat conftest.err >&5
17672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); } && {
17674          test -z "$ac_c_werror_flag" ||
17675          test ! -s conftest.err
17676        } && test -s conftest$ac_exeext && {
17677          test "$cross_compiling" = yes ||
17678          $as_test_x conftest$ac_exeext
17679        }; then
17680   gt_cv_func_CFLocaleCopyCurrent=yes
17681 else
17682   $as_echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17684
17685         gt_cv_func_CFLocaleCopyCurrent=no
17686 fi
17687
17688 rm -rf conftest.dSYM
17689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17690       conftest$ac_exeext conftest.$ac_ext
17691      CPPFLAGS="$gt_save_CPPFLAGS"
17692      LIBS="$gt_save_LIBS"
17693 fi
17694 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17695 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17696   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17697
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_CFLOCALECOPYCURRENT 1
17700 _ACEOF
17701
17702   fi
17703   INTL_MACOSX_LIBS=
17704   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17705     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17706   fi
17707
17708
17709
17710
17711   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17712 $as_echo_n "checking whether NLS is requested... " >&6; }
17713     # Check whether --enable-nls was given.
17714 if test "${enable_nls+set}" = set; then
17715   enableval=$enable_nls; USE_NLS=$enableval
17716 else
17717   USE_NLS=yes
17718 fi
17719
17720   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17721 $as_echo "$USE_NLS" >&6; }
17722
17723
17724
17725
17726   LIBINTL=
17727   LTLIBINTL=
17728   POSUB=
17729
17730     if test "$USE_NLS" = "yes"; then
17731     gt_use_preinstalled_gnugettext=no
17732
17733
17734
17735
17736
17737
17738         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17739 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17740 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17741   $as_echo_n "(cached) " >&6
17742 else
17743   cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749 #include <libintl.h>
17750 extern int _nl_msg_cat_cntr;
17751 extern int *_nl_domain_bindings;
17752 int
17753 main ()
17754 {
17755 bindtextdomain ("", "");
17756 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17768 $as_echo "$ac_try_echo") >&5
17769   (eval "$ac_link") 2>conftest.er1
17770   ac_status=$?
17771   grep -v '^ *+' conftest.er1 >conftest.err
17772   rm -f conftest.er1
17773   cat conftest.err >&5
17774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); } && {
17776          test -z "$ac_c_werror_flag" ||
17777          test ! -s conftest.err
17778        } && test -s conftest$ac_exeext && {
17779          test "$cross_compiling" = yes ||
17780          $as_test_x conftest$ac_exeext
17781        }; then
17782   gt_cv_func_gnugettext1_libc=yes
17783 else
17784   $as_echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787         gt_cv_func_gnugettext1_libc=no
17788 fi
17789
17790 rm -rf conftest.dSYM
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792       conftest$ac_exeext conftest.$ac_ext
17793 fi
17794 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17795 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17796
17797         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17798
17799
17800
17801
17802
17803           am_save_CPPFLAGS="$CPPFLAGS"
17804
17805   for element in $INCICONV; do
17806     haveit=
17807     for x in $CPPFLAGS; do
17808
17809   acl_save_prefix="$prefix"
17810   prefix="$acl_final_prefix"
17811   acl_save_exec_prefix="$exec_prefix"
17812   exec_prefix="$acl_final_exec_prefix"
17813   eval x=\"$x\"
17814   exec_prefix="$acl_save_exec_prefix"
17815   prefix="$acl_save_prefix"
17816
17817       if test "X$x" = "X$element"; then
17818         haveit=yes
17819         break
17820       fi
17821     done
17822     if test -z "$haveit"; then
17823       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17824     fi
17825   done
17826
17827
17828   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17829 $as_echo_n "checking for iconv... " >&6; }
17830 if test "${am_cv_func_iconv+set}" = set; then
17831   $as_echo_n "(cached) " >&6
17832 else
17833
17834     am_cv_func_iconv="no, consider installing GNU libiconv"
17835     am_cv_lib_iconv=no
17836     cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 #include <stdlib.h>
17843 #include <iconv.h>
17844 int
17845 main ()
17846 {
17847 iconv_t cd = iconv_open("","");
17848        iconv(cd,NULL,NULL,NULL,NULL);
17849        iconv_close(cd);
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (ac_try="$ac_link"
17856 case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862   (eval "$ac_link") 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } && {
17869          test -z "$ac_c_werror_flag" ||
17870          test ! -s conftest.err
17871        } && test -s conftest$ac_exeext && {
17872          test "$cross_compiling" = yes ||
17873          $as_test_x conftest$ac_exeext
17874        }; then
17875   am_cv_func_iconv=yes
17876 else
17877   $as_echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880
17881 fi
17882
17883 rm -rf conftest.dSYM
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885       conftest$ac_exeext conftest.$ac_ext
17886     if test "$am_cv_func_iconv" != yes; then
17887       am_save_LIBS="$LIBS"
17888       LIBS="$LIBS $LIBICONV"
17889       cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895 #include <stdlib.h>
17896 #include <iconv.h>
17897 int
17898 main ()
17899 {
17900 iconv_t cd = iconv_open("","");
17901          iconv(cd,NULL,NULL,NULL,NULL);
17902          iconv_close(cd);
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915   (eval "$ac_link") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_c_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest$ac_exeext && {
17925          test "$cross_compiling" = yes ||
17926          $as_test_x conftest$ac_exeext
17927        }; then
17928   am_cv_lib_iconv=yes
17929         am_cv_func_iconv=yes
17930 else
17931   $as_echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934
17935 fi
17936
17937 rm -rf conftest.dSYM
17938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17939       conftest$ac_exeext conftest.$ac_ext
17940       LIBS="$am_save_LIBS"
17941     fi
17942
17943 fi
17944 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17945 $as_echo "$am_cv_func_iconv" >&6; }
17946   if test "$am_cv_func_iconv" = yes; then
17947
17948 cat >>confdefs.h <<\_ACEOF
17949 #define HAVE_ICONV 1
17950 _ACEOF
17951
17952   fi
17953   if test "$am_cv_lib_iconv" = yes; then
17954     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17955 $as_echo_n "checking how to link with libiconv... " >&6; }
17956     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17957 $as_echo "$LIBICONV" >&6; }
17958   else
17959             CPPFLAGS="$am_save_CPPFLAGS"
17960     LIBICONV=
17961     LTLIBICONV=
17962   fi
17963
17964
17965
17966
17967
17968
17969     use_additional=yes
17970
17971   acl_save_prefix="$prefix"
17972   prefix="$acl_final_prefix"
17973   acl_save_exec_prefix="$exec_prefix"
17974   exec_prefix="$acl_final_exec_prefix"
17975
17976     eval additional_includedir=\"$includedir\"
17977     eval additional_libdir=\"$libdir\"
17978
17979   exec_prefix="$acl_save_exec_prefix"
17980   prefix="$acl_save_prefix"
17981
17982
17983 # Check whether --with-libintl-prefix was given.
17984 if test "${with_libintl_prefix+set}" = set; then
17985   withval=$with_libintl_prefix;
17986     if test "X$withval" = "Xno"; then
17987       use_additional=no
17988     else
17989       if test "X$withval" = "X"; then
17990
17991   acl_save_prefix="$prefix"
17992   prefix="$acl_final_prefix"
17993   acl_save_exec_prefix="$exec_prefix"
17994   exec_prefix="$acl_final_exec_prefix"
17995
17996           eval additional_includedir=\"$includedir\"
17997           eval additional_libdir=\"$libdir\"
17998
17999   exec_prefix="$acl_save_exec_prefix"
18000   prefix="$acl_save_prefix"
18001
18002       else
18003         additional_includedir="$withval/include"
18004         additional_libdir="$withval/lib"
18005       fi
18006     fi
18007
18008 fi
18009
18010       LIBINTL=
18011   LTLIBINTL=
18012   INCINTL=
18013   rpathdirs=
18014   ltrpathdirs=
18015   names_already_handled=
18016   names_next_round='intl '
18017   while test -n "$names_next_round"; do
18018     names_this_round="$names_next_round"
18019     names_next_round=
18020     for name in $names_this_round; do
18021       already_handled=
18022       for n in $names_already_handled; do
18023         if test "$n" = "$name"; then
18024           already_handled=yes
18025           break
18026         fi
18027       done
18028       if test -z "$already_handled"; then
18029         names_already_handled="$names_already_handled $name"
18030                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18031         eval value=\"\$HAVE_LIB$uppername\"
18032         if test -n "$value"; then
18033           if test "$value" = yes; then
18034             eval value=\"\$LIB$uppername\"
18035             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18036             eval value=\"\$LTLIB$uppername\"
18037             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18038           else
18039                                     :
18040           fi
18041         else
18042                               found_dir=
18043           found_la=
18044           found_so=
18045           found_a=
18046           if test $use_additional = yes; then
18047             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18048               found_dir="$additional_libdir"
18049               found_so="$additional_libdir/lib$name.$shlibext"
18050               if test -f "$additional_libdir/lib$name.la"; then
18051                 found_la="$additional_libdir/lib$name.la"
18052               fi
18053             else
18054               if test -f "$additional_libdir/lib$name.$libext"; then
18055                 found_dir="$additional_libdir"
18056                 found_a="$additional_libdir/lib$name.$libext"
18057                 if test -f "$additional_libdir/lib$name.la"; then
18058                   found_la="$additional_libdir/lib$name.la"
18059                 fi
18060               fi
18061             fi
18062           fi
18063           if test "X$found_dir" = "X"; then
18064             for x in $LDFLAGS $LTLIBINTL; do
18065
18066   acl_save_prefix="$prefix"
18067   prefix="$acl_final_prefix"
18068   acl_save_exec_prefix="$exec_prefix"
18069   exec_prefix="$acl_final_exec_prefix"
18070   eval x=\"$x\"
18071   exec_prefix="$acl_save_exec_prefix"
18072   prefix="$acl_save_prefix"
18073
18074               case "$x" in
18075                 -L*)
18076                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18077                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18078                     found_dir="$dir"
18079                     found_so="$dir/lib$name.$shlibext"
18080                     if test -f "$dir/lib$name.la"; then
18081                       found_la="$dir/lib$name.la"
18082                     fi
18083                   else
18084                     if test -f "$dir/lib$name.$libext"; then
18085                       found_dir="$dir"
18086                       found_a="$dir/lib$name.$libext"
18087                       if test -f "$dir/lib$name.la"; then
18088                         found_la="$dir/lib$name.la"
18089                       fi
18090                     fi
18091                   fi
18092                   ;;
18093               esac
18094               if test "X$found_dir" != "X"; then
18095                 break
18096               fi
18097             done
18098           fi
18099           if test "X$found_dir" != "X"; then
18100                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18101             if test "X$found_so" != "X"; then
18102                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18103                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18104               else
18105                                                                                 haveit=
18106                 for x in $ltrpathdirs; do
18107                   if test "X$x" = "X$found_dir"; then
18108                     haveit=yes
18109                     break
18110                   fi
18111                 done
18112                 if test -z "$haveit"; then
18113                   ltrpathdirs="$ltrpathdirs $found_dir"
18114                 fi
18115                                 if test "$hardcode_direct" = yes; then
18116                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18117                 else
18118                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18119                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18120                                                             haveit=
18121                     for x in $rpathdirs; do
18122                       if test "X$x" = "X$found_dir"; then
18123                         haveit=yes
18124                         break
18125                       fi
18126                     done
18127                     if test -z "$haveit"; then
18128                       rpathdirs="$rpathdirs $found_dir"
18129                     fi
18130                   else
18131                                                                                 haveit=
18132                     for x in $LDFLAGS $LIBINTL; do
18133
18134   acl_save_prefix="$prefix"
18135   prefix="$acl_final_prefix"
18136   acl_save_exec_prefix="$exec_prefix"
18137   exec_prefix="$acl_final_exec_prefix"
18138   eval x=\"$x\"
18139   exec_prefix="$acl_save_exec_prefix"
18140   prefix="$acl_save_prefix"
18141
18142                       if test "X$x" = "X-L$found_dir"; then
18143                         haveit=yes
18144                         break
18145                       fi
18146                     done
18147                     if test -z "$haveit"; then
18148                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18149                     fi
18150                     if test "$hardcode_minus_L" != no; then
18151                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18152                     else
18153                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18154                     fi
18155                   fi
18156                 fi
18157               fi
18158             else
18159               if test "X$found_a" != "X"; then
18160                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18161               else
18162                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18163               fi
18164             fi
18165                         additional_includedir=
18166             case "$found_dir" in
18167               */lib | */lib/)
18168                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18169                 additional_includedir="$basedir/include"
18170                 ;;
18171             esac
18172             if test "X$additional_includedir" != "X"; then
18173                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18174                 haveit=
18175                 if test "X$additional_includedir" = "X/usr/local/include"; then
18176                   if test -n "$GCC"; then
18177                     case $host_os in
18178                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18179                     esac
18180                   fi
18181                 fi
18182                 if test -z "$haveit"; then
18183                   for x in $CPPFLAGS $INCINTL; do
18184
18185   acl_save_prefix="$prefix"
18186   prefix="$acl_final_prefix"
18187   acl_save_exec_prefix="$exec_prefix"
18188   exec_prefix="$acl_final_exec_prefix"
18189   eval x=\"$x\"
18190   exec_prefix="$acl_save_exec_prefix"
18191   prefix="$acl_save_prefix"
18192
18193                     if test "X$x" = "X-I$additional_includedir"; then
18194                       haveit=yes
18195                       break
18196                     fi
18197                   done
18198                   if test -z "$haveit"; then
18199                     if test -d "$additional_includedir"; then
18200                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18201                     fi
18202                   fi
18203                 fi
18204               fi
18205             fi
18206                         if test -n "$found_la"; then
18207                                                         save_libdir="$libdir"
18208               case "$found_la" in
18209                 */* | *\\*) . "$found_la" ;;
18210                 *) . "./$found_la" ;;
18211               esac
18212               libdir="$save_libdir"
18213                             for dep in $dependency_libs; do
18214                 case "$dep" in
18215                   -L*)
18216                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18217                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18218                       haveit=
18219                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18220                         if test -n "$GCC"; then
18221                           case $host_os in
18222                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18223                           esac
18224                         fi
18225                       fi
18226                       if test -z "$haveit"; then
18227                         haveit=
18228                         for x in $LDFLAGS $LIBINTL; do
18229
18230   acl_save_prefix="$prefix"
18231   prefix="$acl_final_prefix"
18232   acl_save_exec_prefix="$exec_prefix"
18233   exec_prefix="$acl_final_exec_prefix"
18234   eval x=\"$x\"
18235   exec_prefix="$acl_save_exec_prefix"
18236   prefix="$acl_save_prefix"
18237
18238                           if test "X$x" = "X-L$additional_libdir"; then
18239                             haveit=yes
18240                             break
18241                           fi
18242                         done
18243                         if test -z "$haveit"; then
18244                           if test -d "$additional_libdir"; then
18245                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18246                           fi
18247                         fi
18248                         haveit=
18249                         for x in $LDFLAGS $LTLIBINTL; do
18250
18251   acl_save_prefix="$prefix"
18252   prefix="$acl_final_prefix"
18253   acl_save_exec_prefix="$exec_prefix"
18254   exec_prefix="$acl_final_exec_prefix"
18255   eval x=\"$x\"
18256   exec_prefix="$acl_save_exec_prefix"
18257   prefix="$acl_save_prefix"
18258
18259                           if test "X$x" = "X-L$additional_libdir"; then
18260                             haveit=yes
18261                             break
18262                           fi
18263                         done
18264                         if test -z "$haveit"; then
18265                           if test -d "$additional_libdir"; then
18266                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18267                           fi
18268                         fi
18269                       fi
18270                     fi
18271                     ;;
18272                   -R*)
18273                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18274                     if test "$enable_rpath" != no; then
18275                                                                   haveit=
18276                       for x in $rpathdirs; do
18277                         if test "X$x" = "X$dir"; then
18278                           haveit=yes
18279                           break
18280                         fi
18281                       done
18282                       if test -z "$haveit"; then
18283                         rpathdirs="$rpathdirs $dir"
18284                       fi
18285                                                                   haveit=
18286                       for x in $ltrpathdirs; do
18287                         if test "X$x" = "X$dir"; then
18288                           haveit=yes
18289                           break
18290                         fi
18291                       done
18292                       if test -z "$haveit"; then
18293                         ltrpathdirs="$ltrpathdirs $dir"
18294                       fi
18295                     fi
18296                     ;;
18297                   -l*)
18298                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18299                     ;;
18300                   *.la)
18301                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18302                     ;;
18303                   *)
18304                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18305                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18306                     ;;
18307                 esac
18308               done
18309             fi
18310           else
18311                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18312             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18313           fi
18314         fi
18315       fi
18316     done
18317   done
18318   if test "X$rpathdirs" != "X"; then
18319     if test -n "$hardcode_libdir_separator"; then
18320                         alldirs=
18321       for found_dir in $rpathdirs; do
18322         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18323       done
18324             acl_save_libdir="$libdir"
18325       libdir="$alldirs"
18326       eval flag=\"$hardcode_libdir_flag_spec\"
18327       libdir="$acl_save_libdir"
18328       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18329     else
18330             for found_dir in $rpathdirs; do
18331         acl_save_libdir="$libdir"
18332         libdir="$found_dir"
18333         eval flag=\"$hardcode_libdir_flag_spec\"
18334         libdir="$acl_save_libdir"
18335         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18336       done
18337     fi
18338   fi
18339   if test "X$ltrpathdirs" != "X"; then
18340             for found_dir in $ltrpathdirs; do
18341       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18342     done
18343   fi
18344
18345           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18346 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18347 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18348   $as_echo_n "(cached) " >&6
18349 else
18350   gt_save_CPPFLAGS="$CPPFLAGS"
18351             CPPFLAGS="$CPPFLAGS $INCINTL"
18352             gt_save_LIBS="$LIBS"
18353             LIBS="$LIBS $LIBINTL"
18354                         cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 #include <libintl.h>
18361 extern int _nl_msg_cat_cntr;
18362 extern
18363 #ifdef __cplusplus
18364 "C"
18365 #endif
18366 const char *_nl_expand_alias (const char *);
18367 int
18368 main ()
18369 {
18370 bindtextdomain ("", "");
18371 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (ac_try="$ac_link"
18378 case "(($ac_try" in
18379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380   *) ac_try_echo=$ac_try;;
18381 esac
18382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18383 $as_echo "$ac_try_echo") >&5
18384   (eval "$ac_link") 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } && {
18391          test -z "$ac_c_werror_flag" ||
18392          test ! -s conftest.err
18393        } && test -s conftest$ac_exeext && {
18394          test "$cross_compiling" = yes ||
18395          $as_test_x conftest$ac_exeext
18396        }; then
18397   gt_cv_func_gnugettext1_libintl=yes
18398 else
18399   $as_echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402         gt_cv_func_gnugettext1_libintl=no
18403 fi
18404
18405 rm -rf conftest.dSYM
18406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18407       conftest$ac_exeext conftest.$ac_ext
18408                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18409               LIBS="$LIBS $LIBICONV"
18410               cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h.  */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h.  */
18416 #include <libintl.h>
18417 extern int _nl_msg_cat_cntr;
18418 extern
18419 #ifdef __cplusplus
18420 "C"
18421 #endif
18422 const char *_nl_expand_alias (const char *);
18423 int
18424 main ()
18425 {
18426 bindtextdomain ("", "");
18427 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439 $as_echo "$ac_try_echo") >&5
18440   (eval "$ac_link") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } && {
18447          test -z "$ac_c_werror_flag" ||
18448          test ! -s conftest.err
18449        } && test -s conftest$ac_exeext && {
18450          test "$cross_compiling" = yes ||
18451          $as_test_x conftest$ac_exeext
18452        }; then
18453   LIBINTL="$LIBINTL $LIBICONV"
18454                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18455                 gt_cv_func_gnugettext1_libintl=yes
18456
18457 else
18458   $as_echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461
18462 fi
18463
18464 rm -rf conftest.dSYM
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466       conftest$ac_exeext conftest.$ac_ext
18467             fi
18468             CPPFLAGS="$gt_save_CPPFLAGS"
18469             LIBS="$gt_save_LIBS"
18470 fi
18471 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18472 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18473         fi
18474
18475                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18476            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18477                 && test "$PACKAGE" != gettext-runtime \
18478                 && test "$PACKAGE" != gettext-tools; }; then
18479           gt_use_preinstalled_gnugettext=yes
18480         else
18481                     LIBINTL=
18482           LTLIBINTL=
18483           INCINTL=
18484         fi
18485
18486
18487
18488     if test -n "$INTL_MACOSX_LIBS"; then
18489       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18490          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18491                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18492         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18493       fi
18494     fi
18495
18496     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18497        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18498
18499 cat >>confdefs.h <<\_ACEOF
18500 #define ENABLE_NLS 1
18501 _ACEOF
18502
18503     else
18504       USE_NLS=no
18505     fi
18506   fi
18507
18508   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18509 $as_echo_n "checking whether to use NLS... " >&6; }
18510   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18511 $as_echo "$USE_NLS" >&6; }
18512   if test "$USE_NLS" = "yes"; then
18513     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18514 $as_echo_n "checking where the gettext function comes from... " >&6; }
18515     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18516       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18517         gt_source="external libintl"
18518       else
18519         gt_source="libc"
18520       fi
18521     else
18522       gt_source="included intl directory"
18523     fi
18524     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18525 $as_echo "$gt_source" >&6; }
18526   fi
18527
18528   if test "$USE_NLS" = "yes"; then
18529
18530     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18531       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18532         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18533 $as_echo_n "checking how to link with libintl... " >&6; }
18534         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18535 $as_echo "$LIBINTL" >&6; }
18536
18537   for element in $INCINTL; do
18538     haveit=
18539     for x in $CPPFLAGS; do
18540
18541   acl_save_prefix="$prefix"
18542   prefix="$acl_final_prefix"
18543   acl_save_exec_prefix="$exec_prefix"
18544   exec_prefix="$acl_final_exec_prefix"
18545   eval x=\"$x\"
18546   exec_prefix="$acl_save_exec_prefix"
18547   prefix="$acl_save_prefix"
18548
18549       if test "X$x" = "X$element"; then
18550         haveit=yes
18551         break
18552       fi
18553     done
18554     if test -z "$haveit"; then
18555       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18556     fi
18557   done
18558
18559       fi
18560
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE_GETTEXT 1
18564 _ACEOF
18565
18566
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_DCGETTEXT 1
18569 _ACEOF
18570
18571     fi
18572
18573         POSUB=po
18574   fi
18575
18576
18577
18578     INTLLIBS="$LIBINTL"
18579
18580
18581
18582
18583
18584
18585
18586 os_name=`uname -s 2>/dev/null`
18587 if test x${prefix} = xNONE ; then
18588    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18589       sysconfdir=/etc/bacula
18590    fi
18591
18592    if test `eval echo ${libdir}` = NONE/lib ; then
18593       case ${os_name} in
18594       Linux)
18595          os_processor=`uname -p 2>/dev/null`
18596          case ${os_processor} in
18597          x86_64)
18598             libdir=/usr/lib64
18599             ;;
18600          *)
18601             libdir=/usr/lib
18602             ;;
18603          esac
18604          ;;
18605       *)
18606          libdir=/usr/lib
18607          ;;
18608       esac
18609    fi
18610
18611    if test `eval echo ${includedir}` = NONE/include ; then
18612       includedir=/usr/include
18613    fi
18614
18615    if test `eval echo ${datarootdir}` = NONE/share ; then
18616       datarootdir=/usr/share
18617    fi
18618    prefix=
18619 fi
18620
18621 if test x${exec_prefix} = xNONE ; then
18622    exec_prefix=${prefix}
18623 fi
18624
18625 sysconfdir=`eval echo ${sysconfdir}`
18626 datarootdir=`eval echo ${datarootdir}`
18627 docdir=`eval echo ${docdir}`
18628 htmldir=`eval echo ${htmldir}`
18629 libdir=`eval echo ${libdir}`
18630 includedir=`eval echo ${includedir}`
18631 localedir=`eval echo ${datarootdir}/locale`
18632 cat >>confdefs.h <<_ACEOF
18633 #define SYSCONFDIR "$sysconfdir"
18634 _ACEOF
18635
18636 cat >>confdefs.h <<_ACEOF
18637 #define LOCALEDIR "$localedir"
18638 _ACEOF
18639
18640
18641 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18642    sbindir=${exec_prefix}/sbin
18643 fi
18644 sbindir=`eval echo ${sbindir}`
18645
18646 if test x$mandir = x'${prefix}/man' ; then
18647    mandir=/usr/share/man
18648 fi
18649
18650 if test x$htmldir = x${docdir} ; then
18651    htmldir=`eval echo ${docdir}bacula/html`
18652 fi
18653
18654 if test x$docdir = x'/usr/share/doc/' ; then
18655    docdir=`eval echo ${docdir}bacula`
18656 fi
18657
18658
18659 for ac_prog in msgfmt
18660 do
18661   # Extract the first word of "$ac_prog", so it can be a program name with args.
18662 set dummy $ac_prog; ac_word=$2
18663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18664 $as_echo_n "checking for $ac_word... " >&6; }
18665 if test "${ac_cv_path_MSGFMT+set}" = set; then
18666   $as_echo_n "(cached) " >&6
18667 else
18668   case $MSGFMT in
18669   [\\/]* | ?:[\\/]*)
18670   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18671   ;;
18672   *)
18673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in $PATH
18675 do
18676   IFS=$as_save_IFS
18677   test -z "$as_dir" && as_dir=.
18678   for ac_exec_ext in '' $ac_executable_extensions; do
18679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18680     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18681     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18682     break 2
18683   fi
18684 done
18685 done
18686 IFS=$as_save_IFS
18687
18688   ;;
18689 esac
18690 fi
18691 MSGFMT=$ac_cv_path_MSGFMT
18692 if test -n "$MSGFMT"; then
18693   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18694 $as_echo "$MSGFMT" >&6; }
18695 else
18696   { $as_echo "$as_me:$LINENO: result: no" >&5
18697 $as_echo "no" >&6; }
18698 fi
18699
18700
18701   test -n "$MSGFMT" && break
18702 done
18703 test -n "$MSGFMT" || MSGFMT="no"
18704
18705 if test "$MSGFMT" = "no"
18706 then
18707    echo 'msgfmt program not found, disabling NLS !'
18708    USE_NLS=no
18709    USE_INCLUDED_LIBINTL=no
18710 #else
18711
18712     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18713 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18714 if test "${ac_cv_gnu_library_2+set}" = set; then
18715   $as_echo_n "(cached) " >&6
18716 else
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723
18724 #include <features.h>
18725 #ifdef __GNU_LIBRARY__
18726  #if (__GLIBC__ >= 2)
18727   Lucky GNU user
18728  #endif
18729 #endif
18730
18731 _ACEOF
18732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18733   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18734   ac_cv_gnu_library_2=yes
18735 else
18736   ac_cv_gnu_library_2=no
18737 fi
18738 rm -f conftest*
18739
18740
18741
18742 fi
18743 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18744 $as_echo "$ac_cv_gnu_library_2" >&6; }
18745
18746     GLIBC2="$ac_cv_gnu_library_2"
18747
18748
18749 if test -n "$ac_tool_prefix"; then
18750   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 $as_echo_n "checking for $ac_word... " >&6; }
18754 if test "${ac_cv_prog_RANLIB+set}" = set; then
18755   $as_echo_n "(cached) " >&6
18756 else
18757   if test -n "$RANLIB"; then
18758   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18759 else
18760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18762 do
18763   IFS=$as_save_IFS
18764   test -z "$as_dir" && as_dir=.
18765   for ac_exec_ext in '' $ac_executable_extensions; do
18766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18767     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18768     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769     break 2
18770   fi
18771 done
18772 done
18773 IFS=$as_save_IFS
18774
18775 fi
18776 fi
18777 RANLIB=$ac_cv_prog_RANLIB
18778 if test -n "$RANLIB"; then
18779   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18780 $as_echo "$RANLIB" >&6; }
18781 else
18782   { $as_echo "$as_me:$LINENO: result: no" >&5
18783 $as_echo "no" >&6; }
18784 fi
18785
18786
18787 fi
18788 if test -z "$ac_cv_prog_RANLIB"; then
18789   ac_ct_RANLIB=$RANLIB
18790   # Extract the first word of "ranlib", so it can be a program name with args.
18791 set dummy ranlib; ac_word=$2
18792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18793 $as_echo_n "checking for $ac_word... " >&6; }
18794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18795   $as_echo_n "(cached) " >&6
18796 else
18797   if test -n "$ac_ct_RANLIB"; then
18798   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18799 else
18800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801 for as_dir in $PATH
18802 do
18803   IFS=$as_save_IFS
18804   test -z "$as_dir" && as_dir=.
18805   for ac_exec_ext in '' $ac_executable_extensions; do
18806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18807     ac_cv_prog_ac_ct_RANLIB="ranlib"
18808     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18809     break 2
18810   fi
18811 done
18812 done
18813 IFS=$as_save_IFS
18814
18815 fi
18816 fi
18817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18818 if test -n "$ac_ct_RANLIB"; then
18819   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18820 $as_echo "$ac_ct_RANLIB" >&6; }
18821 else
18822   { $as_echo "$as_me:$LINENO: result: no" >&5
18823 $as_echo "no" >&6; }
18824 fi
18825
18826   if test "x$ac_ct_RANLIB" = x; then
18827     RANLIB=":"
18828   else
18829     case $cross_compiling:$ac_tool_warned in
18830 yes:)
18831 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18833 ac_tool_warned=yes ;;
18834 esac
18835     RANLIB=$ac_ct_RANLIB
18836   fi
18837 else
18838   RANLIB="$ac_cv_prog_RANLIB"
18839 fi
18840
18841
18842         { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18843 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18844 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18845   $as_echo_n "(cached) " >&6
18846 else
18847   ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lcposix  $LIBS"
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857    Use char because int might match the return type of a GCC
18858    builtin and then its argument prototype would still apply.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char strerror ();
18863 int
18864 main ()
18865 {
18866 return strerror ();
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18878 $as_echo "$ac_try_echo") >&5
18879   (eval "$ac_link") 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } && {
18886          test -z "$ac_c_werror_flag" ||
18887          test ! -s conftest.err
18888        } && test -s conftest$ac_exeext && {
18889          test "$cross_compiling" = yes ||
18890          $as_test_x conftest$ac_exeext
18891        }; then
18892   ac_cv_lib_cposix_strerror=yes
18893 else
18894   $as_echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897         ac_cv_lib_cposix_strerror=no
18898 fi
18899
18900 rm -rf conftest.dSYM
18901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18902       conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18904 fi
18905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18906 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18907 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18908   LIBS="$LIBS -lcposix"
18909 fi
18910
18911
18912
18913 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18914 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18915 if test "${ac_cv_c_const+set}" = set; then
18916   $as_echo_n "(cached) " >&6
18917 else
18918   cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924
18925 int
18926 main ()
18927 {
18928 /* FIXME: Include the comments suggested by Paul. */
18929 #ifndef __cplusplus
18930   /* Ultrix mips cc rejects this.  */
18931   typedef int charset[2];
18932   const charset cs;
18933   /* SunOS 4.1.1 cc rejects this.  */
18934   char const *const *pcpcc;
18935   char **ppc;
18936   /* NEC SVR4.0.2 mips cc rejects this.  */
18937   struct point {int x, y;};
18938   static struct point const zero = {0,0};
18939   /* AIX XL C 1.02.0.0 rejects this.
18940      It does not let you subtract one const X* pointer from another in
18941      an arm of an if-expression whose if-part is not a constant
18942      expression */
18943   const char *g = "string";
18944   pcpcc = &g + (g ? g-g : 0);
18945   /* HPUX 7.0 cc rejects these. */
18946   ++pcpcc;
18947   ppc = (char**) pcpcc;
18948   pcpcc = (char const *const *) ppc;
18949   { /* SCO 3.2v4 cc rejects this.  */
18950     char *t;
18951     char const *s = 0 ? (char *) 0 : (char const *) 0;
18952
18953     *t++ = 0;
18954     if (s) return 0;
18955   }
18956   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18957     int x[] = {25, 17};
18958     const int *foo = &x[0];
18959     ++foo;
18960   }
18961   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18962     typedef const int *iptr;
18963     iptr p = 0;
18964     ++p;
18965   }
18966   { /* AIX XL C 1.02.0.0 rejects this saying
18967        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18968     struct s { int j; const int *ap[3]; };
18969     struct s *b; b->j = 5;
18970   }
18971   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18972     const int foo = 10;
18973     if (!foo) return 0;
18974   }
18975   return !cs[0] && !zero.x;
18976 #endif
18977
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18989 $as_echo "$ac_try_echo") >&5
18990   (eval "$ac_compile") 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } && {
18997          test -z "$ac_c_werror_flag" ||
18998          test ! -s conftest.err
18999        } && test -s conftest.$ac_objext; then
19000   ac_cv_c_const=yes
19001 else
19002   $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005         ac_cv_c_const=no
19006 fi
19007
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 fi
19010 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19011 $as_echo "$ac_cv_c_const" >&6; }
19012 if test $ac_cv_c_const = no; then
19013
19014 cat >>confdefs.h <<\_ACEOF
19015 #define const /**/
19016 _ACEOF
19017
19018 fi
19019
19020
19021   { $as_echo "$as_me:$LINENO: checking for signed" >&5
19022 $as_echo_n "checking for signed... " >&6; }
19023 if test "${bh_cv_c_signed+set}" = set; then
19024   $as_echo_n "(cached) " >&6
19025 else
19026   cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h.  */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h.  */
19032
19033 int
19034 main ()
19035 {
19036 signed char x;
19037   ;
19038   return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext
19042 if { (ac_try="$ac_compile"
19043 case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19048 $as_echo "$ac_try_echo") >&5
19049   (eval "$ac_compile") 2>conftest.er1
19050   ac_status=$?
19051   grep -v '^ *+' conftest.er1 >conftest.err
19052   rm -f conftest.er1
19053   cat conftest.err >&5
19054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); } && {
19056          test -z "$ac_c_werror_flag" ||
19057          test ! -s conftest.err
19058        } && test -s conftest.$ac_objext; then
19059   bh_cv_c_signed=yes
19060 else
19061   $as_echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064         bh_cv_c_signed=no
19065 fi
19066
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 fi
19069 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19070 $as_echo "$bh_cv_c_signed" >&6; }
19071   if test $bh_cv_c_signed = no; then
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define signed /**/
19075 _ACEOF
19076
19077   fi
19078
19079 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19080 $as_echo_n "checking for inline... " >&6; }
19081 if test "${ac_cv_c_inline+set}" = set; then
19082   $as_echo_n "(cached) " >&6
19083 else
19084   ac_cv_c_inline=no
19085 for ac_kw in inline __inline__ __inline; do
19086   cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092 #ifndef __cplusplus
19093 typedef int foo_t;
19094 static $ac_kw foo_t static_foo () {return 0; }
19095 $ac_kw foo_t foo () {return 0; }
19096 #endif
19097
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106 $as_echo "$ac_try_echo") >&5
19107   (eval "$ac_compile") 2>conftest.er1
19108   ac_status=$?
19109   grep -v '^ *+' conftest.er1 >conftest.err
19110   rm -f conftest.er1
19111   cat conftest.err >&5
19112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } && {
19114          test -z "$ac_c_werror_flag" ||
19115          test ! -s conftest.err
19116        } && test -s conftest.$ac_objext; then
19117   ac_cv_c_inline=$ac_kw
19118 else
19119   $as_echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122
19123 fi
19124
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126   test "$ac_cv_c_inline" != no && break
19127 done
19128
19129 fi
19130 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19131 $as_echo "$ac_cv_c_inline" >&6; }
19132
19133
19134 case $ac_cv_c_inline in
19135   inline | yes) ;;
19136   *)
19137     case $ac_cv_c_inline in
19138       no) ac_val=;;
19139       *) ac_val=$ac_cv_c_inline;;
19140     esac
19141     cat >>confdefs.h <<_ACEOF
19142 #ifndef __cplusplus
19143 #define inline $ac_val
19144 #endif
19145 _ACEOF
19146     ;;
19147 esac
19148
19149 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19150 $as_echo_n "checking for off_t... " >&6; }
19151 if test "${ac_cv_type_off_t+set}" = set; then
19152   $as_echo_n "(cached) " >&6
19153 else
19154   ac_cv_type_off_t=no
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 $ac_includes_default
19162 int
19163 main ()
19164 {
19165 if (sizeof (off_t))
19166        return 0;
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext
19172 if { (ac_try="$ac_compile"
19173 case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19178 $as_echo "$ac_try_echo") >&5
19179   (eval "$ac_compile") 2>conftest.er1
19180   ac_status=$?
19181   grep -v '^ *+' conftest.er1 >conftest.err
19182   rm -f conftest.er1
19183   cat conftest.err >&5
19184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } && {
19186          test -z "$ac_c_werror_flag" ||
19187          test ! -s conftest.err
19188        } && test -s conftest.$ac_objext; then
19189   cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195 $ac_includes_default
19196 int
19197 main ()
19198 {
19199 if (sizeof ((off_t)))
19200           return 0;
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19212 $as_echo "$ac_try_echo") >&5
19213   (eval "$ac_compile") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && {
19220          test -z "$ac_c_werror_flag" ||
19221          test ! -s conftest.err
19222        } && test -s conftest.$ac_objext; then
19223   :
19224 else
19225   $as_echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228         ac_cv_type_off_t=yes
19229 fi
19230
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 else
19233   $as_echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 fi
19241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19242 $as_echo "$ac_cv_type_off_t" >&6; }
19243 if test "x$ac_cv_type_off_t" = x""yes; then
19244   :
19245 else
19246
19247 cat >>confdefs.h <<_ACEOF
19248 #define off_t long int
19249 _ACEOF
19250
19251 fi
19252
19253 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19254 $as_echo_n "checking for size_t... " >&6; }
19255 if test "${ac_cv_type_size_t+set}" = set; then
19256   $as_echo_n "(cached) " >&6
19257 else
19258   ac_cv_type_size_t=no
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265 $ac_includes_default
19266 int
19267 main ()
19268 {
19269 if (sizeof (size_t))
19270        return 0;
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279   *) ac_try_echo=$ac_try;;
19280 esac
19281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19282 $as_echo "$ac_try_echo") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } && {
19290          test -z "$ac_c_werror_flag" ||
19291          test ! -s conftest.err
19292        } && test -s conftest.$ac_objext; then
19293   cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 $ac_includes_default
19300 int
19301 main ()
19302 {
19303 if (sizeof ((size_t)))
19304           return 0;
19305   ;
19306   return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (ac_try="$ac_compile"
19311 case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19316 $as_echo "$ac_try_echo") >&5
19317   (eval "$ac_compile") 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } && {
19324          test -z "$ac_c_werror_flag" ||
19325          test ! -s conftest.err
19326        } && test -s conftest.$ac_objext; then
19327   :
19328 else
19329   $as_echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332         ac_cv_type_size_t=yes
19333 fi
19334
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336 else
19337   $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 fi
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19346 $as_echo "$ac_cv_type_size_t" >&6; }
19347 if test "x$ac_cv_type_size_t" = x""yes; then
19348   :
19349 else
19350
19351 cat >>confdefs.h <<_ACEOF
19352 #define size_t unsigned int
19353 _ACEOF
19354
19355 fi
19356
19357
19358   { $as_echo "$as_me:$LINENO: checking for long long" >&5
19359 $as_echo_n "checking for long long... " >&6; }
19360 if test "${ac_cv_type_long_long+set}" = set; then
19361   $as_echo_n "(cached) " >&6
19362 else
19363   cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369 long long ll = 1LL; int i = 63;
19370 int
19371 main ()
19372 {
19373 long long llmax = (long long) -1;
19374      return ll << i | ll >> i | llmax / ll | llmax % ll;
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386 $as_echo "$ac_try_echo") >&5
19387   (eval "$ac_link") 2>conftest.er1
19388   ac_status=$?
19389   grep -v '^ *+' conftest.er1 >conftest.err
19390   rm -f conftest.er1
19391   cat conftest.err >&5
19392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } && {
19394          test -z "$ac_c_werror_flag" ||
19395          test ! -s conftest.err
19396        } && test -s conftest$ac_exeext && {
19397          test "$cross_compiling" = yes ||
19398          $as_test_x conftest$ac_exeext
19399        }; then
19400   ac_cv_type_long_long=yes
19401 else
19402   $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19404
19405         ac_cv_type_long_long=no
19406 fi
19407
19408 rm -rf conftest.dSYM
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410       conftest$ac_exeext conftest.$ac_ext
19411 fi
19412 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19413 $as_echo "$ac_cv_type_long_long" >&6; }
19414   if test $ac_cv_type_long_long = yes; then
19415
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE_LONG_LONG 1
19418 _ACEOF
19419
19420   fi
19421
19422
19423   { $as_echo "$as_me:$LINENO: checking for long double" >&5
19424 $as_echo_n "checking for long double... " >&6; }
19425 if test "${gt_cv_c_long_double+set}" = set; then
19426   $as_echo_n "(cached) " >&6
19427 else
19428   if test "$GCC" = yes; then
19429        gt_cv_c_long_double=yes
19430      else
19431        cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437
19438          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19439          long double foo = 0.0;
19440          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19441          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19442
19443 int
19444 main ()
19445 {
19446
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459   (eval "$ac_compile") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } && {
19466          test -z "$ac_c_werror_flag" ||
19467          test ! -s conftest.err
19468        } && test -s conftest.$ac_objext; then
19469   gt_cv_c_long_double=yes
19470 else
19471   $as_echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474         gt_cv_c_long_double=no
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478      fi
19479 fi
19480 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19481 $as_echo "$gt_cv_c_long_double" >&6; }
19482   if test $gt_cv_c_long_double = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_LONG_DOUBLE 1
19486 _ACEOF
19487
19488   fi
19489
19490
19491   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19492 $as_echo_n "checking for wchar_t... " >&6; }
19493 if test "${gt_cv_c_wchar_t+set}" = set; then
19494   $as_echo_n "(cached) " >&6
19495 else
19496   cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502 #include <stddef.h>
19503        wchar_t foo = (wchar_t)'\0';
19504 int
19505 main ()
19506 {
19507
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19519 $as_echo "$ac_try_echo") >&5
19520   (eval "$ac_compile") 2>conftest.er1
19521   ac_status=$?
19522   grep -v '^ *+' conftest.er1 >conftest.err
19523   rm -f conftest.er1
19524   cat conftest.err >&5
19525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } && {
19527          test -z "$ac_c_werror_flag" ||
19528          test ! -s conftest.err
19529        } && test -s conftest.$ac_objext; then
19530   gt_cv_c_wchar_t=yes
19531 else
19532   $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535         gt_cv_c_wchar_t=no
19536 fi
19537
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539 fi
19540 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19541 $as_echo "$gt_cv_c_wchar_t" >&6; }
19542   if test $gt_cv_c_wchar_t = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_WCHAR_T 1
19546 _ACEOF
19547
19548   fi
19549
19550
19551   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19552 $as_echo_n "checking for wint_t... " >&6; }
19553 if test "${gt_cv_c_wint_t+set}" = set; then
19554   $as_echo_n "(cached) " >&6
19555 else
19556   cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562 #include <wchar.h>
19563        wint_t foo = (wchar_t)'\0';
19564 int
19565 main ()
19566 {
19567
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext
19573 if { (ac_try="$ac_compile"
19574 case "(($ac_try" in
19575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576   *) ac_try_echo=$ac_try;;
19577 esac
19578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19579 $as_echo "$ac_try_echo") >&5
19580   (eval "$ac_compile") 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } && {
19587          test -z "$ac_c_werror_flag" ||
19588          test ! -s conftest.err
19589        } && test -s conftest.$ac_objext; then
19590   gt_cv_c_wint_t=yes
19591 else
19592   $as_echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595         gt_cv_c_wint_t=no
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 fi
19600 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19601 $as_echo "$gt_cv_c_wint_t" >&6; }
19602   if test $gt_cv_c_wint_t = yes; then
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_WINT_T 1
19606 _ACEOF
19607
19608   fi
19609
19610
19611   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19612 $as_echo_n "checking for inttypes.h... " >&6; }
19613 if test "${gl_cv_header_inttypes_h+set}" = set; then
19614   $as_echo_n "(cached) " >&6
19615 else
19616   cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h.  */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h.  */
19622 #include <sys/types.h>
19623 #include <inttypes.h>
19624 int
19625 main ()
19626 {
19627 uintmax_t i = (uintmax_t) -1;
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19639 $as_echo "$ac_try_echo") >&5
19640   (eval "$ac_compile") 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } && {
19647          test -z "$ac_c_werror_flag" ||
19648          test ! -s conftest.err
19649        } && test -s conftest.$ac_objext; then
19650   gl_cv_header_inttypes_h=yes
19651 else
19652   $as_echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         gl_cv_header_inttypes_h=no
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659 fi
19660 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19661 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19662   if test $gl_cv_header_inttypes_h = yes; then
19663
19664 cat >>confdefs.h <<_ACEOF
19665 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19666 _ACEOF
19667
19668   fi
19669
19670
19671   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19672 $as_echo_n "checking for stdint.h... " >&6; }
19673 if test "${gl_cv_header_stdint_h+set}" = set; then
19674   $as_echo_n "(cached) " >&6
19675 else
19676   cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682 #include <sys/types.h>
19683 #include <stdint.h>
19684 int
19685 main ()
19686 {
19687 uintmax_t i = (uintmax_t) -1;
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19699 $as_echo "$ac_try_echo") >&5
19700   (eval "$ac_compile") 2>conftest.er1
19701   ac_status=$?
19702   grep -v '^ *+' conftest.er1 >conftest.err
19703   rm -f conftest.er1
19704   cat conftest.err >&5
19705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); } && {
19707          test -z "$ac_c_werror_flag" ||
19708          test ! -s conftest.err
19709        } && test -s conftest.$ac_objext; then
19710   gl_cv_header_stdint_h=yes
19711 else
19712   $as_echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715         gl_cv_header_stdint_h=no
19716 fi
19717
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 fi
19720 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19721 $as_echo "$gl_cv_header_stdint_h" >&6; }
19722   if test $gl_cv_header_stdint_h = yes; then
19723
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_STDINT_H_WITH_UINTMAX 1
19726 _ACEOF
19727
19728   fi
19729
19730
19731
19732
19733   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19734 $as_echo_n "checking for intmax_t... " >&6; }
19735 if test "${gt_cv_c_intmax_t+set}" = set; then
19736   $as_echo_n "(cached) " >&6
19737 else
19738   cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744
19745 #include <stddef.h>
19746 #include <stdlib.h>
19747 #if HAVE_STDINT_H_WITH_UINTMAX
19748 #include <stdint.h>
19749 #endif
19750 #if HAVE_INTTYPES_H_WITH_UINTMAX
19751 #include <inttypes.h>
19752 #endif
19753
19754 int
19755 main ()
19756 {
19757 intmax_t x = -1;
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770   (eval "$ac_compile") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && {
19777          test -z "$ac_c_werror_flag" ||
19778          test ! -s conftest.err
19779        } && test -s conftest.$ac_objext; then
19780   gt_cv_c_intmax_t=yes
19781 else
19782   $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         gt_cv_c_intmax_t=no
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 fi
19790 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19791 $as_echo "$gt_cv_c_intmax_t" >&6; }
19792   if test $gt_cv_c_intmax_t = yes; then
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_INTMAX_T 1
19796 _ACEOF
19797
19798   fi
19799
19800
19801
19802   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19803 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19804 if test "${gt_cv_func_printf_posix+set}" = set; then
19805   $as_echo_n "(cached) " >&6
19806 else
19807
19808       if test "$cross_compiling" = yes; then
19809
19810         cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816
19817 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19818   notposix
19819 #endif
19820
19821 _ACEOF
19822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19823   $EGREP "notposix" >/dev/null 2>&1; then
19824   gt_cv_func_printf_posix="guessing no"
19825 else
19826   gt_cv_func_printf_posix="guessing yes"
19827 fi
19828 rm -f conftest*
19829
19830
19831 else
19832   cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838
19839 #include <stdio.h>
19840 #include <string.h>
19841 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19842    dollar expansion (possibly an autoconf bug).  */
19843 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19844 static char buf[100];
19845 int main ()
19846 {
19847   sprintf (buf, format, 33, 55);
19848   return (strcmp (buf, "55 33") != 0);
19849 }
19850 _ACEOF
19851 rm -f conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19858 $as_echo "$ac_try_echo") >&5
19859   (eval "$ac_link") 2>&5
19860   ac_status=$?
19861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19863   { (case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868 $as_echo "$ac_try_echo") >&5
19869   (eval "$ac_try") 2>&5
19870   ac_status=$?
19871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; }; then
19873   gt_cv_func_printf_posix=yes
19874 else
19875   $as_echo "$as_me: program exited with status $ac_status" >&5
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ( exit $ac_status )
19880 gt_cv_func_printf_posix=no
19881 fi
19882 rm -rf conftest.dSYM
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 fi
19885
19886
19887
19888 fi
19889 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19890 $as_echo "$gt_cv_func_printf_posix" >&6; }
19891   case $gt_cv_func_printf_posix in
19892     *yes)
19893
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_POSIX_PRINTF 1
19896 _ACEOF
19897
19898       ;;
19899   esac
19900
19901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19902 # for constant arguments.  Useless!
19903 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19904 $as_echo_n "checking for working alloca.h... " >&6; }
19905 if test "${ac_cv_working_alloca_h+set}" = set; then
19906   $as_echo_n "(cached) " >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <alloca.h>
19915 int
19916 main ()
19917 {
19918 char *p = (char *) alloca (2 * sizeof (int));
19919                           if (p) return 0;
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19931 $as_echo "$ac_try_echo") >&5
19932   (eval "$ac_link") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && {
19939          test -z "$ac_c_werror_flag" ||
19940          test ! -s conftest.err
19941        } && test -s conftest$ac_exeext && {
19942          test "$cross_compiling" = yes ||
19943          $as_test_x conftest$ac_exeext
19944        }; then
19945   ac_cv_working_alloca_h=yes
19946 else
19947   $as_echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950         ac_cv_working_alloca_h=no
19951 fi
19952
19953 rm -rf conftest.dSYM
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955       conftest$ac_exeext conftest.$ac_ext
19956 fi
19957 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19958 $as_echo "$ac_cv_working_alloca_h" >&6; }
19959 if test $ac_cv_working_alloca_h = yes; then
19960
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_ALLOCA_H 1
19963 _ACEOF
19964
19965 fi
19966
19967 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19968 $as_echo_n "checking for alloca... " >&6; }
19969 if test "${ac_cv_func_alloca_works+set}" = set; then
19970   $as_echo_n "(cached) " >&6
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #ifdef __GNUC__
19979 # define alloca __builtin_alloca
19980 #else
19981 # ifdef _MSC_VER
19982 #  include <malloc.h>
19983 #  define alloca _alloca
19984 # else
19985 #  ifdef HAVE_ALLOCA_H
19986 #   include <alloca.h>
19987 #  else
19988 #   ifdef _AIX
19989  #pragma alloca
19990 #   else
19991 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19992 char *alloca ();
19993 #    endif
19994 #   endif
19995 #  endif
19996 # endif
19997 #endif
19998
19999 int
20000 main ()
20001 {
20002 char *p = (char *) alloca (1);
20003                                     if (p) return 0;
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016   (eval "$ac_link") 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } && {
20023          test -z "$ac_c_werror_flag" ||
20024          test ! -s conftest.err
20025        } && test -s conftest$ac_exeext && {
20026          test "$cross_compiling" = yes ||
20027          $as_test_x conftest$ac_exeext
20028        }; then
20029   ac_cv_func_alloca_works=yes
20030 else
20031   $as_echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034         ac_cv_func_alloca_works=no
20035 fi
20036
20037 rm -rf conftest.dSYM
20038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20039       conftest$ac_exeext conftest.$ac_ext
20040 fi
20041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20042 $as_echo "$ac_cv_func_alloca_works" >&6; }
20043
20044 if test $ac_cv_func_alloca_works = yes; then
20045
20046 cat >>confdefs.h <<\_ACEOF
20047 #define HAVE_ALLOCA 1
20048 _ACEOF
20049
20050 else
20051   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20052 # that cause trouble.  Some versions do not even contain alloca or
20053 # contain a buggy version.  If you still want to use their alloca,
20054 # use ar to extract alloca.o from them instead of compiling alloca.c.
20055
20056 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20057
20058 cat >>confdefs.h <<\_ACEOF
20059 #define C_ALLOCA 1
20060 _ACEOF
20061
20062
20063 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20064 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20065 if test "${ac_cv_os_cray+set}" = set; then
20066   $as_echo_n "(cached) " >&6
20067 else
20068   cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h.  */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h.  */
20074 #if defined CRAY && ! defined CRAY2
20075 webecray
20076 #else
20077 wenotbecray
20078 #endif
20079
20080 _ACEOF
20081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20082   $EGREP "webecray" >/dev/null 2>&1; then
20083   ac_cv_os_cray=yes
20084 else
20085   ac_cv_os_cray=no
20086 fi
20087 rm -f conftest*
20088
20089 fi
20090 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20091 $as_echo "$ac_cv_os_cray" >&6; }
20092 if test $ac_cv_os_cray = yes; then
20093   for ac_func in _getb67 GETB67 getb67; do
20094     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20096 $as_echo_n "checking for $ac_func... " >&6; }
20097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20098   $as_echo_n "(cached) " >&6
20099 else
20100   cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20108 #define $ac_func innocuous_$ac_func
20109
20110 /* System header to define __stub macros and hopefully few prototypes,
20111     which can conflict with char $ac_func (); below.
20112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20113     <limits.h> exists even on freestanding compilers.  */
20114
20115 #ifdef __STDC__
20116 # include <limits.h>
20117 #else
20118 # include <assert.h>
20119 #endif
20120
20121 #undef $ac_func
20122
20123 /* Override any GCC internal prototype to avoid an error.
20124    Use char because int might match the return type of a GCC
20125    builtin and then its argument prototype would still apply.  */
20126 #ifdef __cplusplus
20127 extern "C"
20128 #endif
20129 char $ac_func ();
20130 /* The GNU C library defines this for functions which it implements
20131     to always fail with ENOSYS.  Some functions are actually named
20132     something starting with __ and the normal name is an alias.  */
20133 #if defined __stub_$ac_func || defined __stub___$ac_func
20134 choke me
20135 #endif
20136
20137 int
20138 main ()
20139 {
20140 return $ac_func ();
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153   (eval "$ac_link") 2>conftest.er1
20154   ac_status=$?
20155   grep -v '^ *+' conftest.er1 >conftest.err
20156   rm -f conftest.er1
20157   cat conftest.err >&5
20158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } && {
20160          test -z "$ac_c_werror_flag" ||
20161          test ! -s conftest.err
20162        } && test -s conftest$ac_exeext && {
20163          test "$cross_compiling" = yes ||
20164          $as_test_x conftest$ac_exeext
20165        }; then
20166   eval "$as_ac_var=yes"
20167 else
20168   $as_echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171         eval "$as_ac_var=no"
20172 fi
20173
20174 rm -rf conftest.dSYM
20175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20176       conftest$ac_exeext conftest.$ac_ext
20177 fi
20178 ac_res=`eval 'as_val=${'$as_ac_var'}
20179                  $as_echo "$as_val"'`
20180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20181 $as_echo "$ac_res" >&6; }
20182 as_val=`eval 'as_val=${'$as_ac_var'}
20183                  $as_echo "$as_val"'`
20184    if test "x$as_val" = x""yes; then
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define CRAY_STACKSEG_END $ac_func
20188 _ACEOF
20189
20190     break
20191 fi
20192
20193   done
20194 fi
20195
20196 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20197 $as_echo_n "checking stack direction for C alloca... " >&6; }
20198 if test "${ac_cv_c_stack_direction+set}" = set; then
20199   $as_echo_n "(cached) " >&6
20200 else
20201   if test "$cross_compiling" = yes; then
20202   ac_cv_c_stack_direction=0
20203 else
20204   cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210 $ac_includes_default
20211 int
20212 find_stack_direction ()
20213 {
20214   static char *addr = 0;
20215   auto char dummy;
20216   if (addr == 0)
20217     {
20218       addr = &dummy;
20219       return find_stack_direction ();
20220     }
20221   else
20222     return (&dummy > addr) ? 1 : -1;
20223 }
20224
20225 int
20226 main ()
20227 {
20228   return find_stack_direction () < 0;
20229 }
20230 _ACEOF
20231 rm -f conftest$ac_exeext
20232 if { (ac_try="$ac_link"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20238 $as_echo "$ac_try_echo") >&5
20239   (eval "$ac_link") 2>&5
20240   ac_status=$?
20241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243   { (case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20248 $as_echo "$ac_try_echo") >&5
20249   (eval "$ac_try") 2>&5
20250   ac_status=$?
20251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_cv_c_stack_direction=1
20254 else
20255   $as_echo "$as_me: program exited with status $ac_status" >&5
20256 $as_echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ( exit $ac_status )
20260 ac_cv_c_stack_direction=-1
20261 fi
20262 rm -rf conftest.dSYM
20263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20264 fi
20265
20266
20267 fi
20268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20269 $as_echo "$ac_cv_c_stack_direction" >&6; }
20270
20271 cat >>confdefs.h <<_ACEOF
20272 #define STACK_DIRECTION $ac_cv_c_stack_direction
20273 _ACEOF
20274
20275
20276 fi
20277
20278
20279
20280 for ac_header in stdlib.h unistd.h
20281 do
20282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20284   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 $as_echo_n "checking for $ac_header... " >&6; }
20286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20287   $as_echo_n "(cached) " >&6
20288 fi
20289 ac_res=`eval 'as_val=${'$as_ac_Header'}
20290                  $as_echo "$as_val"'`
20291                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20292 $as_echo "$ac_res" >&6; }
20293 else
20294   # Is the header compilable?
20295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20296 $as_echo_n "checking $ac_header usability... " >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 $ac_includes_default
20304 #include <$ac_header>
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20313 $as_echo "$ac_try_echo") >&5
20314   (eval "$ac_compile") 2>conftest.er1
20315   ac_status=$?
20316   grep -v '^ *+' conftest.er1 >conftest.err
20317   rm -f conftest.er1
20318   cat conftest.err >&5
20319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } && {
20321          test -z "$ac_c_werror_flag" ||
20322          test ! -s conftest.err
20323        } && test -s conftest.$ac_objext; then
20324   ac_header_compiler=yes
20325 else
20326   $as_echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329         ac_header_compiler=no
20330 fi
20331
20332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20334 $as_echo "$ac_header_compiler" >&6; }
20335
20336 # Is the header present?
20337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20338 $as_echo_n "checking $ac_header presence... " >&6; }
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 #include <$ac_header>
20346 _ACEOF
20347 if { (ac_try="$ac_cpp conftest.$ac_ext"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20353 $as_echo "$ac_try_echo") >&5
20354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355   ac_status=$?
20356   grep -v '^ *+' conftest.er1 >conftest.err
20357   rm -f conftest.er1
20358   cat conftest.err >&5
20359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); } >/dev/null && {
20361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20362          test ! -s conftest.err
20363        }; then
20364   ac_header_preproc=yes
20365 else
20366   $as_echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369   ac_header_preproc=no
20370 fi
20371
20372 rm -f conftest.err conftest.$ac_ext
20373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20374 $as_echo "$ac_header_preproc" >&6; }
20375
20376 # So?  What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20378   yes:no: )
20379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20383     ac_header_preproc=yes
20384     ;;
20385   no:yes:* )
20386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20389 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20393 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20398
20399     ;;
20400 esac
20401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 $as_echo_n "checking for $ac_header... " >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20404   $as_echo_n "(cached) " >&6
20405 else
20406   eval "$as_ac_Header=\$ac_header_preproc"
20407 fi
20408 ac_res=`eval 'as_val=${'$as_ac_Header'}
20409                  $as_echo "$as_val"'`
20410                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20411 $as_echo "$ac_res" >&6; }
20412
20413 fi
20414 as_val=`eval 'as_val=${'$as_ac_Header'}
20415                  $as_echo "$as_val"'`
20416    if test "x$as_val" = x""yes; then
20417   cat >>confdefs.h <<_ACEOF
20418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20419 _ACEOF
20420
20421 fi
20422
20423 done
20424
20425
20426 for ac_func in getpagesize
20427 do
20428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20430 $as_echo_n "checking for $ac_func... " >&6; }
20431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20432   $as_echo_n "(cached) " >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20442 #define $ac_func innocuous_$ac_func
20443
20444 /* System header to define __stub macros and hopefully few prototypes,
20445     which can conflict with char $ac_func (); below.
20446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20447     <limits.h> exists even on freestanding compilers.  */
20448
20449 #ifdef __STDC__
20450 # include <limits.h>
20451 #else
20452 # include <assert.h>
20453 #endif
20454
20455 #undef $ac_func
20456
20457 /* Override any GCC internal prototype to avoid an error.
20458    Use char because int might match the return type of a GCC
20459    builtin and then its argument prototype would still apply.  */
20460 #ifdef __cplusplus
20461 extern "C"
20462 #endif
20463 char $ac_func ();
20464 /* The GNU C library defines this for functions which it implements
20465     to always fail with ENOSYS.  Some functions are actually named
20466     something starting with __ and the normal name is an alias.  */
20467 #if defined __stub_$ac_func || defined __stub___$ac_func
20468 choke me
20469 #endif
20470
20471 int
20472 main ()
20473 {
20474 return $ac_func ();
20475   ;
20476   return 0;
20477 }
20478 _ACEOF
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487   (eval "$ac_link") 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } && {
20494          test -z "$ac_c_werror_flag" ||
20495          test ! -s conftest.err
20496        } && test -s conftest$ac_exeext && {
20497          test "$cross_compiling" = yes ||
20498          $as_test_x conftest$ac_exeext
20499        }; then
20500   eval "$as_ac_var=yes"
20501 else
20502   $as_echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505         eval "$as_ac_var=no"
20506 fi
20507
20508 rm -rf conftest.dSYM
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510       conftest$ac_exeext conftest.$ac_ext
20511 fi
20512 ac_res=`eval 'as_val=${'$as_ac_var'}
20513                  $as_echo "$as_val"'`
20514                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20515 $as_echo "$ac_res" >&6; }
20516 as_val=`eval 'as_val=${'$as_ac_var'}
20517                  $as_echo "$as_val"'`
20518    if test "x$as_val" = x""yes; then
20519   cat >>confdefs.h <<_ACEOF
20520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20521 _ACEOF
20522
20523 fi
20524 done
20525
20526 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20527 $as_echo_n "checking for working mmap... " >&6; }
20528 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20529   $as_echo_n "(cached) " >&6
20530 else
20531   if test "$cross_compiling" = yes; then
20532   ac_cv_func_mmap_fixed_mapped=no
20533 else
20534   cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 /* malloc might have been renamed as rpl_malloc. */
20542 #undef malloc
20543
20544 /* Thanks to Mike Haertel and Jim Avera for this test.
20545    Here is a matrix of mmap possibilities:
20546         mmap private not fixed
20547         mmap private fixed at somewhere currently unmapped
20548         mmap private fixed at somewhere already mapped
20549         mmap shared not fixed
20550         mmap shared fixed at somewhere currently unmapped
20551         mmap shared fixed at somewhere already mapped
20552    For private mappings, we should verify that changes cannot be read()
20553    back from the file, nor mmap's back from the file at a different
20554    address.  (There have been systems where private was not correctly
20555    implemented like the infamous i386 svr4.0, and systems where the
20556    VM page cache was not coherent with the file system buffer cache
20557    like early versions of FreeBSD and possibly contemporary NetBSD.)
20558    For shared mappings, we should conversely verify that changes get
20559    propagated back to all the places they're supposed to be.
20560
20561    Grep wants private fixed already mapped.
20562    The main things grep needs to know about mmap are:
20563    * does it exist and is it safe to write into the mmap'd area
20564    * how to use it (BSD variants)  */
20565
20566 #include <fcntl.h>
20567 #include <sys/mman.h>
20568
20569 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20570 char *malloc ();
20571 #endif
20572
20573 /* This mess was copied from the GNU getpagesize.h.  */
20574 #ifndef HAVE_GETPAGESIZE
20575 /* Assume that all systems that can run configure have sys/param.h.  */
20576 # ifndef HAVE_SYS_PARAM_H
20577 #  define HAVE_SYS_PARAM_H 1
20578 # endif
20579
20580 # ifdef _SC_PAGESIZE
20581 #  define getpagesize() sysconf(_SC_PAGESIZE)
20582 # else /* no _SC_PAGESIZE */
20583 #  ifdef HAVE_SYS_PARAM_H
20584 #   include <sys/param.h>
20585 #   ifdef EXEC_PAGESIZE
20586 #    define getpagesize() EXEC_PAGESIZE
20587 #   else /* no EXEC_PAGESIZE */
20588 #    ifdef NBPG
20589 #     define getpagesize() NBPG * CLSIZE
20590 #     ifndef CLSIZE
20591 #      define CLSIZE 1
20592 #     endif /* no CLSIZE */
20593 #    else /* no NBPG */
20594 #     ifdef NBPC
20595 #      define getpagesize() NBPC
20596 #     else /* no NBPC */
20597 #      ifdef PAGESIZE
20598 #       define getpagesize() PAGESIZE
20599 #      endif /* PAGESIZE */
20600 #     endif /* no NBPC */
20601 #    endif /* no NBPG */
20602 #   endif /* no EXEC_PAGESIZE */
20603 #  else /* no HAVE_SYS_PARAM_H */
20604 #   define getpagesize() 8192   /* punt totally */
20605 #  endif /* no HAVE_SYS_PARAM_H */
20606 # endif /* no _SC_PAGESIZE */
20607
20608 #endif /* no HAVE_GETPAGESIZE */
20609
20610 int
20611 main ()
20612 {
20613   char *data, *data2, *data3;
20614   int i, pagesize;
20615   int fd;
20616
20617   pagesize = getpagesize ();
20618
20619   /* First, make a file with some known garbage in it. */
20620   data = (char *) malloc (pagesize);
20621   if (!data)
20622     return 1;
20623   for (i = 0; i < pagesize; ++i)
20624     *(data + i) = rand ();
20625   umask (0);
20626   fd = creat ("conftest.mmap", 0600);
20627   if (fd < 0)
20628     return 1;
20629   if (write (fd, data, pagesize) != pagesize)
20630     return 1;
20631   close (fd);
20632
20633   /* Next, try to mmap the file at a fixed address which already has
20634      something else allocated at it.  If we can, also make sure that
20635      we see the same garbage.  */
20636   fd = open ("conftest.mmap", O_RDWR);
20637   if (fd < 0)
20638     return 1;
20639   data2 = (char *) malloc (2 * pagesize);
20640   if (!data2)
20641     return 1;
20642   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20643   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20644                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20645     return 1;
20646   for (i = 0; i < pagesize; ++i)
20647     if (*(data + i) != *(data2 + i))
20648       return 1;
20649
20650   /* Finally, make sure that changes to the mapped area do not
20651      percolate back to the file as seen by read().  (This is a bug on
20652      some variants of i386 svr4.0.)  */
20653   for (i = 0; i < pagesize; ++i)
20654     *(data2 + i) = *(data2 + i) + 1;
20655   data3 = (char *) malloc (pagesize);
20656   if (!data3)
20657     return 1;
20658   if (read (fd, data3, pagesize) != pagesize)
20659     return 1;
20660   for (i = 0; i < pagesize; ++i)
20661     if (*(data + i) != *(data3 + i))
20662       return 1;
20663   close (fd);
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671   *) ac_try_echo=$ac_try;;
20672 esac
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675   (eval "$ac_link") 2>&5
20676   ac_status=$?
20677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20679   { (case "(($ac_try" in
20680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681   *) ac_try_echo=$ac_try;;
20682 esac
20683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685   (eval "$ac_try") 2>&5
20686   ac_status=$?
20687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); }; }; then
20689   ac_cv_func_mmap_fixed_mapped=yes
20690 else
20691   $as_echo "$as_me: program exited with status $ac_status" >&5
20692 $as_echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ( exit $ac_status )
20696 ac_cv_func_mmap_fixed_mapped=no
20697 fi
20698 rm -rf conftest.dSYM
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20700 fi
20701
20702
20703 fi
20704 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20705 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20706 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20707
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_MMAP 1
20710 _ACEOF
20711
20712 fi
20713 rm -f conftest.mmap
20714
20715
20716     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20717 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20718 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20719   $as_echo_n "(cached) " >&6
20720 else
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727
20728 #include <features.h>
20729 #ifdef __GNU_LIBRARY__
20730  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20731   Lucky GNU user
20732  #endif
20733 #endif
20734
20735 _ACEOF
20736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20737   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20738   ac_cv_gnu_library_2_1=yes
20739 else
20740   ac_cv_gnu_library_2_1=no
20741 fi
20742 rm -f conftest*
20743
20744
20745
20746 fi
20747 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20748 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20749
20750     GLIBC21="$ac_cv_gnu_library_2_1"
20751
20752
20753
20754
20755   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20756 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20757 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20758   $as_echo_n "(cached) " >&6
20759 else
20760
20761       if test "$cross_compiling" = yes; then
20762
20763           # Guess based on the CPU.
20764           case "$host_cpu" in
20765             alpha* | i3456786 | m68k | s390*)
20766               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20767             *)
20768               gt_cv_int_divbyzero_sigfpe="guessing no";;
20769           esac
20770
20771 else
20772   cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778
20779 #include <stdlib.h>
20780 #include <signal.h>
20781
20782 static void
20783 #ifdef __cplusplus
20784 sigfpe_handler (int sig)
20785 #else
20786 sigfpe_handler (sig) int sig;
20787 #endif
20788 {
20789   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20790   exit (sig != SIGFPE);
20791 }
20792
20793 int x = 1;
20794 int y = 0;
20795 int z;
20796 int nan;
20797
20798 int main ()
20799 {
20800   signal (SIGFPE, sigfpe_handler);
20801 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20802 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20803   signal (SIGTRAP, sigfpe_handler);
20804 #endif
20805 /* Linux/SPARC yields signal SIGILL.  */
20806 #if defined (__sparc__) && defined (__linux__)
20807   signal (SIGILL, sigfpe_handler);
20808 #endif
20809
20810   z = x / y;
20811   nan = y / y;
20812   exit (1);
20813 }
20814
20815 _ACEOF
20816 rm -f conftest$ac_exeext
20817 if { (ac_try="$ac_link"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20823 $as_echo "$ac_try_echo") >&5
20824   (eval "$ac_link") 2>&5
20825   ac_status=$?
20826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828   { (case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20833 $as_echo "$ac_try_echo") >&5
20834   (eval "$ac_try") 2>&5
20835   ac_status=$?
20836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   gt_cv_int_divbyzero_sigfpe=yes
20839 else
20840   $as_echo "$as_me: program exited with status $ac_status" >&5
20841 $as_echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20843
20844 ( exit $ac_status )
20845 gt_cv_int_divbyzero_sigfpe=no
20846 fi
20847 rm -rf conftest.dSYM
20848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20849 fi
20850
20851
20852
20853 fi
20854 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20855 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20856   case "$gt_cv_int_divbyzero_sigfpe" in
20857     *yes) value=1;;
20858     *) value=0;;
20859   esac
20860
20861 cat >>confdefs.h <<_ACEOF
20862 #define INTDIV0_RAISES_SIGFPE $value
20863 _ACEOF
20864
20865
20866
20867   { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20868 $as_echo_n "checking for unsigned long long... " >&6; }
20869 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20870   $as_echo_n "(cached) " >&6
20871 else
20872   cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 unsigned long long ull = 1ULL; int i = 63;
20879 int
20880 main ()
20881 {
20882 unsigned long long ullmax = (unsigned long long) -1;
20883      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (ac_try="$ac_link"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895 $as_echo "$ac_try_echo") >&5
20896   (eval "$ac_link") 2>conftest.er1
20897   ac_status=$?
20898   grep -v '^ *+' conftest.er1 >conftest.err
20899   rm -f conftest.er1
20900   cat conftest.err >&5
20901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } && {
20903          test -z "$ac_c_werror_flag" ||
20904          test ! -s conftest.err
20905        } && test -s conftest$ac_exeext && {
20906          test "$cross_compiling" = yes ||
20907          $as_test_x conftest$ac_exeext
20908        }; then
20909   ac_cv_type_unsigned_long_long=yes
20910 else
20911   $as_echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_cv_type_unsigned_long_long=no
20915 fi
20916
20917 rm -rf conftest.dSYM
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20919       conftest$ac_exeext conftest.$ac_ext
20920 fi
20921 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20922 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20923   if test $ac_cv_type_unsigned_long_long = yes; then
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_UNSIGNED_LONG_LONG 1
20927 _ACEOF
20928
20929   fi
20930
20931
20932
20933
20934   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20935
20936     test $ac_cv_type_unsigned_long_long = yes \
20937       && ac_type='unsigned long long' \
20938       || ac_type='unsigned long'
20939
20940 cat >>confdefs.h <<_ACEOF
20941 #define uintmax_t $ac_type
20942 _ACEOF
20943
20944   else
20945
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_UINTMAX_T 1
20948 _ACEOF
20949
20950   fi
20951
20952
20953   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20954 $as_echo_n "checking for inttypes.h... " >&6; }
20955 if test "${gt_cv_header_inttypes_h+set}" = set; then
20956   $as_echo_n "(cached) " >&6
20957 else
20958
20959     cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 #include <sys/types.h>
20966 #include <inttypes.h>
20967 int
20968 main ()
20969 {
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983   (eval "$ac_compile") 2>conftest.er1
20984   ac_status=$?
20985   grep -v '^ *+' conftest.er1 >conftest.err
20986   rm -f conftest.er1
20987   cat conftest.err >&5
20988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } && {
20990          test -z "$ac_c_werror_flag" ||
20991          test ! -s conftest.err
20992        } && test -s conftest.$ac_objext; then
20993   gt_cv_header_inttypes_h=yes
20994 else
20995   $as_echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         gt_cv_header_inttypes_h=no
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002
21003 fi
21004 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
21005 $as_echo "$gt_cv_header_inttypes_h" >&6; }
21006   if test $gt_cv_header_inttypes_h = yes; then
21007
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_INTTYPES_H 1
21010 _ACEOF
21011
21012   fi
21013
21014
21015
21016   if test $gt_cv_header_inttypes_h = yes; then
21017     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
21018 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21019 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
21020   $as_echo_n "(cached) " >&6
21021 else
21022
21023         cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 #include <inttypes.h>
21030 #ifdef PRId32
21031 char *p = PRId32;
21032 #endif
21033
21034 int
21035 main ()
21036 {
21037
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21049 $as_echo "$ac_try_echo") >&5
21050   (eval "$ac_compile") 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } && {
21057          test -z "$ac_c_werror_flag" ||
21058          test ! -s conftest.err
21059        } && test -s conftest.$ac_objext; then
21060   gt_cv_inttypes_pri_broken=no
21061 else
21062   $as_echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         gt_cv_inttypes_pri_broken=yes
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069
21070 fi
21071 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21072 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21073   fi
21074   if test "$gt_cv_inttypes_pri_broken" = yes; then
21075
21076 cat >>confdefs.h <<_ACEOF
21077 #define PRI_MACROS_BROKEN 1
21078 _ACEOF
21079
21080   fi
21081
21082
21083
21084 for ac_header in stdint.h
21085 do
21086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21089 $as_echo_n "checking for $ac_header... " >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21091   $as_echo_n "(cached) " >&6
21092 fi
21093 ac_res=`eval 'as_val=${'$as_ac_Header'}
21094                  $as_echo "$as_val"'`
21095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21096 $as_echo "$ac_res" >&6; }
21097 else
21098   # Is the header compilable?
21099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100 $as_echo_n "checking $ac_header usability... " >&6; }
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 $ac_includes_default
21108 #include <$ac_header>
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21117 $as_echo "$ac_try_echo") >&5
21118   (eval "$ac_compile") 2>conftest.er1
21119   ac_status=$?
21120   grep -v '^ *+' conftest.er1 >conftest.err
21121   rm -f conftest.er1
21122   cat conftest.err >&5
21123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } && {
21125          test -z "$ac_c_werror_flag" ||
21126          test ! -s conftest.err
21127        } && test -s conftest.$ac_objext; then
21128   ac_header_compiler=yes
21129 else
21130   $as_echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133         ac_header_compiler=no
21134 fi
21135
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21138 $as_echo "$ac_header_compiler" >&6; }
21139
21140 # Is the header present?
21141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21142 $as_echo_n "checking $ac_header presence... " >&6; }
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 #include <$ac_header>
21150 _ACEOF
21151 if { (ac_try="$ac_cpp conftest.$ac_ext"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21157 $as_echo "$ac_try_echo") >&5
21158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } >/dev/null && {
21165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21166          test ! -s conftest.err
21167        }; then
21168   ac_header_preproc=yes
21169 else
21170   $as_echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173   ac_header_preproc=no
21174 fi
21175
21176 rm -f conftest.err conftest.$ac_ext
21177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21178 $as_echo "$ac_header_preproc" >&6; }
21179
21180 # So?  What about this header?
21181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21182   yes:no: )
21183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21187     ac_header_preproc=yes
21188     ;;
21189   no:yes:* )
21190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21193 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21197 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21202
21203     ;;
21204 esac
21205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21206 $as_echo_n "checking for $ac_header... " >&6; }
21207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21208   $as_echo_n "(cached) " >&6
21209 else
21210   eval "$as_ac_Header=\$ac_header_preproc"
21211 fi
21212 ac_res=`eval 'as_val=${'$as_ac_Header'}
21213                  $as_echo "$as_val"'`
21214                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21215 $as_echo "$ac_res" >&6; }
21216
21217 fi
21218 as_val=`eval 'as_val=${'$as_ac_Header'}
21219                  $as_echo "$as_val"'`
21220    if test "x$as_val" = x""yes; then
21221   cat >>confdefs.h <<_ACEOF
21222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21223 _ACEOF
21224
21225 fi
21226
21227 done
21228
21229     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21230 $as_echo_n "checking for SIZE_MAX... " >&6; }
21231   result=
21232   cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238
21239 #include <limits.h>
21240 #if HAVE_STDINT_H
21241 #include <stdint.h>
21242 #endif
21243 #ifdef SIZE_MAX
21244 Found it
21245 #endif
21246
21247 _ACEOF
21248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21249   $EGREP "Found it" >/dev/null 2>&1; then
21250   result=yes
21251 fi
21252 rm -f conftest*
21253
21254   if test -z "$result"; then
21255                     if test "$cross_compiling" = yes; then
21256   # Depending upon the size, compute the lo and hi bounds.
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263 #include <stddef.h>
21264 int
21265 main ()
21266 {
21267 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21268 test_array [0] = 0
21269
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21281 $as_echo "$ac_try_echo") >&5
21282   (eval "$ac_compile") 2>conftest.er1
21283   ac_status=$?
21284   grep -v '^ *+' conftest.er1 >conftest.err
21285   rm -f conftest.er1
21286   cat conftest.err >&5
21287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); } && {
21289          test -z "$ac_c_werror_flag" ||
21290          test ! -s conftest.err
21291        } && test -s conftest.$ac_objext; then
21292   ac_lo=0 ac_mid=0
21293   while :; do
21294     cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h.  */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h.  */
21300 #include <stddef.h>
21301 int
21302 main ()
21303 {
21304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21305 test_array [0] = 0
21306
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315   *) ac_try_echo=$ac_try;;
21316 esac
21317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21318 $as_echo "$ac_try_echo") >&5
21319   (eval "$ac_compile") 2>conftest.er1
21320   ac_status=$?
21321   grep -v '^ *+' conftest.er1 >conftest.err
21322   rm -f conftest.er1
21323   cat conftest.err >&5
21324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); } && {
21326          test -z "$ac_c_werror_flag" ||
21327          test ! -s conftest.err
21328        } && test -s conftest.$ac_objext; then
21329   ac_hi=$ac_mid; break
21330 else
21331   $as_echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         ac_lo=`expr $ac_mid + 1`
21335                         if test $ac_lo -le $ac_mid; then
21336                           ac_lo= ac_hi=
21337                           break
21338                         fi
21339                         ac_mid=`expr 2 '*' $ac_mid + 1`
21340 fi
21341
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343   done
21344 else
21345   $as_echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348         cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354 #include <stddef.h>
21355 int
21356 main ()
21357 {
21358 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21359 test_array [0] = 0
21360
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369   *) ac_try_echo=$ac_try;;
21370 esac
21371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21372 $as_echo "$ac_try_echo") >&5
21373   (eval "$ac_compile") 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } && {
21380          test -z "$ac_c_werror_flag" ||
21381          test ! -s conftest.err
21382        } && test -s conftest.$ac_objext; then
21383   ac_hi=-1 ac_mid=-1
21384   while :; do
21385     cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 #include <stddef.h>
21392 int
21393 main ()
21394 {
21395 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21396 test_array [0] = 0
21397
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410   (eval "$ac_compile") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && {
21417          test -z "$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        } && test -s conftest.$ac_objext; then
21420   ac_lo=$ac_mid; break
21421 else
21422   $as_echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425         ac_hi=`expr '(' $ac_mid ')' - 1`
21426                         if test $ac_mid -le $ac_hi; then
21427                           ac_lo= ac_hi=
21428                           break
21429                         fi
21430                         ac_mid=`expr 2 '*' $ac_mid`
21431 fi
21432
21433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434   done
21435 else
21436   $as_echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21438
21439         ac_lo= ac_hi=
21440 fi
21441
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 # Binary search between lo and hi bounds.
21447 while test "x$ac_lo" != "x$ac_hi"; do
21448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21449   cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h.  */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h.  */
21455 #include <stddef.h>
21456 int
21457 main ()
21458 {
21459 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21460 test_array [0] = 0
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21473 $as_echo "$ac_try_echo") >&5
21474   (eval "$ac_compile") 2>conftest.er1
21475   ac_status=$?
21476   grep -v '^ *+' conftest.er1 >conftest.err
21477   rm -f conftest.er1
21478   cat conftest.err >&5
21479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); } && {
21481          test -z "$ac_c_werror_flag" ||
21482          test ! -s conftest.err
21483        } && test -s conftest.$ac_objext; then
21484   ac_hi=$ac_mid
21485 else
21486   $as_echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489         ac_lo=`expr '(' $ac_mid ')' + 1`
21490 fi
21491
21492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21493 done
21494 case $ac_lo in
21495 ?*) res_hi=$ac_lo;;
21496 '') result=? ;;
21497 esac
21498 else
21499   cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 #include <stddef.h>
21506 static long int longval () { return ~(size_t)0 / 10; }
21507 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21508 #include <stdio.h>
21509 #include <stdlib.h>
21510 int
21511 main ()
21512 {
21513
21514   FILE *f = fopen ("conftest.val", "w");
21515   if (! f)
21516     return 1;
21517   if ((~(size_t)0 / 10) < 0)
21518     {
21519       long int i = longval ();
21520       if (i != (~(size_t)0 / 10))
21521         return 1;
21522       fprintf (f, "%ld", i);
21523     }
21524   else
21525     {
21526       unsigned long int i = ulongval ();
21527       if (i != (~(size_t)0 / 10))
21528         return 1;
21529       fprintf (f, "%lu", i);
21530     }
21531   /* Do not output a trailing newline, as this causes \r\n confusion
21532      on some platforms.  */
21533   return ferror (f) || fclose (f) != 0;
21534
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543   *) ac_try_echo=$ac_try;;
21544 esac
21545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21546 $as_echo "$ac_try_echo") >&5
21547   (eval "$ac_link") 2>&5
21548   ac_status=$?
21549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21551   { (case "(($ac_try" in
21552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553   *) ac_try_echo=$ac_try;;
21554 esac
21555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21556 $as_echo "$ac_try_echo") >&5
21557   (eval "$ac_try") 2>&5
21558   ac_status=$?
21559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   res_hi=`cat conftest.val`
21562 else
21563   $as_echo "$as_me: program exited with status $ac_status" >&5
21564 $as_echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 ( exit $ac_status )
21568 result=?
21569 fi
21570 rm -rf conftest.dSYM
21571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21572 fi
21573 rm -f conftest.val
21574
21575     if test "$cross_compiling" = yes; then
21576   # Depending upon the size, compute the lo and hi bounds.
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 #include <stddef.h>
21584 int
21585 main ()
21586 {
21587 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21588 test_array [0] = 0
21589
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   ac_lo=0 ac_mid=0
21613   while :; do
21614     cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 #include <stddef.h>
21621 int
21622 main ()
21623 {
21624 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21625 test_array [0] = 0
21626
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21638 $as_echo "$ac_try_echo") >&5
21639   (eval "$ac_compile") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest.$ac_objext; then
21649   ac_hi=$ac_mid; break
21650 else
21651   $as_echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654         ac_lo=`expr $ac_mid + 1`
21655                         if test $ac_lo -le $ac_mid; then
21656                           ac_lo= ac_hi=
21657                           break
21658                         fi
21659                         ac_mid=`expr 2 '*' $ac_mid + 1`
21660 fi
21661
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663   done
21664 else
21665   $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668         cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 #include <stddef.h>
21675 int
21676 main ()
21677 {
21678 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21679 test_array [0] = 0
21680
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693   (eval "$ac_compile") 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && {
21700          test -z "$ac_c_werror_flag" ||
21701          test ! -s conftest.err
21702        } && test -s conftest.$ac_objext; then
21703   ac_hi=-1 ac_mid=-1
21704   while :; do
21705     cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <stddef.h>
21712 int
21713 main ()
21714 {
21715 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21716 test_array [0] = 0
21717
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21729 $as_echo "$ac_try_echo") >&5
21730   (eval "$ac_compile") 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } && {
21737          test -z "$ac_c_werror_flag" ||
21738          test ! -s conftest.err
21739        } && test -s conftest.$ac_objext; then
21740   ac_lo=$ac_mid; break
21741 else
21742   $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745         ac_hi=`expr '(' $ac_mid ')' - 1`
21746                         if test $ac_mid -le $ac_hi; then
21747                           ac_lo= ac_hi=
21748                           break
21749                         fi
21750                         ac_mid=`expr 2 '*' $ac_mid`
21751 fi
21752
21753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754   done
21755 else
21756   $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759         ac_lo= ac_hi=
21760 fi
21761
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766 # Binary search between lo and hi bounds.
21767 while test "x$ac_lo" != "x$ac_hi"; do
21768   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21769   cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775 #include <stddef.h>
21776 int
21777 main ()
21778 {
21779 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21780 test_array [0] = 0
21781
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794   (eval "$ac_compile") 2>conftest.er1
21795   ac_status=$?
21796   grep -v '^ *+' conftest.er1 >conftest.err
21797   rm -f conftest.er1
21798   cat conftest.err >&5
21799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); } && {
21801          test -z "$ac_c_werror_flag" ||
21802          test ! -s conftest.err
21803        } && test -s conftest.$ac_objext; then
21804   ac_hi=$ac_mid
21805 else
21806   $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809         ac_lo=`expr '(' $ac_mid ')' + 1`
21810 fi
21811
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21813 done
21814 case $ac_lo in
21815 ?*) res_lo=$ac_lo;;
21816 '') result=? ;;
21817 esac
21818 else
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 #include <stddef.h>
21826 static long int longval () { return ~(size_t)0 % 10; }
21827 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21828 #include <stdio.h>
21829 #include <stdlib.h>
21830 int
21831 main ()
21832 {
21833
21834   FILE *f = fopen ("conftest.val", "w");
21835   if (! f)
21836     return 1;
21837   if ((~(size_t)0 % 10) < 0)
21838     {
21839       long int i = longval ();
21840       if (i != (~(size_t)0 % 10))
21841         return 1;
21842       fprintf (f, "%ld", i);
21843     }
21844   else
21845     {
21846       unsigned long int i = ulongval ();
21847       if (i != (~(size_t)0 % 10))
21848         return 1;
21849       fprintf (f, "%lu", i);
21850     }
21851   /* Do not output a trailing newline, as this causes \r\n confusion
21852      on some platforms.  */
21853   return ferror (f) || fclose (f) != 0;
21854
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 rm -f conftest$ac_exeext
21860 if { (ac_try="$ac_link"
21861 case "(($ac_try" in
21862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863   *) ac_try_echo=$ac_try;;
21864 esac
21865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21866 $as_echo "$ac_try_echo") >&5
21867   (eval "$ac_link") 2>&5
21868   ac_status=$?
21869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871   { (case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21876 $as_echo "$ac_try_echo") >&5
21877   (eval "$ac_try") 2>&5
21878   ac_status=$?
21879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   res_lo=`cat conftest.val`
21882 else
21883   $as_echo "$as_me: program exited with status $ac_status" >&5
21884 $as_echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ( exit $ac_status )
21888 result=?
21889 fi
21890 rm -rf conftest.dSYM
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 fi
21893 rm -f conftest.val
21894
21895     if test "$cross_compiling" = yes; then
21896   # Depending upon the size, compute the lo and hi bounds.
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903 #include <stddef.h>
21904 int
21905 main ()
21906 {
21907 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21908 test_array [0] = 0
21909
21910   ;
21911   return 0;
21912 }
21913 _ACEOF
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918   *) ac_try_echo=$ac_try;;
21919 esac
21920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21921 $as_echo "$ac_try_echo") >&5
21922   (eval "$ac_compile") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } && {
21929          test -z "$ac_c_werror_flag" ||
21930          test ! -s conftest.err
21931        } && test -s conftest.$ac_objext; then
21932   ac_lo=0 ac_mid=0
21933   while :; do
21934     cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 #include <stddef.h>
21941 int
21942 main ()
21943 {
21944 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21945 test_array [0] = 0
21946
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 rm -f conftest.$ac_objext
21952 if { (ac_try="$ac_compile"
21953 case "(($ac_try" in
21954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955   *) ac_try_echo=$ac_try;;
21956 esac
21957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21958 $as_echo "$ac_try_echo") >&5
21959   (eval "$ac_compile") 2>conftest.er1
21960   ac_status=$?
21961   grep -v '^ *+' conftest.er1 >conftest.err
21962   rm -f conftest.er1
21963   cat conftest.err >&5
21964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965   (exit $ac_status); } && {
21966          test -z "$ac_c_werror_flag" ||
21967          test ! -s conftest.err
21968        } && test -s conftest.$ac_objext; then
21969   ac_hi=$ac_mid; break
21970 else
21971   $as_echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21973
21974         ac_lo=`expr $ac_mid + 1`
21975                         if test $ac_lo -le $ac_mid; then
21976                           ac_lo= ac_hi=
21977                           break
21978                         fi
21979                         ac_mid=`expr 2 '*' $ac_mid + 1`
21980 fi
21981
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21983   done
21984 else
21985   $as_echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988         cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994 #include <stddef.h>
21995 int
21996 main ()
21997 {
21998 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21999 test_array [0] = 0
22000
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22012 $as_echo "$ac_try_echo") >&5
22013   (eval "$ac_compile") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_c_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest.$ac_objext; then
22023   ac_hi=-1 ac_mid=-1
22024   while :; do
22025     cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h.  */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h.  */
22031 #include <stddef.h>
22032 int
22033 main ()
22034 {
22035 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22036 test_array [0] = 0
22037
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (ac_try="$ac_compile"
22044 case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22049 $as_echo "$ac_try_echo") >&5
22050   (eval "$ac_compile") 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } && {
22057          test -z "$ac_c_werror_flag" ||
22058          test ! -s conftest.err
22059        } && test -s conftest.$ac_objext; then
22060   ac_lo=$ac_mid; break
22061 else
22062   $as_echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065         ac_hi=`expr '(' $ac_mid ')' - 1`
22066                         if test $ac_mid -le $ac_hi; then
22067                           ac_lo= ac_hi=
22068                           break
22069                         fi
22070                         ac_mid=`expr 2 '*' $ac_mid`
22071 fi
22072
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074   done
22075 else
22076   $as_echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079         ac_lo= ac_hi=
22080 fi
22081
22082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 fi
22084
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 # Binary search between lo and hi bounds.
22087 while test "x$ac_lo" != "x$ac_hi"; do
22088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22089   cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095 #include <stddef.h>
22096 int
22097 main ()
22098 {
22099 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22100 test_array [0] = 0
22101
22102   ;
22103   return 0;
22104 }
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113 $as_echo "$ac_try_echo") >&5
22114   (eval "$ac_compile") 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } && {
22121          test -z "$ac_c_werror_flag" ||
22122          test ! -s conftest.err
22123        } && test -s conftest.$ac_objext; then
22124   ac_hi=$ac_mid
22125 else
22126   $as_echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129         ac_lo=`expr '(' $ac_mid ')' + 1`
22130 fi
22131
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 done
22134 case $ac_lo in
22135 ?*) fits_in_uint=$ac_lo;;
22136 '') result=? ;;
22137 esac
22138 else
22139   cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h.  */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h.  */
22145 #include <stddef.h>
22146 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22147 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22148 #include <stdio.h>
22149 #include <stdlib.h>
22150 int
22151 main ()
22152 {
22153
22154   FILE *f = fopen ("conftest.val", "w");
22155   if (! f)
22156     return 1;
22157   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22158     {
22159       long int i = longval ();
22160       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22161         return 1;
22162       fprintf (f, "%ld", i);
22163     }
22164   else
22165     {
22166       unsigned long int i = ulongval ();
22167       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22168         return 1;
22169       fprintf (f, "%lu", i);
22170     }
22171   /* Do not output a trailing newline, as this causes \r\n confusion
22172      on some platforms.  */
22173   return ferror (f) || fclose (f) != 0;
22174
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest$ac_exeext
22180 if { (ac_try="$ac_link"
22181 case "(($ac_try" in
22182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183   *) ac_try_echo=$ac_try;;
22184 esac
22185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22186 $as_echo "$ac_try_echo") >&5
22187   (eval "$ac_link") 2>&5
22188   ac_status=$?
22189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191   { (case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197   (eval "$ac_try") 2>&5
22198   ac_status=$?
22199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; }; then
22201   fits_in_uint=`cat conftest.val`
22202 else
22203   $as_echo "$as_me: program exited with status $ac_status" >&5
22204 $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207 ( exit $ac_status )
22208 result=?
22209 fi
22210 rm -rf conftest.dSYM
22211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22212 fi
22213 rm -f conftest.val
22214
22215     if test "$fits_in_uint" = 1; then
22216                   cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 #include <stddef.h>
22223         extern size_t foo;
22224         extern unsigned long foo;
22225
22226 int
22227 main ()
22228 {
22229
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && {
22249          test -z "$ac_c_werror_flag" ||
22250          test ! -s conftest.err
22251        } && test -s conftest.$ac_objext; then
22252   fits_in_uint=0
22253 else
22254   $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261     fi
22262     if test -z "$result"; then
22263       if test "$fits_in_uint" = 1; then
22264         result="$res_hi$res_lo"U
22265       else
22266         result="$res_hi$res_lo"UL
22267       fi
22268     else
22269             result='~(size_t)0'
22270     fi
22271   fi
22272   { $as_echo "$as_me:$LINENO: result: $result" >&5
22273 $as_echo "$result" >&6; }
22274   if test "$result" != yes; then
22275
22276 cat >>confdefs.h <<_ACEOF
22277 #define SIZE_MAX $result
22278 _ACEOF
22279
22280   fi
22281
22282
22283
22284
22285
22286 for ac_header in stdint.h
22287 do
22288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22290   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22291 $as_echo_n "checking for $ac_header... " >&6; }
22292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22293   $as_echo_n "(cached) " >&6
22294 fi
22295 ac_res=`eval 'as_val=${'$as_ac_Header'}
22296                  $as_echo "$as_val"'`
22297                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22298 $as_echo "$ac_res" >&6; }
22299 else
22300   # Is the header compilable?
22301 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22302 $as_echo_n "checking $ac_header usability... " >&6; }
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309 $ac_includes_default
22310 #include <$ac_header>
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320   (eval "$ac_compile") 2>conftest.er1
22321   ac_status=$?
22322   grep -v '^ *+' conftest.er1 >conftest.err
22323   rm -f conftest.er1
22324   cat conftest.err >&5
22325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } && {
22327          test -z "$ac_c_werror_flag" ||
22328          test ! -s conftest.err
22329        } && test -s conftest.$ac_objext; then
22330   ac_header_compiler=yes
22331 else
22332   $as_echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335         ac_header_compiler=no
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22340 $as_echo "$ac_header_compiler" >&6; }
22341
22342 # Is the header present?
22343 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22344 $as_echo_n "checking $ac_header presence... " >&6; }
22345 cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 #include <$ac_header>
22352 _ACEOF
22353 if { (ac_try="$ac_cpp conftest.$ac_ext"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22359 $as_echo "$ac_try_echo") >&5
22360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } >/dev/null && {
22367          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22368          test ! -s conftest.err
22369        }; then
22370   ac_header_preproc=yes
22371 else
22372   $as_echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375   ac_header_preproc=no
22376 fi
22377
22378 rm -f conftest.err conftest.$ac_ext
22379 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22380 $as_echo "$ac_header_preproc" >&6; }
22381
22382 # So?  What about this header?
22383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22384   yes:no: )
22385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22386 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22389     ac_header_preproc=yes
22390     ;;
22391   no:yes:* )
22392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22393 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22395 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22397 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22398     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22399 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22400     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22402     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22403 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22404
22405     ;;
22406 esac
22407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22408 $as_echo_n "checking for $ac_header... " >&6; }
22409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22410   $as_echo_n "(cached) " >&6
22411 else
22412   eval "$as_ac_Header=\$ac_header_preproc"
22413 fi
22414 ac_res=`eval 'as_val=${'$as_ac_Header'}
22415                  $as_echo "$as_val"'`
22416                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22417 $as_echo "$ac_res" >&6; }
22418
22419 fi
22420 as_val=`eval 'as_val=${'$as_ac_Header'}
22421                  $as_echo "$as_val"'`
22422    if test "x$as_val" = x""yes; then
22423   cat >>confdefs.h <<_ACEOF
22424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22425 _ACEOF
22426
22427 fi
22428
22429 done
22430
22431
22432
22433
22434
22435
22436
22437
22438   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22439 $as_echo_n "checking for ptrdiff_t... " >&6; }
22440 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22441   $as_echo_n "(cached) " >&6
22442 else
22443   ac_cv_type_ptrdiff_t=no
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451 int
22452 main ()
22453 {
22454 if (sizeof (ptrdiff_t))
22455        return 0;
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464   *) ac_try_echo=$ac_try;;
22465 esac
22466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468   (eval "$ac_compile") 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && {
22475          test -z "$ac_c_werror_flag" ||
22476          test ! -s conftest.err
22477        } && test -s conftest.$ac_objext; then
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 int
22486 main ()
22487 {
22488 if (sizeof ((ptrdiff_t)))
22489           return 0;
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498   *) ac_try_echo=$ac_try;;
22499 esac
22500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22501 $as_echo "$ac_try_echo") >&5
22502   (eval "$ac_compile") 2>conftest.er1
22503   ac_status=$?
22504   grep -v '^ *+' conftest.er1 >conftest.err
22505   rm -f conftest.er1
22506   cat conftest.err >&5
22507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } && {
22509          test -z "$ac_c_werror_flag" ||
22510          test ! -s conftest.err
22511        } && test -s conftest.$ac_objext; then
22512   :
22513 else
22514   $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517         ac_cv_type_ptrdiff_t=yes
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 else
22522   $as_echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525
22526 fi
22527
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 fi
22530 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22531 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22532 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22533   :
22534 else
22535
22536 cat >>confdefs.h <<\_ACEOF
22537 #define ptrdiff_t long
22538 _ACEOF
22539
22540
22541 fi
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22554 stdlib.h string.h unistd.h sys/param.h
22555 do
22556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22558   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22559 $as_echo_n "checking for $ac_header... " >&6; }
22560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22561   $as_echo_n "(cached) " >&6
22562 fi
22563 ac_res=`eval 'as_val=${'$as_ac_Header'}
22564                  $as_echo "$as_val"'`
22565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22566 $as_echo "$ac_res" >&6; }
22567 else
22568   # Is the header compilable?
22569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22570 $as_echo_n "checking $ac_header usability... " >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h.  */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h.  */
22577 $ac_includes_default
22578 #include <$ac_header>
22579 _ACEOF
22580 rm -f conftest.$ac_objext
22581 if { (ac_try="$ac_compile"
22582 case "(($ac_try" in
22583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584   *) ac_try_echo=$ac_try;;
22585 esac
22586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22587 $as_echo "$ac_try_echo") >&5
22588   (eval "$ac_compile") 2>conftest.er1
22589   ac_status=$?
22590   grep -v '^ *+' conftest.er1 >conftest.err
22591   rm -f conftest.er1
22592   cat conftest.err >&5
22593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } && {
22595          test -z "$ac_c_werror_flag" ||
22596          test ! -s conftest.err
22597        } && test -s conftest.$ac_objext; then
22598   ac_header_compiler=yes
22599 else
22600   $as_echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22602
22603         ac_header_compiler=no
22604 fi
22605
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608 $as_echo "$ac_header_compiler" >&6; }
22609
22610 # Is the header present?
22611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22612 $as_echo_n "checking $ac_header presence... " >&6; }
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 #include <$ac_header>
22620 _ACEOF
22621 if { (ac_try="$ac_cpp conftest.$ac_ext"
22622 case "(($ac_try" in
22623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624   *) ac_try_echo=$ac_try;;
22625 esac
22626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } >/dev/null && {
22635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        }; then
22638   ac_header_preproc=yes
22639 else
22640   $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643   ac_header_preproc=no
22644 fi
22645
22646 rm -f conftest.err conftest.$ac_ext
22647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648 $as_echo "$ac_header_preproc" >&6; }
22649
22650 # So?  What about this header?
22651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22652   yes:no: )
22653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22657     ac_header_preproc=yes
22658     ;;
22659   no:yes:* )
22660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22662     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22663 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22664     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22667 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22672
22673     ;;
22674 esac
22675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22676 $as_echo_n "checking for $ac_header... " >&6; }
22677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22678   $as_echo_n "(cached) " >&6
22679 else
22680   eval "$as_ac_Header=\$ac_header_preproc"
22681 fi
22682 ac_res=`eval 'as_val=${'$as_ac_Header'}
22683                  $as_echo "$as_val"'`
22684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22685 $as_echo "$ac_res" >&6; }
22686
22687 fi
22688 as_val=`eval 'as_val=${'$as_ac_Header'}
22689                  $as_echo "$as_val"'`
22690    if test "x$as_val" = x""yes; then
22691   cat >>confdefs.h <<_ACEOF
22692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22693 _ACEOF
22694
22695 fi
22696
22697 done
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22723 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22724 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22725 __fsetlocking
22726 do
22727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22728 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22729 $as_echo_n "checking for $ac_func... " >&6; }
22730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22731   $as_echo_n "(cached) " >&6
22732 else
22733   cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22741 #define $ac_func innocuous_$ac_func
22742
22743 /* System header to define __stub macros and hopefully few prototypes,
22744     which can conflict with char $ac_func (); below.
22745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22746     <limits.h> exists even on freestanding compilers.  */
22747
22748 #ifdef __STDC__
22749 # include <limits.h>
22750 #else
22751 # include <assert.h>
22752 #endif
22753
22754 #undef $ac_func
22755
22756 /* Override any GCC internal prototype to avoid an error.
22757    Use char because int might match the return type of a GCC
22758    builtin and then its argument prototype would still apply.  */
22759 #ifdef __cplusplus
22760 extern "C"
22761 #endif
22762 char $ac_func ();
22763 /* The GNU C library defines this for functions which it implements
22764     to always fail with ENOSYS.  Some functions are actually named
22765     something starting with __ and the normal name is an alias.  */
22766 #if defined __stub_$ac_func || defined __stub___$ac_func
22767 choke me
22768 #endif
22769
22770 int
22771 main ()
22772 {
22773 return $ac_func ();
22774   ;
22775   return 0;
22776 }
22777 _ACEOF
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782   *) ac_try_echo=$ac_try;;
22783 esac
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786   (eval "$ac_link") 2>conftest.er1
22787   ac_status=$?
22788   grep -v '^ *+' conftest.er1 >conftest.err
22789   rm -f conftest.er1
22790   cat conftest.err >&5
22791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } && {
22793          test -z "$ac_c_werror_flag" ||
22794          test ! -s conftest.err
22795        } && test -s conftest$ac_exeext && {
22796          test "$cross_compiling" = yes ||
22797          $as_test_x conftest$ac_exeext
22798        }; then
22799   eval "$as_ac_var=yes"
22800 else
22801   $as_echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804         eval "$as_ac_var=no"
22805 fi
22806
22807 rm -rf conftest.dSYM
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809       conftest$ac_exeext conftest.$ac_ext
22810 fi
22811 ac_res=`eval 'as_val=${'$as_ac_var'}
22812                  $as_echo "$as_val"'`
22813                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22814 $as_echo "$ac_res" >&6; }
22815 as_val=`eval 'as_val=${'$as_ac_var'}
22816                  $as_echo "$as_val"'`
22817    if test "x$as_val" = x""yes; then
22818   cat >>confdefs.h <<_ACEOF
22819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22820 _ACEOF
22821
22822 fi
22823 done
22824
22825
22826
22827   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22828 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22829 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22830   $as_echo_n "(cached) " >&6
22831 else
22832   cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838 #include <stdio.h>
22839 int
22840 main ()
22841 {
22842
22843 #ifndef _snprintf
22844   char *p = (char *) _snprintf;
22845 #endif
22846
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext
22852 if { (ac_try="$ac_compile"
22853 case "(($ac_try" in
22854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855   *) ac_try_echo=$ac_try;;
22856 esac
22857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22858 $as_echo "$ac_try_echo") >&5
22859   (eval "$ac_compile") 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } && {
22866          test -z "$ac_c_werror_flag" ||
22867          test ! -s conftest.err
22868        } && test -s conftest.$ac_objext; then
22869   ac_cv_have_decl__snprintf=yes
22870 else
22871   $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874         ac_cv_have_decl__snprintf=no
22875 fi
22876
22877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878 fi
22879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22880 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22881   if test $ac_cv_have_decl__snprintf = yes; then
22882     gt_value=1
22883   else
22884     gt_value=0
22885   fi
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_DECL__SNPRINTF $gt_value
22889 _ACEOF
22890
22891
22892
22893   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22894 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22895 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22896   $as_echo_n "(cached) " >&6
22897 else
22898   cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h.  */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h.  */
22904 #include <stdio.h>
22905 int
22906 main ()
22907 {
22908
22909 #ifndef _snwprintf
22910   char *p = (char *) _snwprintf;
22911 #endif
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925   (eval "$ac_compile") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest.$ac_objext; then
22935   ac_cv_have_decl__snwprintf=yes
22936 else
22937   $as_echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940         ac_cv_have_decl__snwprintf=no
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 fi
22945 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22946 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22947   if test $ac_cv_have_decl__snwprintf = yes; then
22948     gt_value=1
22949   else
22950     gt_value=0
22951   fi
22952
22953 cat >>confdefs.h <<_ACEOF
22954 #define HAVE_DECL__SNWPRINTF $gt_value
22955 _ACEOF
22956
22957
22958
22959
22960   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22961 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22962 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22963   $as_echo_n "(cached) " >&6
22964 else
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 #include <stdio.h>
22972 int
22973 main ()
22974 {
22975
22976 #ifndef feof_unlocked
22977   char *p = (char *) feof_unlocked;
22978 #endif
22979
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext
22985 if { (ac_try="$ac_compile"
22986 case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22991 $as_echo "$ac_try_echo") >&5
22992   (eval "$ac_compile") 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } && {
22999          test -z "$ac_c_werror_flag" ||
23000          test ! -s conftest.err
23001        } && test -s conftest.$ac_objext; then
23002   ac_cv_have_decl_feof_unlocked=yes
23003 else
23004   $as_echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23006
23007         ac_cv_have_decl_feof_unlocked=no
23008 fi
23009
23010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 fi
23012 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
23013 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
23014   if test $ac_cv_have_decl_feof_unlocked = yes; then
23015     gt_value=1
23016   else
23017     gt_value=0
23018   fi
23019
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
23022 _ACEOF
23023
23024
23025
23026   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23027 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23028 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23029   $as_echo_n "(cached) " >&6
23030 else
23031   cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h.  */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h.  */
23037 #include <stdio.h>
23038 int
23039 main ()
23040 {
23041
23042 #ifndef fgets_unlocked
23043   char *p = (char *) fgets_unlocked;
23044 #endif
23045
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054   *) ac_try_echo=$ac_try;;
23055 esac
23056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23057 $as_echo "$ac_try_echo") >&5
23058   (eval "$ac_compile") 2>conftest.er1
23059   ac_status=$?
23060   grep -v '^ *+' conftest.er1 >conftest.err
23061   rm -f conftest.er1
23062   cat conftest.err >&5
23063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } && {
23065          test -z "$ac_c_werror_flag" ||
23066          test ! -s conftest.err
23067        } && test -s conftest.$ac_objext; then
23068   ac_cv_have_decl_fgets_unlocked=yes
23069 else
23070   $as_echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073         ac_cv_have_decl_fgets_unlocked=no
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23079 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23080   if test $ac_cv_have_decl_fgets_unlocked = yes; then
23081     gt_value=1
23082   else
23083     gt_value=0
23084   fi
23085
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23088 _ACEOF
23089
23090
23091
23092   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23093 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23094 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23095   $as_echo_n "(cached) " >&6
23096 else
23097   cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103 #include <stdio.h>
23104 int
23105 main ()
23106 {
23107
23108 #ifndef getc_unlocked
23109   char *p = (char *) getc_unlocked;
23110 #endif
23111
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120   *) ac_try_echo=$ac_try;;
23121 esac
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124   (eval "$ac_compile") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest.$ac_objext; then
23134   ac_cv_have_decl_getc_unlocked=yes
23135 else
23136   $as_echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139         ac_cv_have_decl_getc_unlocked=no
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 fi
23144 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23145 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23146   if test $ac_cv_have_decl_getc_unlocked = yes; then
23147     gt_value=1
23148   else
23149     gt_value=0
23150   fi
23151
23152 cat >>confdefs.h <<_ACEOF
23153 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23154 _ACEOF
23155
23156
23157
23158   case $gt_cv_func_printf_posix in
23159     *yes) HAVE_POSIX_PRINTF=1 ;;
23160     *) HAVE_POSIX_PRINTF=0 ;;
23161   esac
23162
23163   if test "$ac_cv_func_asprintf" = yes; then
23164     HAVE_ASPRINTF=1
23165   else
23166     HAVE_ASPRINTF=0
23167   fi
23168
23169   if test "$ac_cv_func_snprintf" = yes; then
23170     HAVE_SNPRINTF=1
23171   else
23172     HAVE_SNPRINTF=0
23173   fi
23174
23175   if test "$ac_cv_func_wprintf" = yes; then
23176     HAVE_WPRINTF=1
23177   else
23178     HAVE_WPRINTF=0
23179   fi
23180
23181
23182
23183
23184
23185
23186
23187           am_save_CPPFLAGS="$CPPFLAGS"
23188
23189   for element in $INCICONV; do
23190     haveit=
23191     for x in $CPPFLAGS; do
23192
23193   acl_save_prefix="$prefix"
23194   prefix="$acl_final_prefix"
23195   acl_save_exec_prefix="$exec_prefix"
23196   exec_prefix="$acl_final_exec_prefix"
23197   eval x=\"$x\"
23198   exec_prefix="$acl_save_exec_prefix"
23199   prefix="$acl_save_prefix"
23200
23201       if test "X$x" = "X$element"; then
23202         haveit=yes
23203         break
23204       fi
23205     done
23206     if test -z "$haveit"; then
23207       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23208     fi
23209   done
23210
23211
23212   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23213 $as_echo_n "checking for iconv... " >&6; }
23214 if test "${am_cv_func_iconv+set}" = set; then
23215   $as_echo_n "(cached) " >&6
23216 else
23217
23218     am_cv_func_iconv="no, consider installing GNU libiconv"
23219     am_cv_lib_iconv=no
23220     cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 #include <stdlib.h>
23227 #include <iconv.h>
23228 int
23229 main ()
23230 {
23231 iconv_t cd = iconv_open("","");
23232        iconv(cd,NULL,NULL,NULL,NULL);
23233        iconv_close(cd);
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (ac_try="$ac_link"
23240 case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23245 $as_echo "$ac_try_echo") >&5
23246   (eval "$ac_link") 2>conftest.er1
23247   ac_status=$?
23248   grep -v '^ *+' conftest.er1 >conftest.err
23249   rm -f conftest.er1
23250   cat conftest.err >&5
23251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); } && {
23253          test -z "$ac_c_werror_flag" ||
23254          test ! -s conftest.err
23255        } && test -s conftest$ac_exeext && {
23256          test "$cross_compiling" = yes ||
23257          $as_test_x conftest$ac_exeext
23258        }; then
23259   am_cv_func_iconv=yes
23260 else
23261   $as_echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264
23265 fi
23266
23267 rm -rf conftest.dSYM
23268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23269       conftest$ac_exeext conftest.$ac_ext
23270     if test "$am_cv_func_iconv" != yes; then
23271       am_save_LIBS="$LIBS"
23272       LIBS="$LIBS $LIBICONV"
23273       cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 #include <stdlib.h>
23280 #include <iconv.h>
23281 int
23282 main ()
23283 {
23284 iconv_t cd = iconv_open("","");
23285          iconv(cd,NULL,NULL,NULL,NULL);
23286          iconv_close(cd);
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299   (eval "$ac_link") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest$ac_exeext && {
23309          test "$cross_compiling" = yes ||
23310          $as_test_x conftest$ac_exeext
23311        }; then
23312   am_cv_lib_iconv=yes
23313         am_cv_func_iconv=yes
23314 else
23315   $as_echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318
23319 fi
23320
23321 rm -rf conftest.dSYM
23322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23323       conftest$ac_exeext conftest.$ac_ext
23324       LIBS="$am_save_LIBS"
23325     fi
23326
23327 fi
23328 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23329 $as_echo "$am_cv_func_iconv" >&6; }
23330   if test "$am_cv_func_iconv" = yes; then
23331
23332 cat >>confdefs.h <<\_ACEOF
23333 #define HAVE_ICONV 1
23334 _ACEOF
23335
23336   fi
23337   if test "$am_cv_lib_iconv" = yes; then
23338     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23339 $as_echo_n "checking how to link with libiconv... " >&6; }
23340     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23341 $as_echo "$LIBICONV" >&6; }
23342   else
23343             CPPFLAGS="$am_save_CPPFLAGS"
23344     LIBICONV=
23345     LTLIBICONV=
23346   fi
23347
23348
23349
23350   if test "$am_cv_func_iconv" = yes; then
23351     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23352 $as_echo_n "checking for iconv declaration... " >&6; }
23353     if test "${am_cv_proto_iconv+set}" = set; then
23354   $as_echo_n "(cached) " >&6
23355 else
23356
23357       cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363
23364 #include <stdlib.h>
23365 #include <iconv.h>
23366 extern
23367 #ifdef __cplusplus
23368 "C"
23369 #endif
23370 #if defined(__STDC__) || defined(__cplusplus)
23371 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23372 #else
23373 size_t iconv();
23374 #endif
23375
23376 int
23377 main ()
23378 {
23379
23380   ;
23381   return 0;
23382 }
23383 _ACEOF
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391 $as_echo "$ac_try_echo") >&5
23392   (eval "$ac_compile") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } && {
23399          test -z "$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        } && test -s conftest.$ac_objext; then
23402   am_cv_proto_iconv_arg1=""
23403 else
23404   $as_echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407         am_cv_proto_iconv_arg1="const"
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411       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);"
23412 fi
23413
23414     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23415     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23416          }$am_cv_proto_iconv" >&5
23417 $as_echo "${ac_t:-
23418          }$am_cv_proto_iconv" >&6; }
23419
23420 cat >>confdefs.h <<_ACEOF
23421 #define ICONV_CONST $am_cv_proto_iconv_arg1
23422 _ACEOF
23423
23424   fi
23425
23426
23427   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23428 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23429 if test "${am_cv_langinfo_codeset+set}" = set; then
23430   $as_echo_n "(cached) " >&6
23431 else
23432   cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 #include <langinfo.h>
23439 int
23440 main ()
23441 {
23442 char* cs = nl_langinfo(CODESET);
23443   ;
23444   return 0;
23445 }
23446 _ACEOF
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451   *) ac_try_echo=$ac_try;;
23452 esac
23453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23454 $as_echo "$ac_try_echo") >&5
23455   (eval "$ac_link") 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } && {
23462          test -z "$ac_c_werror_flag" ||
23463          test ! -s conftest.err
23464        } && test -s conftest$ac_exeext && {
23465          test "$cross_compiling" = yes ||
23466          $as_test_x conftest$ac_exeext
23467        }; then
23468   am_cv_langinfo_codeset=yes
23469 else
23470   $as_echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473         am_cv_langinfo_codeset=no
23474 fi
23475
23476 rm -rf conftest.dSYM
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478       conftest$ac_exeext conftest.$ac_ext
23479
23480 fi
23481 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23482 $as_echo "$am_cv_langinfo_codeset" >&6; }
23483   if test $am_cv_langinfo_codeset = yes; then
23484
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_LANGINFO_CODESET 1
23487 _ACEOF
23488
23489   fi
23490
23491   if test $ac_cv_header_locale_h = yes; then
23492
23493   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23494 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23495 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23496   $as_echo_n "(cached) " >&6
23497 else
23498   cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h.  */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h.  */
23504 #include <locale.h>
23505 int
23506 main ()
23507 {
23508 return LC_MESSAGES
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (ac_try="$ac_link"
23515 case "(($ac_try" in
23516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517   *) ac_try_echo=$ac_try;;
23518 esac
23519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23520 $as_echo "$ac_try_echo") >&5
23521   (eval "$ac_link") 2>conftest.er1
23522   ac_status=$?
23523   grep -v '^ *+' conftest.er1 >conftest.err
23524   rm -f conftest.er1
23525   cat conftest.err >&5
23526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } && {
23528          test -z "$ac_c_werror_flag" ||
23529          test ! -s conftest.err
23530        } && test -s conftest$ac_exeext && {
23531          test "$cross_compiling" = yes ||
23532          $as_test_x conftest$ac_exeext
23533        }; then
23534   gt_cv_val_LC_MESSAGES=yes
23535 else
23536   $as_echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23538
23539         gt_cv_val_LC_MESSAGES=no
23540 fi
23541
23542 rm -rf conftest.dSYM
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544       conftest$ac_exeext conftest.$ac_ext
23545 fi
23546 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23547 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23548   if test $gt_cv_val_LC_MESSAGES = yes; then
23549
23550 cat >>confdefs.h <<\_ACEOF
23551 #define HAVE_LC_MESSAGES 1
23552 _ACEOF
23553
23554   fi
23555
23556   fi
23557
23558   if test -n "$INTL_MACOSX_LIBS"; then
23559     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23560   fi
23561
23562                       for ac_prog in bison
23563 do
23564   # Extract the first word of "$ac_prog", so it can be a program name with args.
23565 set dummy $ac_prog; ac_word=$2
23566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23567 $as_echo_n "checking for $ac_word... " >&6; }
23568 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23569   $as_echo_n "(cached) " >&6
23570 else
23571   if test -n "$INTLBISON"; then
23572   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23573 else
23574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23575 for as_dir in $PATH
23576 do
23577   IFS=$as_save_IFS
23578   test -z "$as_dir" && as_dir=.
23579   for ac_exec_ext in '' $ac_executable_extensions; do
23580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23581     ac_cv_prog_INTLBISON="$ac_prog"
23582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23583     break 2
23584   fi
23585 done
23586 done
23587 IFS=$as_save_IFS
23588
23589 fi
23590 fi
23591 INTLBISON=$ac_cv_prog_INTLBISON
23592 if test -n "$INTLBISON"; then
23593   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23594 $as_echo "$INTLBISON" >&6; }
23595 else
23596   { $as_echo "$as_me:$LINENO: result: no" >&5
23597 $as_echo "no" >&6; }
23598 fi
23599
23600
23601   test -n "$INTLBISON" && break
23602 done
23603
23604   if test -z "$INTLBISON"; then
23605     ac_verc_fail=yes
23606   else
23607         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23608 $as_echo_n "checking version of bison... " >&6; }
23609     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23610     case $ac_prog_version in
23611       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23612       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23613          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23614       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23615     esac
23616     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23617 $as_echo "$ac_prog_version" >&6; }
23618   fi
23619   if test $ac_verc_fail = yes; then
23620     INTLBISON=:
23621   fi
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23639 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23640 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23641   $as_echo_n "(cached) " >&6
23642 else
23643   gt_save_CPPFLAGS="$CPPFLAGS"
23644      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23645      gt_save_LIBS="$LIBS"
23646      LIBS="$LIBS -framework CoreFoundation"
23647      cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 #include <CFPreferences.h>
23654 int
23655 main ()
23656 {
23657 CFPreferencesCopyAppValue(NULL, NULL)
23658   ;
23659   return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666   *) ac_try_echo=$ac_try;;
23667 esac
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670   (eval "$ac_link") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest$ac_exeext && {
23680          test "$cross_compiling" = yes ||
23681          $as_test_x conftest$ac_exeext
23682        }; then
23683   gt_cv_func_CFPreferencesCopyAppValue=yes
23684 else
23685   $as_echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688         gt_cv_func_CFPreferencesCopyAppValue=no
23689 fi
23690
23691 rm -rf conftest.dSYM
23692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23693       conftest$ac_exeext conftest.$ac_ext
23694      CPPFLAGS="$gt_save_CPPFLAGS"
23695      LIBS="$gt_save_LIBS"
23696 fi
23697 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23698 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23699   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23700
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23703 _ACEOF
23704
23705   fi
23706     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23707 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23708 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23709   $as_echo_n "(cached) " >&6
23710 else
23711   gt_save_CPPFLAGS="$CPPFLAGS"
23712      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23713      gt_save_LIBS="$LIBS"
23714      LIBS="$LIBS -framework CoreFoundation"
23715      cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h.  */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h.  */
23721 #include <CFLocale.h>
23722 int
23723 main ()
23724 {
23725 CFLocaleCopyCurrent();
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738   (eval "$ac_link") 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } && {
23745          test -z "$ac_c_werror_flag" ||
23746          test ! -s conftest.err
23747        } && test -s conftest$ac_exeext && {
23748          test "$cross_compiling" = yes ||
23749          $as_test_x conftest$ac_exeext
23750        }; then
23751   gt_cv_func_CFLocaleCopyCurrent=yes
23752 else
23753   $as_echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23755
23756         gt_cv_func_CFLocaleCopyCurrent=no
23757 fi
23758
23759 rm -rf conftest.dSYM
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761       conftest$ac_exeext conftest.$ac_ext
23762      CPPFLAGS="$gt_save_CPPFLAGS"
23763      LIBS="$gt_save_LIBS"
23764 fi
23765 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23766 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23767   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23768
23769 cat >>confdefs.h <<\_ACEOF
23770 #define HAVE_CFLOCALECOPYCURRENT 1
23771 _ACEOF
23772
23773   fi
23774   INTL_MACOSX_LIBS=
23775   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23776     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23777   fi
23778
23779
23780
23781
23782   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23783 $as_echo_n "checking whether NLS is requested... " >&6; }
23784     # Check whether --enable-nls was given.
23785 if test "${enable_nls+set}" = set; then
23786   enableval=$enable_nls; USE_NLS=$enableval
23787 else
23788   USE_NLS=yes
23789 fi
23790
23791   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23792 $as_echo "$USE_NLS" >&6; }
23793
23794
23795
23796
23797     BUILD_INCLUDED_LIBINTL=no
23798     USE_INCLUDED_LIBINTL=no
23799
23800   LIBINTL=
23801   LTLIBINTL=
23802   POSUB=
23803
23804     if test "$USE_NLS" = "yes"; then
23805     gt_use_preinstalled_gnugettext=no
23806
23807       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23808 $as_echo_n "checking whether included gettext is requested... " >&6; }
23809
23810 # Check whether --with-included-gettext was given.
23811 if test "${with_included_gettext+set}" = set; then
23812   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23813 else
23814   nls_cv_force_use_gnu_gettext=no
23815 fi
23816
23817       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23818 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23819
23820       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23821       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23822
23823
23824
23825
23826
23827
23828         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23829 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23830 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23831   $as_echo_n "(cached) " >&6
23832 else
23833   cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839 #include <libintl.h>
23840 extern int _nl_msg_cat_cntr;
23841 extern int *_nl_domain_bindings;
23842 int
23843 main ()
23844 {
23845 bindtextdomain ("", "");
23846 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (ac_try="$ac_link"
23853 case "(($ac_try" in
23854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855   *) ac_try_echo=$ac_try;;
23856 esac
23857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23858 $as_echo "$ac_try_echo") >&5
23859   (eval "$ac_link") 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } && {
23866          test -z "$ac_c_werror_flag" ||
23867          test ! -s conftest.err
23868        } && test -s conftest$ac_exeext && {
23869          test "$cross_compiling" = yes ||
23870          $as_test_x conftest$ac_exeext
23871        }; then
23872   gt_cv_func_gnugettext1_libc=yes
23873 else
23874   $as_echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877         gt_cv_func_gnugettext1_libc=no
23878 fi
23879
23880 rm -rf conftest.dSYM
23881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23882       conftest$ac_exeext conftest.$ac_ext
23883 fi
23884 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23885 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23886
23887         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23888
23889
23890
23891     use_additional=yes
23892
23893   acl_save_prefix="$prefix"
23894   prefix="$acl_final_prefix"
23895   acl_save_exec_prefix="$exec_prefix"
23896   exec_prefix="$acl_final_exec_prefix"
23897
23898     eval additional_includedir=\"$includedir\"
23899     eval additional_libdir=\"$libdir\"
23900
23901   exec_prefix="$acl_save_exec_prefix"
23902   prefix="$acl_save_prefix"
23903
23904
23905 # Check whether --with-libintl-prefix was given.
23906 if test "${with_libintl_prefix+set}" = set; then
23907   withval=$with_libintl_prefix;
23908     if test "X$withval" = "Xno"; then
23909       use_additional=no
23910     else
23911       if test "X$withval" = "X"; then
23912
23913   acl_save_prefix="$prefix"
23914   prefix="$acl_final_prefix"
23915   acl_save_exec_prefix="$exec_prefix"
23916   exec_prefix="$acl_final_exec_prefix"
23917
23918           eval additional_includedir=\"$includedir\"
23919           eval additional_libdir=\"$libdir\"
23920
23921   exec_prefix="$acl_save_exec_prefix"
23922   prefix="$acl_save_prefix"
23923
23924       else
23925         additional_includedir="$withval/include"
23926         additional_libdir="$withval/lib"
23927       fi
23928     fi
23929
23930 fi
23931
23932       LIBINTL=
23933   LTLIBINTL=
23934   INCINTL=
23935   rpathdirs=
23936   ltrpathdirs=
23937   names_already_handled=
23938   names_next_round='intl '
23939   while test -n "$names_next_round"; do
23940     names_this_round="$names_next_round"
23941     names_next_round=
23942     for name in $names_this_round; do
23943       already_handled=
23944       for n in $names_already_handled; do
23945         if test "$n" = "$name"; then
23946           already_handled=yes
23947           break
23948         fi
23949       done
23950       if test -z "$already_handled"; then
23951         names_already_handled="$names_already_handled $name"
23952                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23953         eval value=\"\$HAVE_LIB$uppername\"
23954         if test -n "$value"; then
23955           if test "$value" = yes; then
23956             eval value=\"\$LIB$uppername\"
23957             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23958             eval value=\"\$LTLIB$uppername\"
23959             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23960           else
23961                                     :
23962           fi
23963         else
23964                               found_dir=
23965           found_la=
23966           found_so=
23967           found_a=
23968           if test $use_additional = yes; then
23969             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23970               found_dir="$additional_libdir"
23971               found_so="$additional_libdir/lib$name.$shlibext"
23972               if test -f "$additional_libdir/lib$name.la"; then
23973                 found_la="$additional_libdir/lib$name.la"
23974               fi
23975             else
23976               if test -f "$additional_libdir/lib$name.$libext"; then
23977                 found_dir="$additional_libdir"
23978                 found_a="$additional_libdir/lib$name.$libext"
23979                 if test -f "$additional_libdir/lib$name.la"; then
23980                   found_la="$additional_libdir/lib$name.la"
23981                 fi
23982               fi
23983             fi
23984           fi
23985           if test "X$found_dir" = "X"; then
23986             for x in $LDFLAGS $LTLIBINTL; do
23987
23988   acl_save_prefix="$prefix"
23989   prefix="$acl_final_prefix"
23990   acl_save_exec_prefix="$exec_prefix"
23991   exec_prefix="$acl_final_exec_prefix"
23992   eval x=\"$x\"
23993   exec_prefix="$acl_save_exec_prefix"
23994   prefix="$acl_save_prefix"
23995
23996               case "$x" in
23997                 -L*)
23998                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23999                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24000                     found_dir="$dir"
24001                     found_so="$dir/lib$name.$shlibext"
24002                     if test -f "$dir/lib$name.la"; then
24003                       found_la="$dir/lib$name.la"
24004                     fi
24005                   else
24006                     if test -f "$dir/lib$name.$libext"; then
24007                       found_dir="$dir"
24008                       found_a="$dir/lib$name.$libext"
24009                       if test -f "$dir/lib$name.la"; then
24010                         found_la="$dir/lib$name.la"
24011                       fi
24012                     fi
24013                   fi
24014                   ;;
24015               esac
24016               if test "X$found_dir" != "X"; then
24017                 break
24018               fi
24019             done
24020           fi
24021           if test "X$found_dir" != "X"; then
24022                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24023             if test "X$found_so" != "X"; then
24024                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24025                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24026               else
24027                                                                                 haveit=
24028                 for x in $ltrpathdirs; do
24029                   if test "X$x" = "X$found_dir"; then
24030                     haveit=yes
24031                     break
24032                   fi
24033                 done
24034                 if test -z "$haveit"; then
24035                   ltrpathdirs="$ltrpathdirs $found_dir"
24036                 fi
24037                                 if test "$hardcode_direct" = yes; then
24038                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24039                 else
24040                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24041                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24042                                                             haveit=
24043                     for x in $rpathdirs; do
24044                       if test "X$x" = "X$found_dir"; then
24045                         haveit=yes
24046                         break
24047                       fi
24048                     done
24049                     if test -z "$haveit"; then
24050                       rpathdirs="$rpathdirs $found_dir"
24051                     fi
24052                   else
24053                                                                                 haveit=
24054                     for x in $LDFLAGS $LIBINTL; do
24055
24056   acl_save_prefix="$prefix"
24057   prefix="$acl_final_prefix"
24058   acl_save_exec_prefix="$exec_prefix"
24059   exec_prefix="$acl_final_exec_prefix"
24060   eval x=\"$x\"
24061   exec_prefix="$acl_save_exec_prefix"
24062   prefix="$acl_save_prefix"
24063
24064                       if test "X$x" = "X-L$found_dir"; then
24065                         haveit=yes
24066                         break
24067                       fi
24068                     done
24069                     if test -z "$haveit"; then
24070                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24071                     fi
24072                     if test "$hardcode_minus_L" != no; then
24073                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24074                     else
24075                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24076                     fi
24077                   fi
24078                 fi
24079               fi
24080             else
24081               if test "X$found_a" != "X"; then
24082                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24083               else
24084                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24085               fi
24086             fi
24087                         additional_includedir=
24088             case "$found_dir" in
24089               */lib | */lib/)
24090                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24091                 additional_includedir="$basedir/include"
24092                 ;;
24093             esac
24094             if test "X$additional_includedir" != "X"; then
24095                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24096                 haveit=
24097                 if test "X$additional_includedir" = "X/usr/local/include"; then
24098                   if test -n "$GCC"; then
24099                     case $host_os in
24100                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24101                     esac
24102                   fi
24103                 fi
24104                 if test -z "$haveit"; then
24105                   for x in $CPPFLAGS $INCINTL; do
24106
24107   acl_save_prefix="$prefix"
24108   prefix="$acl_final_prefix"
24109   acl_save_exec_prefix="$exec_prefix"
24110   exec_prefix="$acl_final_exec_prefix"
24111   eval x=\"$x\"
24112   exec_prefix="$acl_save_exec_prefix"
24113   prefix="$acl_save_prefix"
24114
24115                     if test "X$x" = "X-I$additional_includedir"; then
24116                       haveit=yes
24117                       break
24118                     fi
24119                   done
24120                   if test -z "$haveit"; then
24121                     if test -d "$additional_includedir"; then
24122                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24123                     fi
24124                   fi
24125                 fi
24126               fi
24127             fi
24128                         if test -n "$found_la"; then
24129                                                         save_libdir="$libdir"
24130               case "$found_la" in
24131                 */* | *\\*) . "$found_la" ;;
24132                 *) . "./$found_la" ;;
24133               esac
24134               libdir="$save_libdir"
24135                             for dep in $dependency_libs; do
24136                 case "$dep" in
24137                   -L*)
24138                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24139                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24140                       haveit=
24141                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24142                         if test -n "$GCC"; then
24143                           case $host_os in
24144                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24145                           esac
24146                         fi
24147                       fi
24148                       if test -z "$haveit"; then
24149                         haveit=
24150                         for x in $LDFLAGS $LIBINTL; do
24151
24152   acl_save_prefix="$prefix"
24153   prefix="$acl_final_prefix"
24154   acl_save_exec_prefix="$exec_prefix"
24155   exec_prefix="$acl_final_exec_prefix"
24156   eval x=\"$x\"
24157   exec_prefix="$acl_save_exec_prefix"
24158   prefix="$acl_save_prefix"
24159
24160                           if test "X$x" = "X-L$additional_libdir"; then
24161                             haveit=yes
24162                             break
24163                           fi
24164                         done
24165                         if test -z "$haveit"; then
24166                           if test -d "$additional_libdir"; then
24167                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24168                           fi
24169                         fi
24170                         haveit=
24171                         for x in $LDFLAGS $LTLIBINTL; do
24172
24173   acl_save_prefix="$prefix"
24174   prefix="$acl_final_prefix"
24175   acl_save_exec_prefix="$exec_prefix"
24176   exec_prefix="$acl_final_exec_prefix"
24177   eval x=\"$x\"
24178   exec_prefix="$acl_save_exec_prefix"
24179   prefix="$acl_save_prefix"
24180
24181                           if test "X$x" = "X-L$additional_libdir"; then
24182                             haveit=yes
24183                             break
24184                           fi
24185                         done
24186                         if test -z "$haveit"; then
24187                           if test -d "$additional_libdir"; then
24188                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24189                           fi
24190                         fi
24191                       fi
24192                     fi
24193                     ;;
24194                   -R*)
24195                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24196                     if test "$enable_rpath" != no; then
24197                                                                   haveit=
24198                       for x in $rpathdirs; do
24199                         if test "X$x" = "X$dir"; then
24200                           haveit=yes
24201                           break
24202                         fi
24203                       done
24204                       if test -z "$haveit"; then
24205                         rpathdirs="$rpathdirs $dir"
24206                       fi
24207                                                                   haveit=
24208                       for x in $ltrpathdirs; do
24209                         if test "X$x" = "X$dir"; then
24210                           haveit=yes
24211                           break
24212                         fi
24213                       done
24214                       if test -z "$haveit"; then
24215                         ltrpathdirs="$ltrpathdirs $dir"
24216                       fi
24217                     fi
24218                     ;;
24219                   -l*)
24220                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24221                     ;;
24222                   *.la)
24223                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24224                     ;;
24225                   *)
24226                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24227                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24228                     ;;
24229                 esac
24230               done
24231             fi
24232           else
24233                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24234             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24235           fi
24236         fi
24237       fi
24238     done
24239   done
24240   if test "X$rpathdirs" != "X"; then
24241     if test -n "$hardcode_libdir_separator"; then
24242                         alldirs=
24243       for found_dir in $rpathdirs; do
24244         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24245       done
24246             acl_save_libdir="$libdir"
24247       libdir="$alldirs"
24248       eval flag=\"$hardcode_libdir_flag_spec\"
24249       libdir="$acl_save_libdir"
24250       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24251     else
24252             for found_dir in $rpathdirs; do
24253         acl_save_libdir="$libdir"
24254         libdir="$found_dir"
24255         eval flag=\"$hardcode_libdir_flag_spec\"
24256         libdir="$acl_save_libdir"
24257         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24258       done
24259     fi
24260   fi
24261   if test "X$ltrpathdirs" != "X"; then
24262             for found_dir in $ltrpathdirs; do
24263       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24264     done
24265   fi
24266
24267           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24268 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24269 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24270   $as_echo_n "(cached) " >&6
24271 else
24272   gt_save_CPPFLAGS="$CPPFLAGS"
24273             CPPFLAGS="$CPPFLAGS $INCINTL"
24274             gt_save_LIBS="$LIBS"
24275             LIBS="$LIBS $LIBINTL"
24276                         cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 #include <libintl.h>
24283 extern int _nl_msg_cat_cntr;
24284 extern
24285 #ifdef __cplusplus
24286 "C"
24287 #endif
24288 const char *_nl_expand_alias (const char *);
24289 int
24290 main ()
24291 {
24292 bindtextdomain ("", "");
24293 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24294   ;
24295   return 0;
24296 }
24297 _ACEOF
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302   *) ac_try_echo=$ac_try;;
24303 esac
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306   (eval "$ac_link") 2>conftest.er1
24307   ac_status=$?
24308   grep -v '^ *+' conftest.er1 >conftest.err
24309   rm -f conftest.er1
24310   cat conftest.err >&5
24311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); } && {
24313          test -z "$ac_c_werror_flag" ||
24314          test ! -s conftest.err
24315        } && test -s conftest$ac_exeext && {
24316          test "$cross_compiling" = yes ||
24317          $as_test_x conftest$ac_exeext
24318        }; then
24319   gt_cv_func_gnugettext1_libintl=yes
24320 else
24321   $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24323
24324         gt_cv_func_gnugettext1_libintl=no
24325 fi
24326
24327 rm -rf conftest.dSYM
24328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24329       conftest$ac_exeext conftest.$ac_ext
24330                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24331               LIBS="$LIBS $LIBICONV"
24332               cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338 #include <libintl.h>
24339 extern int _nl_msg_cat_cntr;
24340 extern
24341 #ifdef __cplusplus
24342 "C"
24343 #endif
24344 const char *_nl_expand_alias (const char *);
24345 int
24346 main ()
24347 {
24348 bindtextdomain ("", "");
24349 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest.$ac_objext conftest$ac_exeext
24355 if { (ac_try="$ac_link"
24356 case "(($ac_try" in
24357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358   *) ac_try_echo=$ac_try;;
24359 esac
24360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24361 $as_echo "$ac_try_echo") >&5
24362   (eval "$ac_link") 2>conftest.er1
24363   ac_status=$?
24364   grep -v '^ *+' conftest.er1 >conftest.err
24365   rm -f conftest.er1
24366   cat conftest.err >&5
24367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); } && {
24369          test -z "$ac_c_werror_flag" ||
24370          test ! -s conftest.err
24371        } && test -s conftest$ac_exeext && {
24372          test "$cross_compiling" = yes ||
24373          $as_test_x conftest$ac_exeext
24374        }; then
24375   LIBINTL="$LIBINTL $LIBICONV"
24376                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24377                 gt_cv_func_gnugettext1_libintl=yes
24378
24379 else
24380   $as_echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383
24384 fi
24385
24386 rm -rf conftest.dSYM
24387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24388       conftest$ac_exeext conftest.$ac_ext
24389             fi
24390             CPPFLAGS="$gt_save_CPPFLAGS"
24391             LIBS="$gt_save_LIBS"
24392 fi
24393 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24394 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24395         fi
24396
24397                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24398            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24399                 && test "$PACKAGE" != gettext-runtime \
24400                 && test "$PACKAGE" != gettext-tools; }; then
24401           gt_use_preinstalled_gnugettext=yes
24402         else
24403                     LIBINTL=
24404           LTLIBINTL=
24405           INCINTL=
24406         fi
24407
24408
24409         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24410                               nls_cv_use_gnu_gettext=yes
24411         fi
24412       fi
24413
24414       if test "$nls_cv_use_gnu_gettext" = "yes"; then
24415                 BUILD_INCLUDED_LIBINTL=yes
24416         USE_INCLUDED_LIBINTL=yes
24417         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24418         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24419         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24420       fi
24421
24422       CATOBJEXT=
24423       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24424          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24425                 CATOBJEXT=.gmo
24426       fi
24427
24428
24429     if test -n "$INTL_MACOSX_LIBS"; then
24430       if test "$gt_use_preinstalled_gnugettext" = "yes" \
24431          || test "$nls_cv_use_gnu_gettext" = "yes"; then
24432                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24433         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24434       fi
24435     fi
24436
24437     if test "$gt_use_preinstalled_gnugettext" = "yes" \
24438        || test "$nls_cv_use_gnu_gettext" = "yes"; then
24439
24440 cat >>confdefs.h <<\_ACEOF
24441 #define ENABLE_NLS 1
24442 _ACEOF
24443
24444     else
24445       USE_NLS=no
24446     fi
24447   fi
24448
24449   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24450 $as_echo_n "checking whether to use NLS... " >&6; }
24451   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24452 $as_echo "$USE_NLS" >&6; }
24453   if test "$USE_NLS" = "yes"; then
24454     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24455 $as_echo_n "checking where the gettext function comes from... " >&6; }
24456     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24457       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24458         gt_source="external libintl"
24459       else
24460         gt_source="libc"
24461       fi
24462     else
24463       gt_source="included intl directory"
24464     fi
24465     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24466 $as_echo "$gt_source" >&6; }
24467   fi
24468
24469   if test "$USE_NLS" = "yes"; then
24470
24471     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24472       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24473         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24474 $as_echo_n "checking how to link with libintl... " >&6; }
24475         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24476 $as_echo "$LIBINTL" >&6; }
24477
24478   for element in $INCINTL; do
24479     haveit=
24480     for x in $CPPFLAGS; do
24481
24482   acl_save_prefix="$prefix"
24483   prefix="$acl_final_prefix"
24484   acl_save_exec_prefix="$exec_prefix"
24485   exec_prefix="$acl_final_exec_prefix"
24486   eval x=\"$x\"
24487   exec_prefix="$acl_save_exec_prefix"
24488   prefix="$acl_save_prefix"
24489
24490       if test "X$x" = "X$element"; then
24491         haveit=yes
24492         break
24493       fi
24494     done
24495     if test -z "$haveit"; then
24496       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24497     fi
24498   done
24499
24500       fi
24501
24502
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_GETTEXT 1
24505 _ACEOF
24506
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_DCGETTEXT 1
24510 _ACEOF
24511
24512     fi
24513
24514         POSUB=po
24515   fi
24516
24517
24518             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24519       BUILD_INCLUDED_LIBINTL=yes
24520     fi
24521
24522
24523
24524
24525
24526         nls_cv_header_intl=
24527     nls_cv_header_libgt=
24528
24529         DATADIRNAME=share
24530
24531
24532         INSTOBJEXT=.mo
24533
24534
24535         GENCAT=gencat
24536
24537
24538         INTLOBJS=
24539     if test "$USE_INCLUDED_LIBINTL" = yes; then
24540       INTLOBJS="\$(GETTOBJS)"
24541     fi
24542
24543
24544         INTL_LIBTOOL_SUFFIX_PREFIX=
24545
24546
24547
24548     INTLLIBS="$LIBINTL"
24549
24550
24551
24552
24553
24554
24555 fi
24556
24557 support_smartalloc=yes
24558 support_readline=yes
24559 support_conio=yes
24560 support_gnome=no
24561 support_bat=no
24562 support_wx_console=no
24563 support_tray_monitor=no
24564 support_tls=no
24565 support_crypto=no
24566 gnome_version=
24567 wx_version=
24568 support_static_tools=no
24569 support_static_fd=no
24570 support_static_sd=no
24571 support_static_dir=no
24572 support_static_cons=no
24573 support_python=no
24574 build_client_only=no
24575 build_dird=yes
24576 build_stored=yes
24577 db_backends=""
24578 support_lockmgr=no
24579
24580
24581 # Check whether --enable-gnome was given.
24582 if test "${enable_gnome+set}" = set; then
24583   enableval=$enable_gnome;
24584        if test x$enableval = xyes; then
24585           support_gnome=yes
24586        fi
24587
24588
24589 fi
24590
24591
24592 GNOME_DIR=
24593 if test x$support_gnome = xyes; then
24594    { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24595 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24596    { (exit 1); exit 1; }; }
24597    { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24598 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24599    { (exit 1); exit 1; }; }
24600 fi
24601 # AC_SUBST(GNOME_DIR)
24602
24603 # Check whether --enable-bat was given.
24604 if test "${enable_bat+set}" = set; then
24605   enableval=$enable_bat;
24606        if test x$enableval = xyes; then
24607
24608 cat >>confdefs.h <<\_ACEOF
24609 #define HAVE_BAT 1
24610 _ACEOF
24611
24612           support_bat=yes
24613        fi
24614
24615
24616 fi
24617
24618
24619 BAT_DIR=
24620 if test x$support_bat = xyes; then
24621    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24622    pkg=$?
24623    if test $pkg = 0; then
24624       BAT_DIR=src/qt-console
24625    else
24626       { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24627 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24628    { (exit 1); exit 1; }; }
24629    fi
24630 fi
24631
24632 got_qwt=no
24633 QWT_INC=
24634 QWT_LDFLAGS=
24635 QWT_LIB=
24636 QWT=
24637 no_qwt=no
24638
24639
24640
24641
24642
24643
24644
24645
24646 # Check whether --enable-bwx-console was given.
24647 if test "${enable_bwx_console+set}" = set; then
24648   enableval=$enable_bwx_console;
24649        if test x$enableval = xyes; then
24650           support_wx_console=yes
24651        fi
24652
24653
24654 fi
24655
24656
24657 WX_DIR=
24658 if test x$support_wx_console = xyes; then
24659    abc=`$WXCONFIG $WXFLAGS --cppflags`
24660    pkg=$?
24661    if test $pkg = 0; then
24662       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24663       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24664       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24665
24666
24667
24668       WX_DIR="src/wx-console"
24669    else
24670       echo " "
24671       echo "wx-config program not found. bwx-console disabled."
24672       echo " "
24673       support_wx_console=no
24674    fi
24675 fi
24676
24677
24678 # Check whether --enable-tray-monitor was given.
24679 if test "${enable_tray_monitor+set}" = set; then
24680   enableval=$enable_tray_monitor;
24681        if test x$enableval = xyes; then
24682           support_tray_monitor=yes
24683        fi
24684
24685
24686 fi
24687
24688
24689 TRAY_MONITOR_DIR=
24690 if test x$support_tray_monitor = xyes; then
24691    abc=`$PKGCONFIG --exists gtk+-2.0`
24692    pkg=$?
24693    if test $pkg = 0; then
24694       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24695       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24696
24697
24698       TRAY_MONITOR_DIR=src/tray-monitor
24699       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24700       pkg=$?
24701       if test $pkg = 0; then
24702
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_GTK_2_4 1
24705 _ACEOF
24706
24707       fi
24708    fi
24709 fi
24710
24711
24712 # Check whether --enable-smartalloc was given.
24713 if test "${enable_smartalloc+set}" = set; then
24714   enableval=$enable_smartalloc;
24715        if test x$enableval = xno; then
24716           support_smartalloc=no
24717        fi
24718
24719
24720 fi
24721
24722
24723 if test x$support_smartalloc = xyes; then
24724
24725 cat >>confdefs.h <<\_ACEOF
24726 #define SMARTALLOC 1
24727 _ACEOF
24728
24729 fi
24730
24731 # Check whether --enable-lockmgr was given.
24732 if test "${enable_lockmgr+set}" = set; then
24733   enableval=$enable_lockmgr;
24734        if test x$enableval = xyes; then
24735           support_lockmgr=yes
24736        fi
24737
24738
24739 fi
24740
24741
24742 if test x$support_lockmgr = xyes; then
24743
24744 cat >>confdefs.h <<\_ACEOF
24745 #define _USE_LOCKMGR 1
24746 _ACEOF
24747
24748 fi
24749
24750
24751 # Check whether --enable-static-tools was given.
24752 if test "${enable_static_tools+set}" = set; then
24753   enableval=$enable_static_tools;
24754        if test x$enableval = xyes; then
24755           if test x$use_libtool = xyes; then
24756              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24757   please rerun configure with --disable-libtool" >&5
24758 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24759   please rerun configure with --disable-libtool" >&2;}
24760    { (exit 1); exit 1; }; }
24761           fi
24762           support_static_tools=yes
24763        fi
24764
24765
24766 fi
24767
24768
24769 TTOOL_LDFLAGS=
24770 if test x$support_static_tools = xyes; then
24771    TTOOL_LDFLAGS="-static"
24772 fi
24773
24774
24775 # Check whether --enable-static-fd was given.
24776 if test "${enable_static_fd+set}" = set; then
24777   enableval=$enable_static_fd;
24778        if test x$enableval = xyes; then
24779           if test x$use_libtool = xyes; then
24780              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24781   please rerun configure with --disable-libtool" >&5
24782 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24783   please rerun configure with --disable-libtool" >&2;}
24784    { (exit 1); exit 1; }; }
24785           fi
24786           support_static_fd=yes
24787        fi
24788
24789
24790 fi
24791
24792
24793 STATIC_FD=
24794 if test x$support_static_fd = xyes; then
24795    STATIC_FD="static-bacula-fd"
24796 fi
24797
24798
24799 # Check whether --enable-static-sd was given.
24800 if test "${enable_static_sd+set}" = set; then
24801   enableval=$enable_static_sd;
24802        if test x$enableval = xyes; then
24803           if test x$use_libtool = xyes; then
24804              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24805   please rerun configure with --disable-libtool" >&5
24806 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24807   please rerun configure with --disable-libtool" >&2;}
24808    { (exit 1); exit 1; }; }
24809           fi
24810           support_static_sd=yes
24811        fi
24812
24813
24814 fi
24815
24816
24817 STATIC_SD=
24818 if test x$support_static_sd = xyes; then
24819    STATIC_SD="static-bacula-sd"
24820 fi
24821
24822
24823 # Check whether --enable-static-dir was given.
24824 if test "${enable_static_dir+set}" = set; then
24825   enableval=$enable_static_dir;
24826        if test x$enableval = xyes; then
24827           if test x$use_libtool = xyes; then
24828              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24829   please rerun configure with --disable-libtool" >&5
24830 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24831   please rerun configure with --disable-libtool" >&2;}
24832    { (exit 1); exit 1; }; }
24833           fi
24834           support_static_dir=yes
24835        fi
24836
24837
24838 fi
24839
24840
24841 STATIC_DIR=
24842 if test x$support_static_dir = xyes; then
24843    STATIC_DIR="static-bacula-dir"
24844 fi
24845
24846
24847 # Check whether --enable-static-cons was given.
24848 if test "${enable_static_cons+set}" = set; then
24849   enableval=$enable_static_cons;
24850        if test x$enableval = xyes; then
24851           if test x$use_libtool = xyes; then
24852              { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24853   please rerun configure with --disable-libtool" >&5
24854 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24855   please rerun configure with --disable-libtool" >&2;}
24856    { (exit 1); exit 1; }; }
24857           fi
24858           support_static_cons=yes
24859        fi
24860
24861
24862 fi
24863
24864
24865 STATIC_CONS=
24866 STATIC_GNOME_CONS=
24867 STATIC_WX_CONS=
24868 if test x$support_static_cons = xyes; then
24869    STATIC_CONS="static-bconsole"
24870    STATIC_GNOME_CONS="static-bgnome-console"
24871    STATIC_WX_CONS="static-bwx-console"
24872 fi
24873
24874
24875
24876
24877 # Check whether --enable-client-only was given.
24878 if test "${enable_client_only+set}" = set; then
24879   enableval=$enable_client_only;
24880        if test x$enableval = xyes; then
24881           build_client_only=yes
24882           db_backends="None"
24883           DB_BACKENDS="none"
24884        fi
24885
24886
24887 fi
24888
24889 if test x$build_client_only = xno; then
24890    ALL_DIRS="subdirs"
24891 else
24892    ALL_DIRS=""
24893 fi
24894
24895
24896 # Check whether --enable-build-dird was given.
24897 if test "${enable_build_dird+set}" = set; then
24898   enableval=$enable_build_dird;
24899        if test x$enableval = xno; then
24900           build_dird=no
24901        fi
24902
24903
24904 fi
24905
24906 if test x$build_dird = xyes; then
24907    DIRD_DIR="src/dird"
24908    DIR_TOOLS="DIRTOOLS"
24909 else
24910    DIRD_DIR=""
24911    DIR_TOOLS="NODIRTOOLS"
24912 fi
24913
24914
24915
24916 # Check whether --enable-build-stored was given.
24917 if test "${enable_build_stored+set}" = set; then
24918   enableval=$enable_build_stored;
24919       if test x$enableval = xno; then
24920          build_stored=no
24921       fi
24922
24923
24924 fi
24925
24926 if test x$build_stored = xyes; then
24927    STORED_DIR="src/stored"
24928 else
24929    STORED_DIR=""
24930 fi
24931
24932
24933 # Check whether --enable-conio was given.
24934 if test "${enable_conio+set}" = set; then
24935   enableval=$enable_conio;
24936        if test x$enableval = xno; then
24937           support_conio=no
24938        fi
24939
24940
24941 fi
24942
24943
24944
24945 support_ipv6=yes
24946 # Check whether --enable-ipv6 was given.
24947 if test "${enable_ipv6+set}" = set; then
24948   enableval=$enable_ipv6;
24949        if test x$enableval = xno; then
24950           support_ipv6=no
24951        fi
24952
24953
24954 fi
24955
24956
24957 if test x$support_ipv6 = xyes; then
24958     cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h.  */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h.  */
24964  #include <sys/types.h>
24965 #include <sys/socket.h>
24966 #include <netinet/in.h>
24967 int
24968 main ()
24969 {
24970 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24971   ;
24972   return 0;
24973 }
24974 _ACEOF
24975 rm -f conftest.$ac_objext conftest$ac_exeext
24976 if { (ac_try="$ac_link"
24977 case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24982 $as_echo "$ac_try_echo") >&5
24983   (eval "$ac_link") 2>conftest.er1
24984   ac_status=$?
24985   grep -v '^ *+' conftest.er1 >conftest.err
24986   rm -f conftest.er1
24987   cat conftest.err >&5
24988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } && {
24990          test -z "$ac_c_werror_flag" ||
24991          test ! -s conftest.err
24992        } && test -s conftest$ac_exeext && {
24993          test "$cross_compiling" = yes ||
24994          $as_test_x conftest$ac_exeext
24995        }; then
24996   support_ipv6=yes
24997 else
24998   $as_echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         support_ipv6=no
25002 fi
25003
25004 rm -rf conftest.dSYM
25005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25006       conftest$ac_exeext conftest.$ac_ext
25007 fi
25008
25009 if test x$support_ipv6 = xyes; then
25010
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_IPV6 1
25013 _ACEOF
25014
25015 fi
25016
25017 TERM_LIB=""
25018 if test "${ac_cv_header_curses_h+set}" = set; then
25019   { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25020 $as_echo_n "checking for curses.h... " >&6; }
25021 if test "${ac_cv_header_curses_h+set}" = set; then
25022   $as_echo_n "(cached) " >&6
25023 fi
25024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25025 $as_echo "$ac_cv_header_curses_h" >&6; }
25026 else
25027   # Is the header compilable?
25028 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25029 $as_echo_n "checking curses.h usability... " >&6; }
25030 cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h.  */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h.  */
25036 $ac_includes_default
25037 #include <curses.h>
25038 _ACEOF
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25046 $as_echo "$ac_try_echo") >&5
25047   (eval "$ac_compile") 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && {
25054          test -z "$ac_c_werror_flag" ||
25055          test ! -s conftest.err
25056        } && test -s conftest.$ac_objext; then
25057   ac_header_compiler=yes
25058 else
25059   $as_echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062         ac_header_compiler=no
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25067 $as_echo "$ac_header_compiler" >&6; }
25068
25069 # Is the header present?
25070 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25071 $as_echo_n "checking curses.h presence... " >&6; }
25072 cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h.  */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h.  */
25078 #include <curses.h>
25079 _ACEOF
25080 if { (ac_try="$ac_cpp conftest.$ac_ext"
25081 case "(($ac_try" in
25082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083   *) ac_try_echo=$ac_try;;
25084 esac
25085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25088   ac_status=$?
25089   grep -v '^ *+' conftest.er1 >conftest.err
25090   rm -f conftest.er1
25091   cat conftest.err >&5
25092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); } >/dev/null && {
25094          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25095          test ! -s conftest.err
25096        }; then
25097   ac_header_preproc=yes
25098 else
25099   $as_echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25101
25102   ac_header_preproc=no
25103 fi
25104
25105 rm -f conftest.err conftest.$ac_ext
25106 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25107 $as_echo "$ac_header_preproc" >&6; }
25108
25109 # So?  What about this header?
25110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25111   yes:no: )
25112     { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25113 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25114     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25115 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25116     ac_header_preproc=yes
25117     ;;
25118   no:yes:* )
25119     { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25120 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25121     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
25122 $as_echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
25123     { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25124 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25125     { $as_echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
25126 $as_echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25127     { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25128 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25129     { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25130 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25131
25132     ;;
25133 esac
25134 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25135 $as_echo_n "checking for curses.h... " >&6; }
25136 if test "${ac_cv_header_curses_h+set}" = set; then
25137   $as_echo_n "(cached) " >&6
25138 else
25139   ac_cv_header_curses_h=$ac_header_preproc
25140 fi
25141 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25142 $as_echo "$ac_cv_header_curses_h" >&6; }
25143
25144 fi
25145 if test "x$ac_cv_header_curses_h" = x""yes; then
25146
25147     { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
25148 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
25149 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
25150   $as_echo_n "(cached) " >&6
25151 else
25152   ac_check_lib_save_LIBS=$LIBS
25153 LIBS="-ltinfo  $LIBS"
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160
25161 /* Override any GCC internal prototype to avoid an error.
25162    Use char because int might match the return type of a GCC
25163    builtin and then its argument prototype would still apply.  */
25164 #ifdef __cplusplus
25165 extern "C"
25166 #endif
25167 char tgetent ();
25168 int
25169 main ()
25170 {
25171 return tgetent ();
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 rm -f conftest.$ac_objext conftest$ac_exeext
25177 if { (ac_try="$ac_link"
25178 case "(($ac_try" in
25179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180   *) ac_try_echo=$ac_try;;
25181 esac
25182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25183 $as_echo "$ac_try_echo") >&5
25184   (eval "$ac_link") 2>conftest.er1
25185   ac_status=$?
25186   grep -v '^ *+' conftest.er1 >conftest.err
25187   rm -f conftest.er1
25188   cat conftest.err >&5
25189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } && {
25191          test -z "$ac_c_werror_flag" ||
25192          test ! -s conftest.err
25193        } && test -s conftest$ac_exeext && {
25194          test "$cross_compiling" = yes ||
25195          $as_test_x conftest$ac_exeext
25196        }; then
25197   ac_cv_lib_tinfo_tgetent=yes
25198 else
25199   $as_echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202         ac_cv_lib_tinfo_tgetent=no
25203 fi
25204
25205 rm -rf conftest.dSYM
25206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25207       conftest$ac_exeext conftest.$ac_ext
25208 LIBS=$ac_check_lib_save_LIBS
25209 fi
25210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25211 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
25212 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
25213    TERM_LIB="-ltinfo"
25214 else
25215
25216       { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25217 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25218 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25219   $as_echo_n "(cached) " >&6
25220 else
25221   ac_check_lib_save_LIBS=$LIBS
25222 LIBS="-lncurses  $LIBS"
25223 cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229
25230 /* Override any GCC internal prototype to avoid an error.
25231    Use char because int might match the return type of a GCC
25232    builtin and then its argument prototype would still apply.  */
25233 #ifdef __cplusplus
25234 extern "C"
25235 #endif
25236 char tgetent ();
25237 int
25238 main ()
25239 {
25240 return tgetent ();
25241   ;
25242   return 0;
25243 }
25244 _ACEOF
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249   *) ac_try_echo=$ac_try;;
25250 esac
25251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25252 $as_echo "$ac_try_echo") >&5
25253   (eval "$ac_link") 2>conftest.er1
25254   ac_status=$?
25255   grep -v '^ *+' conftest.er1 >conftest.err
25256   rm -f conftest.er1
25257   cat conftest.err >&5
25258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); } && {
25260          test -z "$ac_c_werror_flag" ||
25261          test ! -s conftest.err
25262        } && test -s conftest$ac_exeext && {
25263          test "$cross_compiling" = yes ||
25264          $as_test_x conftest$ac_exeext
25265        }; then
25266   ac_cv_lib_ncurses_tgetent=yes
25267 else
25268   $as_echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271         ac_cv_lib_ncurses_tgetent=no
25272 fi
25273
25274 rm -rf conftest.dSYM
25275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25276       conftest$ac_exeext conftest.$ac_ext
25277 LIBS=$ac_check_lib_save_LIBS
25278 fi
25279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25280 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25281 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25282    TERM_LIB="-lncurses"
25283 else
25284
25285         { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25286 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25287 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25288   $as_echo_n "(cached) " >&6
25289 else
25290   ac_check_lib_save_LIBS=$LIBS
25291 LIBS="-ltermcap  $LIBS"
25292 cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h.  */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h.  */
25298
25299 /* Override any GCC internal prototype to avoid an error.
25300    Use char because int might match the return type of a GCC
25301    builtin and then its argument prototype would still apply.  */
25302 #ifdef __cplusplus
25303 extern "C"
25304 #endif
25305 char tgetent ();
25306 int
25307 main ()
25308 {
25309 return tgetent ();
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25321 $as_echo "$ac_try_echo") >&5
25322   (eval "$ac_link") 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } && {
25329          test -z "$ac_c_werror_flag" ||
25330          test ! -s conftest.err
25331        } && test -s conftest$ac_exeext && {
25332          test "$cross_compiling" = yes ||
25333          $as_test_x conftest$ac_exeext
25334        }; then
25335   ac_cv_lib_termcap_tgetent=yes
25336 else
25337   $as_echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25339
25340         ac_cv_lib_termcap_tgetent=no
25341 fi
25342
25343 rm -rf conftest.dSYM
25344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345       conftest$ac_exeext conftest.$ac_ext
25346 LIBS=$ac_check_lib_save_LIBS
25347 fi
25348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25349 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25350 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25351    TERM_LIB="-ltermcap"
25352 fi
25353
25354
25355 fi
25356
25357
25358 fi
25359
25360
25361 else
25362
25363 for ac_header in curses.h
25364 do
25365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25367   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25368 $as_echo_n "checking for $ac_header... " >&6; }
25369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25370   $as_echo_n "(cached) " >&6
25371 fi
25372 ac_res=`eval 'as_val=${'$as_ac_Header'}
25373                  $as_echo "$as_val"'`
25374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25375 $as_echo "$ac_res" >&6; }
25376 else
25377   # Is the header compilable?
25378 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25379 $as_echo_n "checking $ac_header usability... " >&6; }
25380 cat >conftest.$ac_ext <<_ACEOF
25381 /* confdefs.h.  */
25382 _ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h.  */
25386 $ac_includes_default
25387 #include <$ac_header>
25388 _ACEOF
25389 rm -f conftest.$ac_objext
25390 if { (ac_try="$ac_compile"
25391 case "(($ac_try" in
25392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393   *) ac_try_echo=$ac_try;;
25394 esac
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25396 $as_echo "$ac_try_echo") >&5
25397   (eval "$ac_compile") 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } && {
25404          test -z "$ac_c_werror_flag" ||
25405          test ! -s conftest.err
25406        } && test -s conftest.$ac_objext; then
25407   ac_header_compiler=yes
25408 else
25409   $as_echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412         ac_header_compiler=no
25413 fi
25414
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25417 $as_echo "$ac_header_compiler" >&6; }
25418
25419 # Is the header present?
25420 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25421 $as_echo_n "checking $ac_header presence... " >&6; }
25422 cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428 #include <$ac_header>
25429 _ACEOF
25430 if { (ac_try="$ac_cpp conftest.$ac_ext"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25438   ac_status=$?
25439   grep -v '^ *+' conftest.er1 >conftest.err
25440   rm -f conftest.er1
25441   cat conftest.err >&5
25442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); } >/dev/null && {
25444          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25445          test ! -s conftest.err
25446        }; then
25447   ac_header_preproc=yes
25448 else
25449   $as_echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452   ac_header_preproc=no
25453 fi
25454
25455 rm -f conftest.err conftest.$ac_ext
25456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25457 $as_echo "$ac_header_preproc" >&6; }
25458
25459 # So?  What about this header?
25460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25461   yes:no: )
25462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25463 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25466     ac_header_preproc=yes
25467     ;;
25468   no:yes:* )
25469     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25470 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25471     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25472 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25473     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25474 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25475     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25476 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25480 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25481
25482     ;;
25483 esac
25484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25485 $as_echo_n "checking for $ac_header... " >&6; }
25486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25487   $as_echo_n "(cached) " >&6
25488 else
25489   eval "$as_ac_Header=\$ac_header_preproc"
25490 fi
25491 ac_res=`eval 'as_val=${'$as_ac_Header'}
25492                  $as_echo "$as_val"'`
25493                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25494 $as_echo "$ac_res" >&6; }
25495
25496 fi
25497 as_val=`eval 'as_val=${'$as_ac_Header'}
25498                  $as_echo "$as_val"'`
25499    if test "x$as_val" = x""yes; then
25500   cat >>confdefs.h <<_ACEOF
25501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25502 _ACEOF
25503
25504 fi
25505
25506 done
25507
25508      if test "${ac_cv_header_term_h+set}" = set; then
25509   { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25510 $as_echo_n "checking for term.h... " >&6; }
25511 if test "${ac_cv_header_term_h+set}" = set; then
25512   $as_echo_n "(cached) " >&6
25513 fi
25514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25515 $as_echo "$ac_cv_header_term_h" >&6; }
25516 else
25517   # Is the header compilable?
25518 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25519 $as_echo_n "checking term.h usability... " >&6; }
25520 cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h.  */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h.  */
25526 $ac_includes_default
25527 #include <term.h>
25528 _ACEOF
25529 rm -f conftest.$ac_objext
25530 if { (ac_try="$ac_compile"
25531 case "(($ac_try" in
25532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533   *) ac_try_echo=$ac_try;;
25534 esac
25535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25536 $as_echo "$ac_try_echo") >&5
25537   (eval "$ac_compile") 2>conftest.er1
25538   ac_status=$?
25539   grep -v '^ *+' conftest.er1 >conftest.err
25540   rm -f conftest.er1
25541   cat conftest.err >&5
25542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } && {
25544          test -z "$ac_c_werror_flag" ||
25545          test ! -s conftest.err
25546        } && test -s conftest.$ac_objext; then
25547   ac_header_compiler=yes
25548 else
25549   $as_echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552         ac_header_compiler=no
25553 fi
25554
25555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25557 $as_echo "$ac_header_compiler" >&6; }
25558
25559 # Is the header present?
25560 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25561 $as_echo_n "checking term.h presence... " >&6; }
25562 cat >conftest.$ac_ext <<_ACEOF
25563 /* confdefs.h.  */
25564 _ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h.  */
25568 #include <term.h>
25569 _ACEOF
25570 if { (ac_try="$ac_cpp conftest.$ac_ext"
25571 case "(($ac_try" in
25572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573   *) ac_try_echo=$ac_try;;
25574 esac
25575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25578   ac_status=$?
25579   grep -v '^ *+' conftest.er1 >conftest.err
25580   rm -f conftest.er1
25581   cat conftest.err >&5
25582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); } >/dev/null && {
25584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25585          test ! -s conftest.err
25586        }; then
25587   ac_header_preproc=yes
25588 else
25589   $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592   ac_header_preproc=no
25593 fi
25594
25595 rm -f conftest.err conftest.$ac_ext
25596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25597 $as_echo "$ac_header_preproc" >&6; }
25598
25599 # So?  What about this header?
25600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25601   yes:no: )
25602     { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25603 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25604     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25605 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25606     ac_header_preproc=yes
25607     ;;
25608   no:yes:* )
25609     { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25610 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25611     { $as_echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
25612 $as_echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
25613     { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25614 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25615     { $as_echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
25616 $as_echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25617     { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25618 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25619     { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25620 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25621
25622     ;;
25623 esac
25624 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25625 $as_echo_n "checking for term.h... " >&6; }
25626 if test "${ac_cv_header_term_h+set}" = set; then
25627   $as_echo_n "(cached) " >&6
25628 else
25629   ac_cv_header_term_h=$ac_header_preproc
25630 fi
25631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25632 $as_echo "$ac_cv_header_term_h" >&6; }
25633
25634 fi
25635 if test "x$ac_cv_header_term_h" = x""yes; then
25636    { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25637 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25638 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25639   $as_echo_n "(cached) " >&6
25640 else
25641   ac_check_lib_save_LIBS=$LIBS
25642 LIBS="-lcurses  $LIBS"
25643 cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649
25650 /* Override any GCC internal prototype to avoid an error.
25651    Use char because int might match the return type of a GCC
25652    builtin and then its argument prototype would still apply.  */
25653 #ifdef __cplusplus
25654 extern "C"
25655 #endif
25656 char tgetent ();
25657 int
25658 main ()
25659 {
25660 return tgetent ();
25661   ;
25662   return 0;
25663 }
25664 _ACEOF
25665 rm -f conftest.$ac_objext conftest$ac_exeext
25666 if { (ac_try="$ac_link"
25667 case "(($ac_try" in
25668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669   *) ac_try_echo=$ac_try;;
25670 esac
25671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25672 $as_echo "$ac_try_echo") >&5
25673   (eval "$ac_link") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } && {
25680          test -z "$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        } && test -s conftest$ac_exeext && {
25683          test "$cross_compiling" = yes ||
25684          $as_test_x conftest$ac_exeext
25685        }; then
25686   ac_cv_lib_curses_tgetent=yes
25687 else
25688   $as_echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25690
25691         ac_cv_lib_curses_tgetent=no
25692 fi
25693
25694 rm -rf conftest.dSYM
25695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25696       conftest$ac_exeext conftest.$ac_ext
25697 LIBS=$ac_check_lib_save_LIBS
25698 fi
25699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25700 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25701 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25702    TERM_LIB="-lcurses"
25703 fi
25704
25705
25706 fi
25707
25708
25709
25710 fi
25711
25712
25713
25714
25715 got_conio="no"
25716 if test x$support_conio = xyes; then
25717    if test x$TERM_LIB != x; then
25718       CONS_LIBS=$TERM_LIB
25719       CONS_OBJ="conio.o"
25720       CONS_SRC="conio.c"
25721       got_conio="yes"
25722       support_readline=no
25723
25724 cat >>confdefs.h <<\_ACEOF
25725 #define HAVE_CONIO 1
25726 _ACEOF
25727
25728    else
25729       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25730    fi
25731 fi
25732
25733
25734 # Check whether --enable-readline was given.
25735 if test "${enable_readline+set}" = set; then
25736   enableval=$enable_readline;
25737        if test x$enableval = xno; then
25738           support_readline=no
25739        fi
25740
25741
25742 fi
25743
25744 if test x$TERM_LIB = x ; then
25745    support_readline=no
25746 fi
25747
25748 got_readline="no"
25749 READLINE_SRC=
25750 if test x$support_readline = xyes; then
25751
25752 # Check whether --with-readline was given.
25753 if test "${with_readline+set}" = set; then
25754   withval=$with_readline;
25755           case "$with_readline" in
25756           no)
25757              :
25758              ;;
25759           yes|*)
25760              if test -f ${with_readline}/readline.h; then
25761                 CONS_INC="-I${with_readline}"
25762                 CONS_LDFLAGS="-L$with_readline"
25763              elif test -f ${with_readline}/include/readline/readline.h; then
25764                 CONS_INC="-I${with_readline}/include/readline"
25765                 CONS_LDFLAGS="-L${with_readline}/lib"
25766                 with_readline="${with_readline}/include/readline"
25767              else
25768                 with_readline="/usr/include/readline"
25769              fi
25770
25771              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25773   { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25774 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25776   $as_echo_n "(cached) " >&6
25777 fi
25778 ac_res=`eval 'as_val=${'$as_ac_Header'}
25779                  $as_echo "$as_val"'`
25780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25781 $as_echo "$ac_res" >&6; }
25782 else
25783   # Is the header compilable?
25784 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25785 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25786 cat >conftest.$ac_ext <<_ACEOF
25787 /* confdefs.h.  */
25788 _ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h.  */
25792 $ac_includes_default
25793 #include <${with_readline}/readline.h>
25794 _ACEOF
25795 rm -f conftest.$ac_objext
25796 if { (ac_try="$ac_compile"
25797 case "(($ac_try" in
25798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799   *) ac_try_echo=$ac_try;;
25800 esac
25801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25802 $as_echo "$ac_try_echo") >&5
25803   (eval "$ac_compile") 2>conftest.er1
25804   ac_status=$?
25805   grep -v '^ *+' conftest.er1 >conftest.err
25806   rm -f conftest.er1
25807   cat conftest.err >&5
25808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); } && {
25810          test -z "$ac_c_werror_flag" ||
25811          test ! -s conftest.err
25812        } && test -s conftest.$ac_objext; then
25813   ac_header_compiler=yes
25814 else
25815   $as_echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818         ac_header_compiler=no
25819 fi
25820
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25823 $as_echo "$ac_header_compiler" >&6; }
25824
25825 # Is the header present?
25826 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25827 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h.  */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h.  */
25834 #include <${with_readline}/readline.h>
25835 _ACEOF
25836 if { (ac_try="$ac_cpp conftest.$ac_ext"
25837 case "(($ac_try" in
25838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839   *) ac_try_echo=$ac_try;;
25840 esac
25841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25842 $as_echo "$ac_try_echo") >&5
25843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25844   ac_status=$?
25845   grep -v '^ *+' conftest.er1 >conftest.err
25846   rm -f conftest.er1
25847   cat conftest.err >&5
25848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); } >/dev/null && {
25850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25851          test ! -s conftest.err
25852        }; then
25853   ac_header_preproc=yes
25854 else
25855   $as_echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858   ac_header_preproc=no
25859 fi
25860
25861 rm -f conftest.err conftest.$ac_ext
25862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25863 $as_echo "$ac_header_preproc" >&6; }
25864
25865 # So?  What about this header?
25866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25867   yes:no: )
25868     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25869 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25870     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25871 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25872     ac_header_preproc=yes
25873     ;;
25874   no:yes:* )
25875     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25876 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25877     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25878 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25879     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25880 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25881     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25882 $as_echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25883     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25884 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25885     { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25886 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25887
25888     ;;
25889 esac
25890 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25891 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25893   $as_echo_n "(cached) " >&6
25894 else
25895   eval "$as_ac_Header=\$ac_header_preproc"
25896 fi
25897 ac_res=`eval 'as_val=${'$as_ac_Header'}
25898                  $as_echo "$as_val"'`
25899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25900 $as_echo "$ac_res" >&6; }
25901
25902 fi
25903 as_val=`eval 'as_val=${'$as_ac_Header'}
25904                  $as_echo "$as_val"'`
25905    if test "x$as_val" = x""yes; then
25906
25907
25908 cat >>confdefs.h <<\_ACEOF
25909 #define HAVE_READLINE 1
25910 _ACEOF
25911
25912                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25913                     got_readline="yes"
25914
25915 else
25916
25917                     echo " "
25918                     echo "readline.h not found. readline turned off ..."
25919                     echo " "
25920
25921
25922 fi
25923
25924
25925              ;;
25926           esac
25927
25928 else
25929
25930                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25931   { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25932 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25933 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25934   $as_echo_n "(cached) " >&6
25935 fi
25936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25937 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25938 else
25939   # Is the header compilable?
25940 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25941 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25942 cat >conftest.$ac_ext <<_ACEOF
25943 /* confdefs.h.  */
25944 _ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h.  */
25948 $ac_includes_default
25949 #include </usr/include/readline/readline.h>
25950 _ACEOF
25951 rm -f conftest.$ac_objext
25952 if { (ac_try="$ac_compile"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959   (eval "$ac_compile") 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } && {
25966          test -z "$ac_c_werror_flag" ||
25967          test ! -s conftest.err
25968        } && test -s conftest.$ac_objext; then
25969   ac_header_compiler=yes
25970 else
25971   $as_echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974         ac_header_compiler=no
25975 fi
25976
25977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25979 $as_echo "$ac_header_compiler" >&6; }
25980
25981 # Is the header present?
25982 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25983 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25984 cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 #include </usr/include/readline/readline.h>
25991 _ACEOF
25992 if { (ac_try="$ac_cpp conftest.$ac_ext"
25993 case "(($ac_try" in
25994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995   *) ac_try_echo=$ac_try;;
25996 esac
25997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26000   ac_status=$?
26001   grep -v '^ *+' conftest.er1 >conftest.err
26002   rm -f conftest.er1
26003   cat conftest.err >&5
26004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); } >/dev/null && {
26006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26007          test ! -s conftest.err
26008        }; then
26009   ac_header_preproc=yes
26010 else
26011   $as_echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014   ac_header_preproc=no
26015 fi
26016
26017 rm -f conftest.err conftest.$ac_ext
26018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26019 $as_echo "$ac_header_preproc" >&6; }
26020
26021 # So?  What about this header?
26022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26023   yes:no: )
26024     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26025 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26026     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
26027 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
26028     ac_header_preproc=yes
26029     ;;
26030   no:yes:* )
26031     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
26032 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
26033     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
26034 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
26035     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
26036 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
26037     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
26038 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26039     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
26040 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26041     { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
26042 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26043
26044     ;;
26045 esac
26046 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
26047 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
26048 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
26049   $as_echo_n "(cached) " >&6
26050 else
26051   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
26052 fi
26053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
26054 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
26055
26056 fi
26057 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
26058
26059
26060 cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_READLINE 1
26062 _ACEOF
26063
26064                 got_readline="yes"
26065                 CONS_INC="-I/usr/include/readline"
26066                 CONS_LIBS="-lreadline $TERM_LIB"
26067
26068 else
26069
26070                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
26071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26072   { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26073 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26075   $as_echo_n "(cached) " >&6
26076 fi
26077 ac_res=`eval 'as_val=${'$as_ac_Header'}
26078                  $as_echo "$as_val"'`
26079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26080 $as_echo "$ac_res" >&6; }
26081 else
26082   # Is the header compilable?
26083 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
26084 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
26085 cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h.  */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h.  */
26091 $ac_includes_default
26092 #include <${TOP_DIR}/depkgs/readline/readline.h>
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102   (eval "$ac_compile") 2>conftest.er1
26103   ac_status=$?
26104   grep -v '^ *+' conftest.er1 >conftest.err
26105   rm -f conftest.er1
26106   cat conftest.err >&5
26107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); } && {
26109          test -z "$ac_c_werror_flag" ||
26110          test ! -s conftest.err
26111        } && test -s conftest.$ac_objext; then
26112   ac_header_compiler=yes
26113 else
26114   $as_echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117         ac_header_compiler=no
26118 fi
26119
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26122 $as_echo "$ac_header_compiler" >&6; }
26123
26124 # Is the header present?
26125 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26126 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 #include <${TOP_DIR}/depkgs/readline/readline.h>
26134 _ACEOF
26135 if { (ac_try="$ac_cpp conftest.$ac_ext"
26136 case "(($ac_try" in
26137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138   *) ac_try_echo=$ac_try;;
26139 esac
26140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26141 $as_echo "$ac_try_echo") >&5
26142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26143   ac_status=$?
26144   grep -v '^ *+' conftest.er1 >conftest.err
26145   rm -f conftest.er1
26146   cat conftest.err >&5
26147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148   (exit $ac_status); } >/dev/null && {
26149          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26150          test ! -s conftest.err
26151        }; then
26152   ac_header_preproc=yes
26153 else
26154   $as_echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157   ac_header_preproc=no
26158 fi
26159
26160 rm -f conftest.err conftest.$ac_ext
26161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26162 $as_echo "$ac_header_preproc" >&6; }
26163
26164 # So?  What about this header?
26165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26166   yes:no: )
26167     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26168 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26169     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26170 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26171     ac_header_preproc=yes
26172     ;;
26173   no:yes:* )
26174     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26175 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26176     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
26177 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
26178     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26179 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26180     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
26181 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26182     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26183 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26184     { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26185 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26186
26187     ;;
26188 esac
26189 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26190 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26192   $as_echo_n "(cached) " >&6
26193 else
26194   eval "$as_ac_Header=\$ac_header_preproc"
26195 fi
26196 ac_res=`eval 'as_val=${'$as_ac_Header'}
26197                  $as_echo "$as_val"'`
26198                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26199 $as_echo "$ac_res" >&6; }
26200
26201 fi
26202 as_val=`eval 'as_val=${'$as_ac_Header'}
26203                  $as_echo "$as_val"'`
26204    if test "x$as_val" = x""yes; then
26205
26206
26207 cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_READLINE 1
26209 _ACEOF
26210
26211                         got_readline="yes"
26212                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
26213                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26214                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26215                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26216
26217 else
26218
26219                         echo " "
26220                         echo "readline.h not found. readline turned off ..."
26221                         echo " "
26222
26223
26224 fi
26225
26226
26227
26228
26229 fi
26230
26231
26232
26233
26234 fi
26235
26236 fi
26237
26238
26239
26240
26241
26242
26243
26244
26245 MAKE_SHELL=/bin/sh
26246
26247 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26248 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26249 if test "${ac_cv_header_stat_broken+set}" = set; then
26250   $as_echo_n "(cached) " >&6
26251 else
26252   cat >conftest.$ac_ext <<_ACEOF
26253 /* confdefs.h.  */
26254 _ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h.  */
26258 #include <sys/types.h>
26259 #include <sys/stat.h>
26260
26261 #if defined S_ISBLK && defined S_IFDIR
26262 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26263 #endif
26264
26265 #if defined S_ISBLK && defined S_IFCHR
26266 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26267 #endif
26268
26269 #if defined S_ISLNK && defined S_IFREG
26270 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26271 #endif
26272
26273 #if defined S_ISSOCK && defined S_IFREG
26274 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26275 #endif
26276
26277 _ACEOF
26278 rm -f conftest.$ac_objext
26279 if { (ac_try="$ac_compile"
26280 case "(($ac_try" in
26281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282   *) ac_try_echo=$ac_try;;
26283 esac
26284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26285 $as_echo "$ac_try_echo") >&5
26286   (eval "$ac_compile") 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } && {
26293          test -z "$ac_c_werror_flag" ||
26294          test ! -s conftest.err
26295        } && test -s conftest.$ac_objext; then
26296   ac_cv_header_stat_broken=no
26297 else
26298   $as_echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301         ac_cv_header_stat_broken=yes
26302 fi
26303
26304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26305 fi
26306 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26307 $as_echo "$ac_cv_header_stat_broken" >&6; }
26308 if test $ac_cv_header_stat_broken = yes; then
26309
26310 cat >>confdefs.h <<\_ACEOF
26311 #define STAT_MACROS_BROKEN 1
26312 _ACEOF
26313
26314 fi
26315
26316
26317
26318
26319
26320
26321 ac_header_dirent=no
26322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26323   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26324 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26325 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26327   $as_echo_n "(cached) " >&6
26328 else
26329   cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 #include <sys/types.h>
26336 #include <$ac_hdr>
26337
26338 int
26339 main ()
26340 {
26341 if ((DIR *) 0)
26342 return 0;
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext
26348 if { (ac_try="$ac_compile"
26349 case "(($ac_try" in
26350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351   *) ac_try_echo=$ac_try;;
26352 esac
26353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26354 $as_echo "$ac_try_echo") >&5
26355   (eval "$ac_compile") 2>conftest.er1
26356   ac_status=$?
26357   grep -v '^ *+' conftest.er1 >conftest.err
26358   rm -f conftest.er1
26359   cat conftest.err >&5
26360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); } && {
26362          test -z "$ac_c_werror_flag" ||
26363          test ! -s conftest.err
26364        } && test -s conftest.$ac_objext; then
26365   eval "$as_ac_Header=yes"
26366 else
26367   $as_echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26369
26370         eval "$as_ac_Header=no"
26371 fi
26372
26373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374 fi
26375 ac_res=`eval 'as_val=${'$as_ac_Header'}
26376                  $as_echo "$as_val"'`
26377                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26378 $as_echo "$ac_res" >&6; }
26379 as_val=`eval 'as_val=${'$as_ac_Header'}
26380                  $as_echo "$as_val"'`
26381    if test "x$as_val" = x""yes; then
26382   cat >>confdefs.h <<_ACEOF
26383 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26384 _ACEOF
26385
26386 ac_header_dirent=$ac_hdr; break
26387 fi
26388
26389 done
26390 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26391 if test $ac_header_dirent = dirent.h; then
26392   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26393 $as_echo_n "checking for library containing opendir... " >&6; }
26394 if test "${ac_cv_search_opendir+set}" = set; then
26395   $as_echo_n "(cached) " >&6
26396 else
26397   ac_func_search_save_LIBS=$LIBS
26398 cat >conftest.$ac_ext <<_ACEOF
26399 /* confdefs.h.  */
26400 _ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h.  */
26404
26405 /* Override any GCC internal prototype to avoid an error.
26406    Use char because int might match the return type of a GCC
26407    builtin and then its argument prototype would still apply.  */
26408 #ifdef __cplusplus
26409 extern "C"
26410 #endif
26411 char opendir ();
26412 int
26413 main ()
26414 {
26415 return opendir ();
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 for ac_lib in '' dir; do
26421   if test -z "$ac_lib"; then
26422     ac_res="none required"
26423   else
26424     ac_res=-l$ac_lib
26425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26426   fi
26427   rm -f conftest.$ac_objext conftest$ac_exeext
26428 if { (ac_try="$ac_link"
26429 case "(($ac_try" in
26430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431   *) ac_try_echo=$ac_try;;
26432 esac
26433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26434 $as_echo "$ac_try_echo") >&5
26435   (eval "$ac_link") 2>conftest.er1
26436   ac_status=$?
26437   grep -v '^ *+' conftest.er1 >conftest.err
26438   rm -f conftest.er1
26439   cat conftest.err >&5
26440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); } && {
26442          test -z "$ac_c_werror_flag" ||
26443          test ! -s conftest.err
26444        } && test -s conftest$ac_exeext && {
26445          test "$cross_compiling" = yes ||
26446          $as_test_x conftest$ac_exeext
26447        }; then
26448   ac_cv_search_opendir=$ac_res
26449 else
26450   $as_echo "$as_me: failed program was:" >&5
26451 sed 's/^/| /' conftest.$ac_ext >&5
26452
26453
26454 fi
26455
26456 rm -rf conftest.dSYM
26457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26458       conftest$ac_exeext
26459   if test "${ac_cv_search_opendir+set}" = set; then
26460   break
26461 fi
26462 done
26463 if test "${ac_cv_search_opendir+set}" = set; then
26464   :
26465 else
26466   ac_cv_search_opendir=no
26467 fi
26468 rm conftest.$ac_ext
26469 LIBS=$ac_func_search_save_LIBS
26470 fi
26471 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26472 $as_echo "$ac_cv_search_opendir" >&6; }
26473 ac_res=$ac_cv_search_opendir
26474 if test "$ac_res" != no; then
26475   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26476
26477 fi
26478
26479 else
26480   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26481 $as_echo_n "checking for library containing opendir... " >&6; }
26482 if test "${ac_cv_search_opendir+set}" = set; then
26483   $as_echo_n "(cached) " >&6
26484 else
26485   ac_func_search_save_LIBS=$LIBS
26486 cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h.  */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h.  */
26492
26493 /* Override any GCC internal prototype to avoid an error.
26494    Use char because int might match the return type of a GCC
26495    builtin and then its argument prototype would still apply.  */
26496 #ifdef __cplusplus
26497 extern "C"
26498 #endif
26499 char opendir ();
26500 int
26501 main ()
26502 {
26503 return opendir ();
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 for ac_lib in '' x; do
26509   if test -z "$ac_lib"; then
26510     ac_res="none required"
26511   else
26512     ac_res=-l$ac_lib
26513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26514   fi
26515   rm -f conftest.$ac_objext conftest$ac_exeext
26516 if { (ac_try="$ac_link"
26517 case "(($ac_try" in
26518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519   *) ac_try_echo=$ac_try;;
26520 esac
26521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26522 $as_echo "$ac_try_echo") >&5
26523   (eval "$ac_link") 2>conftest.er1
26524   ac_status=$?
26525   grep -v '^ *+' conftest.er1 >conftest.err
26526   rm -f conftest.er1
26527   cat conftest.err >&5
26528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); } && {
26530          test -z "$ac_c_werror_flag" ||
26531          test ! -s conftest.err
26532        } && test -s conftest$ac_exeext && {
26533          test "$cross_compiling" = yes ||
26534          $as_test_x conftest$ac_exeext
26535        }; then
26536   ac_cv_search_opendir=$ac_res
26537 else
26538   $as_echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26540
26541
26542 fi
26543
26544 rm -rf conftest.dSYM
26545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26546       conftest$ac_exeext
26547   if test "${ac_cv_search_opendir+set}" = set; then
26548   break
26549 fi
26550 done
26551 if test "${ac_cv_search_opendir+set}" = set; then
26552   :
26553 else
26554   ac_cv_search_opendir=no
26555 fi
26556 rm conftest.$ac_ext
26557 LIBS=$ac_func_search_save_LIBS
26558 fi
26559 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26560 $as_echo "$ac_cv_search_opendir" >&6; }
26561 ac_res=$ac_cv_search_opendir
26562 if test "$ac_res" != no; then
26563   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26564
26565 fi
26566
26567 fi
26568
26569
26570
26571
26572
26573
26574
26575
26576 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26577 do
26578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26580 $as_echo_n "checking for $ac_func... " >&6; }
26581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26582   $as_echo_n "(cached) " >&6
26583 else
26584   cat >conftest.$ac_ext <<_ACEOF
26585 /* confdefs.h.  */
26586 _ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h.  */
26590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26592 #define $ac_func innocuous_$ac_func
26593
26594 /* System header to define __stub macros and hopefully few prototypes,
26595     which can conflict with char $ac_func (); below.
26596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26597     <limits.h> exists even on freestanding compilers.  */
26598
26599 #ifdef __STDC__
26600 # include <limits.h>
26601 #else
26602 # include <assert.h>
26603 #endif
26604
26605 #undef $ac_func
26606
26607 /* Override any GCC internal prototype to avoid an error.
26608    Use char because int might match the return type of a GCC
26609    builtin and then its argument prototype would still apply.  */
26610 #ifdef __cplusplus
26611 extern "C"
26612 #endif
26613 char $ac_func ();
26614 /* The GNU C library defines this for functions which it implements
26615     to always fail with ENOSYS.  Some functions are actually named
26616     something starting with __ and the normal name is an alias.  */
26617 #if defined __stub_$ac_func || defined __stub___$ac_func
26618 choke me
26619 #endif
26620
26621 int
26622 main ()
26623 {
26624 return $ac_func ();
26625   ;
26626   return 0;
26627 }
26628 _ACEOF
26629 rm -f conftest.$ac_objext conftest$ac_exeext
26630 if { (ac_try="$ac_link"
26631 case "(($ac_try" in
26632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26633   *) ac_try_echo=$ac_try;;
26634 esac
26635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26636 $as_echo "$ac_try_echo") >&5
26637   (eval "$ac_link") 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } && {
26644          test -z "$ac_c_werror_flag" ||
26645          test ! -s conftest.err
26646        } && test -s conftest$ac_exeext && {
26647          test "$cross_compiling" = yes ||
26648          $as_test_x conftest$ac_exeext
26649        }; then
26650   eval "$as_ac_var=yes"
26651 else
26652   $as_echo "$as_me: failed program was:" >&5
26653 sed 's/^/| /' conftest.$ac_ext >&5
26654
26655         eval "$as_ac_var=no"
26656 fi
26657
26658 rm -rf conftest.dSYM
26659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26660       conftest$ac_exeext conftest.$ac_ext
26661 fi
26662 ac_res=`eval 'as_val=${'$as_ac_var'}
26663                  $as_echo "$as_val"'`
26664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26665 $as_echo "$ac_res" >&6; }
26666 as_val=`eval 'as_val=${'$as_ac_var'}
26667                  $as_echo "$as_val"'`
26668    if test "x$as_val" = x""yes; then
26669   cat >>confdefs.h <<_ACEOF
26670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26671 _ACEOF
26672
26673 fi
26674 done
26675
26676
26677
26678 for ac_func in nanosleep nl_langinfo
26679 do
26680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26682 $as_echo_n "checking for $ac_func... " >&6; }
26683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26684   $as_echo_n "(cached) " >&6
26685 else
26686   cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26694 #define $ac_func innocuous_$ac_func
26695
26696 /* System header to define __stub macros and hopefully few prototypes,
26697     which can conflict with char $ac_func (); below.
26698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26699     <limits.h> exists even on freestanding compilers.  */
26700
26701 #ifdef __STDC__
26702 # include <limits.h>
26703 #else
26704 # include <assert.h>
26705 #endif
26706
26707 #undef $ac_func
26708
26709 /* Override any GCC internal prototype to avoid an error.
26710    Use char because int might match the return type of a GCC
26711    builtin and then its argument prototype would still apply.  */
26712 #ifdef __cplusplus
26713 extern "C"
26714 #endif
26715 char $ac_func ();
26716 /* The GNU C library defines this for functions which it implements
26717     to always fail with ENOSYS.  Some functions are actually named
26718     something starting with __ and the normal name is an alias.  */
26719 #if defined __stub_$ac_func || defined __stub___$ac_func
26720 choke me
26721 #endif
26722
26723 int
26724 main ()
26725 {
26726 return $ac_func ();
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 rm -f conftest.$ac_objext conftest$ac_exeext
26732 if { (ac_try="$ac_link"
26733 case "(($ac_try" in
26734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735   *) ac_try_echo=$ac_try;;
26736 esac
26737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26738 $as_echo "$ac_try_echo") >&5
26739   (eval "$ac_link") 2>conftest.er1
26740   ac_status=$?
26741   grep -v '^ *+' conftest.er1 >conftest.err
26742   rm -f conftest.er1
26743   cat conftest.err >&5
26744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } && {
26746          test -z "$ac_c_werror_flag" ||
26747          test ! -s conftest.err
26748        } && test -s conftest$ac_exeext && {
26749          test "$cross_compiling" = yes ||
26750          $as_test_x conftest$ac_exeext
26751        }; then
26752   eval "$as_ac_var=yes"
26753 else
26754   $as_echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26756
26757         eval "$as_ac_var=no"
26758 fi
26759
26760 rm -rf conftest.dSYM
26761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762       conftest$ac_exeext conftest.$ac_ext
26763 fi
26764 ac_res=`eval 'as_val=${'$as_ac_var'}
26765                  $as_echo "$as_val"'`
26766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26767 $as_echo "$ac_res" >&6; }
26768 as_val=`eval 'as_val=${'$as_ac_var'}
26769                  $as_echo "$as_val"'`
26770    if test "x$as_val" = x""yes; then
26771   cat >>confdefs.h <<_ACEOF
26772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26773 _ACEOF
26774
26775 fi
26776 done
26777
26778
26779 for ac_header in varargs.h
26780 do
26781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26783   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26784 $as_echo_n "checking for $ac_header... " >&6; }
26785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26786   $as_echo_n "(cached) " >&6
26787 fi
26788 ac_res=`eval 'as_val=${'$as_ac_Header'}
26789                  $as_echo "$as_val"'`
26790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26791 $as_echo "$ac_res" >&6; }
26792 else
26793   # Is the header compilable?
26794 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26795 $as_echo_n "checking $ac_header usability... " >&6; }
26796 cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 $ac_includes_default
26803 #include <$ac_header>
26804 _ACEOF
26805 rm -f conftest.$ac_objext
26806 if { (ac_try="$ac_compile"
26807 case "(($ac_try" in
26808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809   *) ac_try_echo=$ac_try;;
26810 esac
26811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26812 $as_echo "$ac_try_echo") >&5
26813   (eval "$ac_compile") 2>conftest.er1
26814   ac_status=$?
26815   grep -v '^ *+' conftest.er1 >conftest.err
26816   rm -f conftest.er1
26817   cat conftest.err >&5
26818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); } && {
26820          test -z "$ac_c_werror_flag" ||
26821          test ! -s conftest.err
26822        } && test -s conftest.$ac_objext; then
26823   ac_header_compiler=yes
26824 else
26825   $as_echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26827
26828         ac_header_compiler=no
26829 fi
26830
26831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 $as_echo "$ac_header_compiler" >&6; }
26834
26835 # Is the header present?
26836 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 $as_echo_n "checking $ac_header presence... " >&6; }
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 #include <$ac_header>
26845 _ACEOF
26846 if { (ac_try="$ac_cpp conftest.$ac_ext"
26847 case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26852 $as_echo "$ac_try_echo") >&5
26853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26854   ac_status=$?
26855   grep -v '^ *+' conftest.er1 >conftest.err
26856   rm -f conftest.er1
26857   cat conftest.err >&5
26858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } >/dev/null && {
26860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26861          test ! -s conftest.err
26862        }; then
26863   ac_header_preproc=yes
26864 else
26865   $as_echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868   ac_header_preproc=no
26869 fi
26870
26871 rm -f conftest.err conftest.$ac_ext
26872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 $as_echo "$ac_header_preproc" >&6; }
26874
26875 # So?  What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26877   yes:no: )
26878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882     ac_header_preproc=yes
26883     ;;
26884   no:yes:* )
26885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26888 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26892 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26897
26898     ;;
26899 esac
26900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26901 $as_echo_n "checking for $ac_header... " >&6; }
26902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26903   $as_echo_n "(cached) " >&6
26904 else
26905   eval "$as_ac_Header=\$ac_header_preproc"
26906 fi
26907 ac_res=`eval 'as_val=${'$as_ac_Header'}
26908                  $as_echo "$as_val"'`
26909                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26910 $as_echo "$ac_res" >&6; }
26911
26912 fi
26913 as_val=`eval 'as_val=${'$as_ac_Header'}
26914                  $as_echo "$as_val"'`
26915    if test "x$as_val" = x""yes; then
26916   cat >>confdefs.h <<_ACEOF
26917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26918 _ACEOF
26919
26920 fi
26921
26922 done
26923
26924
26925
26926 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26927 $as_echo_n "checking for Python support... " >&6; }
26928
26929 # Check whether --with-python was given.
26930 if test "${with_python+set}" = set; then
26931   withval=$with_python;
26932        PYTHON_INCDIR=
26933        PYTHON_LIBS=
26934        if test "$withval" != "no"; then
26935           if test "$withval" = "yes"; then
26936              if test -e /usr/bin/python-config ; then
26937                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26938                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26939              else
26940                 for python_root in /usr /usr/local /usr/sfw; do
26941                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26942                       if test -f $python_root/include/${ver}/Python.h; then
26943                          PYTHON_INCDIR=-I$python_root/include/${ver}
26944                          if test -d $python_root/lib64/${ver}/config; then
26945                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26946                          else
26947                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26948                          fi
26949                          break
26950                       fi
26951                    done
26952                 done
26953
26954                 if test x$PYTHON_INCDIR = x; then
26955                    if test -f $prefix/include/Python.h; then
26956                       PYTHON_INCDIR=-I$prefix/include
26957                       if test -d $prefix/lib64/config; then
26958                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26959                       else
26960                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26961                       fi
26962                    else
26963                       { $as_echo "$as_me:$LINENO: result: no" >&5
26964 $as_echo "no" >&6; }
26965                       { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26966 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26967    { (exit 1); exit 1; }; }
26968                    fi
26969                 fi
26970              fi
26971           else
26972              if test -e $withval/bin/python-config ; then
26973                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26974                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26975              elif test -f $withval/Python.h; then
26976                 PYTHON_INCDIR=-I$withval
26977                 PYTHON_LIBS="-L$withval/config -lpython"
26978              elif test -f $withval/include/Python.h; then
26979                 PYTHON_INCDIR=-I$withval/include
26980                 if test -d $withval/lib64/config; then
26981                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26982                 else
26983                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26984                 fi
26985              elif test -f $withval/include/python/Python.h; then
26986                 PYTHON_INCDIR=-I$withval/include/python
26987                 if test -d $withval/lib64/python/config; then
26988                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26989                 else
26990                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26991                 fi
26992              else
26993                 { $as_echo "$as_me:$LINENO: result: no" >&5
26994 $as_echo "no" >&6; }
26995                 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26996 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26997    { (exit 1); exit 1; }; }
26998              fi
26999           fi
27000
27001           cat >>confdefs.h <<\_ACEOF
27002 #define HAVE_PYTHON 1
27003 _ACEOF
27004
27005           { $as_echo "$as_me:$LINENO: result: yes" >&5
27006 $as_echo "yes" >&6; }
27007           support_python=yes
27008           { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
27009 $as_echo "$as_me: checking for more Python libs" >&6;}
27010           saved_LIBS="$LIBS"; LIBS=
27011           { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
27012 $as_echo_n "checking for library containing shm_open... " >&6; }
27013 if test "${ac_cv_search_shm_open+set}" = set; then
27014   $as_echo_n "(cached) " >&6
27015 else
27016   ac_func_search_save_LIBS=$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 shm_open ();
27031 int
27032 main ()
27033 {
27034 return shm_open ();
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 for ac_lib in '' rt; do
27040   if test -z "$ac_lib"; then
27041     ac_res="none required"
27042   else
27043     ac_res=-l$ac_lib
27044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27045   fi
27046   rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27053 $as_echo "$ac_try_echo") >&5
27054   (eval "$ac_link") 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && {
27061          test -z "$ac_c_werror_flag" ||
27062          test ! -s conftest.err
27063        } && test -s conftest$ac_exeext && {
27064          test "$cross_compiling" = yes ||
27065          $as_test_x conftest$ac_exeext
27066        }; then
27067   ac_cv_search_shm_open=$ac_res
27068 else
27069   $as_echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072
27073 fi
27074
27075 rm -rf conftest.dSYM
27076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27077       conftest$ac_exeext
27078   if test "${ac_cv_search_shm_open+set}" = set; then
27079   break
27080 fi
27081 done
27082 if test "${ac_cv_search_shm_open+set}" = set; then
27083   :
27084 else
27085   ac_cv_search_shm_open=no
27086 fi
27087 rm conftest.$ac_ext
27088 LIBS=$ac_func_search_save_LIBS
27089 fi
27090 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
27091 $as_echo "$ac_cv_search_shm_open" >&6; }
27092 ac_res=$ac_cv_search_shm_open
27093 if test "$ac_res" != no; then
27094   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27095
27096 fi
27097
27098
27099 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27100 $as_echo_n "checking for openpty in -lutil... " >&6; }
27101 if test "${ac_cv_lib_util_openpty+set}" = set; then
27102   $as_echo_n "(cached) " >&6
27103 else
27104   ac_check_lib_save_LIBS=$LIBS
27105 LIBS="-lutil  $LIBS"
27106 cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112
27113 /* Override any GCC internal prototype to avoid an error.
27114    Use char because int might match the return type of a GCC
27115    builtin and then its argument prototype would still apply.  */
27116 #ifdef __cplusplus
27117 extern "C"
27118 #endif
27119 char openpty ();
27120 int
27121 main ()
27122 {
27123 return openpty ();
27124   ;
27125   return 0;
27126 }
27127 _ACEOF
27128 rm -f conftest.$ac_objext conftest$ac_exeext
27129 if { (ac_try="$ac_link"
27130 case "(($ac_try" in
27131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132   *) ac_try_echo=$ac_try;;
27133 esac
27134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27135 $as_echo "$ac_try_echo") >&5
27136   (eval "$ac_link") 2>conftest.er1
27137   ac_status=$?
27138   grep -v '^ *+' conftest.er1 >conftest.err
27139   rm -f conftest.er1
27140   cat conftest.err >&5
27141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); } && {
27143          test -z "$ac_c_werror_flag" ||
27144          test ! -s conftest.err
27145        } && test -s conftest$ac_exeext && {
27146          test "$cross_compiling" = yes ||
27147          $as_test_x conftest$ac_exeext
27148        }; then
27149   ac_cv_lib_util_openpty=yes
27150 else
27151   $as_echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27153
27154         ac_cv_lib_util_openpty=no
27155 fi
27156
27157 rm -rf conftest.dSYM
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159       conftest$ac_exeext conftest.$ac_ext
27160 LIBS=$ac_check_lib_save_LIBS
27161 fi
27162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27163 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27164 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27165   cat >>confdefs.h <<_ACEOF
27166 #define HAVE_LIBUTIL 1
27167 _ACEOF
27168
27169   LIBS="-lutil $LIBS"
27170
27171 fi
27172
27173           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27174           LIBS="$saved_LIBS"
27175        else
27176           { $as_echo "$as_me:$LINENO: result: no" >&5
27177 $as_echo "no" >&6; }
27178        fi
27179
27180 else
27181
27182        { $as_echo "$as_me:$LINENO: result: no" >&5
27183 $as_echo "no" >&6; }
27184
27185
27186 fi
27187
27188
27189
27190
27191 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27192 $as_echo_n "checking for socket... " >&6; }
27193 if test "${ac_cv_func_socket+set}" = set; then
27194   $as_echo_n "(cached) " >&6
27195 else
27196   cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27204 #define socket innocuous_socket
27205
27206 /* System header to define __stub macros and hopefully few prototypes,
27207     which can conflict with char socket (); below.
27208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27209     <limits.h> exists even on freestanding compilers.  */
27210
27211 #ifdef __STDC__
27212 # include <limits.h>
27213 #else
27214 # include <assert.h>
27215 #endif
27216
27217 #undef socket
27218
27219 /* Override any GCC internal prototype to avoid an error.
27220    Use char because int might match the return type of a GCC
27221    builtin and then its argument prototype would still apply.  */
27222 #ifdef __cplusplus
27223 extern "C"
27224 #endif
27225 char socket ();
27226 /* The GNU C library defines this for functions which it implements
27227     to always fail with ENOSYS.  Some functions are actually named
27228     something starting with __ and the normal name is an alias.  */
27229 #if defined __stub_socket || defined __stub___socket
27230 choke me
27231 #endif
27232
27233 int
27234 main ()
27235 {
27236 return socket ();
27237   ;
27238   return 0;
27239 }
27240 _ACEOF
27241 rm -f conftest.$ac_objext conftest$ac_exeext
27242 if { (ac_try="$ac_link"
27243 case "(($ac_try" in
27244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245   *) ac_try_echo=$ac_try;;
27246 esac
27247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249   (eval "$ac_link") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } && {
27256          test -z "$ac_c_werror_flag" ||
27257          test ! -s conftest.err
27258        } && test -s conftest$ac_exeext && {
27259          test "$cross_compiling" = yes ||
27260          $as_test_x conftest$ac_exeext
27261        }; then
27262   ac_cv_func_socket=yes
27263 else
27264   $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267         ac_cv_func_socket=no
27268 fi
27269
27270 rm -rf conftest.dSYM
27271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27272       conftest$ac_exeext conftest.$ac_ext
27273 fi
27274 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27275 $as_echo "$ac_cv_func_socket" >&6; }
27276 if test "x$ac_cv_func_socket" = x""yes; then
27277   { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27278 $as_echo "using libc's socket" >&6; }
27279 else
27280
27281 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27282 $as_echo_n "checking for socket in -lxnet... " >&6; }
27283 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27284   $as_echo_n "(cached) " >&6
27285 else
27286   ac_check_lib_save_LIBS=$LIBS
27287 LIBS="-lxnet  $LIBS"
27288 cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h.  */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h.  */
27294
27295 /* Override any GCC internal prototype to avoid an error.
27296    Use char because int might match the return type of a GCC
27297    builtin and then its argument prototype would still apply.  */
27298 #ifdef __cplusplus
27299 extern "C"
27300 #endif
27301 char socket ();
27302 int
27303 main ()
27304 {
27305 return socket ();
27306   ;
27307   return 0;
27308 }
27309 _ACEOF
27310 rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27317 $as_echo "$ac_try_echo") >&5
27318   (eval "$ac_link") 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } && {
27325          test -z "$ac_c_werror_flag" ||
27326          test ! -s conftest.err
27327        } && test -s conftest$ac_exeext && {
27328          test "$cross_compiling" = yes ||
27329          $as_test_x conftest$ac_exeext
27330        }; then
27331   ac_cv_lib_xnet_socket=yes
27332 else
27333   $as_echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         ac_cv_lib_xnet_socket=no
27337 fi
27338
27339 rm -rf conftest.dSYM
27340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27341       conftest$ac_exeext conftest.$ac_ext
27342 LIBS=$ac_check_lib_save_LIBS
27343 fi
27344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27345 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27346 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27347   cat >>confdefs.h <<_ACEOF
27348 #define HAVE_LIBXNET 1
27349 _ACEOF
27350
27351   LIBS="-lxnet $LIBS"
27352
27353 fi
27354
27355
27356 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27357 $as_echo_n "checking for socket in -lsocket... " >&6; }
27358 if test "${ac_cv_lib_socket_socket+set}" = set; then
27359   $as_echo_n "(cached) " >&6
27360 else
27361   ac_check_lib_save_LIBS=$LIBS
27362 LIBS="-lsocket  $LIBS"
27363 cat >conftest.$ac_ext <<_ACEOF
27364 /* confdefs.h.  */
27365 _ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h.  */
27369
27370 /* Override any GCC internal prototype to avoid an error.
27371    Use char because int might match the return type of a GCC
27372    builtin and then its argument prototype would still apply.  */
27373 #ifdef __cplusplus
27374 extern "C"
27375 #endif
27376 char socket ();
27377 int
27378 main ()
27379 {
27380 return socket ();
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389   *) ac_try_echo=$ac_try;;
27390 esac
27391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27392 $as_echo "$ac_try_echo") >&5
27393   (eval "$ac_link") 2>conftest.er1
27394   ac_status=$?
27395   grep -v '^ *+' conftest.er1 >conftest.err
27396   rm -f conftest.er1
27397   cat conftest.err >&5
27398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); } && {
27400          test -z "$ac_c_werror_flag" ||
27401          test ! -s conftest.err
27402        } && test -s conftest$ac_exeext && {
27403          test "$cross_compiling" = yes ||
27404          $as_test_x conftest$ac_exeext
27405        }; then
27406   ac_cv_lib_socket_socket=yes
27407 else
27408   $as_echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411         ac_cv_lib_socket_socket=no
27412 fi
27413
27414 rm -rf conftest.dSYM
27415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27416       conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27418 fi
27419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27420 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27421 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27422   cat >>confdefs.h <<_ACEOF
27423 #define HAVE_LIBSOCKET 1
27424 _ACEOF
27425
27426   LIBS="-lsocket $LIBS"
27427
27428 fi
27429
27430
27431 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27432 $as_echo_n "checking for socket in -linet... " >&6; }
27433 if test "${ac_cv_lib_inet_socket+set}" = set; then
27434   $as_echo_n "(cached) " >&6
27435 else
27436   ac_check_lib_save_LIBS=$LIBS
27437 LIBS="-linet  $LIBS"
27438 cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444
27445 /* Override any GCC internal prototype to avoid an error.
27446    Use char because int might match the return type of a GCC
27447    builtin and then its argument prototype would still apply.  */
27448 #ifdef __cplusplus
27449 extern "C"
27450 #endif
27451 char socket ();
27452 int
27453 main ()
27454 {
27455 return socket ();
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27467 $as_echo "$ac_try_echo") >&5
27468   (eval "$ac_link") 2>conftest.er1
27469   ac_status=$?
27470   grep -v '^ *+' conftest.er1 >conftest.err
27471   rm -f conftest.er1
27472   cat conftest.err >&5
27473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); } && {
27475          test -z "$ac_c_werror_flag" ||
27476          test ! -s conftest.err
27477        } && test -s conftest$ac_exeext && {
27478          test "$cross_compiling" = yes ||
27479          $as_test_x conftest$ac_exeext
27480        }; then
27481   ac_cv_lib_inet_socket=yes
27482 else
27483   $as_echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486         ac_cv_lib_inet_socket=no
27487 fi
27488
27489 rm -rf conftest.dSYM
27490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27491       conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27493 fi
27494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27495 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27496 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27497   cat >>confdefs.h <<_ACEOF
27498 #define HAVE_LIBINET 1
27499 _ACEOF
27500
27501   LIBS="-linet $LIBS"
27502
27503 fi
27504
27505 fi
27506
27507
27508 TCPW_MSG="no"
27509 WRAPLIBS=""
27510
27511 # Check whether --with-tcp-wrappers was given.
27512 if test "${with_tcp_wrappers+set}" = set; then
27513   withval=$with_tcp_wrappers;
27514        if test "x$withval" != "xno" ; then
27515           saved_LIBS="$LIBS"
27516           LIBS="$saved_LIBS -lwrap"
27517           { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27518 $as_echo_n "checking for library containing nanosleep... " >&6; }
27519 if test "${ac_cv_search_nanosleep+set}" = set; then
27520   $as_echo_n "(cached) " >&6
27521 else
27522   ac_func_search_save_LIBS=$LIBS
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529
27530 /* Override any GCC internal prototype to avoid an error.
27531    Use char because int might match the return type of a GCC
27532    builtin and then its argument prototype would still apply.  */
27533 #ifdef __cplusplus
27534 extern "C"
27535 #endif
27536 char nanosleep ();
27537 int
27538 main ()
27539 {
27540 return nanosleep ();
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 for ac_lib in '' rt; do
27546   if test -z "$ac_lib"; then
27547     ac_res="none required"
27548   else
27549     ac_res=-l$ac_lib
27550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27551   fi
27552   rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27559 $as_echo "$ac_try_echo") >&5
27560   (eval "$ac_link") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } && {
27567          test -z "$ac_c_werror_flag" ||
27568          test ! -s conftest.err
27569        } && test -s conftest$ac_exeext && {
27570          test "$cross_compiling" = yes ||
27571          $as_test_x conftest$ac_exeext
27572        }; then
27573   ac_cv_search_nanosleep=$ac_res
27574 else
27575   $as_echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578
27579 fi
27580
27581 rm -rf conftest.dSYM
27582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27583       conftest$ac_exeext
27584   if test "${ac_cv_search_nanosleep+set}" = set; then
27585   break
27586 fi
27587 done
27588 if test "${ac_cv_search_nanosleep+set}" = set; then
27589   :
27590 else
27591   ac_cv_search_nanosleep=no
27592 fi
27593 rm conftest.$ac_ext
27594 LIBS=$ac_func_search_save_LIBS
27595 fi
27596 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27597 $as_echo "$ac_cv_search_nanosleep" >&6; }
27598 ac_res=$ac_cv_search_nanosleep
27599 if test "$ac_res" != no; then
27600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27601
27602 fi
27603
27604           { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27605 $as_echo_n "checking for libwrap... " >&6; }
27606           cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612
27613                #include <sys/types.h>
27614                #include <tcpd.h>
27615                int deny_severity = 0;
27616                int allow_severity = 0;
27617                struct request_info *req;
27618
27619 int
27620 main ()
27621 {
27622
27623                 hosts_access(req);
27624
27625   ;
27626   return 0;
27627 }
27628 _ACEOF
27629 rm -f conftest.$ac_objext conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633   *) ac_try_echo=$ac_try;;
27634 esac
27635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27636 $as_echo "$ac_try_echo") >&5
27637   (eval "$ac_link") 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } && {
27644          test -z "$ac_c_werror_flag" ||
27645          test ! -s conftest.err
27646        } && test -s conftest$ac_exeext && {
27647          test "$cross_compiling" = yes ||
27648          $as_test_x conftest$ac_exeext
27649        }; then
27650
27651                  { $as_echo "$as_me:$LINENO: result: yes" >&5
27652 $as_echo "yes" >&6; }
27653
27654 cat >>confdefs.h <<\_ACEOF
27655 #define HAVE_LIBWRAP 1
27656 _ACEOF
27657
27658                  TCPW_MSG="yes"
27659                  LIBS="$saved_LIBS"
27660                  WRAPLIBS="-lwrap"
27661
27662 else
27663   $as_echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27665
27666
27667                  LIBS="$saved_LIBS -lwrap -lnsl"
27668                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27669                  cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675
27676                        #include <sys/types.h>
27677                        #include <tcpd.h>
27678                        int deny_severity = 0;
27679                        int allow_severity = 0;
27680                        struct request_info *req;
27681
27682 int
27683 main ()
27684 {
27685
27686                        hosts_access(req);
27687
27688   ;
27689   return 0;
27690 }
27691 _ACEOF
27692 rm -f conftest.$ac_objext conftest$ac_exeext
27693 if { (ac_try="$ac_link"
27694 case "(($ac_try" in
27695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696   *) ac_try_echo=$ac_try;;
27697 esac
27698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27699 $as_echo "$ac_try_echo") >&5
27700   (eval "$ac_link") 2>conftest.er1
27701   ac_status=$?
27702   grep -v '^ *+' conftest.er1 >conftest.err
27703   rm -f conftest.er1
27704   cat conftest.err >&5
27705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); } && {
27707          test -z "$ac_c_werror_flag" ||
27708          test ! -s conftest.err
27709        } && test -s conftest$ac_exeext && {
27710          test "$cross_compiling" = yes ||
27711          $as_test_x conftest$ac_exeext
27712        }; then
27713
27714                       { $as_echo "$as_me:$LINENO: result: yes" >&5
27715 $as_echo "yes" >&6; }
27716
27717 cat >>confdefs.h <<\_ACEOF
27718 #define HAVE_LIBWRAP 1
27719 _ACEOF
27720
27721                       TCPW_MSG="yes"
27722                       LIBS="$saved_LIBS"
27723                       WRAPLIBS="-lwrap"
27724
27725 else
27726   $as_echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729
27730                       { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27731 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27732    { (exit 1); exit 1; }; }
27733
27734
27735 fi
27736
27737 rm -rf conftest.dSYM
27738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27739       conftest$ac_exeext conftest.$ac_ext
27740
27741
27742 fi
27743
27744 rm -rf conftest.dSYM
27745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27746       conftest$ac_exeext conftest.$ac_ext
27747        fi
27748
27749
27750 fi
27751
27752
27753 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27754 $as_echo_n "checking for OpenSSL... " >&6; }
27755
27756 # Check whether --with-openssl was given.
27757 if test "${with_openssl+set}" = set; then
27758   withval=$with_openssl;
27759         with_openssl_directory=${withval}
27760
27761
27762 fi
27763
27764
27765 if test "x$with_openssl_directory" != "xno"; then
27766    OPENSSL_LIBS="-lssl -lcrypto"
27767    OPENSSL_INC=""
27768
27769    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27770       #
27771       # Make sure the $with_openssl_directory also makes sense
27772       #
27773       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27774          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27775          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27776       fi
27777    fi
27778
27779    saved_LIBS="${LIBS}"
27780    saved_CFLAGS="${CFLAGS}"
27781    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27782    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27783
27784    cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790
27791           #include <openssl/ssl.h>
27792
27793 int
27794 main ()
27795 {
27796
27797            CRYPTO_set_id_callback(NULL);
27798
27799   ;
27800   return 0;
27801 }
27802 _ACEOF
27803 rm -f conftest.$ac_objext conftest$ac_exeext
27804 if { (ac_try="$ac_link"
27805 case "(($ac_try" in
27806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807   *) ac_try_echo=$ac_try;;
27808 esac
27809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27810 $as_echo "$ac_try_echo") >&5
27811   (eval "$ac_link") 2>conftest.er1
27812   ac_status=$?
27813   grep -v '^ *+' conftest.er1 >conftest.err
27814   rm -f conftest.er1
27815   cat conftest.err >&5
27816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); } && {
27818          test -z "$ac_c_werror_flag" ||
27819          test ! -s conftest.err
27820        } && test -s conftest$ac_exeext && {
27821          test "$cross_compiling" = yes ||
27822          $as_test_x conftest$ac_exeext
27823        }; then
27824
27825           support_tls="yes"
27826           support_crypto="yes"
27827
27828 else
27829   $as_echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832
27833           support_tls="no"
27834           support_crypto="no"
27835
27836
27837 fi
27838
27839 rm -rf conftest.dSYM
27840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27841       conftest$ac_exeext conftest.$ac_ext
27842
27843    cat >conftest.$ac_ext <<_ACEOF
27844 /* confdefs.h.  */
27845 _ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h.  */
27849
27850           #include <openssl/evp.h>
27851
27852 int
27853 main ()
27854 {
27855
27856           EVP_sha512();
27857
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27869 $as_echo "$ac_try_echo") >&5
27870   (eval "$ac_link") 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } && {
27877          test -z "$ac_c_werror_flag" ||
27878          test ! -s conftest.err
27879        } && test -s conftest$ac_exeext && {
27880          test "$cross_compiling" = yes ||
27881          $as_test_x conftest$ac_exeext
27882        }; then
27883
27884           ac_cv_openssl_sha2="yes"
27885
27886 else
27887   $as_echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890
27891           ac_cv_openssl_sha2="no"
27892
27893
27894 fi
27895
27896 rm -rf conftest.dSYM
27897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27898       conftest$ac_exeext conftest.$ac_ext
27899
27900                cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906
27907           #include <openssl/evp.h>
27908
27909 int
27910 main ()
27911 {
27912
27913           EVP_aes_192_cbc();
27914
27915   ;
27916   return 0;
27917 }
27918 _ACEOF
27919 rm -f conftest.$ac_objext conftest$ac_exeext
27920 if { (ac_try="$ac_link"
27921 case "(($ac_try" in
27922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923   *) ac_try_echo=$ac_try;;
27924 esac
27925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27926 $as_echo "$ac_try_echo") >&5
27927   (eval "$ac_link") 2>conftest.er1
27928   ac_status=$?
27929   grep -v '^ *+' conftest.er1 >conftest.err
27930   rm -f conftest.er1
27931   cat conftest.err >&5
27932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); } && {
27934          test -z "$ac_c_werror_flag" ||
27935          test ! -s conftest.err
27936        } && test -s conftest$ac_exeext && {
27937          test "$cross_compiling" = yes ||
27938          $as_test_x conftest$ac_exeext
27939        }; then
27940
27941           ac_cv_openssl_export="no"
27942
27943 else
27944   $as_echo "$as_me: failed program was:" >&5
27945 sed 's/^/| /' conftest.$ac_ext >&5
27946
27947
27948           ac_cv_openssl_export="yes"
27949
27950
27951 fi
27952
27953 rm -rf conftest.dSYM
27954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27955       conftest$ac_exeext conftest.$ac_ext
27956
27957    if test "$support_tls" = "yes"; then
27958
27959 cat >>confdefs.h <<\_ACEOF
27960 #define HAVE_OPENSSL 1
27961 _ACEOF
27962
27963
27964 cat >>confdefs.h <<\_ACEOF
27965 #define HAVE_TLS 1
27966 _ACEOF
27967
27968
27969 cat >>confdefs.h <<\_ACEOF
27970 #define HAVE_CRYPTO 1
27971 _ACEOF
27972
27973    fi
27974
27975    if test "$ac_cv_openssl_sha2" = "yes"; then
27976
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_SHA2 1
27979 _ACEOF
27980
27981    fi
27982
27983    if test "$ac_cv_openssl_export" = "yes"; then
27984
27985 cat >>confdefs.h <<\_ACEOF
27986 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27987 _ACEOF
27988
27989    fi
27990
27991    if test "$support_crypto" = "yes"; then
27992       { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
27993 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
27994 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then
27995   $as_echo_n "(cached) " >&6
27996 else
27997   ac_check_lib_save_LIBS=$LIBS
27998 LIBS="-lcrypto  $LIBS"
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005
28006 /* Override any GCC internal prototype to avoid an error.
28007    Use char because int might match the return type of a GCC
28008    builtin and then its argument prototype would still apply.  */
28009 #ifdef __cplusplus
28010 extern "C"
28011 #endif
28012 char EVP_PKEY_encrypt_old ();
28013 int
28014 main ()
28015 {
28016 return EVP_PKEY_encrypt_old ();
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (ac_try="$ac_link"
28023 case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28028 $as_echo "$ac_try_echo") >&5
28029   (eval "$ac_link") 2>conftest.er1
28030   ac_status=$?
28031   grep -v '^ *+' conftest.er1 >conftest.err
28032   rm -f conftest.er1
28033   cat conftest.err >&5
28034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); } && {
28036          test -z "$ac_c_werror_flag" ||
28037          test ! -s conftest.err
28038        } && test -s conftest$ac_exeext && {
28039          test "$cross_compiling" = yes ||
28040          $as_test_x conftest$ac_exeext
28041        }; then
28042   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
28043 else
28044   $as_echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28046
28047         ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
28048 fi
28049
28050 rm -rf conftest.dSYM
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052       conftest$ac_exeext conftest.$ac_ext
28053 LIBS=$ac_check_lib_save_LIBS
28054 fi
28055 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
28056 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
28057 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then
28058
28059 cat >>confdefs.h <<\_ACEOF
28060 #define HAVE_OPENSSLv1 1
28061 _ACEOF
28062
28063 fi
28064
28065    fi
28066
28067    LIBS="${saved_LIBS}"
28068    CFLAGS="${saved_CFLAGS}"
28069 else
28070    support_tls="no"
28071    support_crypto="no"
28072    OPENSSL_LIBS=""
28073    OPENSSL_INC=""
28074 fi
28075 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
28076 $as_echo "$support_tls" >&6; }
28077
28078 if test "$support_tls" = "no"; then
28079    OPENSSL_LIBS=""
28080    OPENSSL_INC=""
28081 fi
28082 if test "$support_crypto" = "no"; then
28083    OPENSSL_LIBS=""
28084    OPENSSL_INC=""
28085 fi
28086
28087
28088
28089
28090 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
28091 $as_echo_n "checking for library containing dlopen... " >&6; }
28092 if test "${ac_cv_search_dlopen+set}" = set; then
28093   $as_echo_n "(cached) " >&6
28094 else
28095   ac_func_search_save_LIBS=$LIBS
28096 cat >conftest.$ac_ext <<_ACEOF
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102
28103 /* Override any GCC internal prototype to avoid an error.
28104    Use char because int might match the return type of a GCC
28105    builtin and then its argument prototype would still apply.  */
28106 #ifdef __cplusplus
28107 extern "C"
28108 #endif
28109 char dlopen ();
28110 int
28111 main ()
28112 {
28113 return dlopen ();
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 for ac_lib in '' dl; do
28119   if test -z "$ac_lib"; then
28120     ac_res="none required"
28121   else
28122     ac_res=-l$ac_lib
28123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28124   fi
28125   rm -f conftest.$ac_objext conftest$ac_exeext
28126 if { (ac_try="$ac_link"
28127 case "(($ac_try" in
28128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28129   *) ac_try_echo=$ac_try;;
28130 esac
28131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28132 $as_echo "$ac_try_echo") >&5
28133   (eval "$ac_link") 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } && {
28140          test -z "$ac_c_werror_flag" ||
28141          test ! -s conftest.err
28142        } && test -s conftest$ac_exeext && {
28143          test "$cross_compiling" = yes ||
28144          $as_test_x conftest$ac_exeext
28145        }; then
28146   ac_cv_search_dlopen=$ac_res
28147 else
28148   $as_echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151
28152 fi
28153
28154 rm -rf conftest.dSYM
28155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28156       conftest$ac_exeext
28157   if test "${ac_cv_search_dlopen+set}" = set; then
28158   break
28159 fi
28160 done
28161 if test "${ac_cv_search_dlopen+set}" = set; then
28162   :
28163 else
28164   ac_cv_search_dlopen=no
28165 fi
28166 rm conftest.$ac_ext
28167 LIBS=$ac_func_search_save_LIBS
28168 fi
28169 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28170 $as_echo "$ac_cv_search_dlopen" >&6; }
28171 ac_res=$ac_cv_search_dlopen
28172 if test "$ac_res" != no; then
28173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28174
28175 fi
28176
28177
28178 working_dir=`eval echo ${prefix}/var/bacula/working`
28179
28180 # Check whether --with-working-dir was given.
28181 if test "${with_working_dir+set}" = set; then
28182   withval=$with_working_dir;
28183        if test "x$withval" != "xno" ; then
28184          working_dir=$withval
28185        fi
28186
28187
28188 fi
28189
28190
28191
28192
28193 archivedir=/tmp
28194
28195 # Check whether --with-archivedir was given.
28196 if test "${with_archivedir+set}" = set; then
28197   withval=$with_archivedir;
28198        if test "x$withval" != "xno" ; then
28199           archivedir=$withval
28200        fi
28201
28202
28203 fi
28204
28205
28206
28207
28208 basename=`hostname`
28209
28210 # Check whether --with-basename was given.
28211 if test "${with_basename+set}" = set; then
28212   withval=$with_basename;
28213        if test "x$withval" != "xno" ; then
28214           basename=$withval
28215        fi
28216
28217
28218 fi
28219
28220
28221
28222
28223 hostname=`uname -n | cut -d '.' -f 1`
28224 if test x${hostname} = x ; then
28225   hostname="localhost"
28226 fi
28227
28228 # Check whether --with-hostname was given.
28229 if test "${with_hostname+set}" = set; then
28230   withval=$with_hostname;
28231        if test "x$withval" != "xno" ; then
28232          hostname=$withval
28233        fi
28234
28235
28236 fi
28237
28238
28239
28240
28241
28242 scriptdir=`eval echo ${sysconfdir}`
28243
28244 # Check whether --with-scriptdir was given.
28245 if test "${with_scriptdir+set}" = set; then
28246   withval=$with_scriptdir;
28247        if test "x$withval" != "xno" ; then
28248           scriptdir=$withval
28249        fi
28250
28251
28252 fi
28253
28254
28255
28256
28257
28258 bsrdir=/tmp
28259
28260 # Check whether --with-bsrdir was given.
28261 if test "${with_bsrdir+set}" = set; then
28262   withval=$with_bsrdir;
28263        if test "x$withval" != "xno" ; then
28264           bsrdir=$withval
28265        fi
28266
28267
28268 fi
28269
28270
28271
28272
28273 logdir=/tmp
28274
28275 # Check whether --with-logdir was given.
28276 if test "${with_logdir+set}" = set; then
28277   withval=$with_logdir;
28278        if test "x$withval" != "xno" ; then
28279           logdir=$withval
28280        fi
28281
28282
28283 fi
28284
28285
28286
28287
28288
28289 # ------------------------------------------
28290 # Where to place plugindir (plugin files)
28291 # ------------------------------------------
28292 plugindir=`eval echo ${libdir}`
28293
28294 # Check whether --with-plugindir was given.
28295 if test "${with_plugindir+set}" = set; then
28296   withval=$with_plugindir;
28297        if test "x$withval" != "xno" ; then
28298           plugindir=$withval
28299        fi
28300
28301
28302 fi
28303
28304
28305
28306
28307 dump_email=root@localhost
28308
28309 # Check whether --with-dump-email was given.
28310 if test "${with_dump_email+set}" = set; then
28311   withval=$with_dump_email;
28312        if test "x$withval" != "xno" ; then
28313           dump_email=$withval
28314        fi
28315
28316
28317 fi
28318
28319
28320
28321
28322 job_email=root@localhost
28323
28324 # Check whether --with-job-email was given.
28325 if test "${with_job_email+set}" = set; then
28326   withval=$with_job_email;
28327        if test "x$withval" != "xno" ; then
28328           job_email=$withval
28329        fi
28330
28331
28332 fi
28333
28334
28335
28336
28337 smtp_host=localhost
28338
28339 # Check whether --with-smtp_host was given.
28340 if test "${with_smtp_host+set}" = set; then
28341   withval=$with_smtp_host;
28342        if test "x$withval" != "xno" ; then
28343           smtp_host=$withval
28344        fi
28345
28346
28347 fi
28348
28349
28350
28351
28352 piddir=/var/run
28353
28354 # Check whether --with-pid-dir was given.
28355 if test "${with_pid_dir+set}" = set; then
28356   withval=$with_pid_dir;
28357        if test "x$withval" != "xno" ; then
28358           piddir=$withval
28359        fi
28360
28361
28362 fi
28363
28364
28365 cat >>confdefs.h <<_ACEOF
28366 #define _PATH_BACULA_PIDDIR "$piddir"
28367 _ACEOF
28368
28369
28370
28371 subsysdir=/var/run/subsys
28372 if test -d /var/run/subsys; then
28373    subsysdir=/var/run/subsys
28374 elif test -d /var/lock/subsys; then
28375    subsysdir=/var/lock/subsys
28376 else
28377    subsysdir=/var/run/subsys
28378 fi
28379
28380 # Check whether --with-subsys-dir was given.
28381 if test "${with_subsys_dir+set}" = set; then
28382   withval=$with_subsys_dir;
28383        if test "x$withval" != "xno" ; then
28384           subsysdir=$withval
28385        fi
28386
28387
28388 fi
28389
28390
28391
28392
28393 baseport=9101
28394
28395 # Check whether --with-baseport was given.
28396 if test "${with_baseport+set}" = set; then
28397   withval=$with_baseport;
28398        if test "x$withval" != "xno" ; then
28399           baseport=$withval
28400        fi
28401
28402
28403 fi
28404
28405
28406
28407 dir_port=`expr $baseport`
28408 fd_port=`expr $baseport + 1`
28409 sd_port=`expr $fd_port + 1`
28410
28411
28412
28413
28414
28415 dir_password=
28416
28417 # Check whether --with-dir-password was given.
28418 if test "${with_dir_password+set}" = set; then
28419   withval=$with_dir_password;
28420        if test "x$withval" != "xno" ; then
28421           dir_password=$withval
28422        fi
28423
28424
28425 fi
28426
28427
28428 if test "x$dir_password" = "x" ; then
28429    if test "x$OPENSSL" = "xnone" ; then
28430       key=`autoconf/randpass 33`
28431    else
28432       key=`openssl rand -base64 33`
28433    fi
28434    dir_password=$key
28435 fi
28436
28437 fd_password=
28438
28439 # Check whether --with-fd-password was given.
28440 if test "${with_fd_password+set}" = set; then
28441   withval=$with_fd_password;
28442        if test "x$withval" != "xno" ; then
28443           fd_password=$withval
28444        fi
28445
28446
28447 fi
28448
28449
28450 if test "x$fd_password" = "x" ; then
28451    if test "x$OPENSSL" = "xnone" ; then
28452       key=`autoconf/randpass 37`
28453    else
28454       key=`openssl rand -base64 33`
28455    fi
28456    fd_password=$key
28457 fi
28458
28459 sd_password=
28460
28461 # Check whether --with-sd-password was given.
28462 if test "${with_sd_password+set}" = set; then
28463   withval=$with_sd_password;
28464        if test "x$withval" != "xno" ; then
28465           sd_password=$withval
28466        fi
28467
28468
28469 fi
28470
28471
28472 if test "x$sd_password" = "x" ; then
28473    if test "x$OPENSSL" = "xnone" ; then
28474       key=`autoconf/randpass 41`
28475    else
28476       key=`openssl rand -base64 33`
28477    fi
28478    sd_password=$key
28479 fi
28480
28481 mon_dir_password=
28482
28483 # Check whether --with-mon-dir-password was given.
28484 if test "${with_mon_dir_password+set}" = set; then
28485   withval=$with_mon_dir_password;
28486        if test "x$withval" != "xno" ; then
28487           mon_dir_password=$withval
28488        fi
28489
28490
28491 fi
28492
28493
28494 if test "x$mon_dir_password" = "x" ; then
28495    if test "x$OPENSSL" = "xnone" ; then
28496       key=`autoconf/randpass 33`
28497    else
28498       key=`openssl rand -base64 33`
28499    fi
28500    mon_dir_password=$key
28501 fi
28502
28503 mon_fd_password=
28504
28505 # Check whether --with-mon-fd-password was given.
28506 if test "${with_mon_fd_password+set}" = set; then
28507   withval=$with_mon_fd_password;
28508        if test "x$withval" != "xno" ; then
28509           mon_fd_password=$withval
28510        fi
28511
28512
28513 fi
28514
28515
28516 if test "x$mon_fd_password" = "x" ; then
28517    if test "x$OPENSSL" = "xnone" ; then
28518       key=`autoconf/randpass 37`
28519    else
28520       key=`openssl rand -base64 33`
28521    fi
28522    mon_fd_password=$key
28523 fi
28524
28525 mon_sd_password=
28526
28527 # Check whether --with-mon-sd-password was given.
28528 if test "${with_mon_sd_password+set}" = set; then
28529   withval=$with_mon_sd_password;
28530        if test "x$withval" != "xno" ; then
28531           mon_sd_password=$withval
28532        fi
28533
28534
28535 fi
28536
28537
28538 if test "x$mon_sd_password" = "x" ; then
28539    if test "x$OPENSSL" = "xnone" ; then
28540       key=`autoconf/randpass 41`
28541    else
28542       key=`openssl rand -base64 33`
28543    fi
28544    mon_sd_password=$key
28545 fi
28546
28547
28548
28549
28550
28551
28552
28553
28554 db_name=bacula
28555
28556 # Check whether --with-db_name was given.
28557 if test "${with_db_name+set}" = set; then
28558   withval=$with_db_name;
28559        if test "x$withval" != "x" ; then
28560           db_name=$withval
28561        fi
28562
28563
28564 fi
28565
28566
28567
28568 db_user=bacula
28569
28570 # Check whether --with-db_user was given.
28571 if test "${with_db_user+set}" = set; then
28572   withval=$with_db_user;
28573        if test "x$withval" != "x" ; then
28574           db_user=$withval
28575        fi
28576
28577
28578 fi
28579
28580
28581
28582 db_password=
28583
28584 # Check whether --with-db_password was given.
28585 if test "${with_db_password+set}" = set; then
28586   withval=$with_db_password;
28587        if test "x$withval" != "x" ; then
28588           db_password=$withval
28589        fi
28590
28591
28592 fi
28593
28594
28595
28596 db_port=" "
28597
28598 # Check whether --with-db_port was given.
28599 if test "${with_db_port+set}" = set; then
28600   withval=$with_db_port;
28601        if test "x$withval" != "x" ; then
28602           db_port=$withval
28603        fi
28604
28605
28606 fi
28607
28608
28609
28610 #
28611 # Handle users and groups for each daemon
28612 #
28613 dir_user=
28614
28615 # Check whether --with-dir_user was given.
28616 if test "${with_dir_user+set}" = set; then
28617   withval=$with_dir_user;
28618        if test "x$withval" != "x" ; then
28619            dir_user=$withval
28620        fi
28621
28622
28623 fi
28624
28625
28626 dir_group=
28627
28628 # Check whether --with-dir_group was given.
28629 if test "${with_dir_group+set}" = set; then
28630   withval=$with_dir_group;
28631        if test "x$withval" != "x" ; then
28632           dir_group=$withval
28633        fi
28634
28635
28636 fi
28637
28638
28639 sd_user=
28640
28641 # Check whether --with-sd_user was given.
28642 if test "${with_sd_user+set}" = set; then
28643   withval=$with_sd_user;
28644        if test "x$withval" != "x" ; then
28645           sd_user=$withval
28646        fi
28647
28648
28649 fi
28650
28651
28652 sd_group=
28653
28654 # Check whether --with-sd_group was given.
28655 if test "${with_sd_group+set}" = set; then
28656   withval=$with_sd_group;
28657        if test "x$withval" != "x" ; then
28658           sd_group=$withval
28659        fi
28660
28661
28662 fi
28663
28664
28665 fd_user=
28666
28667 # Check whether --with-fd_user was given.
28668 if test "${with_fd_user+set}" = set; then
28669   withval=$with_fd_user;
28670        if test "x$withval" != "x" ; then
28671           fd_user=$withval
28672        fi
28673
28674
28675 fi
28676
28677
28678 fd_group=
28679
28680 # Check whether --with-fd_group was given.
28681 if test "${with_fd_group+set}" = set; then
28682   withval=$with_fd_group;
28683        if test "x$withval" != "x" ; then
28684           fd_group=$withval
28685        fi
28686
28687
28688 fi
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698 SBINPERM=0750
28699
28700 # Check whether --with-sbin-perm was given.
28701 if test "${with_sbin_perm+set}" = set; then
28702   withval=$with_sbin_perm;
28703        if test "x$withval" != "x" ; then
28704           SBINPERM=$withval
28705        fi
28706
28707
28708 fi
28709
28710
28711
28712
28713
28714 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28715 $as_echo_n "checking for PostgreSQL support... " >&6; }
28716
28717 # Check whether --with-postgresql was given.
28718 if test "${with_postgresql+set}" = set; then
28719   withval=$with_postgresql;
28720   if test "$withval" != "no"; then
28721       if test "$withval" = "yes"; then
28722           PG_CONFIG=`which pg_config`
28723           if test -n "$PG_CONFIG"; then
28724               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28725               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28726               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28727           elif test -f /usr/local/include/libpq-fe.h; then
28728               POSTGRESQL_INCDIR=/usr/local/include
28729               if test -d /usr/local/lib64; then
28730                  POSTGRESQL_LIBDIR=/usr/local/lib64
28731               else
28732                  POSTGRESQL_LIBDIR=/usr/local/lib
28733               fi
28734               POSTGRESQL_BINDIR=/usr/local/bin
28735           elif test -f /usr/include/libpq-fe.h; then
28736               POSTGRESQL_INCDIR=/usr/include
28737               if test -d /usr/lib64; then
28738                  POSTGRESQL_LIBDIR=/usr/lib64
28739               else
28740                  POSTGRESQL_LIBDIR=/usr/lib
28741               fi
28742               POSTGRESQL_BINDIR=/usr/bin
28743           elif test -f /usr/include/pgsql/libpq-fe.h; then
28744               POSTGRESQL_INCDIR=/usr/include/pgsql
28745               if test -d /usr/lib64/pgsql; then
28746                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28747               else
28748                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28749               fi
28750               POSTGRESQL_BINDIR=/usr/bin
28751           elif test -f /usr/include/postgresql/libpq-fe.h; then
28752               POSTGRESQL_INCDIR=/usr/include/postgresql
28753               if test -d /usr/lib64/postgresql; then
28754                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28755               else
28756                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28757               fi
28758               POSTGRESQL_BINDIR=/usr/bin
28759           else
28760               { $as_echo "$as_me:$LINENO: result: no" >&5
28761 $as_echo "no" >&6; }
28762               { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28763 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28764    { (exit 1); exit 1; }; }
28765           fi
28766       elif test -f $withval/include/libpq-fe.h; then
28767           POSTGRESQL_INCDIR=$withval/include
28768           POSTGRESQL_LIBDIR=$withval/lib
28769           POSTGRESQL_BINDIR=$withval/bin
28770       elif test -f $withval/include/postgresql/libpq-fe.h; then
28771           POSTGRESQL_INCDIR=$withval/include/postgresql
28772           if test -d $withval/lib64; then
28773               POSTGRESQL_LIBDIR=$withval/lib64
28774           else
28775               POSTGRESQL_LIBDIR=$withval/lib
28776           fi
28777           POSTGRESQL_BINDIR=$withval/bin
28778       else
28779           { $as_echo "$as_me:$LINENO: result: no" >&5
28780 $as_echo "no" >&6; }
28781           { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28782 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28783    { (exit 1); exit 1; }; }
28784       fi
28785
28786 cat >>confdefs.h <<\_ACEOF
28787 #define HAVE_POSTGRESQL 1
28788 _ACEOF
28789
28790      { $as_echo "$as_me:$LINENO: result: yes" >&5
28791 $as_echo "yes" >&6; }
28792
28793      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
28794      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
28795      { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28796 $as_echo_n "checking for crypt... " >&6; }
28797 if test "${ac_cv_func_crypt+set}" = set; then
28798   $as_echo_n "(cached) " >&6
28799 else
28800   cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28808 #define crypt innocuous_crypt
28809
28810 /* System header to define __stub macros and hopefully few prototypes,
28811     which can conflict with char crypt (); below.
28812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28813     <limits.h> exists even on freestanding compilers.  */
28814
28815 #ifdef __STDC__
28816 # include <limits.h>
28817 #else
28818 # include <assert.h>
28819 #endif
28820
28821 #undef crypt
28822
28823 /* Override any GCC internal prototype to avoid an error.
28824    Use char because int might match the return type of a GCC
28825    builtin and then its argument prototype would still apply.  */
28826 #ifdef __cplusplus
28827 extern "C"
28828 #endif
28829 char crypt ();
28830 /* The GNU C library defines this for functions which it implements
28831     to always fail with ENOSYS.  Some functions are actually named
28832     something starting with __ and the normal name is an alias.  */
28833 #if defined __stub_crypt || defined __stub___crypt
28834 choke me
28835 #endif
28836
28837 int
28838 main ()
28839 {
28840 return crypt ();
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849   *) ac_try_echo=$ac_try;;
28850 esac
28851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28852 $as_echo "$ac_try_echo") >&5
28853   (eval "$ac_link") 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } && {
28860          test -z "$ac_c_werror_flag" ||
28861          test ! -s conftest.err
28862        } && test -s conftest$ac_exeext && {
28863          test "$cross_compiling" = yes ||
28864          $as_test_x conftest$ac_exeext
28865        }; then
28866   ac_cv_func_crypt=yes
28867 else
28868   $as_echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28870
28871         ac_cv_func_crypt=no
28872 fi
28873
28874 rm -rf conftest.dSYM
28875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28876       conftest$ac_exeext conftest.$ac_ext
28877 fi
28878 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28879 $as_echo "$ac_cv_func_crypt" >&6; }
28880 if test "x$ac_cv_func_crypt" = x""yes; then
28881   :
28882 else
28883   { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28884 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28885 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28886   $as_echo_n "(cached) " >&6
28887 else
28888   ac_check_lib_save_LIBS=$LIBS
28889 LIBS="-lcrypt  $LIBS"
28890 cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h.  */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h.  */
28896
28897 /* Override any GCC internal prototype to avoid an error.
28898    Use char because int might match the return type of a GCC
28899    builtin and then its argument prototype would still apply.  */
28900 #ifdef __cplusplus
28901 extern "C"
28902 #endif
28903 char crypt ();
28904 int
28905 main ()
28906 {
28907 return crypt ();
28908   ;
28909   return 0;
28910 }
28911 _ACEOF
28912 rm -f conftest.$ac_objext conftest$ac_exeext
28913 if { (ac_try="$ac_link"
28914 case "(($ac_try" in
28915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916   *) ac_try_echo=$ac_try;;
28917 esac
28918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28919 $as_echo "$ac_try_echo") >&5
28920   (eval "$ac_link") 2>conftest.er1
28921   ac_status=$?
28922   grep -v '^ *+' conftest.er1 >conftest.err
28923   rm -f conftest.er1
28924   cat conftest.err >&5
28925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); } && {
28927          test -z "$ac_c_werror_flag" ||
28928          test ! -s conftest.err
28929        } && test -s conftest$ac_exeext && {
28930          test "$cross_compiling" = yes ||
28931          $as_test_x conftest$ac_exeext
28932        }; then
28933   ac_cv_lib_crypt_crypt=yes
28934 else
28935   $as_echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28937
28938         ac_cv_lib_crypt_crypt=no
28939 fi
28940
28941 rm -rf conftest.dSYM
28942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28943       conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28945 fi
28946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28947 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28948 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28949   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
28950 fi
28951
28952 fi
28953
28954      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28955      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
28956
28957      if test -z "${db_backends}"; then
28958          db_backends="PostgreSQL"
28959      else
28960          db_backends="${db_backends} PostgreSQL"
28961      fi
28962      if test -z "${DB_BACKENDS}"; then
28963          DB_BACKENDS="postgresql"
28964      else
28965          DB_BACKENDS="${DB_BACKENDS} postgresql"
28966      fi
28967   else
28968      { $as_echo "$as_me:$LINENO: result: no" >&5
28969 $as_echo "no" >&6; }
28970   fi
28971
28972 else
28973
28974   { $as_echo "$as_me:$LINENO: result: no" >&5
28975 $as_echo "no" >&6; }
28976
28977 fi
28978
28979
28980
28981
28982
28983
28984
28985
28986 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28987 $as_echo_n "checking for MySQL support... " >&6; }
28988
28989 # Check whether --with-mysql was given.
28990 if test "${with_mysql+set}" = set; then
28991   withval=$with_mysql;
28992   if test "$withval" != "no"; then
28993         if test "$withval" = "yes"; then
28994            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28995                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28996                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28997                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28998                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28999                    else
29000                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29001                    fi
29002                    MYSQL_BINDIR=/usr/local/mysql/bin
29003            elif test -f /usr/include/mysql/mysql.h; then
29004                    MYSQL_INCDIR=/usr/include/mysql
29005                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29006                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29007                            MYSQL_LIBDIR=/usr/lib64/mysql
29008                    elif test -f /usr/lib64/libmysqlclient_r.a \
29009                         -o -f /usr/lib64/libmysqlclient_r.so; then
29010                            MYSQL_LIBDIR=/usr/lib64
29011                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29012                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29013                            MYSQL_LIBDIR=/usr/lib/mysql
29014                    else
29015                            MYSQL_LIBDIR=/usr/lib
29016                    fi
29017                    MYSQL_BINDIR=/usr/bin
29018            elif test -f /usr/include/mysql.h; then
29019                    MYSQL_INCDIR=/usr/include
29020                    if test -f /usr/lib64/libmysqlclient_r.a \
29021                         -o -f /usr/lib64/libmysqlclient_r.so; then
29022                            MYSQL_LIBDIR=/usr/lib64
29023                    else
29024                            MYSQL_LIBDIR=/usr/lib
29025                    fi
29026                    MYSQL_BINDIR=/usr/bin
29027            elif test -f /usr/local/include/mysql/mysql.h; then
29028                    MYSQL_INCDIR=/usr/local/include/mysql
29029                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29030                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29031                            MYSQL_LIBDIR=/usr/local/lib64/mysql
29032                    else
29033                            MYSQL_LIBDIR=/usr/local/lib/mysql
29034                    fi
29035                    MYSQL_BINDIR=/usr/local/bin
29036            elif test -f /usr/local/include/mysql.h; then
29037                    MYSQL_INCDIR=/usr/local/include
29038                    if test -f /usr/local/lib64/libmysqlclient_r.a \
29039                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
29040                            MYSQL_LIBDIR=/usr/local/lib64
29041                    else
29042                            MYSQL_LIBDIR=/usr/local/lib
29043                    fi
29044                    MYSQL_BINDIR=/usr/local/bin
29045            else
29046               { $as_echo "$as_me:$LINENO: result: no" >&5
29047 $as_echo "no" >&6; }
29048               { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29049 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29050    { (exit 1); exit 1; }; }
29051            fi
29052         else
29053            if test -f $withval/include/mysql/mysql.h; then
29054               MYSQL_INCDIR=$withval/include/mysql
29055               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29056                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29057                  MYSQL_LIBDIR=$withval/lib64/mysql
29058               elif test -f $withval/lib64/libmysqlclient_r.a \
29059                    -o -f $withval/lib64/libmysqlclient_r.so; then
29060                  MYSQL_LIBDIR=$withval/lib64
29061               elif test -f $withval/lib/libmysqlclient_r.a \
29062                    -o -f $withval/lib/libmysqlclient_r.so; then
29063                  MYSQL_LIBDIR=$withval/lib
29064               else
29065                  MYSQL_LIBDIR=$withval/lib/mysql
29066               fi
29067               MYSQL_BINDIR=$withval/bin
29068            elif test -f $withval/include/mysql.h; then
29069               MYSQL_INCDIR=$withval/include
29070               if test -f $withval/lib64/libmysqlclient_r.a \
29071                    -o -f $withval/lib64/libmysqlclient_r.so; then
29072                  MYSQL_LIBDIR=$withval/lib64
29073               else
29074                  MYSQL_LIBDIR=$withval/lib
29075               fi
29076               MYSQL_BINDIR=$withval/bin
29077            else
29078               { $as_echo "$as_me:$LINENO: result: no" >&5
29079 $as_echo "no" >&6; }
29080               { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29081 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29082    { (exit 1); exit 1; }; }
29083            fi
29084         fi
29085      MYSQL_INCLUDE=-I$MYSQL_INCDIR
29086      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
29087           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
29088         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
29089
29090 cat >>confdefs.h <<\_ACEOF
29091 #define HAVE_THREAD_SAFE_MYSQL 1
29092 _ACEOF
29093
29094         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
29095      fi
29096      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29097
29098
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE_MYSQL 1
29101 _ACEOF
29102
29103      { $as_echo "$as_me:$LINENO: result: yes" >&5
29104 $as_echo "yes" >&6; }
29105
29106      if test -z "${db_backends}" ; then
29107          db_backends="MySQL"
29108      else
29109          db_backends="${db_backends} MySQL"
29110      fi
29111      if test -z "${DB_BACKENDS}" ; then
29112          DB_BACKENDS="mysql"
29113      else
29114          DB_BACKENDS="${DB_BACKENDS} mysql"
29115      fi
29116   else
29117      { $as_echo "$as_me:$LINENO: result: no" >&5
29118 $as_echo "no" >&6; }
29119   fi
29120
29121
29122 fi
29123
29124
29125
29126 # Check whether --with-embedded-mysql was given.
29127 if test "${with_embedded_mysql+set}" = set; then
29128   withval=$with_embedded_mysql;
29129   if test "$withval" != "no"; then
29130         if test "$withval" = "yes"; then
29131                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29132                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
29133                         if test -d /usr/local/mysql/lib64/mysql; then
29134                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29135                         else
29136                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29137                         fi
29138                         MYSQL_BINDIR=/usr/local/mysql/bin
29139                 elif test -f /usr/include/mysql/mysql.h; then
29140                         MYSQL_INCDIR=/usr/include/mysql
29141                         if test -d /usr/lib64/mysql; then
29142                                 MYSQL_LIBDIR=/usr/lib64/mysql
29143                         else
29144                                 MYSQL_LIBDIR=/usr/lib/mysql
29145                         fi
29146                         MYSQL_BINDIR=/usr/bin
29147                 elif test -f /usr/include/mysql.h; then
29148                         MYSQL_INCDIR=/usr/include
29149                         if test -d /usr/lib64; then
29150                                 MYSQL_LIBDIR=/usr/lib64
29151                         else
29152                                 MYSQL_LIBDIR=/usr/lib
29153                         fi
29154                         MYSQL_BINDIR=/usr/bin
29155                 elif test -f /usr/local/include/mysql/mysql.h; then
29156                         MYSQL_INCDIR=/usr/local/include/mysql
29157                         if test -d /usr/local/lib64/mysql; then
29158                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
29159                         else
29160                                 MYSQL_LIBDIR=/usr/local/lib/mysql
29161                         fi
29162                         MYSQL_BINDIR=/usr/local/bin
29163                 elif test -f /usr/local/include/mysql.h; then
29164                         MYSQL_INCDIR=/usr/local/include
29165                         if test -d /usr/local/lib64; then
29166                                 MYSQL_LIBDIR=/usr/local/lib64
29167                         else
29168                                 MYSQL_LIBDIR=/usr/local/lib
29169                         fi
29170                         MYSQL_BINDIR=/usr/local/bin
29171                 else
29172                    { $as_echo "$as_me:$LINENO: result: no" >&5
29173 $as_echo "no" >&6; }
29174                    { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29175 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29176    { (exit 1); exit 1; }; }
29177                 fi
29178         else
29179                 if test -f $withval/include/mysql/mysql.h; then
29180                         MYSQL_INCDIR=$withval/include/mysql
29181                         if test -d $withval/lib64/mysql; then
29182                                 MYSQL_LIBDIR=$withval/lib64/mysql
29183                         else
29184                                 MYSQL_LIBDIR=$withval/lib/mysql
29185                         fi
29186                         MYSQL_BINDIR=$withval/bin
29187                 elif test -f $withval/include/mysql.h; then
29188                         MYSQL_INCDIR=$withval/include
29189                         if test -d $withval/lib64; then
29190                                 MYSQL_LIBDIR=$withval/lib64
29191                         else
29192                                 MYSQL_LIBDIR=$withval/lib
29193                         fi
29194                         MYSQL_BINDIR=$withval/bin
29195                 else
29196                    { $as_echo "$as_me:$LINENO: result: no" >&5
29197 $as_echo "no" >&6; }
29198                    { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29199 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29200    { (exit 1); exit 1; }; }
29201                 fi
29202         fi
29203      MYSQL_INCLUDE=-I$MYSQL_INCDIR
29204      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29205      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29206      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
29207
29208
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_MYSQL 1
29211 _ACEOF
29212
29213
29214 cat >>confdefs.h <<\_ACEOF
29215 #define HAVE_EMBEDDED_MYSQL 1
29216 _ACEOF
29217
29218      { $as_echo "$as_me:$LINENO: result: yes" >&5
29219 $as_echo "yes" >&6; }
29220
29221      if test -z "${db_backends}"; then
29222          db_backends="MySQL"
29223      else
29224          db_backends="${db_backends} MySQL"
29225      fi
29226      if test -z "${DB_BACKENDS}"; then
29227          DB_BACKENDS="mysql"
29228      else
29229          DB_BACKENDS="${DB_BACKENDS} mysql"
29230      fi
29231   else
29232      { $as_echo "$as_me:$LINENO: result: no" >&5
29233 $as_echo "no" >&6; }
29234   fi
29235
29236
29237 fi
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29248 $as_echo_n "checking for SQLite3 support... " >&6; }
29249
29250 # Check whether --with-sqlite3 was given.
29251 if test "${with_sqlite3+set}" = set; then
29252   withval=$with_sqlite3;
29253   if test "$withval" != "no"; then
29254      if test "$withval" = "yes"; then
29255         if test -f /usr/local/include/sqlite3.h; then
29256            SQLITE_INCDIR=/usr/local/include
29257            if test -d /usr/local/lib64; then
29258               SQLITE_LIBDIR=/usr/local/lib64
29259            else
29260               SQLITE_LIBDIR=/usr/local/lib
29261            fi
29262            SQLITE_BINDIR=/usr/local/bin
29263         elif test -f /usr/include/sqlite3.h; then
29264            SQLITE_INCDIR=/usr/include
29265            if test -d /usr/lib64; then
29266               SQLITE_LIBDIR=/usr/lib64
29267            else
29268               SQLITE_LIBDIR=/usr/lib
29269            fi
29270            SQLITE_BINDIR=/usr/bin
29271         elif test -f $prefix/include/sqlite3.h; then
29272            SQLITE_INCDIR=$prefix/include
29273            if test -d $prefix/lib64; then
29274               SQLITE_LIBDIR=$prefix/lib64
29275            else
29276               SQLITE_LIBDIR=$prefix/lib
29277            fi
29278            SQLITE_BINDIR=$prefix/bin
29279         else
29280            { $as_echo "$as_me:$LINENO: result: no" >&5
29281 $as_echo "no" >&6; }
29282            { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29283 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29284    { (exit 1); exit 1; }; }
29285         fi
29286      else
29287         if test -f $withval/sqlite3.h; then
29288            SQLITE_INCDIR=$withval
29289            SQLITE_LIBDIR=$withval
29290            SQLITE_BINDIR=$withval
29291         elif test -f $withval/include/sqlite3.h; then
29292            SQLITE_INCDIR=$withval/include
29293            if test -d $withval/lib64; then
29294               SQLITE_LIBDIR=$withval/lib64
29295            else
29296               SQLITE_LIBDIR=$withval/lib
29297            fi
29298            SQLITE_BINDIR=$withval/bin
29299         else
29300            { $as_echo "$as_me:$LINENO: result: no" >&5
29301 $as_echo "no" >&6; }
29302            { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29303 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29304    { (exit 1); exit 1; }; }
29305         fi
29306      fi
29307      SQLITE_INCLUDE=-I$SQLITE_INCDIR
29308      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
29309      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
29310      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
29311
29312
29313 cat >>confdefs.h <<\_ACEOF
29314 #define HAVE_SQLITE3 1
29315 _ACEOF
29316
29317      { $as_echo "$as_me:$LINENO: result: yes" >&5
29318 $as_echo "yes" >&6; }
29319
29320      if test -z "${db_backends}"; then
29321          db_backends="SQLite3"
29322      else
29323          db_backends="${db_backends} SQLite3"
29324      fi
29325      if test -z "${DB_BACKENDS}"; then
29326          DB_BACKENDS="sqlite3"
29327      else
29328          DB_BACKENDS="${DB_BACKENDS} sqlite3"
29329      fi
29330   else
29331      { $as_echo "$as_me:$LINENO: result: no" >&5
29332 $as_echo "no" >&6; }
29333   fi
29334
29335 else
29336
29337   { $as_echo "$as_me:$LINENO: result: no" >&5
29338 $as_echo "no" >&6; }
29339
29340 fi
29341
29342
29343
29344
29345
29346
29347
29348
29349 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29350 $as_echo_n "checking for Ingres support... " >&6; }
29351
29352 # Check whether --with-ingres was given.
29353 if test "${with_ingres+set}" = set; then
29354   withval=$with_ingres;
29355   if test "$withval" != "no"; then
29356      if test "$withval" = "yes"; then
29357         if test -f ${II_SYSTEM}/files/eqdefc.h; then
29358            INGRES_INCDIR=${II_SYSTEM}/files
29359            INGRES_LIBDIR=${II_SYSTEM}/lib
29360            INGRES_BINDIR=${II_SYSTEM}/bin
29361         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29362            INGRES_INCDIR=${II_SYSTEM}/ingres/files
29363            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29364            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29365         else
29366            { $as_echo "$as_me:$LINENO: result: no" >&5
29367 $as_echo "no" >&6; }
29368            { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29369 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29370    { (exit 1); exit 1; }; }
29371         fi
29372      else
29373         if test -f $withval/files/eqdefc.h; then
29374            INGRES_INCDIR=$withval/files
29375            INGRES_LIBDIR=$withval/lib
29376            INGRES_BINDIR=$withval/bin
29377         else
29378            { $as_echo "$as_me:$LINENO: result: no" >&5
29379 $as_echo "no" >&6; }
29380            { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29381 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29382    { (exit 1); exit 1; }; }
29383         fi
29384      fi
29385      INGRES_INCLUDE=-I$INGRES_INCDIR
29386      INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29387      DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
29388
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_INGRES 1
29391 _ACEOF
29392
29393      { $as_echo "$as_me:$LINENO: result: yes" >&5
29394 $as_echo "yes" >&6; }
29395
29396      if test -z "${db_backends}"; then
29397          db_backends="Ingres"
29398      else
29399          db_backends="${db_backends} Ingres"
29400      fi
29401      if test -z "${DB_BACKENDS}"; then
29402          DB_BACKENDS="ingres"
29403      else
29404          DB_BACKENDS="${DB_BACKENDS} ingres"
29405      fi
29406   else
29407      { $as_echo "$as_me:$LINENO: result: no" >&5
29408 $as_echo "no" >&6; }
29409   fi
29410
29411 else
29412
29413   { $as_echo "$as_me:$LINENO: result: no" >&5
29414 $as_echo "no" >&6; }
29415
29416 fi
29417
29418
29419
29420
29421
29422
29423
29424
29425 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29426 $as_echo_n "checking for DBI support... " >&6; }
29427
29428 # Check whether --with-dbi was given.
29429 if test "${with_dbi+set}" = set; then
29430   withval=$with_dbi;
29431   if test "$withval" != "no"; then
29432      if test "$withval" = "yes"; then
29433         if test -f /usr/local/include/dbi/dbi.h; then
29434            DBI_INCDIR=/usr/local/dbi/include
29435            if test -d /usr/local/lib64; then
29436               DBI_LIBDIR=/usr/local/lib64
29437            else
29438               DBI_LIBDIR=/usr/local/lib
29439            fi
29440            DBI_BINDIR=/usr/local/bin
29441         elif test -f /usr/include/dbi/dbi.h; then
29442            DBI_INCDIR=/usr/include
29443            if test -d /usr/lib64; then
29444               DBI_LIBDIR=/usr/lib64
29445            else
29446               DBI_LIBDIR=/usr/lib
29447            fi
29448            DBI_BINDIR=/usr/bin
29449         elif test -f $prefix/include/dbi/dbi.h; then
29450            DBI_INCDIR=$prefix/include
29451            if test -d $prefix/lib64; then
29452               DBI_LIBDIR=$prefix/lib64
29453            else
29454               DBI_LIBDIR=$prefix/lib
29455            fi
29456            DBI_BINDIR=$prefix/bin
29457         else
29458            { $as_echo "$as_me:$LINENO: result: no" >&5
29459 $as_echo "no" >&6; }
29460            { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29461 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29462    { (exit 1); exit 1; }; }
29463         fi
29464         if test -d /usr/local/lib/dbd; then
29465            DRIVERDIR=/usr/local/lib/dbd
29466            if test -d /usr/local/lib64/dbd; then
29467               DRIVERDIR=/usr/local/lib64/dbd
29468            else
29469               DRIVERDIR=/usr/local/lib/dbd
29470            fi
29471         elif test -d /usr/lib/dbd; then
29472            DRIVERDIR=/usr/lib/dbd
29473            if test -d /usr/lib64/dbd; then
29474               DRIVERDIR=/usr/lib64/dbd
29475            else
29476               DRIVERDIR=/usr/lib/dbd
29477            fi
29478         elif test -d $prefix/lib/dbd; then
29479            if test -d $prefix/lib64/dbd; then
29480               DRIVERDIR=$prefix/lib64/dbd
29481            else
29482               DRIVERDIR=$prefix/lib/dbd
29483            fi
29484         elif test -d /usr/local/lib64/dbd; then
29485            DRIVERDIR=/usr/local/lib64/dbd
29486         elif test -d /usr/lib64/dbd; then
29487            DRIVERDIR=/usr/lib64/dbd
29488         elif test -d $prefix/lib64/dbd; then
29489            DRIVERDIR=$prefix/lib64/dbd
29490         else
29491            { $as_echo "$as_me:$LINENO: result: no" >&5
29492 $as_echo "no" >&6; }
29493            { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29494 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29495    { (exit 1); exit 1; }; }
29496         fi
29497      else
29498         if test -f $withval/dbi.h; then
29499            DBI_INCDIR=$withval
29500            DBI_LIBDIR=$withval
29501            DBI_BINDIR=$withval
29502         elif test -f $withval/include/dbi/dbi.h; then
29503            DBI_INCDIR=$withval/include
29504            if test -d $withval/lib64; then
29505               DBI_LIBDIR=$withval/lib64
29506            else
29507               DBI_LIBDIR=$withval/lib
29508            fi
29509            DBI_BINDIR=$withval/bin
29510         else
29511            { $as_echo "$as_me:$LINENO: result: no" >&5
29512 $as_echo "no" >&6; }
29513            { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29514 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29515    { (exit 1); exit 1; }; }
29516         fi
29517         if test -d $withval/dbd; then
29518            DRIVERDIR=$withval/dbd
29519         elif test -d $withval/lib/; then
29520            if test -d $withval/lib64/dbd; then
29521               DRIVERDIR=$withval/lib64/dbd
29522            else
29523               DRIVERDIR=$withval/lib/dbd
29524            fi
29525         elif test -d $withval/lib64/dbd; then
29526            DRIVERDIR=$withval/lib64/dbd
29527         else
29528            { $as_echo "$as_me:$LINENO: result: no" >&5
29529 $as_echo "no" >&6; }
29530            { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29531 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29532    { (exit 1); exit 1; }; }
29533         fi
29534      fi
29535      DBI_INCLUDE=-I$DBI_INCDIR
29536      DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
29537      DBI_LIB=$DBI_LIBDIR/libdbi.a
29538      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29539      DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
29540
29541
29542 cat >>confdefs.h <<\_ACEOF
29543 #define HAVE_DBI 1
29544 _ACEOF
29545
29546      { $as_echo "$as_me:$LINENO: result: yes" >&5
29547 $as_echo "yes" >&6; }
29548
29549      if test -z "${db_backends}"; then
29550          db_backends="DBI"
29551      else
29552          db_backends="${db_backends} DBI"
29553      fi
29554      if test -z "${DB_BACKENDS}" ; then
29555         DB_BACKENDS="dbi"
29556      else
29557         DB_BACKENDS="${DB_BACKENDS} dbi"
29558      fi
29559      uncomment_dbi=" "
29560
29561   else
29562      { $as_echo "$as_me:$LINENO: result: no" >&5
29563 $as_echo "no" >&6; }
29564   fi
29565
29566 else
29567
29568   { $as_echo "$as_me:$LINENO: result: no" >&5
29569 $as_echo "no" >&6; }
29570
29571 fi
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583 db_prog=no
29584 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29585 $as_echo_n "checking for DBI drivers support... " >&6; }
29586
29587 # Check whether --with-dbi-driver was given.
29588 if test "${with_dbi_driver+set}" = set; then
29589   withval=$with_dbi_driver;
29590   if test "$withval" != "no"; then
29591      case $withval in
29592         "mysql")
29593            db_prog="mysql"
29594            if test -f /usr/local/mysql/bin/mysql; then
29595               SQL_BINDIR=/usr/local/mysql/bin
29596               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29597                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29598                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29599               else
29600                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29601               fi
29602            elif test -f /usr/bin/mysql; then
29603               SQL_BINDIR=/usr/bin
29604               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29605                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29606                   MYSQL_LIBDIR=/usr/lib64/mysql
29607               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29608                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29609                   MYSQL_LIBDIR=/usr/lib/mysql
29610               else
29611                   MYSQL_LIBDIR=/usr/lib
29612               fi
29613            elif test -f /usr/local/bin/mysql; then
29614               SQL_BINDIR=/usr/local/bin
29615               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29616                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29617                   MYSQL_LIBDIR=/usr/local/lib64/mysql
29618               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29619                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29620                   MYSQL_LIBDIR=/usr/local/lib/mysql
29621               else
29622                   MYSQL_LIBDIR=/usr/local/lib
29623               fi
29624            elif test -f $withval/bin/mysql; then
29625               SQL_BINDIR=$withval/bin
29626               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29627                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29628                   MYSQL_LIBDIR=$withval/lib64/mysql
29629               elif test -f $withval/lib64/libmysqlclient_r.a \
29630                   -o -f $withval/lib64/libmysqlclient_r.so; then
29631                   MYSQL_LIBDIR=$withval/lib64
29632               elif test -f $withval/lib/libmysqlclient_r.a \
29633                   -o -f $withval/lib/libmysqlclient_r.so; then
29634                   MYSQL_LIBDIR=$withval/lib/
29635               else
29636                   MYSQL_LIBDIR=$withval/lib/mysql
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 mysql in standard locations" >&5
29642 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29643    { (exit 1); exit 1; }; }
29644            fi
29645            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29646               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29647            else
29648               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29649            fi
29650         ;;
29651         "postgresql")
29652            db_prog="postgresql"
29653            PG_CONFIG=`which pg_config`
29654            if test -n "$PG_CONFIG"; then
29655               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
29656               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
29657            elif test -f /usr/local/bin/psql; then
29658               POSTGRESQL_BINDIR=/usr/local/bin
29659               if test -d /usr/local/lib64; then
29660                  POSTGRESQL_LIBDIR=/usr/local/lib64
29661               else
29662                  POSTGRESQL_LIBDIR=/usr/local/lib
29663               fi
29664            elif test -f /usr/bin/psql; then
29665               POSTGRESQL_BINDIR=/usr/local/bin
29666               if test -d /usr/lib64/postgresql; then
29667                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
29668               elif test -d /usr/lib/postgresql; then
29669                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
29670               elif test -d /usr/lib64; then
29671                  POSTGRESQL_LIBDIR=/usr/lib64
29672               else
29673                  POSTGRESQL_LIBDIR=/usr/lib
29674               fi
29675            elif test -f $withval/bin/psql; then
29676               POSTGRESQL_BINDIR=$withval/bin
29677               if test -d $withval/lib64; then
29678                  POSTGRESQL_LIBDIR=$withval/lib64
29679               else
29680                  POSTGRESQL_LIBDIR=$withval/lib
29681               fi
29682            else
29683               { $as_echo "$as_me:$LINENO: result: no" >&5
29684 $as_echo "no" >&6; }
29685               { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29686 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29687    { (exit 1); exit 1; }; }
29688            fi
29689            if test -f $POSTGRESQL_LIBDIR/libpq.so; then
29690               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
29691            else
29692               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
29693            fi
29694         ;;
29695         "sqlite3")
29696            db_prog="sqlite3"
29697            if test -f /usr/local/bin/sqlite3; then
29698               SQLITE_BINDIR=/usr/local/bin
29699               if test -d /usr/local/lib64; then
29700                  SQLITE_LIBDIR=/usr/local/lib64
29701               else
29702                  SQLITE_LIBDIR=/usr/local/lib
29703               fi
29704            elif test -f /usr/bin/sqlite3; then
29705               SQLITE_BINDIR=/usr/bin
29706               if test -d /usr/lib64; then
29707                  SQLITE_LIBDIR=/usr/lib64
29708               else
29709                  SQLITE_LIBDIR=/usr/lib
29710               fi
29711            elif test -f $withval/bin/sqlite3; then
29712               SQLITE_BINDIR=$withval/bin
29713               if test -d $withval/lib64; then
29714                  SQLITE_LIBDIR=$withval/lib64
29715               else
29716                  SQLITE_LIBDIR=$withval/lib
29717               fi
29718            else
29719               { $as_echo "$as_me:$LINENO: result: no" >&5
29720 $as_echo "no" >&6; }
29721               { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29722 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29723    { (exit 1); exit 1; }; }
29724            fi
29725            if test -f $SQLITE_LIBDIR/libsqlite3.so; then
29726               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
29727            else
29728               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
29729            fi
29730         ;;
29731         *)
29732            { $as_echo "$as_me:$LINENO: result: no" >&5
29733 $as_echo "no" >&6; }
29734            { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29735 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29736    { (exit 1); exit 1; }; }
29737         ;;
29738      esac
29739
29740      { $as_echo "$as_me:$LINENO: result: yes" >&5
29741 $as_echo "yes" >&6; }
29742      DB_PROG=$db_prog
29743   else
29744      { $as_echo "$as_me:$LINENO: result: no" >&5
29745 $as_echo "no" >&6; }
29746   fi
29747
29748 else
29749
29750   { $as_echo "$as_me:$LINENO: result: no" >&5
29751 $as_echo "no" >&6; }
29752
29753 fi
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764 if test "x${db_backends}" = "x" ; then
29765    echo " "
29766    echo " "
29767    echo "You have not specified either --enable-client-only or one of the"
29768    echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
29769    echo "This is not permitted. Please reconfigure."
29770    echo " "
29771    echo "Aborting the configuration ..."
29772    echo " "
29773    echo " "
29774    exit 1
29775 fi
29776
29777 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
29778    1)
29779       DEFAULT_DB_TYPE="${DB_BACKENDS}"
29780       if test x$use_libtool = xno; then
29781          SHARED_CATALOG_TARGETS=""
29782       else
29783          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
29784       fi
29785       ;;
29786    *)
29787                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
29788
29789                         if test x$use_libtool = xno; then
29790          echo " "
29791          echo " "
29792          echo "You have specified two or more of the"
29793          echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
29794          echo "This is not permitted when not using libtool Please reconfigure."
29795          echo " "
29796          echo "Aborting the configuration ..."
29797          echo " "
29798          echo " "
29799          exit 1
29800       fi
29801
29802       SHARED_CATALOG_TARGETS=""
29803       for db_type in ${DB_BACKENDS}
29804       do
29805          if test -z "${SHARED_CATALOG_TARGETS}"; then
29806             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
29807          else
29808             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
29809          fi
29810       done
29811       ;;
29812 esac
29813
29814 if test x$use_libtool = xyes; then
29815    DB_LIBS=""
29816 fi
29817
29818
29819
29820
29821
29822
29823 support_batch_insert=yes
29824 # Check whether --enable-batch-insert was given.
29825 if test "${enable_batch_insert+set}" = set; then
29826   enableval=$enable_batch_insert;
29827        if test x$enableval = xno; then
29828           support_batch_insert=no
29829        fi
29830
29831
29832 fi
29833
29834
29835 if test x$support_batch_insert = xyes; then
29836
29837 cat >>confdefs.h <<\_ACEOF
29838 #define USE_BATCH_FILE_INSERT 1
29839 _ACEOF
29840
29841 fi
29842
29843 if test ! -z "$MYSQL_LIB"; then
29844    { $as_echo "$as_me:$LINENO: checking for mysql_thread_safe in -lmysql_r" >&5
29845 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
29846 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then
29847   $as_echo_n "(cached) " >&6
29848 else
29849   ac_check_lib_save_LIBS=$LIBS
29850 LIBS="-lmysql_r  $LIBS"
29851 cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857
29858 /* Override any GCC internal prototype to avoid an error.
29859    Use char because int might match the return type of a GCC
29860    builtin and then its argument prototype would still apply.  */
29861 #ifdef __cplusplus
29862 extern "C"
29863 #endif
29864 char mysql_thread_safe ();
29865 int
29866 main ()
29867 {
29868 return mysql_thread_safe ();
29869   ;
29870   return 0;
29871 }
29872 _ACEOF
29873 rm -f conftest.$ac_objext conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877   *) ac_try_echo=$ac_try;;
29878 esac
29879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29880 $as_echo "$ac_try_echo") >&5
29881   (eval "$ac_link") 2>conftest.er1
29882   ac_status=$?
29883   grep -v '^ *+' conftest.er1 >conftest.err
29884   rm -f conftest.er1
29885   cat conftest.err >&5
29886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); } && {
29888          test -z "$ac_c_werror_flag" ||
29889          test ! -s conftest.err
29890        } && test -s conftest$ac_exeext && {
29891          test "$cross_compiling" = yes ||
29892          $as_test_x conftest$ac_exeext
29893        }; then
29894   ac_cv_lib_mysql_r_mysql_thread_safe=yes
29895 else
29896   $as_echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899         ac_cv_lib_mysql_r_mysql_thread_safe=no
29900 fi
29901
29902 rm -rf conftest.dSYM
29903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29904       conftest$ac_exeext conftest.$ac_ext
29905 LIBS=$ac_check_lib_save_LIBS
29906 fi
29907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
29908 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
29909 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then
29910
29911 cat >>confdefs.h <<\_ACEOF
29912 #define HAVE_MYSQL_THREAD_SAFE 1
29913 _ACEOF
29914
29915 fi
29916
29917 fi
29918
29919 if test ! -z "SQLITE_LIB"; then
29920    { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29921 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
29922 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29923   $as_echo_n "(cached) " >&6
29924 else
29925   ac_check_lib_save_LIBS=$LIBS
29926 LIBS="-lsqlite3  $LIBS"
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h.  */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h.  */
29933
29934 /* Override any GCC internal prototype to avoid an error.
29935    Use char because int might match the return type of a GCC
29936    builtin and then its argument prototype would still apply.  */
29937 #ifdef __cplusplus
29938 extern "C"
29939 #endif
29940 char sqlite3_threadsafe ();
29941 int
29942 main ()
29943 {
29944 return sqlite3_threadsafe ();
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (ac_try="$ac_link"
29951 case "(($ac_try" in
29952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953   *) ac_try_echo=$ac_try;;
29954 esac
29955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29956 $as_echo "$ac_try_echo") >&5
29957   (eval "$ac_link") 2>conftest.er1
29958   ac_status=$?
29959   grep -v '^ *+' conftest.er1 >conftest.err
29960   rm -f conftest.er1
29961   cat conftest.err >&5
29962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); } && {
29964          test -z "$ac_c_werror_flag" ||
29965          test ! -s conftest.err
29966        } && test -s conftest$ac_exeext && {
29967          test "$cross_compiling" = yes ||
29968          $as_test_x conftest$ac_exeext
29969        }; then
29970   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29971 else
29972   $as_echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29974
29975         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29976 fi
29977
29978 rm -rf conftest.dSYM
29979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29980       conftest$ac_exeext conftest.$ac_ext
29981 LIBS=$ac_check_lib_save_LIBS
29982 fi
29983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29984 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29985 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
29986
29987 cat >>confdefs.h <<\_ACEOF
29988 #define HAVE_SQLITE3_THREADSAFE 1
29989 _ACEOF
29990
29991 fi
29992
29993 fi
29994
29995 if test ! -z "$POSTGRESQL_LIB"; then
29996       saved_LIBS="${LIBS}"
29997    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
29998
29999    { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
30000 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
30001 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
30002   $as_echo_n "(cached) " >&6
30003 else
30004   ac_check_lib_save_LIBS=$LIBS
30005 LIBS="-lpq  $LIBS"
30006 cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012
30013 /* Override any GCC internal prototype to avoid an error.
30014    Use char because int might match the return type of a GCC
30015    builtin and then its argument prototype would still apply.  */
30016 #ifdef __cplusplus
30017 extern "C"
30018 #endif
30019 char PQisthreadsafe ();
30020 int
30021 main ()
30022 {
30023 return PQisthreadsafe ();
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (ac_try="$ac_link"
30030 case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30035 $as_echo "$ac_try_echo") >&5
30036   (eval "$ac_link") 2>conftest.er1
30037   ac_status=$?
30038   grep -v '^ *+' conftest.er1 >conftest.err
30039   rm -f conftest.er1
30040   cat conftest.err >&5
30041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); } && {
30043          test -z "$ac_c_werror_flag" ||
30044          test ! -s conftest.err
30045        } && test -s conftest$ac_exeext && {
30046          test "$cross_compiling" = yes ||
30047          $as_test_x conftest$ac_exeext
30048        }; then
30049   ac_cv_lib_pq_PQisthreadsafe=yes
30050 else
30051   $as_echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30053
30054         ac_cv_lib_pq_PQisthreadsafe=no
30055 fi
30056
30057 rm -rf conftest.dSYM
30058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30059       conftest$ac_exeext conftest.$ac_ext
30060 LIBS=$ac_check_lib_save_LIBS
30061 fi
30062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
30063 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
30064 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
30065
30066 cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_PQISTHREADSAFE 1
30068 _ACEOF
30069
30070 fi
30071
30072    { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
30073 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
30074 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
30075   $as_echo_n "(cached) " >&6
30076 else
30077   ac_check_lib_save_LIBS=$LIBS
30078 LIBS="-lpq  $LIBS"
30079 cat >conftest.$ac_ext <<_ACEOF
30080 /* confdefs.h.  */
30081 _ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h.  */
30085
30086 /* Override any GCC internal prototype to avoid an error.
30087    Use char because int might match the return type of a GCC
30088    builtin and then its argument prototype would still apply.  */
30089 #ifdef __cplusplus
30090 extern "C"
30091 #endif
30092 char PQputCopyData ();
30093 int
30094 main ()
30095 {
30096 return PQputCopyData ();
30097   ;
30098   return 0;
30099 }
30100 _ACEOF
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105   *) ac_try_echo=$ac_try;;
30106 esac
30107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30108 $as_echo "$ac_try_echo") >&5
30109   (eval "$ac_link") 2>conftest.er1
30110   ac_status=$?
30111   grep -v '^ *+' conftest.er1 >conftest.err
30112   rm -f conftest.er1
30113   cat conftest.err >&5
30114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); } && {
30116          test -z "$ac_c_werror_flag" ||
30117          test ! -s conftest.err
30118        } && test -s conftest$ac_exeext && {
30119          test "$cross_compiling" = yes ||
30120          $as_test_x conftest$ac_exeext
30121        }; then
30122   ac_cv_lib_pq_PQputCopyData=yes
30123 else
30124   $as_echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30126
30127         ac_cv_lib_pq_PQputCopyData=no
30128 fi
30129
30130 rm -rf conftest.dSYM
30131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30132       conftest$ac_exeext conftest.$ac_ext
30133 LIBS=$ac_check_lib_save_LIBS
30134 fi
30135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30136 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30137 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30138
30139 cat >>confdefs.h <<\_ACEOF
30140 #define HAVE_PQ_COPY 1
30141 _ACEOF
30142
30143 fi
30144
30145    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
30146       if test $support_batch_insert = yes ; then
30147
30148 cat >>confdefs.h <<\_ACEOF
30149 #define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1
30150 _ACEOF
30151
30152       fi
30153    fi
30154
30155    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
30156    then
30157       echo "WARNING: Your PostgreSQL client library is too old to detect "
30158       echo "if it was compiled with --enable-thread-safety, consider to "
30159       echo "upgrade it in order to avoid problems with Batch insert mode"
30160       echo
30161    fi
30162
30163       LIBS="${saved_LIBS}"
30164 fi
30165
30166 if test ! -z "$DBI_LIBS"; then
30167             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
30168
30169             if test $DB_PROG = postgresql; then
30170       { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
30171 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
30172 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
30173   $as_echo_n "(cached) " >&6
30174 else
30175   ac_check_lib_save_LIBS=$LIBS
30176 LIBS="-lpq  $LIBS"
30177 cat >conftest.$ac_ext <<_ACEOF
30178 /* confdefs.h.  */
30179 _ACEOF
30180 cat confdefs.h >>conftest.$ac_ext
30181 cat >>conftest.$ac_ext <<_ACEOF
30182 /* end confdefs.h.  */
30183
30184 /* Override any GCC internal prototype to avoid an error.
30185    Use char because int might match the return type of a GCC
30186    builtin and then its argument prototype would still apply.  */
30187 #ifdef __cplusplus
30188 extern "C"
30189 #endif
30190 char PQisthreadsafe ();
30191 int
30192 main ()
30193 {
30194 return PQisthreadsafe ();
30195   ;
30196   return 0;
30197 }
30198 _ACEOF
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (ac_try="$ac_link"
30201 case "(($ac_try" in
30202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203   *) ac_try_echo=$ac_try;;
30204 esac
30205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30206 $as_echo "$ac_try_echo") >&5
30207   (eval "$ac_link") 2>conftest.er1
30208   ac_status=$?
30209   grep -v '^ *+' conftest.er1 >conftest.err
30210   rm -f conftest.er1
30211   cat conftest.err >&5
30212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); } && {
30214          test -z "$ac_c_werror_flag" ||
30215          test ! -s conftest.err
30216        } && test -s conftest$ac_exeext && {
30217          test "$cross_compiling" = yes ||
30218          $as_test_x conftest$ac_exeext
30219        }; then
30220   ac_cv_lib_pq_PQisthreadsafe=yes
30221 else
30222   $as_echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30224
30225         ac_cv_lib_pq_PQisthreadsafe=no
30226 fi
30227
30228 rm -rf conftest.dSYM
30229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30230       conftest$ac_exeext conftest.$ac_ext
30231 LIBS=$ac_check_lib_save_LIBS
30232 fi
30233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
30234 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
30235 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
30236   cat >>confdefs.h <<\_ACEOF
30237 #define HAVE_PQISTHREADSAFE 1
30238 _ACEOF
30239
30240 fi
30241
30242       { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
30243 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
30244 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
30245   $as_echo_n "(cached) " >&6
30246 else
30247   ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-lpq  $LIBS"
30249 cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h.  */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h.  */
30255
30256 /* Override any GCC internal prototype to avoid an error.
30257    Use char because int might match the return type of a GCC
30258    builtin and then its argument prototype would still apply.  */
30259 #ifdef __cplusplus
30260 extern "C"
30261 #endif
30262 char PQputCopyData ();
30263 int
30264 main ()
30265 {
30266 return PQputCopyData ();
30267   ;
30268   return 0;
30269 }
30270 _ACEOF
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30278 $as_echo "$ac_try_echo") >&5
30279   (eval "$ac_link") 2>conftest.er1
30280   ac_status=$?
30281   grep -v '^ *+' conftest.er1 >conftest.err
30282   rm -f conftest.er1
30283   cat conftest.err >&5
30284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); } && {
30286          test -z "$ac_c_werror_flag" ||
30287          test ! -s conftest.err
30288        } && test -s conftest$ac_exeext && {
30289          test "$cross_compiling" = yes ||
30290          $as_test_x conftest$ac_exeext
30291        }; then
30292   ac_cv_lib_pq_PQputCopyData=yes
30293 else
30294   $as_echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30296
30297         ac_cv_lib_pq_PQputCopyData=no
30298 fi
30299
30300 rm -rf conftest.dSYM
30301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30302       conftest$ac_exeext conftest.$ac_ext
30303 LIBS=$ac_check_lib_save_LIBS
30304 fi
30305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30306 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30307 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30308   cat >>confdefs.h <<\_ACEOF
30309 #define HAVE_PQ_COPY 1
30310 _ACEOF
30311
30312 fi
30313
30314       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
30315       pkg=$?
30316       if test $pkg = 0; then
30317          if test $support_batch_insert = yes ; then
30318
30319 cat >>confdefs.h <<\_ACEOF
30320 #define HAVE_DBI_BATCH_FILE_INSERT 1
30321 _ACEOF
30322
30323          fi
30324       fi
30325    fi
30326 else
30327             uncomment_dbi="#"
30328 fi
30329
30330
30331
30332 cat >>confdefs.h <<\_ACEOF
30333 #define PROTOTYPES 1
30334 _ACEOF
30335
30336
30337 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30338    if test -z "$CCOPTS"; then
30339       CCOPTS='-g -O2 -Wall'
30340    fi
30341    CFLAGS="$CCOPTS"
30342 fi
30343
30344
30345
30346 largefile_support="no"
30347
30348    # Check whether --enable-largefile was given.
30349 if test "${enable_largefile+set}" = set; then
30350   enableval=$enable_largefile;
30351 fi
30352
30353    if test "$enable_largefile" != no; then
30354      if test -n "$ac_tool_prefix"; then
30355   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30356 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30358 $as_echo_n "checking for $ac_word... " >&6; }
30359 if test "${ac_cv_prog_GETCONF+set}" = set; then
30360   $as_echo_n "(cached) " >&6
30361 else
30362   if test -n "$GETCONF"; then
30363   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30364 else
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366 for as_dir in $PATH
30367 do
30368   IFS=$as_save_IFS
30369   test -z "$as_dir" && as_dir=.
30370   for ac_exec_ext in '' $ac_executable_extensions; do
30371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30373     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30374     break 2
30375   fi
30376 done
30377 done
30378 IFS=$as_save_IFS
30379
30380 fi
30381 fi
30382 GETCONF=$ac_cv_prog_GETCONF
30383 if test -n "$GETCONF"; then
30384   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30385 $as_echo "$GETCONF" >&6; }
30386 else
30387   { $as_echo "$as_me:$LINENO: result: no" >&5
30388 $as_echo "no" >&6; }
30389 fi
30390
30391
30392 fi
30393 if test -z "$ac_cv_prog_GETCONF"; then
30394   ac_ct_GETCONF=$GETCONF
30395   # Extract the first word of "getconf", so it can be a program name with args.
30396 set dummy getconf; ac_word=$2
30397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30398 $as_echo_n "checking for $ac_word... " >&6; }
30399 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30400   $as_echo_n "(cached) " >&6
30401 else
30402   if test -n "$ac_ct_GETCONF"; then
30403   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30404 else
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 for as_dir in $PATH
30407 do
30408   IFS=$as_save_IFS
30409   test -z "$as_dir" && as_dir=.
30410   for ac_exec_ext in '' $ac_executable_extensions; do
30411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412     ac_cv_prog_ac_ct_GETCONF="getconf"
30413     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30414     break 2
30415   fi
30416 done
30417 done
30418 IFS=$as_save_IFS
30419
30420 fi
30421 fi
30422 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30423 if test -n "$ac_ct_GETCONF"; then
30424   { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30425 $as_echo "$ac_ct_GETCONF" >&6; }
30426 else
30427   { $as_echo "$as_me:$LINENO: result: no" >&5
30428 $as_echo "no" >&6; }
30429 fi
30430
30431   if test "x$ac_ct_GETCONF" = x; then
30432     GETCONF=""
30433   else
30434     case $cross_compiling:$ac_tool_warned in
30435 yes:)
30436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30438 ac_tool_warned=yes ;;
30439 esac
30440     GETCONF=$ac_ct_GETCONF
30441   fi
30442 else
30443   GETCONF="$ac_cv_prog_GETCONF"
30444 fi
30445
30446      { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30447 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30448 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30449   $as_echo_n "(cached) " >&6
30450 else
30451   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30452         ac_cv_sys_largefile_CFLAGS=no
30453         case "$host_os" in
30454            # IRIX 6.2 and later require cc -n32.
30455            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30456              if test "$GCC" != yes; then
30457                ac_cv_sys_largefile_CFLAGS=-n32
30458              fi
30459              ac_save_CC="$CC"
30460              CC="$CC $ac_cv_sys_largefile_CFLAGS"
30461              cat >conftest.$ac_ext <<_ACEOF
30462 /* confdefs.h.  */
30463 _ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h.  */
30467
30468 int
30469 main ()
30470 {
30471
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480   *) ac_try_echo=$ac_try;;
30481 esac
30482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30483 $as_echo "$ac_try_echo") >&5
30484   (eval "$ac_link") 2>conftest.er1
30485   ac_status=$?
30486   grep -v '^ *+' conftest.er1 >conftest.err
30487   rm -f conftest.er1
30488   cat conftest.err >&5
30489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); } && {
30491          test -z "$ac_c_werror_flag" ||
30492          test ! -s conftest.err
30493        } && test -s conftest$ac_exeext && {
30494          test "$cross_compiling" = yes ||
30495          $as_test_x conftest$ac_exeext
30496        }; then
30497   :
30498 else
30499   $as_echo "$as_me: failed program was:" >&5
30500 sed 's/^/| /' conftest.$ac_ext >&5
30501
30502         ac_cv_sys_largefile_CFLAGS=no
30503 fi
30504
30505 rm -rf conftest.dSYM
30506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30507       conftest$ac_exeext conftest.$ac_ext
30508              CC="$ac_save_CC"
30509            esac
30510       }
30511 fi
30512 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30513 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30514      { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30515 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30516 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30517   $as_echo_n "(cached) " >&6
30518 else
30519   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30520         ac_cv_sys_largefile_LDFLAGS=no
30521
30522       }
30523 fi
30524 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30525 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30526      { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30527 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30528 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30529   $as_echo_n "(cached) " >&6
30530 else
30531   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30532         ac_cv_sys_largefile_LIBS=no
30533
30534       }
30535 fi
30536 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30537 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30538
30539      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30540        case "$ac_flag" in
30541        no) ;;
30542        -D_FILE_OFFSET_BITS=*) ;;
30543        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30544        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30545        -D?* | -I?*)
30546          case "$ac_flag" in
30547    no) ;;
30548    ?*)
30549      case "$CPPFLAGS" in
30550      '') CPPFLAGS="$ac_flag" ;;
30551      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30552      esac ;;
30553    esac ;;
30554        *)
30555          case "$ac_flag" in
30556    no) ;;
30557    ?*)
30558      case "$CFLAGS" in
30559      '') CFLAGS="$ac_flag" ;;
30560      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30561      esac ;;
30562    esac ;;
30563        esac
30564      done
30565      case "$ac_cv_sys_largefile_LDFLAGS" in
30566    no) ;;
30567    ?*)
30568      case "$LDFLAGS" in
30569      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30570      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30571      esac ;;
30572    esac
30573      case "$ac_cv_sys_largefile_LIBS" in
30574    no) ;;
30575    ?*)
30576      case "$LIBS" in
30577      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30578      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30579      esac ;;
30580    esac
30581      { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30582 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30583 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30584   $as_echo_n "(cached) " >&6
30585 else
30586   ac_cv_sys_file_offset_bits=no
30587       ac_cv_sys_file_offset_bits=64
30588       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30589         case "$ac_flag" in
30590         -D_FILE_OFFSET_BITS)
30591           ac_cv_sys_file_offset_bits=1 ;;
30592         -D_FILE_OFFSET_BITS=*)
30593           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30594         esac
30595       done
30596
30597 fi
30598 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30600    if test "$ac_cv_sys_file_offset_bits" != no; then
30601
30602 cat >>confdefs.h <<_ACEOF
30603 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30604 _ACEOF
30605
30606    fi
30607      { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30608 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30609 if test "${ac_cv_sys_largefile_source+set}" = set; then
30610   $as_echo_n "(cached) " >&6
30611 else
30612   ac_cv_sys_largefile_source=no
30613       ac_cv_sys_largefile_source=1
30614       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30615         case "$ac_flag" in
30616         -D_LARGEFILE_SOURCE)
30617           ac_cv_sys_largefile_source=1 ;;
30618         -D_LARGEFILE_SOURCE=*)
30619           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30620         esac
30621       done
30622
30623 fi
30624 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30625 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30626    if test "$ac_cv_sys_largefile_source" != no; then
30627
30628 cat >>confdefs.h <<_ACEOF
30629 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30630 _ACEOF
30631
30632    fi
30633      { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30634 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30635 if test "${ac_cv_sys_large_files+set}" = set; then
30636   $as_echo_n "(cached) " >&6
30637 else
30638   ac_cv_sys_large_files=no
30639       ac_cv_sys_large_files=1
30640       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30641         case "$ac_flag" in
30642         -D_LARGE_FILES)
30643           ac_cv_sys_large_files=1 ;;
30644         -D_LARGE_FILES=*)
30645           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30646         esac
30647       done
30648
30649 fi
30650 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30651 $as_echo "$ac_cv_sys_large_files" >&6; }
30652    if test "$ac_cv_sys_large_files" != no; then
30653
30654 cat >>confdefs.h <<_ACEOF
30655 #define _LARGE_FILES $ac_cv_sys_large_files
30656 _ACEOF
30657
30658    fi
30659    fi
30660
30661
30662 { $as_echo "$as_me:$LINENO: checking for X" >&5
30663 $as_echo_n "checking for X... " >&6; }
30664
30665
30666 # Check whether --with-x was given.
30667 if test "${with_x+set}" = set; then
30668   withval=$with_x;
30669 fi
30670
30671 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30672 if test "x$with_x" = xno; then
30673   # The user explicitly disabled X.
30674   have_x=disabled
30675 else
30676   case $x_includes,$x_libraries in #(
30677     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30678 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30679    { (exit 1); exit 1; }; };; #(
30680     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30681   $as_echo_n "(cached) " >&6
30682 else
30683   # One or both of the vars are not set, and there is no cached value.
30684 ac_x_includes=no ac_x_libraries=no
30685 rm -f -r conftest.dir
30686 if mkdir conftest.dir; then
30687   cd conftest.dir
30688   cat >Imakefile <<'_ACEOF'
30689 incroot:
30690         @echo incroot='${INCROOT}'
30691 usrlibdir:
30692         @echo usrlibdir='${USRLIBDIR}'
30693 libdir:
30694         @echo libdir='${LIBDIR}'
30695 _ACEOF
30696   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30697     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30698     for ac_var in incroot usrlibdir libdir; do
30699       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30700     done
30701     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30702     for ac_extension in a so sl dylib la dll; do
30703       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30704          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30705         ac_im_usrlibdir=$ac_im_libdir; break
30706       fi
30707     done
30708     # Screen out bogus values from the imake configuration.  They are
30709     # bogus both because they are the default anyway, and because
30710     # using them would break gcc on systems where it needs fixed includes.
30711     case $ac_im_incroot in
30712         /usr/include) ac_x_includes= ;;
30713         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30714     esac
30715     case $ac_im_usrlibdir in
30716         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30717         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30718     esac
30719   fi
30720   cd ..
30721   rm -f -r conftest.dir
30722 fi
30723
30724 # Standard set of common directories for X headers.
30725 # Check X11 before X11Rn because it is often a symlink to the current release.
30726 ac_x_header_dirs='
30727 /usr/X11/include
30728 /usr/X11R6/include
30729 /usr/X11R5/include
30730 /usr/X11R4/include
30731
30732 /usr/include/X11
30733 /usr/include/X11R6
30734 /usr/include/X11R5
30735 /usr/include/X11R4
30736
30737 /usr/local/X11/include
30738 /usr/local/X11R6/include
30739 /usr/local/X11R5/include
30740 /usr/local/X11R4/include
30741
30742 /usr/local/include/X11
30743 /usr/local/include/X11R6
30744 /usr/local/include/X11R5
30745 /usr/local/include/X11R4
30746
30747 /usr/X386/include
30748 /usr/x386/include
30749 /usr/XFree86/include/X11
30750
30751 /usr/include
30752 /usr/local/include
30753 /usr/unsupported/include
30754 /usr/athena/include
30755 /usr/local/x11r5/include
30756 /usr/lpp/Xamples/include
30757
30758 /usr/openwin/include
30759 /usr/openwin/share/include'
30760
30761 if test "$ac_x_includes" = no; then
30762   # Guess where to find include files, by looking for Xlib.h.
30763   # First, try using that file with no special directory specified.
30764   cat >conftest.$ac_ext <<_ACEOF
30765 /* confdefs.h.  */
30766 _ACEOF
30767 cat confdefs.h >>conftest.$ac_ext
30768 cat >>conftest.$ac_ext <<_ACEOF
30769 /* end confdefs.h.  */
30770 #include <X11/Xlib.h>
30771 _ACEOF
30772 if { (ac_try="$ac_cpp conftest.$ac_ext"
30773 case "(($ac_try" in
30774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775   *) ac_try_echo=$ac_try;;
30776 esac
30777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30778 $as_echo "$ac_try_echo") >&5
30779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30780   ac_status=$?
30781   grep -v '^ *+' conftest.er1 >conftest.err
30782   rm -f conftest.er1
30783   cat conftest.err >&5
30784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); } >/dev/null && {
30786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30787          test ! -s conftest.err
30788        }; then
30789   # We can compile using X headers with no special include directory.
30790 ac_x_includes=
30791 else
30792   $as_echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30794
30795   for ac_dir in $ac_x_header_dirs; do
30796   if test -r "$ac_dir/X11/Xlib.h"; then
30797     ac_x_includes=$ac_dir
30798     break
30799   fi
30800 done
30801 fi
30802
30803 rm -f conftest.err conftest.$ac_ext
30804 fi # $ac_x_includes = no
30805
30806 if test "$ac_x_libraries" = no; then
30807   # Check for the libraries.
30808   # See if we find them without any special options.
30809   # Don't add to $LIBS permanently.
30810   ac_save_LIBS=$LIBS
30811   LIBS="-lX11 $LIBS"
30812   cat >conftest.$ac_ext <<_ACEOF
30813 /* confdefs.h.  */
30814 _ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h.  */
30818 #include <X11/Xlib.h>
30819 int
30820 main ()
30821 {
30822 XrmInitialize ()
30823   ;
30824   return 0;
30825 }
30826 _ACEOF
30827 rm -f conftest.$ac_objext conftest$ac_exeext
30828 if { (ac_try="$ac_link"
30829 case "(($ac_try" in
30830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831   *) ac_try_echo=$ac_try;;
30832 esac
30833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30834 $as_echo "$ac_try_echo") >&5
30835   (eval "$ac_link") 2>conftest.er1
30836   ac_status=$?
30837   grep -v '^ *+' conftest.er1 >conftest.err
30838   rm -f conftest.er1
30839   cat conftest.err >&5
30840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); } && {
30842          test -z "$ac_c_werror_flag" ||
30843          test ! -s conftest.err
30844        } && test -s conftest$ac_exeext && {
30845          test "$cross_compiling" = yes ||
30846          $as_test_x conftest$ac_exeext
30847        }; then
30848   LIBS=$ac_save_LIBS
30849 # We can link X programs with no special library path.
30850 ac_x_libraries=
30851 else
30852   $as_echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30854
30855         LIBS=$ac_save_LIBS
30856 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30857 do
30858   # Don't even attempt the hair of trying to link an X program!
30859   for ac_extension in a so sl dylib la dll; do
30860     if test -r "$ac_dir/libX11.$ac_extension"; then
30861       ac_x_libraries=$ac_dir
30862       break 2
30863     fi
30864   done
30865 done
30866 fi
30867
30868 rm -rf conftest.dSYM
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870       conftest$ac_exeext conftest.$ac_ext
30871 fi # $ac_x_libraries = no
30872
30873 case $ac_x_includes,$ac_x_libraries in #(
30874   no,* | *,no | *\'*)
30875     # Didn't find X, or a directory has "'" in its name.
30876     ac_cv_have_x="have_x=no";; #(
30877   *)
30878     # Record where we found X for the cache.
30879     ac_cv_have_x="have_x=yes\
30880         ac_x_includes='$ac_x_includes'\
30881         ac_x_libraries='$ac_x_libraries'"
30882 esac
30883 fi
30884 ;; #(
30885     *) have_x=yes;;
30886   esac
30887   eval "$ac_cv_have_x"
30888 fi # $with_x != no
30889
30890 if test "$have_x" != yes; then
30891   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30892 $as_echo "$have_x" >&6; }
30893   no_x=yes
30894 else
30895   # If each of the values was on the command line, it overrides each guess.
30896   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30897   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30898   # Update the cache value to reflect the command line values.
30899   ac_cv_have_x="have_x=yes\
30900         ac_x_includes='$x_includes'\
30901         ac_x_libraries='$x_libraries'"
30902   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30903 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30904 fi
30905
30906 if test "$no_x" = yes; then
30907   # Not all programs may use this symbol, but it does not hurt to define it.
30908
30909 cat >>confdefs.h <<\_ACEOF
30910 #define X_DISPLAY_MISSING 1
30911 _ACEOF
30912
30913   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30914 else
30915   if test -n "$x_includes"; then
30916     X_CFLAGS="$X_CFLAGS -I$x_includes"
30917   fi
30918
30919   # It would also be nice to do this for all -L options, not just this one.
30920   if test -n "$x_libraries"; then
30921     X_LIBS="$X_LIBS -L$x_libraries"
30922     # For Solaris; some versions of Sun CC require a space after -R and
30923     # others require no space.  Words are not sufficient . . . .
30924     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30925 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30926     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30927     ac_xsave_c_werror_flag=$ac_c_werror_flag
30928     ac_c_werror_flag=yes
30929     cat >conftest.$ac_ext <<_ACEOF
30930 /* confdefs.h.  */
30931 _ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h.  */
30935
30936 int
30937 main ()
30938 {
30939
30940   ;
30941   return 0;
30942 }
30943 _ACEOF
30944 rm -f conftest.$ac_objext conftest$ac_exeext
30945 if { (ac_try="$ac_link"
30946 case "(($ac_try" in
30947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948   *) ac_try_echo=$ac_try;;
30949 esac
30950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30951 $as_echo "$ac_try_echo") >&5
30952   (eval "$ac_link") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } && {
30959          test -z "$ac_c_werror_flag" ||
30960          test ! -s conftest.err
30961        } && test -s conftest$ac_exeext && {
30962          test "$cross_compiling" = yes ||
30963          $as_test_x conftest$ac_exeext
30964        }; then
30965   { $as_echo "$as_me:$LINENO: result: no" >&5
30966 $as_echo "no" >&6; }
30967        X_LIBS="$X_LIBS -R$x_libraries"
30968 else
30969   $as_echo "$as_me: failed program was:" >&5
30970 sed 's/^/| /' conftest.$ac_ext >&5
30971
30972         LIBS="$ac_xsave_LIBS -R $x_libraries"
30973        cat >conftest.$ac_ext <<_ACEOF
30974 /* confdefs.h.  */
30975 _ACEOF
30976 cat confdefs.h >>conftest.$ac_ext
30977 cat >>conftest.$ac_ext <<_ACEOF
30978 /* end confdefs.h.  */
30979
30980 int
30981 main ()
30982 {
30983
30984   ;
30985   return 0;
30986 }
30987 _ACEOF
30988 rm -f conftest.$ac_objext conftest$ac_exeext
30989 if { (ac_try="$ac_link"
30990 case "(($ac_try" in
30991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992   *) ac_try_echo=$ac_try;;
30993 esac
30994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30995 $as_echo "$ac_try_echo") >&5
30996   (eval "$ac_link") 2>conftest.er1
30997   ac_status=$?
30998   grep -v '^ *+' conftest.er1 >conftest.err
30999   rm -f conftest.er1
31000   cat conftest.err >&5
31001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); } && {
31003          test -z "$ac_c_werror_flag" ||
31004          test ! -s conftest.err
31005        } && test -s conftest$ac_exeext && {
31006          test "$cross_compiling" = yes ||
31007          $as_test_x conftest$ac_exeext
31008        }; then
31009   { $as_echo "$as_me:$LINENO: result: yes" >&5
31010 $as_echo "yes" >&6; }
31011           X_LIBS="$X_LIBS -R $x_libraries"
31012 else
31013   $as_echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016         { $as_echo "$as_me:$LINENO: result: neither works" >&5
31017 $as_echo "neither works" >&6; }
31018 fi
31019
31020 rm -rf conftest.dSYM
31021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31022       conftest$ac_exeext conftest.$ac_ext
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     ac_c_werror_flag=$ac_xsave_c_werror_flag
31029     LIBS=$ac_xsave_LIBS
31030   fi
31031
31032   # Check for system-dependent libraries X programs must link with.
31033   # Do this before checking for the system-independent R6 libraries
31034   # (-lICE), since we may need -lsocket or whatever for X linking.
31035
31036   if test "$ISC" = yes; then
31037     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31038   else
31039     # Martyn Johnson says this is needed for Ultrix, if the X
31040     # libraries were built with DECnet support.  And Karl Berry says
31041     # the Alpha needs dnet_stub (dnet does not exist).
31042     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
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
31050 /* Override any GCC internal prototype to avoid an error.
31051    Use char because int might match the return type of a GCC
31052    builtin and then its argument prototype would still apply.  */
31053 #ifdef __cplusplus
31054 extern "C"
31055 #endif
31056 char XOpenDisplay ();
31057 int
31058 main ()
31059 {
31060 return XOpenDisplay ();
31061   ;
31062   return 0;
31063 }
31064 _ACEOF
31065 rm -f conftest.$ac_objext conftest$ac_exeext
31066 if { (ac_try="$ac_link"
31067 case "(($ac_try" in
31068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31069   *) ac_try_echo=$ac_try;;
31070 esac
31071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31072 $as_echo "$ac_try_echo") >&5
31073   (eval "$ac_link") 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } && {
31080          test -z "$ac_c_werror_flag" ||
31081          test ! -s conftest.err
31082        } && test -s conftest$ac_exeext && {
31083          test "$cross_compiling" = yes ||
31084          $as_test_x conftest$ac_exeext
31085        }; then
31086   :
31087 else
31088   $as_echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31090
31091         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31092 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
31093 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31094   $as_echo_n "(cached) " >&6
31095 else
31096   ac_check_lib_save_LIBS=$LIBS
31097 LIBS="-ldnet  $LIBS"
31098 cat >conftest.$ac_ext <<_ACEOF
31099 /* confdefs.h.  */
31100 _ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h.  */
31104
31105 /* Override any GCC internal prototype to avoid an error.
31106    Use char because int might match the return type of a GCC
31107    builtin and then its argument prototype would still apply.  */
31108 #ifdef __cplusplus
31109 extern "C"
31110 #endif
31111 char dnet_ntoa ();
31112 int
31113 main ()
31114 {
31115 return dnet_ntoa ();
31116   ;
31117   return 0;
31118 }
31119 _ACEOF
31120 rm -f conftest.$ac_objext conftest$ac_exeext
31121 if { (ac_try="$ac_link"
31122 case "(($ac_try" in
31123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124   *) ac_try_echo=$ac_try;;
31125 esac
31126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31127 $as_echo "$ac_try_echo") >&5
31128   (eval "$ac_link") 2>conftest.er1
31129   ac_status=$?
31130   grep -v '^ *+' conftest.er1 >conftest.err
31131   rm -f conftest.er1
31132   cat conftest.err >&5
31133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); } && {
31135          test -z "$ac_c_werror_flag" ||
31136          test ! -s conftest.err
31137        } && test -s conftest$ac_exeext && {
31138          test "$cross_compiling" = yes ||
31139          $as_test_x conftest$ac_exeext
31140        }; then
31141   ac_cv_lib_dnet_dnet_ntoa=yes
31142 else
31143   $as_echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31145
31146         ac_cv_lib_dnet_dnet_ntoa=no
31147 fi
31148
31149 rm -rf conftest.dSYM
31150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31151       conftest$ac_exeext conftest.$ac_ext
31152 LIBS=$ac_check_lib_save_LIBS
31153 fi
31154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31155 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31156 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
31157   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31158 fi
31159
31160     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31161       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31162 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
31163 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31164   $as_echo_n "(cached) " >&6
31165 else
31166   ac_check_lib_save_LIBS=$LIBS
31167 LIBS="-ldnet_stub  $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31169 /* confdefs.h.  */
31170 _ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h.  */
31174
31175 /* Override any GCC internal prototype to avoid an error.
31176    Use char because int might match the return type of a GCC
31177    builtin and then its argument prototype would still apply.  */
31178 #ifdef __cplusplus
31179 extern "C"
31180 #endif
31181 char dnet_ntoa ();
31182 int
31183 main ()
31184 {
31185 return dnet_ntoa ();
31186   ;
31187   return 0;
31188 }
31189 _ACEOF
31190 rm -f conftest.$ac_objext conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194   *) ac_try_echo=$ac_try;;
31195 esac
31196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31197 $as_echo "$ac_try_echo") >&5
31198   (eval "$ac_link") 2>conftest.er1
31199   ac_status=$?
31200   grep -v '^ *+' conftest.er1 >conftest.err
31201   rm -f conftest.er1
31202   cat conftest.err >&5
31203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204   (exit $ac_status); } && {
31205          test -z "$ac_c_werror_flag" ||
31206          test ! -s conftest.err
31207        } && test -s conftest$ac_exeext && {
31208          test "$cross_compiling" = yes ||
31209          $as_test_x conftest$ac_exeext
31210        }; then
31211   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31212 else
31213   $as_echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31215
31216         ac_cv_lib_dnet_stub_dnet_ntoa=no
31217 fi
31218
31219 rm -rf conftest.dSYM
31220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31221       conftest$ac_exeext conftest.$ac_ext
31222 LIBS=$ac_check_lib_save_LIBS
31223 fi
31224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31225 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31226 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31227   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31228 fi
31229
31230     fi
31231 fi
31232
31233 rm -rf conftest.dSYM
31234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31235       conftest$ac_exeext conftest.$ac_ext
31236     LIBS="$ac_xsave_LIBS"
31237
31238     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31239     # to get the SysV transport functions.
31240     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31241     # needs -lnsl.
31242     # The nsl library prevents programs from opening the X display
31243     # on Irix 5.2, according to T.E. Dickey.
31244     # The functions gethostbyname, getservbyname, and inet_addr are
31245     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31246     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31247 $as_echo_n "checking for gethostbyname... " >&6; }
31248 if test "${ac_cv_func_gethostbyname+set}" = set; then
31249   $as_echo_n "(cached) " >&6
31250 else
31251   cat >conftest.$ac_ext <<_ACEOF
31252 /* confdefs.h.  */
31253 _ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h.  */
31257 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31259 #define gethostbyname innocuous_gethostbyname
31260
31261 /* System header to define __stub macros and hopefully few prototypes,
31262     which can conflict with char gethostbyname (); below.
31263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31264     <limits.h> exists even on freestanding compilers.  */
31265
31266 #ifdef __STDC__
31267 # include <limits.h>
31268 #else
31269 # include <assert.h>
31270 #endif
31271
31272 #undef gethostbyname
31273
31274 /* Override any GCC internal prototype to avoid an error.
31275    Use char because int might match the return type of a GCC
31276    builtin and then its argument prototype would still apply.  */
31277 #ifdef __cplusplus
31278 extern "C"
31279 #endif
31280 char gethostbyname ();
31281 /* The GNU C library defines this for functions which it implements
31282     to always fail with ENOSYS.  Some functions are actually named
31283     something starting with __ and the normal name is an alias.  */
31284 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31285 choke me
31286 #endif
31287
31288 int
31289 main ()
31290 {
31291 return gethostbyname ();
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31303 $as_echo "$ac_try_echo") >&5
31304   (eval "$ac_link") 2>conftest.er1
31305   ac_status=$?
31306   grep -v '^ *+' conftest.er1 >conftest.err
31307   rm -f conftest.er1
31308   cat conftest.err >&5
31309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); } && {
31311          test -z "$ac_c_werror_flag" ||
31312          test ! -s conftest.err
31313        } && test -s conftest$ac_exeext && {
31314          test "$cross_compiling" = yes ||
31315          $as_test_x conftest$ac_exeext
31316        }; then
31317   ac_cv_func_gethostbyname=yes
31318 else
31319   $as_echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31321
31322         ac_cv_func_gethostbyname=no
31323 fi
31324
31325 rm -rf conftest.dSYM
31326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31327       conftest$ac_exeext conftest.$ac_ext
31328 fi
31329 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31330 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31331
31332     if test $ac_cv_func_gethostbyname = no; then
31333       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31334 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31335 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31336   $as_echo_n "(cached) " >&6
31337 else
31338   ac_check_lib_save_LIBS=$LIBS
31339 LIBS="-lnsl  $LIBS"
31340 cat >conftest.$ac_ext <<_ACEOF
31341 /* confdefs.h.  */
31342 _ACEOF
31343 cat confdefs.h >>conftest.$ac_ext
31344 cat >>conftest.$ac_ext <<_ACEOF
31345 /* end confdefs.h.  */
31346
31347 /* Override any GCC internal prototype to avoid an error.
31348    Use char because int might match the return type of a GCC
31349    builtin and then its argument prototype would still apply.  */
31350 #ifdef __cplusplus
31351 extern "C"
31352 #endif
31353 char gethostbyname ();
31354 int
31355 main ()
31356 {
31357 return gethostbyname ();
31358   ;
31359   return 0;
31360 }
31361 _ACEOF
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366   *) ac_try_echo=$ac_try;;
31367 esac
31368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31369 $as_echo "$ac_try_echo") >&5
31370   (eval "$ac_link") 2>conftest.er1
31371   ac_status=$?
31372   grep -v '^ *+' conftest.er1 >conftest.err
31373   rm -f conftest.er1
31374   cat conftest.err >&5
31375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376   (exit $ac_status); } && {
31377          test -z "$ac_c_werror_flag" ||
31378          test ! -s conftest.err
31379        } && test -s conftest$ac_exeext && {
31380          test "$cross_compiling" = yes ||
31381          $as_test_x conftest$ac_exeext
31382        }; then
31383   ac_cv_lib_nsl_gethostbyname=yes
31384 else
31385   $as_echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31387
31388         ac_cv_lib_nsl_gethostbyname=no
31389 fi
31390
31391 rm -rf conftest.dSYM
31392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31393       conftest$ac_exeext conftest.$ac_ext
31394 LIBS=$ac_check_lib_save_LIBS
31395 fi
31396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31397 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31398 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31399   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31400 fi
31401
31402       if test $ac_cv_lib_nsl_gethostbyname = no; then
31403         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31404 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31405 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31406   $as_echo_n "(cached) " >&6
31407 else
31408   ac_check_lib_save_LIBS=$LIBS
31409 LIBS="-lbsd  $LIBS"
31410 cat >conftest.$ac_ext <<_ACEOF
31411 /* confdefs.h.  */
31412 _ACEOF
31413 cat confdefs.h >>conftest.$ac_ext
31414 cat >>conftest.$ac_ext <<_ACEOF
31415 /* end confdefs.h.  */
31416
31417 /* Override any GCC internal prototype to avoid an error.
31418    Use char because int might match the return type of a GCC
31419    builtin and then its argument prototype would still apply.  */
31420 #ifdef __cplusplus
31421 extern "C"
31422 #endif
31423 char gethostbyname ();
31424 int
31425 main ()
31426 {
31427 return gethostbyname ();
31428   ;
31429   return 0;
31430 }
31431 _ACEOF
31432 rm -f conftest.$ac_objext conftest$ac_exeext
31433 if { (ac_try="$ac_link"
31434 case "(($ac_try" in
31435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436   *) ac_try_echo=$ac_try;;
31437 esac
31438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31439 $as_echo "$ac_try_echo") >&5
31440   (eval "$ac_link") 2>conftest.er1
31441   ac_status=$?
31442   grep -v '^ *+' conftest.er1 >conftest.err
31443   rm -f conftest.er1
31444   cat conftest.err >&5
31445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); } && {
31447          test -z "$ac_c_werror_flag" ||
31448          test ! -s conftest.err
31449        } && test -s conftest$ac_exeext && {
31450          test "$cross_compiling" = yes ||
31451          $as_test_x conftest$ac_exeext
31452        }; then
31453   ac_cv_lib_bsd_gethostbyname=yes
31454 else
31455   $as_echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31457
31458         ac_cv_lib_bsd_gethostbyname=no
31459 fi
31460
31461 rm -rf conftest.dSYM
31462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31463       conftest$ac_exeext conftest.$ac_ext
31464 LIBS=$ac_check_lib_save_LIBS
31465 fi
31466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31467 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31468 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31469   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31470 fi
31471
31472       fi
31473     fi
31474
31475     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31476     # socket/setsockopt and other routines are undefined under SCO ODT
31477     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31478     # on later versions), says Simon Leinen: it contains gethostby*
31479     # variants that don't use the name server (or something).  -lsocket
31480     # must be given before -lnsl if both are needed.  We assume that
31481     # if connect needs -lnsl, so does gethostbyname.
31482     { $as_echo "$as_me:$LINENO: checking for connect" >&5
31483 $as_echo_n "checking for connect... " >&6; }
31484 if test "${ac_cv_func_connect+set}" = set; then
31485   $as_echo_n "(cached) " >&6
31486 else
31487   cat >conftest.$ac_ext <<_ACEOF
31488 /* confdefs.h.  */
31489 _ACEOF
31490 cat confdefs.h >>conftest.$ac_ext
31491 cat >>conftest.$ac_ext <<_ACEOF
31492 /* end confdefs.h.  */
31493 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31495 #define connect innocuous_connect
31496
31497 /* System header to define __stub macros and hopefully few prototypes,
31498     which can conflict with char connect (); below.
31499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31500     <limits.h> exists even on freestanding compilers.  */
31501
31502 #ifdef __STDC__
31503 # include <limits.h>
31504 #else
31505 # include <assert.h>
31506 #endif
31507
31508 #undef connect
31509
31510 /* Override any GCC internal prototype to avoid an error.
31511    Use char because int might match the return type of a GCC
31512    builtin and then its argument prototype would still apply.  */
31513 #ifdef __cplusplus
31514 extern "C"
31515 #endif
31516 char connect ();
31517 /* The GNU C library defines this for functions which it implements
31518     to always fail with ENOSYS.  Some functions are actually named
31519     something starting with __ and the normal name is an alias.  */
31520 #if defined __stub_connect || defined __stub___connect
31521 choke me
31522 #endif
31523
31524 int
31525 main ()
31526 {
31527 return connect ();
31528   ;
31529   return 0;
31530 }
31531 _ACEOF
31532 rm -f conftest.$ac_objext conftest$ac_exeext
31533 if { (ac_try="$ac_link"
31534 case "(($ac_try" in
31535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31536   *) ac_try_echo=$ac_try;;
31537 esac
31538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31539 $as_echo "$ac_try_echo") >&5
31540   (eval "$ac_link") 2>conftest.er1
31541   ac_status=$?
31542   grep -v '^ *+' conftest.er1 >conftest.err
31543   rm -f conftest.er1
31544   cat conftest.err >&5
31545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546   (exit $ac_status); } && {
31547          test -z "$ac_c_werror_flag" ||
31548          test ! -s conftest.err
31549        } && test -s conftest$ac_exeext && {
31550          test "$cross_compiling" = yes ||
31551          $as_test_x conftest$ac_exeext
31552        }; then
31553   ac_cv_func_connect=yes
31554 else
31555   $as_echo "$as_me: failed program was:" >&5
31556 sed 's/^/| /' conftest.$ac_ext >&5
31557
31558         ac_cv_func_connect=no
31559 fi
31560
31561 rm -rf conftest.dSYM
31562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31563       conftest$ac_exeext conftest.$ac_ext
31564 fi
31565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31566 $as_echo "$ac_cv_func_connect" >&6; }
31567
31568     if test $ac_cv_func_connect = no; then
31569       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31570 $as_echo_n "checking for connect in -lsocket... " >&6; }
31571 if test "${ac_cv_lib_socket_connect+set}" = set; then
31572   $as_echo_n "(cached) " >&6
31573 else
31574   ac_check_lib_save_LIBS=$LIBS
31575 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31576 cat >conftest.$ac_ext <<_ACEOF
31577 /* confdefs.h.  */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h.  */
31582
31583 /* Override any GCC internal prototype to avoid an error.
31584    Use char because int might match the return type of a GCC
31585    builtin and then its argument prototype would still apply.  */
31586 #ifdef __cplusplus
31587 extern "C"
31588 #endif
31589 char connect ();
31590 int
31591 main ()
31592 {
31593 return connect ();
31594   ;
31595   return 0;
31596 }
31597 _ACEOF
31598 rm -f conftest.$ac_objext conftest$ac_exeext
31599 if { (ac_try="$ac_link"
31600 case "(($ac_try" in
31601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602   *) ac_try_echo=$ac_try;;
31603 esac
31604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31605 $as_echo "$ac_try_echo") >&5
31606   (eval "$ac_link") 2>conftest.er1
31607   ac_status=$?
31608   grep -v '^ *+' conftest.er1 >conftest.err
31609   rm -f conftest.er1
31610   cat conftest.err >&5
31611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); } && {
31613          test -z "$ac_c_werror_flag" ||
31614          test ! -s conftest.err
31615        } && test -s conftest$ac_exeext && {
31616          test "$cross_compiling" = yes ||
31617          $as_test_x conftest$ac_exeext
31618        }; then
31619   ac_cv_lib_socket_connect=yes
31620 else
31621   $as_echo "$as_me: failed program was:" >&5
31622 sed 's/^/| /' conftest.$ac_ext >&5
31623
31624         ac_cv_lib_socket_connect=no
31625 fi
31626
31627 rm -rf conftest.dSYM
31628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31629       conftest$ac_exeext conftest.$ac_ext
31630 LIBS=$ac_check_lib_save_LIBS
31631 fi
31632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31633 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31634 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31635   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31636 fi
31637
31638     fi
31639
31640     # Guillermo Gomez says -lposix is necessary on A/UX.
31641     { $as_echo "$as_me:$LINENO: checking for remove" >&5
31642 $as_echo_n "checking for remove... " >&6; }
31643 if test "${ac_cv_func_remove+set}" = set; then
31644   $as_echo_n "(cached) " >&6
31645 else
31646   cat >conftest.$ac_ext <<_ACEOF
31647 /* confdefs.h.  */
31648 _ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h.  */
31652 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31654 #define remove innocuous_remove
31655
31656 /* System header to define __stub macros and hopefully few prototypes,
31657     which can conflict with char remove (); below.
31658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31659     <limits.h> exists even on freestanding compilers.  */
31660
31661 #ifdef __STDC__
31662 # include <limits.h>
31663 #else
31664 # include <assert.h>
31665 #endif
31666
31667 #undef remove
31668
31669 /* Override any GCC internal prototype to avoid an error.
31670    Use char because int might match the return type of a GCC
31671    builtin and then its argument prototype would still apply.  */
31672 #ifdef __cplusplus
31673 extern "C"
31674 #endif
31675 char remove ();
31676 /* The GNU C library defines this for functions which it implements
31677     to always fail with ENOSYS.  Some functions are actually named
31678     something starting with __ and the normal name is an alias.  */
31679 #if defined __stub_remove || defined __stub___remove
31680 choke me
31681 #endif
31682
31683 int
31684 main ()
31685 {
31686 return remove ();
31687   ;
31688   return 0;
31689 }
31690 _ACEOF
31691 rm -f conftest.$ac_objext conftest$ac_exeext
31692 if { (ac_try="$ac_link"
31693 case "(($ac_try" in
31694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695   *) ac_try_echo=$ac_try;;
31696 esac
31697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31698 $as_echo "$ac_try_echo") >&5
31699   (eval "$ac_link") 2>conftest.er1
31700   ac_status=$?
31701   grep -v '^ *+' conftest.er1 >conftest.err
31702   rm -f conftest.er1
31703   cat conftest.err >&5
31704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705   (exit $ac_status); } && {
31706          test -z "$ac_c_werror_flag" ||
31707          test ! -s conftest.err
31708        } && test -s conftest$ac_exeext && {
31709          test "$cross_compiling" = yes ||
31710          $as_test_x conftest$ac_exeext
31711        }; then
31712   ac_cv_func_remove=yes
31713 else
31714   $as_echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31716
31717         ac_cv_func_remove=no
31718 fi
31719
31720 rm -rf conftest.dSYM
31721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31722       conftest$ac_exeext conftest.$ac_ext
31723 fi
31724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31725 $as_echo "$ac_cv_func_remove" >&6; }
31726
31727     if test $ac_cv_func_remove = no; then
31728       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31729 $as_echo_n "checking for remove in -lposix... " >&6; }
31730 if test "${ac_cv_lib_posix_remove+set}" = set; then
31731   $as_echo_n "(cached) " >&6
31732 else
31733   ac_check_lib_save_LIBS=$LIBS
31734 LIBS="-lposix  $LIBS"
31735 cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741
31742 /* Override any GCC internal prototype to avoid an error.
31743    Use char because int might match the return type of a GCC
31744    builtin and then its argument prototype would still apply.  */
31745 #ifdef __cplusplus
31746 extern "C"
31747 #endif
31748 char remove ();
31749 int
31750 main ()
31751 {
31752 return remove ();
31753   ;
31754   return 0;
31755 }
31756 _ACEOF
31757 rm -f conftest.$ac_objext conftest$ac_exeext
31758 if { (ac_try="$ac_link"
31759 case "(($ac_try" in
31760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31761   *) ac_try_echo=$ac_try;;
31762 esac
31763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31764 $as_echo "$ac_try_echo") >&5
31765   (eval "$ac_link") 2>conftest.er1
31766   ac_status=$?
31767   grep -v '^ *+' conftest.er1 >conftest.err
31768   rm -f conftest.er1
31769   cat conftest.err >&5
31770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); } && {
31772          test -z "$ac_c_werror_flag" ||
31773          test ! -s conftest.err
31774        } && test -s conftest$ac_exeext && {
31775          test "$cross_compiling" = yes ||
31776          $as_test_x conftest$ac_exeext
31777        }; then
31778   ac_cv_lib_posix_remove=yes
31779 else
31780   $as_echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783         ac_cv_lib_posix_remove=no
31784 fi
31785
31786 rm -rf conftest.dSYM
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788       conftest$ac_exeext conftest.$ac_ext
31789 LIBS=$ac_check_lib_save_LIBS
31790 fi
31791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31792 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31793 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31794   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31795 fi
31796
31797     fi
31798
31799     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31800     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31801 $as_echo_n "checking for shmat... " >&6; }
31802 if test "${ac_cv_func_shmat+set}" = set; then
31803   $as_echo_n "(cached) " >&6
31804 else
31805   cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31813 #define shmat innocuous_shmat
31814
31815 /* System header to define __stub macros and hopefully few prototypes,
31816     which can conflict with char shmat (); below.
31817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31818     <limits.h> exists even on freestanding compilers.  */
31819
31820 #ifdef __STDC__
31821 # include <limits.h>
31822 #else
31823 # include <assert.h>
31824 #endif
31825
31826 #undef shmat
31827
31828 /* Override any GCC internal prototype to avoid an error.
31829    Use char because int might match the return type of a GCC
31830    builtin and then its argument prototype would still apply.  */
31831 #ifdef __cplusplus
31832 extern "C"
31833 #endif
31834 char shmat ();
31835 /* The GNU C library defines this for functions which it implements
31836     to always fail with ENOSYS.  Some functions are actually named
31837     something starting with __ and the normal name is an alias.  */
31838 #if defined __stub_shmat || defined __stub___shmat
31839 choke me
31840 #endif
31841
31842 int
31843 main ()
31844 {
31845 return shmat ();
31846   ;
31847   return 0;
31848 }
31849 _ACEOF
31850 rm -f conftest.$ac_objext conftest$ac_exeext
31851 if { (ac_try="$ac_link"
31852 case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31857 $as_echo "$ac_try_echo") >&5
31858   (eval "$ac_link") 2>conftest.er1
31859   ac_status=$?
31860   grep -v '^ *+' conftest.er1 >conftest.err
31861   rm -f conftest.er1
31862   cat conftest.err >&5
31863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864   (exit $ac_status); } && {
31865          test -z "$ac_c_werror_flag" ||
31866          test ! -s conftest.err
31867        } && test -s conftest$ac_exeext && {
31868          test "$cross_compiling" = yes ||
31869          $as_test_x conftest$ac_exeext
31870        }; then
31871   ac_cv_func_shmat=yes
31872 else
31873   $as_echo "$as_me: failed program was:" >&5
31874 sed 's/^/| /' conftest.$ac_ext >&5
31875
31876         ac_cv_func_shmat=no
31877 fi
31878
31879 rm -rf conftest.dSYM
31880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31881       conftest$ac_exeext conftest.$ac_ext
31882 fi
31883 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31884 $as_echo "$ac_cv_func_shmat" >&6; }
31885
31886     if test $ac_cv_func_shmat = no; then
31887       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31888 $as_echo_n "checking for shmat in -lipc... " >&6; }
31889 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31890   $as_echo_n "(cached) " >&6
31891 else
31892   ac_check_lib_save_LIBS=$LIBS
31893 LIBS="-lipc  $LIBS"
31894 cat >conftest.$ac_ext <<_ACEOF
31895 /* confdefs.h.  */
31896 _ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h.  */
31900
31901 /* Override any GCC internal prototype to avoid an error.
31902    Use char because int might match the return type of a GCC
31903    builtin and then its argument prototype would still apply.  */
31904 #ifdef __cplusplus
31905 extern "C"
31906 #endif
31907 char shmat ();
31908 int
31909 main ()
31910 {
31911 return shmat ();
31912   ;
31913   return 0;
31914 }
31915 _ACEOF
31916 rm -f conftest.$ac_objext conftest$ac_exeext
31917 if { (ac_try="$ac_link"
31918 case "(($ac_try" in
31919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920   *) ac_try_echo=$ac_try;;
31921 esac
31922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31923 $as_echo "$ac_try_echo") >&5
31924   (eval "$ac_link") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_c_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest$ac_exeext && {
31934          test "$cross_compiling" = yes ||
31935          $as_test_x conftest$ac_exeext
31936        }; then
31937   ac_cv_lib_ipc_shmat=yes
31938 else
31939   $as_echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31941
31942         ac_cv_lib_ipc_shmat=no
31943 fi
31944
31945 rm -rf conftest.dSYM
31946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31947       conftest$ac_exeext conftest.$ac_ext
31948 LIBS=$ac_check_lib_save_LIBS
31949 fi
31950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31951 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31952 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31953   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31954 fi
31955
31956     fi
31957   fi
31958
31959   # Check for libraries that X11R6 Xt/Xaw programs need.
31960   ac_save_LDFLAGS=$LDFLAGS
31961   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31962   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31963   # check for ICE first), but we must link in the order -lSM -lICE or
31964   # we get undefined symbols.  So assume we have SM if we have ICE.
31965   # These have to be linked with before -lX11, unlike the other
31966   # libraries we check for below, so use a different variable.
31967   # John Interrante, Karl Berry
31968   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31969 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31970 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31971   $as_echo_n "(cached) " >&6
31972 else
31973   ac_check_lib_save_LIBS=$LIBS
31974 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31975 cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981
31982 /* Override any GCC internal prototype to avoid an error.
31983    Use char because int might match the return type of a GCC
31984    builtin and then its argument prototype would still apply.  */
31985 #ifdef __cplusplus
31986 extern "C"
31987 #endif
31988 char IceConnectionNumber ();
31989 int
31990 main ()
31991 {
31992 return IceConnectionNumber ();
31993   ;
31994   return 0;
31995 }
31996 _ACEOF
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001   *) ac_try_echo=$ac_try;;
32002 esac
32003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32004 $as_echo "$ac_try_echo") >&5
32005   (eval "$ac_link") 2>conftest.er1
32006   ac_status=$?
32007   grep -v '^ *+' conftest.er1 >conftest.err
32008   rm -f conftest.er1
32009   cat conftest.err >&5
32010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011   (exit $ac_status); } && {
32012          test -z "$ac_c_werror_flag" ||
32013          test ! -s conftest.err
32014        } && test -s conftest$ac_exeext && {
32015          test "$cross_compiling" = yes ||
32016          $as_test_x conftest$ac_exeext
32017        }; then
32018   ac_cv_lib_ICE_IceConnectionNumber=yes
32019 else
32020   $as_echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023         ac_cv_lib_ICE_IceConnectionNumber=no
32024 fi
32025
32026 rm -rf conftest.dSYM
32027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32028       conftest$ac_exeext conftest.$ac_ext
32029 LIBS=$ac_check_lib_save_LIBS
32030 fi
32031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32032 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32033 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
32034   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32035 fi
32036
32037   LDFLAGS=$ac_save_LDFLAGS
32038
32039 fi
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071 for ac_header in \
32072    assert.h \
32073    fcntl.h \
32074    grp.h \
32075    pwd.h \
32076    libc.h \
32077    limits.h \
32078    stdarg.h \
32079    stdlib.h \
32080    stdint.h \
32081    string.h \
32082    strings.h \
32083    termios.h \
32084    termcap.h \
32085    term.h \
32086    unistd.h \
32087    sys/bitypes.h \
32088    sys/byteorder.h \
32089    sys/ioctl.h \
32090    sys/select.h \
32091    sys/socket.h \
32092    sys/sockio.h \
32093    sys/stat.h \
32094    sys/time.h \
32095    sys/types.h \
32096    arpa/nameser.h \
32097    mtio.h \
32098    sys/mtio.h \
32099    sys/tape.h \
32100    regex.h \
32101
32102 do
32103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32105   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32106 $as_echo_n "checking for $ac_header... " >&6; }
32107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32108   $as_echo_n "(cached) " >&6
32109 fi
32110 ac_res=`eval 'as_val=${'$as_ac_Header'}
32111                  $as_echo "$as_val"'`
32112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32113 $as_echo "$ac_res" >&6; }
32114 else
32115   # Is the header compilable?
32116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32117 $as_echo_n "checking $ac_header usability... " >&6; }
32118 cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124 $ac_includes_default
32125 #include <$ac_header>
32126 _ACEOF
32127 rm -f conftest.$ac_objext
32128 if { (ac_try="$ac_compile"
32129 case "(($ac_try" in
32130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131   *) ac_try_echo=$ac_try;;
32132 esac
32133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32134 $as_echo "$ac_try_echo") >&5
32135   (eval "$ac_compile") 2>conftest.er1
32136   ac_status=$?
32137   grep -v '^ *+' conftest.er1 >conftest.err
32138   rm -f conftest.er1
32139   cat conftest.err >&5
32140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141   (exit $ac_status); } && {
32142          test -z "$ac_c_werror_flag" ||
32143          test ! -s conftest.err
32144        } && test -s conftest.$ac_objext; then
32145   ac_header_compiler=yes
32146 else
32147   $as_echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32149
32150         ac_header_compiler=no
32151 fi
32152
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32155 $as_echo "$ac_header_compiler" >&6; }
32156
32157 # Is the header present?
32158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32159 $as_echo_n "checking $ac_header presence... " >&6; }
32160 cat >conftest.$ac_ext <<_ACEOF
32161 /* confdefs.h.  */
32162 _ACEOF
32163 cat confdefs.h >>conftest.$ac_ext
32164 cat >>conftest.$ac_ext <<_ACEOF
32165 /* end confdefs.h.  */
32166 #include <$ac_header>
32167 _ACEOF
32168 if { (ac_try="$ac_cpp conftest.$ac_ext"
32169 case "(($ac_try" in
32170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171   *) ac_try_echo=$ac_try;;
32172 esac
32173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32174 $as_echo "$ac_try_echo") >&5
32175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } >/dev/null && {
32182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32183          test ! -s conftest.err
32184        }; then
32185   ac_header_preproc=yes
32186 else
32187   $as_echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32189
32190   ac_header_preproc=no
32191 fi
32192
32193 rm -f conftest.err conftest.$ac_ext
32194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32195 $as_echo "$ac_header_preproc" >&6; }
32196
32197 # So?  What about this header?
32198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32199   yes:no: )
32200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32204     ac_header_preproc=yes
32205     ;;
32206   no:yes:* )
32207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32210 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32214 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32219
32220     ;;
32221 esac
32222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32223 $as_echo_n "checking for $ac_header... " >&6; }
32224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32225   $as_echo_n "(cached) " >&6
32226 else
32227   eval "$as_ac_Header=\$ac_header_preproc"
32228 fi
32229 ac_res=`eval 'as_val=${'$as_ac_Header'}
32230                  $as_echo "$as_val"'`
32231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32232 $as_echo "$ac_res" >&6; }
32233
32234 fi
32235 as_val=`eval 'as_val=${'$as_ac_Header'}
32236                  $as_echo "$as_val"'`
32237    if test "x$as_val" = x""yes; then
32238   cat >>confdefs.h <<_ACEOF
32239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32240 _ACEOF
32241
32242 fi
32243
32244 done
32245
32246 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32247 $as_echo_n "checking for ANSI C header files... " >&6; }
32248 if test "${ac_cv_header_stdc+set}" = set; then
32249   $as_echo_n "(cached) " >&6
32250 else
32251   cat >conftest.$ac_ext <<_ACEOF
32252 /* confdefs.h.  */
32253 _ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h.  */
32257 #include <stdlib.h>
32258 #include <stdarg.h>
32259 #include <string.h>
32260 #include <float.h>
32261
32262 int
32263 main ()
32264 {
32265
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext
32271 if { (ac_try="$ac_compile"
32272 case "(($ac_try" in
32273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274   *) ac_try_echo=$ac_try;;
32275 esac
32276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32277 $as_echo "$ac_try_echo") >&5
32278   (eval "$ac_compile") 2>conftest.er1
32279   ac_status=$?
32280   grep -v '^ *+' conftest.er1 >conftest.err
32281   rm -f conftest.er1
32282   cat conftest.err >&5
32283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284   (exit $ac_status); } && {
32285          test -z "$ac_c_werror_flag" ||
32286          test ! -s conftest.err
32287        } && test -s conftest.$ac_objext; then
32288   ac_cv_header_stdc=yes
32289 else
32290   $as_echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         ac_cv_header_stdc=no
32294 fi
32295
32296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32297
32298 if test $ac_cv_header_stdc = yes; then
32299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32300   cat >conftest.$ac_ext <<_ACEOF
32301 /* confdefs.h.  */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h.  */
32306 #include <string.h>
32307
32308 _ACEOF
32309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32310   $EGREP "memchr" >/dev/null 2>&1; then
32311   :
32312 else
32313   ac_cv_header_stdc=no
32314 fi
32315 rm -f conftest*
32316
32317 fi
32318
32319 if test $ac_cv_header_stdc = yes; then
32320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32321   cat >conftest.$ac_ext <<_ACEOF
32322 /* confdefs.h.  */
32323 _ACEOF
32324 cat confdefs.h >>conftest.$ac_ext
32325 cat >>conftest.$ac_ext <<_ACEOF
32326 /* end confdefs.h.  */
32327 #include <stdlib.h>
32328
32329 _ACEOF
32330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32331   $EGREP "free" >/dev/null 2>&1; then
32332   :
32333 else
32334   ac_cv_header_stdc=no
32335 fi
32336 rm -f conftest*
32337
32338 fi
32339
32340 if test $ac_cv_header_stdc = yes; then
32341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32342   if test "$cross_compiling" = yes; then
32343   :
32344 else
32345   cat >conftest.$ac_ext <<_ACEOF
32346 /* confdefs.h.  */
32347 _ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h.  */
32351 #include <ctype.h>
32352 #include <stdlib.h>
32353 #if ((' ' & 0x0FF) == 0x020)
32354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32356 #else
32357 # define ISLOWER(c) \
32358                    (('a' <= (c) && (c) <= 'i') \
32359                      || ('j' <= (c) && (c) <= 'r') \
32360                      || ('s' <= (c) && (c) <= 'z'))
32361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32362 #endif
32363
32364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32365 int
32366 main ()
32367 {
32368   int i;
32369   for (i = 0; i < 256; i++)
32370     if (XOR (islower (i), ISLOWER (i))
32371         || toupper (i) != TOUPPER (i))
32372       return 2;
32373   return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest$ac_exeext
32377 if { (ac_try="$ac_link"
32378 case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32383 $as_echo "$ac_try_echo") >&5
32384   (eval "$ac_link") 2>&5
32385   ac_status=$?
32386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32388   { (case "(($ac_try" in
32389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390   *) ac_try_echo=$ac_try;;
32391 esac
32392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32393 $as_echo "$ac_try_echo") >&5
32394   (eval "$ac_try") 2>&5
32395   ac_status=$?
32396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); }; }; then
32398   :
32399 else
32400   $as_echo "$as_me: program exited with status $ac_status" >&5
32401 $as_echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32403
32404 ( exit $ac_status )
32405 ac_cv_header_stdc=no
32406 fi
32407 rm -rf conftest.dSYM
32408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32409 fi
32410
32411
32412 fi
32413 fi
32414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32415 $as_echo "$ac_cv_header_stdc" >&6; }
32416 if test $ac_cv_header_stdc = yes; then
32417
32418 cat >>confdefs.h <<\_ACEOF
32419 #define STDC_HEADERS 1
32420 _ACEOF
32421
32422 fi
32423
32424 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32425 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32426 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32427   $as_echo_n "(cached) " >&6
32428 else
32429   cat >conftest.$ac_ext <<_ACEOF
32430 /* confdefs.h.  */
32431 _ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h.  */
32435 #include <sys/types.h>
32436 int
32437 main ()
32438 {
32439 return makedev(0, 0);
32440   ;
32441   return 0;
32442 }
32443 _ACEOF
32444 rm -f conftest.$ac_objext conftest$ac_exeext
32445 if { (ac_try="$ac_link"
32446 case "(($ac_try" in
32447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448   *) ac_try_echo=$ac_try;;
32449 esac
32450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32451 $as_echo "$ac_try_echo") >&5
32452   (eval "$ac_link") 2>conftest.er1
32453   ac_status=$?
32454   grep -v '^ *+' conftest.er1 >conftest.err
32455   rm -f conftest.er1
32456   cat conftest.err >&5
32457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); } && {
32459          test -z "$ac_c_werror_flag" ||
32460          test ! -s conftest.err
32461        } && test -s conftest$ac_exeext && {
32462          test "$cross_compiling" = yes ||
32463          $as_test_x conftest$ac_exeext
32464        }; then
32465   ac_cv_header_sys_types_h_makedev=yes
32466 else
32467   $as_echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470         ac_cv_header_sys_types_h_makedev=no
32471 fi
32472
32473 rm -rf conftest.dSYM
32474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32475       conftest$ac_exeext conftest.$ac_ext
32476
32477 fi
32478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32479 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32480
32481 if test $ac_cv_header_sys_types_h_makedev = no; then
32482 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32483   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32484 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32485 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32486   $as_echo_n "(cached) " >&6
32487 fi
32488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32489 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32490 else
32491   # Is the header compilable?
32492 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32493 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32494 cat >conftest.$ac_ext <<_ACEOF
32495 /* confdefs.h.  */
32496 _ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h.  */
32500 $ac_includes_default
32501 #include <sys/mkdev.h>
32502 _ACEOF
32503 rm -f conftest.$ac_objext
32504 if { (ac_try="$ac_compile"
32505 case "(($ac_try" in
32506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507   *) ac_try_echo=$ac_try;;
32508 esac
32509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32510 $as_echo "$ac_try_echo") >&5
32511   (eval "$ac_compile") 2>conftest.er1
32512   ac_status=$?
32513   grep -v '^ *+' conftest.er1 >conftest.err
32514   rm -f conftest.er1
32515   cat conftest.err >&5
32516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); } && {
32518          test -z "$ac_c_werror_flag" ||
32519          test ! -s conftest.err
32520        } && test -s conftest.$ac_objext; then
32521   ac_header_compiler=yes
32522 else
32523   $as_echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526         ac_header_compiler=no
32527 fi
32528
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32531 $as_echo "$ac_header_compiler" >&6; }
32532
32533 # Is the header present?
32534 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32535 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32536 cat >conftest.$ac_ext <<_ACEOF
32537 /* confdefs.h.  */
32538 _ACEOF
32539 cat confdefs.h >>conftest.$ac_ext
32540 cat >>conftest.$ac_ext <<_ACEOF
32541 /* end confdefs.h.  */
32542 #include <sys/mkdev.h>
32543 _ACEOF
32544 if { (ac_try="$ac_cpp conftest.$ac_ext"
32545 case "(($ac_try" in
32546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547   *) ac_try_echo=$ac_try;;
32548 esac
32549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32550 $as_echo "$ac_try_echo") >&5
32551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32552   ac_status=$?
32553   grep -v '^ *+' conftest.er1 >conftest.err
32554   rm -f conftest.er1
32555   cat conftest.err >&5
32556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557   (exit $ac_status); } >/dev/null && {
32558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32559          test ! -s conftest.err
32560        }; then
32561   ac_header_preproc=yes
32562 else
32563   $as_echo "$as_me: failed program was:" >&5
32564 sed 's/^/| /' conftest.$ac_ext >&5
32565
32566   ac_header_preproc=no
32567 fi
32568
32569 rm -f conftest.err conftest.$ac_ext
32570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32571 $as_echo "$ac_header_preproc" >&6; }
32572
32573 # So?  What about this header?
32574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32575   yes:no: )
32576     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32577 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32578     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32579 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32580     ac_header_preproc=yes
32581     ;;
32582   no:yes:* )
32583     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32584 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32585     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
32586 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
32587     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32588 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32589     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
32590 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32591     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32592 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32593     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32594 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32595
32596     ;;
32597 esac
32598 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32599 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32600 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32601   $as_echo_n "(cached) " >&6
32602 else
32603   ac_cv_header_sys_mkdev_h=$ac_header_preproc
32604 fi
32605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32606 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32607
32608 fi
32609 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32610
32611 cat >>confdefs.h <<\_ACEOF
32612 #define MAJOR_IN_MKDEV 1
32613 _ACEOF
32614
32615 fi
32616
32617
32618
32619   if test $ac_cv_header_sys_mkdev_h = no; then
32620     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32621   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32622 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32623 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32624   $as_echo_n "(cached) " >&6
32625 fi
32626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32627 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32628 else
32629   # Is the header compilable?
32630 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32631 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32632 cat >conftest.$ac_ext <<_ACEOF
32633 /* confdefs.h.  */
32634 _ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h.  */
32638 $ac_includes_default
32639 #include <sys/sysmacros.h>
32640 _ACEOF
32641 rm -f conftest.$ac_objext
32642 if { (ac_try="$ac_compile"
32643 case "(($ac_try" in
32644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645   *) ac_try_echo=$ac_try;;
32646 esac
32647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32648 $as_echo "$ac_try_echo") >&5
32649   (eval "$ac_compile") 2>conftest.er1
32650   ac_status=$?
32651   grep -v '^ *+' conftest.er1 >conftest.err
32652   rm -f conftest.er1
32653   cat conftest.err >&5
32654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); } && {
32656          test -z "$ac_c_werror_flag" ||
32657          test ! -s conftest.err
32658        } && test -s conftest.$ac_objext; then
32659   ac_header_compiler=yes
32660 else
32661   $as_echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664         ac_header_compiler=no
32665 fi
32666
32667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32669 $as_echo "$ac_header_compiler" >&6; }
32670
32671 # Is the header present?
32672 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32673 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32674 cat >conftest.$ac_ext <<_ACEOF
32675 /* confdefs.h.  */
32676 _ACEOF
32677 cat confdefs.h >>conftest.$ac_ext
32678 cat >>conftest.$ac_ext <<_ACEOF
32679 /* end confdefs.h.  */
32680 #include <sys/sysmacros.h>
32681 _ACEOF
32682 if { (ac_try="$ac_cpp conftest.$ac_ext"
32683 case "(($ac_try" in
32684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685   *) ac_try_echo=$ac_try;;
32686 esac
32687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32688 $as_echo "$ac_try_echo") >&5
32689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32690   ac_status=$?
32691   grep -v '^ *+' conftest.er1 >conftest.err
32692   rm -f conftest.er1
32693   cat conftest.err >&5
32694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695   (exit $ac_status); } >/dev/null && {
32696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32697          test ! -s conftest.err
32698        }; then
32699   ac_header_preproc=yes
32700 else
32701   $as_echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32703
32704   ac_header_preproc=no
32705 fi
32706
32707 rm -f conftest.err conftest.$ac_ext
32708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32709 $as_echo "$ac_header_preproc" >&6; }
32710
32711 # So?  What about this header?
32712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32713   yes:no: )
32714     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32715 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32716     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32717 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32718     ac_header_preproc=yes
32719     ;;
32720   no:yes:* )
32721     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32722 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32723     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
32724 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
32725     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32726 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32727     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
32728 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32729     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32730 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32731     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32732 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32733
32734     ;;
32735 esac
32736 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32737 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32738 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32739   $as_echo_n "(cached) " >&6
32740 else
32741   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32742 fi
32743 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32744 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32745
32746 fi
32747 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32748
32749 cat >>confdefs.h <<\_ACEOF
32750 #define MAJOR_IN_SYSMACROS 1
32751 _ACEOF
32752
32753 fi
32754
32755
32756   fi
32757 fi
32758
32759
32760
32761
32762
32763
32764 ac_header_dirent=no
32765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32766   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32767 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32768 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32770   $as_echo_n "(cached) " >&6
32771 else
32772   cat >conftest.$ac_ext <<_ACEOF
32773 /* confdefs.h.  */
32774 _ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h.  */
32778 #include <sys/types.h>
32779 #include <$ac_hdr>
32780
32781 int
32782 main ()
32783 {
32784 if ((DIR *) 0)
32785 return 0;
32786   ;
32787   return 0;
32788 }
32789 _ACEOF
32790 rm -f conftest.$ac_objext
32791 if { (ac_try="$ac_compile"
32792 case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32797 $as_echo "$ac_try_echo") >&5
32798   (eval "$ac_compile") 2>conftest.er1
32799   ac_status=$?
32800   grep -v '^ *+' conftest.er1 >conftest.err
32801   rm -f conftest.er1
32802   cat conftest.err >&5
32803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); } && {
32805          test -z "$ac_c_werror_flag" ||
32806          test ! -s conftest.err
32807        } && test -s conftest.$ac_objext; then
32808   eval "$as_ac_Header=yes"
32809 else
32810   $as_echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32812
32813         eval "$as_ac_Header=no"
32814 fi
32815
32816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32817 fi
32818 ac_res=`eval 'as_val=${'$as_ac_Header'}
32819                  $as_echo "$as_val"'`
32820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32821 $as_echo "$ac_res" >&6; }
32822 as_val=`eval 'as_val=${'$as_ac_Header'}
32823                  $as_echo "$as_val"'`
32824    if test "x$as_val" = x""yes; then
32825   cat >>confdefs.h <<_ACEOF
32826 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32827 _ACEOF
32828
32829 ac_header_dirent=$ac_hdr; break
32830 fi
32831
32832 done
32833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32834 if test $ac_header_dirent = dirent.h; then
32835   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32836 $as_echo_n "checking for library containing opendir... " >&6; }
32837 if test "${ac_cv_search_opendir+set}" = set; then
32838   $as_echo_n "(cached) " >&6
32839 else
32840   ac_func_search_save_LIBS=$LIBS
32841 cat >conftest.$ac_ext <<_ACEOF
32842 /* confdefs.h.  */
32843 _ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h.  */
32847
32848 /* Override any GCC internal prototype to avoid an error.
32849    Use char because int might match the return type of a GCC
32850    builtin and then its argument prototype would still apply.  */
32851 #ifdef __cplusplus
32852 extern "C"
32853 #endif
32854 char opendir ();
32855 int
32856 main ()
32857 {
32858 return opendir ();
32859   ;
32860   return 0;
32861 }
32862 _ACEOF
32863 for ac_lib in '' dir; do
32864   if test -z "$ac_lib"; then
32865     ac_res="none required"
32866   else
32867     ac_res=-l$ac_lib
32868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32869   fi
32870   rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (ac_try="$ac_link"
32872 case "(($ac_try" in
32873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874   *) ac_try_echo=$ac_try;;
32875 esac
32876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32877 $as_echo "$ac_try_echo") >&5
32878   (eval "$ac_link") 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } && {
32885          test -z "$ac_c_werror_flag" ||
32886          test ! -s conftest.err
32887        } && test -s conftest$ac_exeext && {
32888          test "$cross_compiling" = yes ||
32889          $as_test_x conftest$ac_exeext
32890        }; then
32891   ac_cv_search_opendir=$ac_res
32892 else
32893   $as_echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896
32897 fi
32898
32899 rm -rf conftest.dSYM
32900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32901       conftest$ac_exeext
32902   if test "${ac_cv_search_opendir+set}" = set; then
32903   break
32904 fi
32905 done
32906 if test "${ac_cv_search_opendir+set}" = set; then
32907   :
32908 else
32909   ac_cv_search_opendir=no
32910 fi
32911 rm conftest.$ac_ext
32912 LIBS=$ac_func_search_save_LIBS
32913 fi
32914 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32915 $as_echo "$ac_cv_search_opendir" >&6; }
32916 ac_res=$ac_cv_search_opendir
32917 if test "$ac_res" != no; then
32918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32919
32920 fi
32921
32922 else
32923   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32924 $as_echo_n "checking for library containing opendir... " >&6; }
32925 if test "${ac_cv_search_opendir+set}" = set; then
32926   $as_echo_n "(cached) " >&6
32927 else
32928   ac_func_search_save_LIBS=$LIBS
32929 cat >conftest.$ac_ext <<_ACEOF
32930 /* confdefs.h.  */
32931 _ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h.  */
32935
32936 /* Override any GCC internal prototype to avoid an error.
32937    Use char because int might match the return type of a GCC
32938    builtin and then its argument prototype would still apply.  */
32939 #ifdef __cplusplus
32940 extern "C"
32941 #endif
32942 char opendir ();
32943 int
32944 main ()
32945 {
32946 return opendir ();
32947   ;
32948   return 0;
32949 }
32950 _ACEOF
32951 for ac_lib in '' x; do
32952   if test -z "$ac_lib"; then
32953     ac_res="none required"
32954   else
32955     ac_res=-l$ac_lib
32956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32957   fi
32958   rm -f conftest.$ac_objext conftest$ac_exeext
32959 if { (ac_try="$ac_link"
32960 case "(($ac_try" in
32961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962   *) ac_try_echo=$ac_try;;
32963 esac
32964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32965 $as_echo "$ac_try_echo") >&5
32966   (eval "$ac_link") 2>conftest.er1
32967   ac_status=$?
32968   grep -v '^ *+' conftest.er1 >conftest.err
32969   rm -f conftest.er1
32970   cat conftest.err >&5
32971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); } && {
32973          test -z "$ac_c_werror_flag" ||
32974          test ! -s conftest.err
32975        } && test -s conftest$ac_exeext && {
32976          test "$cross_compiling" = yes ||
32977          $as_test_x conftest$ac_exeext
32978        }; then
32979   ac_cv_search_opendir=$ac_res
32980 else
32981   $as_echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32983
32984
32985 fi
32986
32987 rm -rf conftest.dSYM
32988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32989       conftest$ac_exeext
32990   if test "${ac_cv_search_opendir+set}" = set; then
32991   break
32992 fi
32993 done
32994 if test "${ac_cv_search_opendir+set}" = set; then
32995   :
32996 else
32997   ac_cv_search_opendir=no
32998 fi
32999 rm conftest.$ac_ext
33000 LIBS=$ac_func_search_save_LIBS
33001 fi
33002 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33003 $as_echo "$ac_cv_search_opendir" >&6; }
33004 ac_res=$ac_cv_search_opendir
33005 if test "$ac_res" != no; then
33006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33007
33008 fi
33009
33010 fi
33011
33012 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
33013 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
33014 if test "${ac_cv_header_stat_broken+set}" = set; then
33015   $as_echo_n "(cached) " >&6
33016 else
33017   cat >conftest.$ac_ext <<_ACEOF
33018 /* confdefs.h.  */
33019 _ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h.  */
33023 #include <sys/types.h>
33024 #include <sys/stat.h>
33025
33026 #if defined S_ISBLK && defined S_IFDIR
33027 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
33028 #endif
33029
33030 #if defined S_ISBLK && defined S_IFCHR
33031 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
33032 #endif
33033
33034 #if defined S_ISLNK && defined S_IFREG
33035 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
33036 #endif
33037
33038 #if defined S_ISSOCK && defined S_IFREG
33039 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
33040 #endif
33041
33042 _ACEOF
33043 rm -f conftest.$ac_objext
33044 if { (ac_try="$ac_compile"
33045 case "(($ac_try" in
33046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047   *) ac_try_echo=$ac_try;;
33048 esac
33049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33050 $as_echo "$ac_try_echo") >&5
33051   (eval "$ac_compile") 2>conftest.er1
33052   ac_status=$?
33053   grep -v '^ *+' conftest.er1 >conftest.err
33054   rm -f conftest.er1
33055   cat conftest.err >&5
33056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); } && {
33058          test -z "$ac_c_werror_flag" ||
33059          test ! -s conftest.err
33060        } && test -s conftest.$ac_objext; then
33061   ac_cv_header_stat_broken=no
33062 else
33063   $as_echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33065
33066         ac_cv_header_stat_broken=yes
33067 fi
33068
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33070 fi
33071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
33072 $as_echo "$ac_cv_header_stat_broken" >&6; }
33073 if test $ac_cv_header_stat_broken = yes; then
33074
33075 cat >>confdefs.h <<\_ACEOF
33076 #define STAT_MACROS_BROKEN 1
33077 _ACEOF
33078
33079 fi
33080
33081 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
33082 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
33083 if test "${ac_cv_header_sys_wait_h+set}" = set; then
33084   $as_echo_n "(cached) " >&6
33085 else
33086   cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092 #include <sys/types.h>
33093 #include <sys/wait.h>
33094 #ifndef WEXITSTATUS
33095 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
33096 #endif
33097 #ifndef WIFEXITED
33098 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
33099 #endif
33100
33101 int
33102 main ()
33103 {
33104   int s;
33105   wait (&s);
33106   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
33107   ;
33108   return 0;
33109 }
33110 _ACEOF
33111 rm -f conftest.$ac_objext
33112 if { (ac_try="$ac_compile"
33113 case "(($ac_try" in
33114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115   *) ac_try_echo=$ac_try;;
33116 esac
33117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33118 $as_echo "$ac_try_echo") >&5
33119   (eval "$ac_compile") 2>conftest.er1
33120   ac_status=$?
33121   grep -v '^ *+' conftest.er1 >conftest.err
33122   rm -f conftest.er1
33123   cat conftest.err >&5
33124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125   (exit $ac_status); } && {
33126          test -z "$ac_c_werror_flag" ||
33127          test ! -s conftest.err
33128        } && test -s conftest.$ac_objext; then
33129   ac_cv_header_sys_wait_h=yes
33130 else
33131   $as_echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33133
33134         ac_cv_header_sys_wait_h=no
33135 fi
33136
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33138 fi
33139 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
33140 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
33141 if test $ac_cv_header_sys_wait_h = yes; then
33142
33143 cat >>confdefs.h <<\_ACEOF
33144 #define HAVE_SYS_WAIT_H 1
33145 _ACEOF
33146
33147 fi
33148
33149 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
33150 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
33151 if test "${ac_cv_header_time+set}" = set; then
33152   $as_echo_n "(cached) " >&6
33153 else
33154   cat >conftest.$ac_ext <<_ACEOF
33155 /* confdefs.h.  */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h.  */
33160 #include <sys/types.h>
33161 #include <sys/time.h>
33162 #include <time.h>
33163
33164 int
33165 main ()
33166 {
33167 if ((struct tm *) 0)
33168 return 0;
33169   ;
33170   return 0;
33171 }
33172 _ACEOF
33173 rm -f conftest.$ac_objext
33174 if { (ac_try="$ac_compile"
33175 case "(($ac_try" in
33176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177   *) ac_try_echo=$ac_try;;
33178 esac
33179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33180 $as_echo "$ac_try_echo") >&5
33181   (eval "$ac_compile") 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } && {
33188          test -z "$ac_c_werror_flag" ||
33189          test ! -s conftest.err
33190        } && test -s conftest.$ac_objext; then
33191   ac_cv_header_time=yes
33192 else
33193   $as_echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33195
33196         ac_cv_header_time=no
33197 fi
33198
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200 fi
33201 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33202 $as_echo "$ac_cv_header_time" >&6; }
33203 if test $ac_cv_header_time = yes; then
33204
33205 cat >>confdefs.h <<\_ACEOF
33206 #define TIME_WITH_SYS_TIME 1
33207 _ACEOF
33208
33209 fi
33210
33211 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33212 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33213 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33214   $as_echo_n "(cached) " >&6
33215 else
33216   cat >conftest.$ac_ext <<_ACEOF
33217 /* confdefs.h.  */
33218 _ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h.  */
33222 $ac_includes_default
33223 int
33224 main ()
33225 {
33226 static struct stat ac_aggr;
33227 if (ac_aggr.st_blksize)
33228 return 0;
33229   ;
33230   return 0;
33231 }
33232 _ACEOF
33233 rm -f conftest.$ac_objext
33234 if { (ac_try="$ac_compile"
33235 case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33240 $as_echo "$ac_try_echo") >&5
33241   (eval "$ac_compile") 2>conftest.er1
33242   ac_status=$?
33243   grep -v '^ *+' conftest.er1 >conftest.err
33244   rm -f conftest.er1
33245   cat conftest.err >&5
33246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); } && {
33248          test -z "$ac_c_werror_flag" ||
33249          test ! -s conftest.err
33250        } && test -s conftest.$ac_objext; then
33251   ac_cv_member_struct_stat_st_blksize=yes
33252 else
33253   $as_echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33255
33256         cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262 $ac_includes_default
33263 int
33264 main ()
33265 {
33266 static struct stat ac_aggr;
33267 if (sizeof ac_aggr.st_blksize)
33268 return 0;
33269   ;
33270   return 0;
33271 }
33272 _ACEOF
33273 rm -f conftest.$ac_objext
33274 if { (ac_try="$ac_compile"
33275 case "(($ac_try" in
33276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277   *) ac_try_echo=$ac_try;;
33278 esac
33279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33280 $as_echo "$ac_try_echo") >&5
33281   (eval "$ac_compile") 2>conftest.er1
33282   ac_status=$?
33283   grep -v '^ *+' conftest.er1 >conftest.err
33284   rm -f conftest.er1
33285   cat conftest.err >&5
33286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); } && {
33288          test -z "$ac_c_werror_flag" ||
33289          test ! -s conftest.err
33290        } && test -s conftest.$ac_objext; then
33291   ac_cv_member_struct_stat_st_blksize=yes
33292 else
33293   $as_echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33295
33296         ac_cv_member_struct_stat_st_blksize=no
33297 fi
33298
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 fi
33301
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 fi
33304 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33305 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33306 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33307
33308 cat >>confdefs.h <<_ACEOF
33309 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33310 _ACEOF
33311
33312
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_ST_BLKSIZE 1
33315 _ACEOF
33316
33317 fi
33318
33319
33320 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33321 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33322 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33323   $as_echo_n "(cached) " >&6
33324 else
33325   cat >conftest.$ac_ext <<_ACEOF
33326 /* confdefs.h.  */
33327 _ACEOF
33328 cat confdefs.h >>conftest.$ac_ext
33329 cat >>conftest.$ac_ext <<_ACEOF
33330 /* end confdefs.h.  */
33331 $ac_includes_default
33332 int
33333 main ()
33334 {
33335 static struct stat ac_aggr;
33336 if (ac_aggr.st_blocks)
33337 return 0;
33338   ;
33339   return 0;
33340 }
33341 _ACEOF
33342 rm -f conftest.$ac_objext
33343 if { (ac_try="$ac_compile"
33344 case "(($ac_try" in
33345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346   *) ac_try_echo=$ac_try;;
33347 esac
33348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33349 $as_echo "$ac_try_echo") >&5
33350   (eval "$ac_compile") 2>conftest.er1
33351   ac_status=$?
33352   grep -v '^ *+' conftest.er1 >conftest.err
33353   rm -f conftest.er1
33354   cat conftest.err >&5
33355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); } && {
33357          test -z "$ac_c_werror_flag" ||
33358          test ! -s conftest.err
33359        } && test -s conftest.$ac_objext; then
33360   ac_cv_member_struct_stat_st_blocks=yes
33361 else
33362   $as_echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33364
33365         cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h.  */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h.  */
33371 $ac_includes_default
33372 int
33373 main ()
33374 {
33375 static struct stat ac_aggr;
33376 if (sizeof ac_aggr.st_blocks)
33377 return 0;
33378   ;
33379   return 0;
33380 }
33381 _ACEOF
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386   *) ac_try_echo=$ac_try;;
33387 esac
33388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33389 $as_echo "$ac_try_echo") >&5
33390   (eval "$ac_compile") 2>conftest.er1
33391   ac_status=$?
33392   grep -v '^ *+' conftest.er1 >conftest.err
33393   rm -f conftest.er1
33394   cat conftest.err >&5
33395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); } && {
33397          test -z "$ac_c_werror_flag" ||
33398          test ! -s conftest.err
33399        } && test -s conftest.$ac_objext; then
33400   ac_cv_member_struct_stat_st_blocks=yes
33401 else
33402   $as_echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33404
33405         ac_cv_member_struct_stat_st_blocks=no
33406 fi
33407
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409 fi
33410
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33412 fi
33413 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33414 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33415 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33416
33417 cat >>confdefs.h <<_ACEOF
33418 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33419 _ACEOF
33420
33421
33422 cat >>confdefs.h <<\_ACEOF
33423 #define HAVE_ST_BLOCKS 1
33424 _ACEOF
33425
33426 else
33427   case " $LIBOBJS " in
33428   *" fileblocks.$ac_objext "* ) ;;
33429   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33430  ;;
33431 esac
33432
33433 fi
33434
33435
33436 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33438 if test "${ac_cv_struct_tm+set}" = set; then
33439   $as_echo_n "(cached) " >&6
33440 else
33441   cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447 #include <sys/types.h>
33448 #include <time.h>
33449
33450 int
33451 main ()
33452 {
33453 struct tm tm;
33454                                      int *p = &tm.tm_sec;
33455                                      return !p;
33456   ;
33457   return 0;
33458 }
33459 _ACEOF
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33467 $as_echo "$ac_try_echo") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } && {
33475          test -z "$ac_c_werror_flag" ||
33476          test ! -s conftest.err
33477        } && test -s conftest.$ac_objext; then
33478   ac_cv_struct_tm=time.h
33479 else
33480   $as_echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         ac_cv_struct_tm=sys/time.h
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 fi
33488 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33489 $as_echo "$ac_cv_struct_tm" >&6; }
33490 if test $ac_cv_struct_tm = sys/time.h; then
33491
33492 cat >>confdefs.h <<\_ACEOF
33493 #define TM_IN_SYS_TIME 1
33494 _ACEOF
33495
33496 fi
33497
33498 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33499 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33500 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33501   $as_echo_n "(cached) " >&6
33502 else
33503   cat >conftest.$ac_ext <<_ACEOF
33504 /* confdefs.h.  */
33505 _ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h.  */
33509 #include <sys/types.h>
33510 #include <$ac_cv_struct_tm>
33511
33512
33513 int
33514 main ()
33515 {
33516 static struct tm ac_aggr;
33517 if (ac_aggr.tm_zone)
33518 return 0;
33519   ;
33520   return 0;
33521 }
33522 _ACEOF
33523 rm -f conftest.$ac_objext
33524 if { (ac_try="$ac_compile"
33525 case "(($ac_try" in
33526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527   *) ac_try_echo=$ac_try;;
33528 esac
33529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33530 $as_echo "$ac_try_echo") >&5
33531   (eval "$ac_compile") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } && {
33538          test -z "$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        } && test -s conftest.$ac_objext; then
33541   ac_cv_member_struct_tm_tm_zone=yes
33542 else
33543   $as_echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546         cat >conftest.$ac_ext <<_ACEOF
33547 /* confdefs.h.  */
33548 _ACEOF
33549 cat confdefs.h >>conftest.$ac_ext
33550 cat >>conftest.$ac_ext <<_ACEOF
33551 /* end confdefs.h.  */
33552 #include <sys/types.h>
33553 #include <$ac_cv_struct_tm>
33554
33555
33556 int
33557 main ()
33558 {
33559 static struct tm ac_aggr;
33560 if (sizeof ac_aggr.tm_zone)
33561 return 0;
33562   ;
33563   return 0;
33564 }
33565 _ACEOF
33566 rm -f conftest.$ac_objext
33567 if { (ac_try="$ac_compile"
33568 case "(($ac_try" in
33569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33570   *) ac_try_echo=$ac_try;;
33571 esac
33572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33573 $as_echo "$ac_try_echo") >&5
33574   (eval "$ac_compile") 2>conftest.er1
33575   ac_status=$?
33576   grep -v '^ *+' conftest.er1 >conftest.err
33577   rm -f conftest.er1
33578   cat conftest.err >&5
33579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580   (exit $ac_status); } && {
33581          test -z "$ac_c_werror_flag" ||
33582          test ! -s conftest.err
33583        } && test -s conftest.$ac_objext; then
33584   ac_cv_member_struct_tm_tm_zone=yes
33585 else
33586   $as_echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33588
33589         ac_cv_member_struct_tm_tm_zone=no
33590 fi
33591
33592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33593 fi
33594
33595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33596 fi
33597 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33598 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33599 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33600
33601 cat >>confdefs.h <<_ACEOF
33602 #define HAVE_STRUCT_TM_TM_ZONE 1
33603 _ACEOF
33604
33605
33606 fi
33607
33608 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33609
33610 cat >>confdefs.h <<\_ACEOF
33611 #define HAVE_TM_ZONE 1
33612 _ACEOF
33613
33614 else
33615   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33616 $as_echo_n "checking whether tzname is declared... " >&6; }
33617 if test "${ac_cv_have_decl_tzname+set}" = set; then
33618   $as_echo_n "(cached) " >&6
33619 else
33620   cat >conftest.$ac_ext <<_ACEOF
33621 /* confdefs.h.  */
33622 _ACEOF
33623 cat confdefs.h >>conftest.$ac_ext
33624 cat >>conftest.$ac_ext <<_ACEOF
33625 /* end confdefs.h.  */
33626 #include <time.h>
33627
33628 int
33629 main ()
33630 {
33631 #ifndef tzname
33632   (void) tzname;
33633 #endif
33634
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext
33640 if { (ac_try="$ac_compile"
33641 case "(($ac_try" in
33642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643   *) ac_try_echo=$ac_try;;
33644 esac
33645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33646 $as_echo "$ac_try_echo") >&5
33647   (eval "$ac_compile") 2>conftest.er1
33648   ac_status=$?
33649   grep -v '^ *+' conftest.er1 >conftest.err
33650   rm -f conftest.er1
33651   cat conftest.err >&5
33652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } && {
33654          test -z "$ac_c_werror_flag" ||
33655          test ! -s conftest.err
33656        } && test -s conftest.$ac_objext; then
33657   ac_cv_have_decl_tzname=yes
33658 else
33659   $as_echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33661
33662         ac_cv_have_decl_tzname=no
33663 fi
33664
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33666 fi
33667 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33668 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33669 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33670
33671 cat >>confdefs.h <<_ACEOF
33672 #define HAVE_DECL_TZNAME 1
33673 _ACEOF
33674
33675
33676 else
33677   cat >>confdefs.h <<_ACEOF
33678 #define HAVE_DECL_TZNAME 0
33679 _ACEOF
33680
33681
33682 fi
33683
33684
33685   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33686 $as_echo_n "checking for tzname... " >&6; }
33687 if test "${ac_cv_var_tzname+set}" = set; then
33688   $as_echo_n "(cached) " >&6
33689 else
33690   cat >conftest.$ac_ext <<_ACEOF
33691 /* confdefs.h.  */
33692 _ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h.  */
33696 #include <time.h>
33697 #if !HAVE_DECL_TZNAME
33698 extern char *tzname[];
33699 #endif
33700
33701 int
33702 main ()
33703 {
33704 return tzname[0][0];
33705   ;
33706   return 0;
33707 }
33708 _ACEOF
33709 rm -f conftest.$ac_objext conftest$ac_exeext
33710 if { (ac_try="$ac_link"
33711 case "(($ac_try" in
33712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713   *) ac_try_echo=$ac_try;;
33714 esac
33715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33716 $as_echo "$ac_try_echo") >&5
33717   (eval "$ac_link") 2>conftest.er1
33718   ac_status=$?
33719   grep -v '^ *+' conftest.er1 >conftest.err
33720   rm -f conftest.er1
33721   cat conftest.err >&5
33722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); } && {
33724          test -z "$ac_c_werror_flag" ||
33725          test ! -s conftest.err
33726        } && test -s conftest$ac_exeext && {
33727          test "$cross_compiling" = yes ||
33728          $as_test_x conftest$ac_exeext
33729        }; then
33730   ac_cv_var_tzname=yes
33731 else
33732   $as_echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33734
33735         ac_cv_var_tzname=no
33736 fi
33737
33738 rm -rf conftest.dSYM
33739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33740       conftest$ac_exeext conftest.$ac_ext
33741 fi
33742 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33743 $as_echo "$ac_cv_var_tzname" >&6; }
33744   if test $ac_cv_var_tzname = yes; then
33745
33746 cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_TZNAME 1
33748 _ACEOF
33749
33750   fi
33751 fi
33752
33753
33754 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33755 $as_echo_n "checking for utime.h... " >&6; }
33756 if test "${ba_cv_header_utime_h+set}" = set; then
33757   $as_echo_n "(cached) " >&6
33758 else
33759
33760        cat >conftest.$ac_ext <<_ACEOF
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766
33767               #include <sys/types.h>
33768               #include <utime.h>
33769
33770 int
33771 main ()
33772 {
33773
33774               struct utimbuf foo
33775
33776   ;
33777   return 0;
33778 }
33779 _ACEOF
33780 rm -f conftest.$ac_objext
33781 if { (ac_try="$ac_compile"
33782 case "(($ac_try" in
33783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784   *) ac_try_echo=$ac_try;;
33785 esac
33786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33787 $as_echo "$ac_try_echo") >&5
33788   (eval "$ac_compile") 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } && {
33795          test -z "$ac_c_werror_flag" ||
33796          test ! -s conftest.err
33797        } && test -s conftest.$ac_objext; then
33798
33799               ba_cv_header_utime_h=yes
33800
33801 else
33802   $as_echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33804
33805
33806               ba_cv_header_utime_h=no
33807
33808
33809 fi
33810
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812
33813
33814 fi
33815 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33816 $as_echo "$ba_cv_header_utime_h" >&6; }
33817 test $ba_cv_header_utime_h = yes &&
33818 cat >>confdefs.h <<\_ACEOF
33819 #define HAVE_UTIME_H 1
33820 _ACEOF
33821
33822
33823 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33824 $as_echo_n "checking for socklen_t... " >&6; }
33825 if test "${ba_cv_header_socklen_t+set}" = set; then
33826   $as_echo_n "(cached) " >&6
33827 else
33828
33829        cat >conftest.$ac_ext <<_ACEOF
33830 /* confdefs.h.  */
33831 _ACEOF
33832 cat confdefs.h >>conftest.$ac_ext
33833 cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h.  */
33835
33836               #include <sys/types.h>
33837               #include <sys/socket.h>
33838
33839 int
33840 main ()
33841 {
33842
33843               socklen_t x
33844
33845   ;
33846   return 0;
33847 }
33848 _ACEOF
33849 rm -f conftest.$ac_objext
33850 if { (ac_try="$ac_compile"
33851 case "(($ac_try" in
33852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33853   *) ac_try_echo=$ac_try;;
33854 esac
33855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33856 $as_echo "$ac_try_echo") >&5
33857   (eval "$ac_compile") 2>conftest.er1
33858   ac_status=$?
33859   grep -v '^ *+' conftest.er1 >conftest.err
33860   rm -f conftest.er1
33861   cat conftest.err >&5
33862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863   (exit $ac_status); } && {
33864          test -z "$ac_c_werror_flag" ||
33865          test ! -s conftest.err
33866        } && test -s conftest.$ac_objext; then
33867
33868              ba_cv_header_socklen_t=yes
33869
33870 else
33871   $as_echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874
33875              ba_cv_header_socklen_t=no
33876
33877
33878 fi
33879
33880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33881
33882
33883 fi
33884 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33885 $as_echo "$ba_cv_header_socklen_t" >&6; }
33886 test $ba_cv_header_socklen_t = yes &&
33887 cat >>confdefs.h <<\_ACEOF
33888 #define HAVE_SOCKLEN_T 1
33889 _ACEOF
33890
33891
33892 ac_ext=cpp
33893 ac_cpp='$CXXCPP $CPPFLAGS'
33894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33897
33898 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33899 $as_echo_n "checking for ioctl_req_t... " >&6; }
33900 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33901   $as_echo_n "(cached) " >&6
33902 else
33903
33904        cat >conftest.$ac_ext <<_ACEOF
33905 /* confdefs.h.  */
33906 _ACEOF
33907 cat confdefs.h >>conftest.$ac_ext
33908 cat >>conftest.$ac_ext <<_ACEOF
33909 /* end confdefs.h.  */
33910
33911               #include <unistd.h>
33912               #include <sys/types.h>
33913               #include <sys/ioctl.h>
33914
33915 int
33916 main ()
33917 {
33918
33919               int (*d_ioctl)(int fd, unsigned long int request, ...);
33920               d_ioctl = ::ioctl;
33921
33922   ;
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest.$ac_objext
33927 if { (ac_try="$ac_compile"
33928 case "(($ac_try" in
33929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930   *) ac_try_echo=$ac_try;;
33931 esac
33932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33933 $as_echo "$ac_try_echo") >&5
33934   (eval "$ac_compile") 2>conftest.er1
33935   ac_status=$?
33936   grep -v '^ *+' conftest.er1 >conftest.err
33937   rm -f conftest.er1
33938   cat conftest.err >&5
33939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940   (exit $ac_status); } && {
33941          test -z "$ac_cxx_werror_flag" ||
33942          test ! -s conftest.err
33943        } && test -s conftest.$ac_objext; then
33944
33945              ba_cv_header_ioctl_req_t=yes
33946
33947 else
33948   $as_echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33950
33951
33952              ba_cv_header_ioctl_req_t=no
33953
33954
33955 fi
33956
33957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33958
33959
33960 fi
33961 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33962 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33963 test $ba_cv_header_ioctl_req_t = yes &&
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_IOCTL_ULINT_REQUEST 1
33966 _ACEOF
33967
33968
33969 ac_ext=c
33970 ac_cpp='$CPP $CPPFLAGS'
33971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33974
33975
33976 ac_ext=cpp
33977 ac_cpp='$CXXCPP $CPPFLAGS'
33978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33981
33982 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33983 $as_echo_n "checking for typeof... " >&6; }
33984 if test "${ba_cv_have_typeof+set}" = set; then
33985   $as_echo_n "(cached) " >&6
33986 else
33987
33988        if test "$cross_compiling" = yes; then
33989
33990               ba_cv_have_typeof=no
33991
33992
33993 else
33994   cat >conftest.$ac_ext <<_ACEOF
33995 /* confdefs.h.  */
33996 _ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h.  */
34000
34001               main(){char *a = 0; a = (typeof a)a;}
34002
34003 _ACEOF
34004 rm -f conftest$ac_exeext
34005 if { (ac_try="$ac_link"
34006 case "(($ac_try" in
34007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34008   *) ac_try_echo=$ac_try;;
34009 esac
34010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34011 $as_echo "$ac_try_echo") >&5
34012   (eval "$ac_link") 2>&5
34013   ac_status=$?
34014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34016   { (case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34021 $as_echo "$ac_try_echo") >&5
34022   (eval "$ac_try") 2>&5
34023   ac_status=$?
34024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; }; then
34026
34027               ba_cv_have_typeof=yes
34028
34029 else
34030   $as_echo "$as_me: program exited with status $ac_status" >&5
34031 $as_echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34033
34034 ( exit $ac_status )
34035
34036               ba_cv_have_typeof=no
34037
34038 fi
34039 rm -rf conftest.dSYM
34040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34041 fi
34042
34043
34044
34045
34046 fi
34047 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
34048 $as_echo "$ba_cv_have_typeof" >&6; }
34049 test $ba_cv_have_typeof = yes &&
34050 cat >>confdefs.h <<\_ACEOF
34051 #define HAVE_TYPEOF 1
34052 _ACEOF
34053
34054 ac_ext=c
34055 ac_cpp='$CPP $CPPFLAGS'
34056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34059
34060
34061 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34062 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
34063 if test "${ac_cv_c_const+set}" = set; then
34064   $as_echo_n "(cached) " >&6
34065 else
34066   cat >conftest.$ac_ext <<_ACEOF
34067 /* confdefs.h.  */
34068 _ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h.  */
34072
34073 int
34074 main ()
34075 {
34076 /* FIXME: Include the comments suggested by Paul. */
34077 #ifndef __cplusplus
34078   /* Ultrix mips cc rejects this.  */
34079   typedef int charset[2];
34080   const charset cs;
34081   /* SunOS 4.1.1 cc rejects this.  */
34082   char const *const *pcpcc;
34083   char **ppc;
34084   /* NEC SVR4.0.2 mips cc rejects this.  */
34085   struct point {int x, y;};
34086   static struct point const zero = {0,0};
34087   /* AIX XL C 1.02.0.0 rejects this.
34088      It does not let you subtract one const X* pointer from another in
34089      an arm of an if-expression whose if-part is not a constant
34090      expression */
34091   const char *g = "string";
34092   pcpcc = &g + (g ? g-g : 0);
34093   /* HPUX 7.0 cc rejects these. */
34094   ++pcpcc;
34095   ppc = (char**) pcpcc;
34096   pcpcc = (char const *const *) ppc;
34097   { /* SCO 3.2v4 cc rejects this.  */
34098     char *t;
34099     char const *s = 0 ? (char *) 0 : (char const *) 0;
34100
34101     *t++ = 0;
34102     if (s) return 0;
34103   }
34104   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34105     int x[] = {25, 17};
34106     const int *foo = &x[0];
34107     ++foo;
34108   }
34109   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34110     typedef const int *iptr;
34111     iptr p = 0;
34112     ++p;
34113   }
34114   { /* AIX XL C 1.02.0.0 rejects this saying
34115        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34116     struct s { int j; const int *ap[3]; };
34117     struct s *b; b->j = 5;
34118   }
34119   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34120     const int foo = 10;
34121     if (!foo) return 0;
34122   }
34123   return !cs[0] && !zero.x;
34124 #endif
34125
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134   *) ac_try_echo=$ac_try;;
34135 esac
34136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34137 $as_echo "$ac_try_echo") >&5
34138   (eval "$ac_compile") 2>conftest.er1
34139   ac_status=$?
34140   grep -v '^ *+' conftest.er1 >conftest.err
34141   rm -f conftest.er1
34142   cat conftest.err >&5
34143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); } && {
34145          test -z "$ac_c_werror_flag" ||
34146          test ! -s conftest.err
34147        } && test -s conftest.$ac_objext; then
34148   ac_cv_c_const=yes
34149 else
34150   $as_echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153         ac_cv_c_const=no
34154 fi
34155
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34157 fi
34158 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34159 $as_echo "$ac_cv_c_const" >&6; }
34160 if test $ac_cv_c_const = no; then
34161
34162 cat >>confdefs.h <<\_ACEOF
34163 #define const /**/
34164 _ACEOF
34165
34166 fi
34167
34168
34169
34170  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34171 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
34172 if test "${ac_cv_c_bigendian+set}" = set; then
34173   $as_echo_n "(cached) " >&6
34174 else
34175   ac_cv_c_bigendian=unknown
34176     # See if we're dealing with a universal compiler.
34177     cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 #ifndef __APPLE_CC__
34184                not a universal capable compiler
34185              #endif
34186              typedef int dummy;
34187
34188 _ACEOF
34189 rm -f conftest.$ac_objext
34190 if { (ac_try="$ac_compile"
34191 case "(($ac_try" in
34192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34193   *) ac_try_echo=$ac_try;;
34194 esac
34195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34196 $as_echo "$ac_try_echo") >&5
34197   (eval "$ac_compile") 2>conftest.er1
34198   ac_status=$?
34199   grep -v '^ *+' conftest.er1 >conftest.err
34200   rm -f conftest.er1
34201   cat conftest.err >&5
34202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203   (exit $ac_status); } && {
34204          test -z "$ac_c_werror_flag" ||
34205          test ! -s conftest.err
34206        } && test -s conftest.$ac_objext; then
34207
34208         # Check for potential -arch flags.  It is not universal unless
34209         # there are some -arch flags.  Note that *ppc* also matches
34210         # ppc64.  This check is also rather less than ideal.
34211         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
34212           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
34213         esac
34214 else
34215   $as_echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34217
34218
34219 fi
34220
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222     if test $ac_cv_c_bigendian = unknown; then
34223       # See if sys/param.h defines the BYTE_ORDER macro.
34224       cat >conftest.$ac_ext <<_ACEOF
34225 /* confdefs.h.  */
34226 _ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h.  */
34230 #include <sys/types.h>
34231              #include <sys/param.h>
34232
34233 int
34234 main ()
34235 {
34236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
34237                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
34238                      && LITTLE_ENDIAN)
34239               bogus endian macros
34240              #endif
34241
34242   ;
34243   return 0;
34244 }
34245 _ACEOF
34246 rm -f conftest.$ac_objext
34247 if { (ac_try="$ac_compile"
34248 case "(($ac_try" in
34249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34250   *) ac_try_echo=$ac_try;;
34251 esac
34252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34253 $as_echo "$ac_try_echo") >&5
34254   (eval "$ac_compile") 2>conftest.er1
34255   ac_status=$?
34256   grep -v '^ *+' conftest.er1 >conftest.err
34257   rm -f conftest.er1
34258   cat conftest.err >&5
34259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); } && {
34261          test -z "$ac_c_werror_flag" ||
34262          test ! -s conftest.err
34263        } && test -s conftest.$ac_objext; then
34264   # It does; now see whether it defined to BIG_ENDIAN or not.
34265          cat >conftest.$ac_ext <<_ACEOF
34266 /* confdefs.h.  */
34267 _ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h.  */
34271 #include <sys/types.h>
34272                 #include <sys/param.h>
34273
34274 int
34275 main ()
34276 {
34277 #if BYTE_ORDER != BIG_ENDIAN
34278                  not big endian
34279                 #endif
34280
34281   ;
34282   return 0;
34283 }
34284 _ACEOF
34285 rm -f conftest.$ac_objext
34286 if { (ac_try="$ac_compile"
34287 case "(($ac_try" in
34288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34289   *) ac_try_echo=$ac_try;;
34290 esac
34291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34292 $as_echo "$ac_try_echo") >&5
34293   (eval "$ac_compile") 2>conftest.er1
34294   ac_status=$?
34295   grep -v '^ *+' conftest.er1 >conftest.err
34296   rm -f conftest.er1
34297   cat conftest.err >&5
34298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299   (exit $ac_status); } && {
34300          test -z "$ac_c_werror_flag" ||
34301          test ! -s conftest.err
34302        } && test -s conftest.$ac_objext; then
34303   ac_cv_c_bigendian=yes
34304 else
34305   $as_echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34307
34308         ac_cv_c_bigendian=no
34309 fi
34310
34311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34312 else
34313   $as_echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34315
34316
34317 fi
34318
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320     fi
34321     if test $ac_cv_c_bigendian = unknown; then
34322       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
34323       cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 #include <limits.h>
34330
34331 int
34332 main ()
34333 {
34334 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
34335               bogus endian macros
34336              #endif
34337
34338   ;
34339   return 0;
34340 }
34341 _ACEOF
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346   *) ac_try_echo=$ac_try;;
34347 esac
34348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34349 $as_echo "$ac_try_echo") >&5
34350   (eval "$ac_compile") 2>conftest.er1
34351   ac_status=$?
34352   grep -v '^ *+' conftest.er1 >conftest.err
34353   rm -f conftest.er1
34354   cat conftest.err >&5
34355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356   (exit $ac_status); } && {
34357          test -z "$ac_c_werror_flag" ||
34358          test ! -s conftest.err
34359        } && test -s conftest.$ac_objext; then
34360   # It does; now see whether it defined to _BIG_ENDIAN or not.
34361          cat >conftest.$ac_ext <<_ACEOF
34362 /* confdefs.h.  */
34363 _ACEOF
34364 cat confdefs.h >>conftest.$ac_ext
34365 cat >>conftest.$ac_ext <<_ACEOF
34366 /* end confdefs.h.  */
34367 #include <limits.h>
34368
34369 int
34370 main ()
34371 {
34372 #ifndef _BIG_ENDIAN
34373                  not big endian
34374                 #endif
34375
34376   ;
34377   return 0;
34378 }
34379 _ACEOF
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384   *) ac_try_echo=$ac_try;;
34385 esac
34386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34387 $as_echo "$ac_try_echo") >&5
34388   (eval "$ac_compile") 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } && {
34395          test -z "$ac_c_werror_flag" ||
34396          test ! -s conftest.err
34397        } && test -s conftest.$ac_objext; then
34398   ac_cv_c_bigendian=yes
34399 else
34400   $as_echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403         ac_cv_c_bigendian=no
34404 fi
34405
34406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34407 else
34408   $as_echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34410
34411
34412 fi
34413
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34415     fi
34416     if test $ac_cv_c_bigendian = unknown; then
34417       # Compile a test program.
34418       if test "$cross_compiling" = yes; then
34419   # Try to guess by grepping values from an object file.
34420          cat >conftest.$ac_ext <<_ACEOF
34421 /* confdefs.h.  */
34422 _ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h.  */
34426 short int ascii_mm[] =
34427                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34428                 short int ascii_ii[] =
34429                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34430                 int use_ascii (int i) {
34431                   return ascii_mm[i] + ascii_ii[i];
34432                 }
34433                 short int ebcdic_ii[] =
34434                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34435                 short int ebcdic_mm[] =
34436                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34437                 int use_ebcdic (int i) {
34438                   return ebcdic_mm[i] + ebcdic_ii[i];
34439                 }
34440                 extern int foo;
34441
34442 int
34443 main ()
34444 {
34445 return use_ascii (foo) == use_ebcdic (foo);
34446   ;
34447   return 0;
34448 }
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34457 $as_echo "$ac_try_echo") >&5
34458   (eval "$ac_compile") 2>conftest.er1
34459   ac_status=$?
34460   grep -v '^ *+' conftest.er1 >conftest.err
34461   rm -f conftest.er1
34462   cat conftest.err >&5
34463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464   (exit $ac_status); } && {
34465          test -z "$ac_c_werror_flag" ||
34466          test ! -s conftest.err
34467        } && test -s conftest.$ac_objext; then
34468   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34469               ac_cv_c_bigendian=yes
34470             fi
34471             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34472               if test "$ac_cv_c_bigendian" = unknown; then
34473                 ac_cv_c_bigendian=no
34474               else
34475                 # finding both strings is unlikely to happen, but who knows?
34476                 ac_cv_c_bigendian=unknown
34477               fi
34478             fi
34479 else
34480   $as_echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34482
34483
34484 fi
34485
34486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34487 else
34488   cat >conftest.$ac_ext <<_ACEOF
34489 /* confdefs.h.  */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h.  */
34494 $ac_includes_default
34495 int
34496 main ()
34497 {
34498
34499              /* Are we little or big endian?  From Harbison&Steele.  */
34500              union
34501              {
34502                long int l;
34503                char c[sizeof (long int)];
34504              } u;
34505              u.l = 1;
34506              return u.c[sizeof (long int) - 1] == 1;
34507
34508   ;
34509   return 0;
34510 }
34511 _ACEOF
34512 rm -f conftest$ac_exeext
34513 if { (ac_try="$ac_link"
34514 case "(($ac_try" in
34515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516   *) ac_try_echo=$ac_try;;
34517 esac
34518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34519 $as_echo "$ac_try_echo") >&5
34520   (eval "$ac_link") 2>&5
34521   ac_status=$?
34522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34524   { (case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34529 $as_echo "$ac_try_echo") >&5
34530   (eval "$ac_try") 2>&5
34531   ac_status=$?
34532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533   (exit $ac_status); }; }; then
34534   ac_cv_c_bigendian=no
34535 else
34536   $as_echo "$as_me: program exited with status $ac_status" >&5
34537 $as_echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 ( exit $ac_status )
34541 ac_cv_c_bigendian=yes
34542 fi
34543 rm -rf conftest.dSYM
34544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34545 fi
34546
34547
34548     fi
34549 fi
34550 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34551 $as_echo "$ac_cv_c_bigendian" >&6; }
34552  case $ac_cv_c_bigendian in #(
34553    yes)
34554
34555 cat >>confdefs.h <<\_ACEOF
34556 #define HAVE_BIG_ENDIAN 1
34557 _ACEOF
34558 ;; #(
34559    no)
34560
34561 cat >>confdefs.h <<\_ACEOF
34562 #define HAVE_LITTLE_ENDIAN 1
34563 _ACEOF
34564  ;; #(
34565    universal)
34566
34567 cat >>confdefs.h <<\_ACEOF
34568 #define AC_APPLE_UNIVERSAL_BUILD 1
34569 _ACEOF
34570
34571      ;; #(
34572    *)
34573      { { $as_echo "$as_me:$LINENO: error: unknown endianness
34574  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34575 $as_echo "$as_me: error: unknown endianness
34576  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34577    { (exit 1); exit 1; }; } ;;
34578  esac
34579
34580
34581 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
34582 $as_echo_n "checking how to get filesystem type... " >&6; }
34583 fstype=no
34584 # The order of these tests is important.
34585 cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591
34592        #include <sys/statvfs.h>
34593        #include <sys/fstyp.h>
34594
34595 _ACEOF
34596 if { (ac_try="$ac_cpp conftest.$ac_ext"
34597 case "(($ac_try" in
34598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34599   *) ac_try_echo=$ac_try;;
34600 esac
34601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34602 $as_echo "$ac_try_echo") >&5
34603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34604   ac_status=$?
34605   grep -v '^ *+' conftest.er1 >conftest.err
34606   rm -f conftest.er1
34607   cat conftest.err >&5
34608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609   (exit $ac_status); } >/dev/null && {
34610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34611          test ! -s conftest.err
34612        }; then
34613   cat >>confdefs.h <<\_ACEOF
34614 #define FSTYPE_STATVFS 1
34615 _ACEOF
34616  fstype=SVR4
34617
34618 else
34619   $as_echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34621
34622
34623 fi
34624
34625 rm -f conftest.err conftest.$ac_ext
34626 if test $fstype = no; then
34627    cat >conftest.$ac_ext <<_ACEOF
34628 /* confdefs.h.  */
34629 _ACEOF
34630 cat confdefs.h >>conftest.$ac_ext
34631 cat >>conftest.$ac_ext <<_ACEOF
34632 /* end confdefs.h.  */
34633
34634           #include <sys/statfs.h>
34635           #include <sys/fstyp.h>
34636
34637 _ACEOF
34638 if { (ac_try="$ac_cpp conftest.$ac_ext"
34639 case "(($ac_try" in
34640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641   *) ac_try_echo=$ac_try;;
34642 esac
34643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34644 $as_echo "$ac_try_echo") >&5
34645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34646   ac_status=$?
34647   grep -v '^ *+' conftest.er1 >conftest.err
34648   rm -f conftest.er1
34649   cat conftest.err >&5
34650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651   (exit $ac_status); } >/dev/null && {
34652          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34653          test ! -s conftest.err
34654        }; then
34655   cat >>confdefs.h <<\_ACEOF
34656 #define FSTYPE_USG_STATFS 1
34657 _ACEOF
34658  fstype=SVR3
34659
34660 else
34661   $as_echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34663
34664
34665 fi
34666
34667 rm -f conftest.err conftest.$ac_ext
34668 fi
34669 if test $fstype = no; then
34670    cat >conftest.$ac_ext <<_ACEOF
34671 /* confdefs.h.  */
34672 _ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h.  */
34676
34677           #include <sys/statfs.h>
34678           #include <sys/vmount.h>
34679
34680 _ACEOF
34681 if { (ac_try="$ac_cpp conftest.$ac_ext"
34682 case "(($ac_try" in
34683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34684   *) ac_try_echo=$ac_try;;
34685 esac
34686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34687 $as_echo "$ac_try_echo") >&5
34688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34689   ac_status=$?
34690   grep -v '^ *+' conftest.er1 >conftest.err
34691   rm -f conftest.er1
34692   cat conftest.err >&5
34693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); } >/dev/null && {
34695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34696          test ! -s conftest.err
34697        }; then
34698   cat >>confdefs.h <<\_ACEOF
34699 #define FSTYPE_AIX_STATFS 1
34700 _ACEOF
34701  fstype=AIX
34702
34703 else
34704   $as_echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34706
34707
34708 fi
34709
34710 rm -f conftest.err conftest.$ac_ext
34711 fi
34712 if test $fstype = no; then
34713    cat >conftest.$ac_ext <<_ACEOF
34714 /* confdefs.h.  */
34715 _ACEOF
34716 cat confdefs.h >>conftest.$ac_ext
34717 cat >>conftest.$ac_ext <<_ACEOF
34718 /* end confdefs.h.  */
34719
34720           #include <mntent.h>
34721
34722 _ACEOF
34723 if { (ac_try="$ac_cpp conftest.$ac_ext"
34724 case "(($ac_try" in
34725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34726   *) ac_try_echo=$ac_try;;
34727 esac
34728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34729 $as_echo "$ac_try_echo") >&5
34730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34731   ac_status=$?
34732   grep -v '^ *+' conftest.er1 >conftest.err
34733   rm -f conftest.er1
34734   cat conftest.err >&5
34735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736   (exit $ac_status); } >/dev/null && {
34737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34738          test ! -s conftest.err
34739        }; then
34740   cat >>confdefs.h <<\_ACEOF
34741 #define FSTYPE_MNTENT 1
34742 _ACEOF
34743  fstype=4.3BSD
34744
34745 else
34746   $as_echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34748
34749
34750 fi
34751
34752 rm -f conftest.err conftest.$ac_ext
34753 fi
34754 if test $fstype = no; then
34755    cat >conftest.$ac_ext <<_ACEOF
34756 /* confdefs.h.  */
34757 _ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h.  */
34761 #include <sys/mount.h>
34762
34763 _ACEOF
34764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34765   $EGREP "f_type;" >/dev/null 2>&1; then
34766   cat >>confdefs.h <<\_ACEOF
34767 #define FSTYPE_STATFS 1
34768 _ACEOF
34769  fstype=4.4BSD/OSF1
34770 fi
34771 rm -f conftest*
34772
34773 fi
34774 if test $fstype = no; then
34775    cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781
34782           #include <sys/mount.h>
34783           #include <sys/fs_types.h>
34784
34785 _ACEOF
34786 if { (ac_try="$ac_cpp conftest.$ac_ext"
34787 case "(($ac_try" in
34788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789   *) ac_try_echo=$ac_try;;
34790 esac
34791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34792 $as_echo "$ac_try_echo") >&5
34793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34794   ac_status=$?
34795   grep -v '^ *+' conftest.er1 >conftest.err
34796   rm -f conftest.er1
34797   cat conftest.err >&5
34798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); } >/dev/null && {
34800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34801          test ! -s conftest.err
34802        }; then
34803   cat >>confdefs.h <<\_ACEOF
34804 #define FSTYPE_GETMNT 1
34805 _ACEOF
34806  fstype=Ultrix
34807
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 conftest.err conftest.$ac_ext
34816 fi
34817 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34818 $as_echo "$fstype" >&6; }
34819
34820 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34821   { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34822 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34823 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34824   $as_echo_n "(cached) " >&6
34825 fi
34826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34827 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34828 else
34829   # Is the header compilable?
34830 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34831 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34832 cat >conftest.$ac_ext <<_ACEOF
34833 /* confdefs.h.  */
34834 _ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h.  */
34838 $ac_includes_default
34839 #include <sys/statvfs.h>
34840 _ACEOF
34841 rm -f conftest.$ac_objext
34842 if { (ac_try="$ac_compile"
34843 case "(($ac_try" in
34844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34845   *) ac_try_echo=$ac_try;;
34846 esac
34847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34848 $as_echo "$ac_try_echo") >&5
34849   (eval "$ac_compile") 2>conftest.er1
34850   ac_status=$?
34851   grep -v '^ *+' conftest.er1 >conftest.err
34852   rm -f conftest.er1
34853   cat conftest.err >&5
34854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855   (exit $ac_status); } && {
34856          test -z "$ac_c_werror_flag" ||
34857          test ! -s conftest.err
34858        } && test -s conftest.$ac_objext; then
34859   ac_header_compiler=yes
34860 else
34861   $as_echo "$as_me: failed program was:" >&5
34862 sed 's/^/| /' conftest.$ac_ext >&5
34863
34864         ac_header_compiler=no
34865 fi
34866
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34869 $as_echo "$ac_header_compiler" >&6; }
34870
34871 # Is the header present?
34872 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34873 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34874 cat >conftest.$ac_ext <<_ACEOF
34875 /* confdefs.h.  */
34876 _ACEOF
34877 cat confdefs.h >>conftest.$ac_ext
34878 cat >>conftest.$ac_ext <<_ACEOF
34879 /* end confdefs.h.  */
34880 #include <sys/statvfs.h>
34881 _ACEOF
34882 if { (ac_try="$ac_cpp conftest.$ac_ext"
34883 case "(($ac_try" in
34884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34885   *) ac_try_echo=$ac_try;;
34886 esac
34887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34888 $as_echo "$ac_try_echo") >&5
34889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34890   ac_status=$?
34891   grep -v '^ *+' conftest.er1 >conftest.err
34892   rm -f conftest.er1
34893   cat conftest.err >&5
34894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); } >/dev/null && {
34896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34897          test ! -s conftest.err
34898        }; then
34899   ac_header_preproc=yes
34900 else
34901   $as_echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34903
34904   ac_header_preproc=no
34905 fi
34906
34907 rm -f conftest.err conftest.$ac_ext
34908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34909 $as_echo "$ac_header_preproc" >&6; }
34910
34911 # So?  What about this header?
34912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34913   yes:no: )
34914     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34915 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34916     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34917 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34918     ac_header_preproc=yes
34919     ;;
34920   no:yes:* )
34921     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34922 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34923     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
34924 $as_echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
34925     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34926 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34927     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
34928 $as_echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34929     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34930 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34931     { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34932 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34933
34934     ;;
34935 esac
34936 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34937 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34938 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34939   $as_echo_n "(cached) " >&6
34940 else
34941   ac_cv_header_sys_statvfs_h=$ac_header_preproc
34942 fi
34943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34944 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34945
34946 fi
34947 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34948
34949 cat >>confdefs.h <<\_ACEOF
34950 #define HAVE_SYS_STATVFS_H 1
34951 _ACEOF
34952
34953 fi
34954
34955
34956
34957 ac_ext=cpp
34958 ac_cpp='$CXXCPP $CPPFLAGS'
34959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34962
34963
34964
34965
34966 for ac_header in cxxabi.h execinfo.h
34967 do
34968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34970   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34971 $as_echo_n "checking for $ac_header... " >&6; }
34972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34973   $as_echo_n "(cached) " >&6
34974 fi
34975 ac_res=`eval 'as_val=${'$as_ac_Header'}
34976                  $as_echo "$as_val"'`
34977                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34978 $as_echo "$ac_res" >&6; }
34979 else
34980   # Is the header compilable?
34981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34982 $as_echo_n "checking $ac_header usability... " >&6; }
34983 cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989 $ac_includes_default
34990 #include <$ac_header>
34991 _ACEOF
34992 rm -f conftest.$ac_objext
34993 if { (ac_try="$ac_compile"
34994 case "(($ac_try" in
34995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996   *) ac_try_echo=$ac_try;;
34997 esac
34998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34999 $as_echo "$ac_try_echo") >&5
35000   (eval "$ac_compile") 2>conftest.er1
35001   ac_status=$?
35002   grep -v '^ *+' conftest.er1 >conftest.err
35003   rm -f conftest.er1
35004   cat conftest.err >&5
35005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006   (exit $ac_status); } && {
35007          test -z "$ac_cxx_werror_flag" ||
35008          test ! -s conftest.err
35009        } && test -s conftest.$ac_objext; then
35010   ac_header_compiler=yes
35011 else
35012   $as_echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35014
35015         ac_header_compiler=no
35016 fi
35017
35018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35020 $as_echo "$ac_header_compiler" >&6; }
35021
35022 # Is the header present?
35023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35024 $as_echo_n "checking $ac_header presence... " >&6; }
35025 cat >conftest.$ac_ext <<_ACEOF
35026 /* confdefs.h.  */
35027 _ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h.  */
35031 #include <$ac_header>
35032 _ACEOF
35033 if { (ac_try="$ac_cpp conftest.$ac_ext"
35034 case "(($ac_try" in
35035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036   *) ac_try_echo=$ac_try;;
35037 esac
35038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35039 $as_echo "$ac_try_echo") >&5
35040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35041   ac_status=$?
35042   grep -v '^ *+' conftest.er1 >conftest.err
35043   rm -f conftest.er1
35044   cat conftest.err >&5
35045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046   (exit $ac_status); } >/dev/null && {
35047          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
35048          test ! -s conftest.err
35049        }; then
35050   ac_header_preproc=yes
35051 else
35052   $as_echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35054
35055   ac_header_preproc=no
35056 fi
35057
35058 rm -f conftest.err conftest.$ac_ext
35059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35060 $as_echo "$ac_header_preproc" >&6; }
35061
35062 # So?  What about this header?
35063 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
35064   yes:no: )
35065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35067     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35069     ac_header_preproc=yes
35070     ;;
35071   no:yes:* )
35072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35075 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35079 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35084
35085     ;;
35086 esac
35087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35088 $as_echo_n "checking for $ac_header... " >&6; }
35089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35090   $as_echo_n "(cached) " >&6
35091 else
35092   eval "$as_ac_Header=\$ac_header_preproc"
35093 fi
35094 ac_res=`eval 'as_val=${'$as_ac_Header'}
35095                  $as_echo "$as_val"'`
35096                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35097 $as_echo "$ac_res" >&6; }
35098
35099 fi
35100 as_val=`eval 'as_val=${'$as_ac_Header'}
35101                  $as_echo "$as_val"'`
35102    if test "x$as_val" = x""yes; then
35103   cat >>confdefs.h <<_ACEOF
35104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35105 _ACEOF
35106
35107 cat >>confdefs.h <<\_ACEOF
35108 #define HAVE_BACKTRACE 1
35109 _ACEOF
35110
35111 fi
35112
35113 done
35114
35115 ac_ext=c
35116 ac_cpp='$CPP $CPPFLAGS'
35117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35120
35121
35122 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
35123 $as_echo_n "checking return type of signal handlers... " >&6; }
35124 if test "${ac_cv_type_signal+set}" = set; then
35125   $as_echo_n "(cached) " >&6
35126 else
35127   cat >conftest.$ac_ext <<_ACEOF
35128 /* confdefs.h.  */
35129 _ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h.  */
35133 #include <sys/types.h>
35134 #include <signal.h>
35135
35136 int
35137 main ()
35138 {
35139 return *(signal (0, 0)) (0) == 1;
35140   ;
35141   return 0;
35142 }
35143 _ACEOF
35144 rm -f conftest.$ac_objext
35145 if { (ac_try="$ac_compile"
35146 case "(($ac_try" in
35147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35148   *) ac_try_echo=$ac_try;;
35149 esac
35150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35151 $as_echo "$ac_try_echo") >&5
35152   (eval "$ac_compile") 2>conftest.er1
35153   ac_status=$?
35154   grep -v '^ *+' conftest.er1 >conftest.err
35155   rm -f conftest.er1
35156   cat conftest.err >&5
35157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); } && {
35159          test -z "$ac_c_werror_flag" ||
35160          test ! -s conftest.err
35161        } && test -s conftest.$ac_objext; then
35162   ac_cv_type_signal=int
35163 else
35164   $as_echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35166
35167         ac_cv_type_signal=void
35168 fi
35169
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35171 fi
35172 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
35173 $as_echo "$ac_cv_type_signal" >&6; }
35174
35175 cat >>confdefs.h <<_ACEOF
35176 #define RETSIGTYPE $ac_cv_type_signal
35177 _ACEOF
35178
35179
35180
35181   { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
35182 $as_echo_n "checking for type of signal functions... " >&6; }
35183   if test "${bash_cv_signal_vintage+set}" = set; then
35184   $as_echo_n "(cached) " >&6
35185 else
35186
35187     cat >conftest.$ac_ext <<_ACEOF
35188 /* confdefs.h.  */
35189 _ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h.  */
35193 #include <signal.h>
35194 int
35195 main ()
35196 {
35197
35198       sigset_t ss;
35199       struct sigaction sa;
35200       sigemptyset(&ss); sigsuspend(&ss);
35201       sigaction(SIGINT, &sa, (struct sigaction *) 0);
35202       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
35203
35204   ;
35205   return 0;
35206 }
35207 _ACEOF
35208 rm -f conftest.$ac_objext conftest$ac_exeext
35209 if { (ac_try="$ac_link"
35210 case "(($ac_try" in
35211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35212   *) ac_try_echo=$ac_try;;
35213 esac
35214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35215 $as_echo "$ac_try_echo") >&5
35216   (eval "$ac_link") 2>conftest.er1
35217   ac_status=$?
35218   grep -v '^ *+' conftest.er1 >conftest.err
35219   rm -f conftest.er1
35220   cat conftest.err >&5
35221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222   (exit $ac_status); } && {
35223          test -z "$ac_c_werror_flag" ||
35224          test ! -s conftest.err
35225        } && test -s conftest$ac_exeext && {
35226          test "$cross_compiling" = yes ||
35227          $as_test_x conftest$ac_exeext
35228        }; then
35229   bash_cv_signal_vintage="posix"
35230 else
35231   $as_echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35233
35234
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 #include <signal.h>
35242 int
35243 main ()
35244 {
35245
35246           int mask = sigmask(SIGINT);
35247           sigsetmask(mask); sigblock(mask); sigpause(mask);
35248
35249   ;
35250   return 0;
35251 }
35252 _ACEOF
35253 rm -f conftest.$ac_objext conftest$ac_exeext
35254 if { (ac_try="$ac_link"
35255 case "(($ac_try" in
35256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257   *) ac_try_echo=$ac_try;;
35258 esac
35259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35260 $as_echo "$ac_try_echo") >&5
35261   (eval "$ac_link") 2>conftest.er1
35262   ac_status=$?
35263   grep -v '^ *+' conftest.er1 >conftest.err
35264   rm -f conftest.er1
35265   cat conftest.err >&5
35266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); } && {
35268          test -z "$ac_c_werror_flag" ||
35269          test ! -s conftest.err
35270        } && test -s conftest$ac_exeext && {
35271          test "$cross_compiling" = yes ||
35272          $as_test_x conftest$ac_exeext
35273        }; then
35274   bash_cv_signal_vintage="4.2bsd"
35275 else
35276   $as_echo "$as_me: failed program was:" >&5
35277 sed 's/^/| /' conftest.$ac_ext >&5
35278
35279
35280         cat >conftest.$ac_ext <<_ACEOF
35281 /* confdefs.h.  */
35282 _ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h.  */
35286
35287           #include <signal.h>
35288           RETSIGTYPE foo() { }
35289 int
35290 main ()
35291 {
35292
35293                   int mask = sigmask(SIGINT);
35294                   sigset(SIGINT, foo); sigrelse(SIGINT);
35295                   sighold(SIGINT); sigpause(SIGINT);
35296
35297   ;
35298   return 0;
35299 }
35300 _ACEOF
35301 rm -f conftest.$ac_objext conftest$ac_exeext
35302 if { (ac_try="$ac_link"
35303 case "(($ac_try" in
35304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35305   *) ac_try_echo=$ac_try;;
35306 esac
35307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35308 $as_echo "$ac_try_echo") >&5
35309   (eval "$ac_link") 2>conftest.er1
35310   ac_status=$?
35311   grep -v '^ *+' conftest.er1 >conftest.err
35312   rm -f conftest.er1
35313   cat conftest.err >&5
35314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); } && {
35316          test -z "$ac_c_werror_flag" ||
35317          test ! -s conftest.err
35318        } && test -s conftest$ac_exeext && {
35319          test "$cross_compiling" = yes ||
35320          $as_test_x conftest$ac_exeext
35321        }; then
35322   bash_cv_signal_vintage="svr3"
35323 else
35324   $as_echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35326
35327         bash_cv_signal_vintage="v7"
35328
35329 fi
35330
35331 rm -rf conftest.dSYM
35332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35333       conftest$ac_exeext conftest.$ac_ext
35334
35335 fi
35336
35337 rm -rf conftest.dSYM
35338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35339       conftest$ac_exeext conftest.$ac_ext
35340
35341 fi
35342
35343 rm -rf conftest.dSYM
35344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35345       conftest$ac_exeext conftest.$ac_ext
35346
35347 fi
35348
35349   { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
35350 $as_echo "$bash_cv_signal_vintage" >&6; }
35351   if test "$bash_cv_signal_vintage" = "posix"; then
35352     cat >>confdefs.h <<\_ACEOF
35353 #define HAVE_POSIX_SIGNALS 1
35354 _ACEOF
35355
35356   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
35357     cat >>confdefs.h <<\_ACEOF
35358 #define HAVE_BSD_SIGNALS 1
35359 _ACEOF
35360
35361   elif test "$bash_cv_signal_vintage" = "svr3"; then
35362     cat >>confdefs.h <<\_ACEOF
35363 #define HAVE_USG_SIGHOLD 1
35364 _ACEOF
35365
35366   fi
35367
35368 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
35369 $as_echo_n "checking for mode_t... " >&6; }
35370 if test "${ac_cv_type_mode_t+set}" = set; then
35371   $as_echo_n "(cached) " >&6
35372 else
35373   ac_cv_type_mode_t=no
35374 cat >conftest.$ac_ext <<_ACEOF
35375 /* confdefs.h.  */
35376 _ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h.  */
35380 $ac_includes_default
35381 int
35382 main ()
35383 {
35384 if (sizeof (mode_t))
35385        return 0;
35386   ;
35387   return 0;
35388 }
35389 _ACEOF
35390 rm -f conftest.$ac_objext
35391 if { (ac_try="$ac_compile"
35392 case "(($ac_try" in
35393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35394   *) ac_try_echo=$ac_try;;
35395 esac
35396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35397 $as_echo "$ac_try_echo") >&5
35398   (eval "$ac_compile") 2>conftest.er1
35399   ac_status=$?
35400   grep -v '^ *+' conftest.er1 >conftest.err
35401   rm -f conftest.er1
35402   cat conftest.err >&5
35403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404   (exit $ac_status); } && {
35405          test -z "$ac_c_werror_flag" ||
35406          test ! -s conftest.err
35407        } && test -s conftest.$ac_objext; then
35408   cat >conftest.$ac_ext <<_ACEOF
35409 /* confdefs.h.  */
35410 _ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h.  */
35414 $ac_includes_default
35415 int
35416 main ()
35417 {
35418 if (sizeof ((mode_t)))
35419           return 0;
35420   ;
35421   return 0;
35422 }
35423 _ACEOF
35424 rm -f conftest.$ac_objext
35425 if { (ac_try="$ac_compile"
35426 case "(($ac_try" in
35427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35428   *) ac_try_echo=$ac_try;;
35429 esac
35430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35431 $as_echo "$ac_try_echo") >&5
35432   (eval "$ac_compile") 2>conftest.er1
35433   ac_status=$?
35434   grep -v '^ *+' conftest.er1 >conftest.err
35435   rm -f conftest.er1
35436   cat conftest.err >&5
35437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); } && {
35439          test -z "$ac_c_werror_flag" ||
35440          test ! -s conftest.err
35441        } && test -s conftest.$ac_objext; then
35442   :
35443 else
35444   $as_echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35446
35447         ac_cv_type_mode_t=yes
35448 fi
35449
35450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35451 else
35452   $as_echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35454
35455
35456 fi
35457
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35459 fi
35460 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35461 $as_echo "$ac_cv_type_mode_t" >&6; }
35462 if test "x$ac_cv_type_mode_t" = x""yes; then
35463   :
35464 else
35465
35466 cat >>confdefs.h <<_ACEOF
35467 #define mode_t int
35468 _ACEOF
35469
35470 fi
35471
35472 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
35473 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
35474 if test "${ac_cv_type_uid_t+set}" = set; then
35475   $as_echo_n "(cached) " >&6
35476 else
35477   cat >conftest.$ac_ext <<_ACEOF
35478 /* confdefs.h.  */
35479 _ACEOF
35480 cat confdefs.h >>conftest.$ac_ext
35481 cat >>conftest.$ac_ext <<_ACEOF
35482 /* end confdefs.h.  */
35483 #include <sys/types.h>
35484
35485 _ACEOF
35486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35487   $EGREP "uid_t" >/dev/null 2>&1; then
35488   ac_cv_type_uid_t=yes
35489 else
35490   ac_cv_type_uid_t=no
35491 fi
35492 rm -f conftest*
35493
35494 fi
35495 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
35496 $as_echo "$ac_cv_type_uid_t" >&6; }
35497 if test $ac_cv_type_uid_t = no; then
35498
35499 cat >>confdefs.h <<\_ACEOF
35500 #define uid_t int
35501 _ACEOF
35502
35503
35504 cat >>confdefs.h <<\_ACEOF
35505 #define gid_t int
35506 _ACEOF
35507
35508 fi
35509
35510 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
35511 $as_echo_n "checking for size_t... " >&6; }
35512 if test "${ac_cv_type_size_t+set}" = set; then
35513   $as_echo_n "(cached) " >&6
35514 else
35515   ac_cv_type_size_t=no
35516 cat >conftest.$ac_ext <<_ACEOF
35517 /* confdefs.h.  */
35518 _ACEOF
35519 cat confdefs.h >>conftest.$ac_ext
35520 cat >>conftest.$ac_ext <<_ACEOF
35521 /* end confdefs.h.  */
35522 $ac_includes_default
35523 int
35524 main ()
35525 {
35526 if (sizeof (size_t))
35527        return 0;
35528   ;
35529   return 0;
35530 }
35531 _ACEOF
35532 rm -f conftest.$ac_objext
35533 if { (ac_try="$ac_compile"
35534 case "(($ac_try" in
35535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35536   *) ac_try_echo=$ac_try;;
35537 esac
35538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35539 $as_echo "$ac_try_echo") >&5
35540   (eval "$ac_compile") 2>conftest.er1
35541   ac_status=$?
35542   grep -v '^ *+' conftest.er1 >conftest.err
35543   rm -f conftest.er1
35544   cat conftest.err >&5
35545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546   (exit $ac_status); } && {
35547          test -z "$ac_c_werror_flag" ||
35548          test ! -s conftest.err
35549        } && test -s conftest.$ac_objext; then
35550   cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h.  */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h.  */
35556 $ac_includes_default
35557 int
35558 main ()
35559 {
35560 if (sizeof ((size_t)))
35561           return 0;
35562   ;
35563   return 0;
35564 }
35565 _ACEOF
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35573 $as_echo "$ac_try_echo") >&5
35574   (eval "$ac_compile") 2>conftest.er1
35575   ac_status=$?
35576   grep -v '^ *+' conftest.er1 >conftest.err
35577   rm -f conftest.er1
35578   cat conftest.err >&5
35579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580   (exit $ac_status); } && {
35581          test -z "$ac_c_werror_flag" ||
35582          test ! -s conftest.err
35583        } && test -s conftest.$ac_objext; then
35584   :
35585 else
35586   $as_echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35588
35589         ac_cv_type_size_t=yes
35590 fi
35591
35592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35593 else
35594   $as_echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35596
35597
35598 fi
35599
35600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35601 fi
35602 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35603 $as_echo "$ac_cv_type_size_t" >&6; }
35604 if test "x$ac_cv_type_size_t" = x""yes; then
35605   :
35606 else
35607
35608 cat >>confdefs.h <<_ACEOF
35609 #define size_t unsigned int
35610 _ACEOF
35611
35612 fi
35613
35614 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
35615 $as_echo_n "checking for pid_t... " >&6; }
35616 if test "${ac_cv_type_pid_t+set}" = set; then
35617   $as_echo_n "(cached) " >&6
35618 else
35619   ac_cv_type_pid_t=no
35620 cat >conftest.$ac_ext <<_ACEOF
35621 /* confdefs.h.  */
35622 _ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h.  */
35626 $ac_includes_default
35627 int
35628 main ()
35629 {
35630 if (sizeof (pid_t))
35631        return 0;
35632   ;
35633   return 0;
35634 }
35635 _ACEOF
35636 rm -f conftest.$ac_objext
35637 if { (ac_try="$ac_compile"
35638 case "(($ac_try" in
35639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35640   *) ac_try_echo=$ac_try;;
35641 esac
35642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35643 $as_echo "$ac_try_echo") >&5
35644   (eval "$ac_compile") 2>conftest.er1
35645   ac_status=$?
35646   grep -v '^ *+' conftest.er1 >conftest.err
35647   rm -f conftest.er1
35648   cat conftest.err >&5
35649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650   (exit $ac_status); } && {
35651          test -z "$ac_c_werror_flag" ||
35652          test ! -s conftest.err
35653        } && test -s conftest.$ac_objext; then
35654   cat >conftest.$ac_ext <<_ACEOF
35655 /* confdefs.h.  */
35656 _ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h.  */
35660 $ac_includes_default
35661 int
35662 main ()
35663 {
35664 if (sizeof ((pid_t)))
35665           return 0;
35666   ;
35667   return 0;
35668 }
35669 _ACEOF
35670 rm -f conftest.$ac_objext
35671 if { (ac_try="$ac_compile"
35672 case "(($ac_try" in
35673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35674   *) ac_try_echo=$ac_try;;
35675 esac
35676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35677 $as_echo "$ac_try_echo") >&5
35678   (eval "$ac_compile") 2>conftest.er1
35679   ac_status=$?
35680   grep -v '^ *+' conftest.er1 >conftest.err
35681   rm -f conftest.er1
35682   cat conftest.err >&5
35683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); } && {
35685          test -z "$ac_c_werror_flag" ||
35686          test ! -s conftest.err
35687        } && test -s conftest.$ac_objext; then
35688   :
35689 else
35690   $as_echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.$ac_ext >&5
35692
35693         ac_cv_type_pid_t=yes
35694 fi
35695
35696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35697 else
35698   $as_echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35700
35701
35702 fi
35703
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705 fi
35706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35707 $as_echo "$ac_cv_type_pid_t" >&6; }
35708 if test "x$ac_cv_type_pid_t" = x""yes; then
35709   :
35710 else
35711
35712 cat >>confdefs.h <<_ACEOF
35713 #define pid_t int
35714 _ACEOF
35715
35716 fi
35717
35718 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
35719 $as_echo_n "checking for off_t... " >&6; }
35720 if test "${ac_cv_type_off_t+set}" = set; then
35721   $as_echo_n "(cached) " >&6
35722 else
35723   ac_cv_type_off_t=no
35724 cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731 int
35732 main ()
35733 {
35734 if (sizeof (off_t))
35735        return 0;
35736   ;
35737   return 0;
35738 }
35739 _ACEOF
35740 rm -f conftest.$ac_objext
35741 if { (ac_try="$ac_compile"
35742 case "(($ac_try" in
35743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744   *) ac_try_echo=$ac_try;;
35745 esac
35746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35747 $as_echo "$ac_try_echo") >&5
35748   (eval "$ac_compile") 2>conftest.er1
35749   ac_status=$?
35750   grep -v '^ *+' conftest.er1 >conftest.err
35751   rm -f conftest.er1
35752   cat conftest.err >&5
35753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754   (exit $ac_status); } && {
35755          test -z "$ac_c_werror_flag" ||
35756          test ! -s conftest.err
35757        } && test -s conftest.$ac_objext; then
35758   cat >conftest.$ac_ext <<_ACEOF
35759 /* confdefs.h.  */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h.  */
35764 $ac_includes_default
35765 int
35766 main ()
35767 {
35768 if (sizeof ((off_t)))
35769           return 0;
35770   ;
35771   return 0;
35772 }
35773 _ACEOF
35774 rm -f conftest.$ac_objext
35775 if { (ac_try="$ac_compile"
35776 case "(($ac_try" in
35777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35778   *) ac_try_echo=$ac_try;;
35779 esac
35780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35781 $as_echo "$ac_try_echo") >&5
35782   (eval "$ac_compile") 2>conftest.er1
35783   ac_status=$?
35784   grep -v '^ *+' conftest.er1 >conftest.err
35785   rm -f conftest.er1
35786   cat conftest.err >&5
35787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } && {
35789          test -z "$ac_c_werror_flag" ||
35790          test ! -s conftest.err
35791        } && test -s conftest.$ac_objext; then
35792   :
35793 else
35794   $as_echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35796
35797         ac_cv_type_off_t=yes
35798 fi
35799
35800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35801 else
35802   $as_echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35804
35805
35806 fi
35807
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809 fi
35810 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35811 $as_echo "$ac_cv_type_off_t" >&6; }
35812 if test "x$ac_cv_type_off_t" = x""yes; then
35813   :
35814 else
35815
35816 cat >>confdefs.h <<_ACEOF
35817 #define off_t long int
35818 _ACEOF
35819
35820 fi
35821
35822
35823   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35824 $as_echo_n "checking for intptr_t... " >&6; }
35825 if test "${ac_cv_type_intptr_t+set}" = set; then
35826   $as_echo_n "(cached) " >&6
35827 else
35828   ac_cv_type_intptr_t=no
35829 cat >conftest.$ac_ext <<_ACEOF
35830 /* confdefs.h.  */
35831 _ACEOF
35832 cat confdefs.h >>conftest.$ac_ext
35833 cat >>conftest.$ac_ext <<_ACEOF
35834 /* end confdefs.h.  */
35835 $ac_includes_default
35836 int
35837 main ()
35838 {
35839 if (sizeof (intptr_t))
35840        return 0;
35841   ;
35842   return 0;
35843 }
35844 _ACEOF
35845 rm -f conftest.$ac_objext
35846 if { (ac_try="$ac_compile"
35847 case "(($ac_try" in
35848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849   *) ac_try_echo=$ac_try;;
35850 esac
35851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35852 $as_echo "$ac_try_echo") >&5
35853   (eval "$ac_compile") 2>conftest.er1
35854   ac_status=$?
35855   grep -v '^ *+' conftest.er1 >conftest.err
35856   rm -f conftest.er1
35857   cat conftest.err >&5
35858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859   (exit $ac_status); } && {
35860          test -z "$ac_c_werror_flag" ||
35861          test ! -s conftest.err
35862        } && test -s conftest.$ac_objext; then
35863   cat >conftest.$ac_ext <<_ACEOF
35864 /* confdefs.h.  */
35865 _ACEOF
35866 cat confdefs.h >>conftest.$ac_ext
35867 cat >>conftest.$ac_ext <<_ACEOF
35868 /* end confdefs.h.  */
35869 $ac_includes_default
35870 int
35871 main ()
35872 {
35873 if (sizeof ((intptr_t)))
35874           return 0;
35875   ;
35876   return 0;
35877 }
35878 _ACEOF
35879 rm -f conftest.$ac_objext
35880 if { (ac_try="$ac_compile"
35881 case "(($ac_try" in
35882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35883   *) ac_try_echo=$ac_try;;
35884 esac
35885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35886 $as_echo "$ac_try_echo") >&5
35887   (eval "$ac_compile") 2>conftest.er1
35888   ac_status=$?
35889   grep -v '^ *+' conftest.er1 >conftest.err
35890   rm -f conftest.er1
35891   cat conftest.err >&5
35892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } && {
35894          test -z "$ac_c_werror_flag" ||
35895          test ! -s conftest.err
35896        } && test -s conftest.$ac_objext; then
35897   :
35898 else
35899   $as_echo "$as_me: failed program was:" >&5
35900 sed 's/^/| /' conftest.$ac_ext >&5
35901
35902         ac_cv_type_intptr_t=yes
35903 fi
35904
35905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35906 else
35907   $as_echo "$as_me: failed program was:" >&5
35908 sed 's/^/| /' conftest.$ac_ext >&5
35909
35910
35911 fi
35912
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914 fi
35915 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35916 $as_echo "$ac_cv_type_intptr_t" >&6; }
35917 if test "x$ac_cv_type_intptr_t" = x""yes; then
35918
35919 cat >>confdefs.h <<\_ACEOF
35920 #define HAVE_INTPTR_T 1
35921 _ACEOF
35922
35923 else
35924   for ac_type in 'int' 'long int' 'long long int'; do
35925        cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h.  */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h.  */
35931 $ac_includes_default
35932 int
35933 main ()
35934 {
35935 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35936 test_array [0] = 0
35937
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (ac_try="$ac_compile"
35944 case "(($ac_try" in
35945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946   *) ac_try_echo=$ac_try;;
35947 esac
35948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35949 $as_echo "$ac_try_echo") >&5
35950   (eval "$ac_compile") 2>conftest.er1
35951   ac_status=$?
35952   grep -v '^ *+' conftest.er1 >conftest.err
35953   rm -f conftest.er1
35954   cat conftest.err >&5
35955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956   (exit $ac_status); } && {
35957          test -z "$ac_c_werror_flag" ||
35958          test ! -s conftest.err
35959        } && test -s conftest.$ac_objext; then
35960
35961 cat >>confdefs.h <<_ACEOF
35962 #define intptr_t $ac_type
35963 _ACEOF
35964
35965           ac_type=
35966 else
35967   $as_echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969
35970
35971 fi
35972
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974        test -z "$ac_type" && break
35975      done
35976 fi
35977
35978
35979
35980   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35981 $as_echo_n "checking for uintptr_t... " >&6; }
35982 if test "${ac_cv_type_uintptr_t+set}" = set; then
35983   $as_echo_n "(cached) " >&6
35984 else
35985   ac_cv_type_uintptr_t=no
35986 cat >conftest.$ac_ext <<_ACEOF
35987 /* confdefs.h.  */
35988 _ACEOF
35989 cat confdefs.h >>conftest.$ac_ext
35990 cat >>conftest.$ac_ext <<_ACEOF
35991 /* end confdefs.h.  */
35992 $ac_includes_default
35993 int
35994 main ()
35995 {
35996 if (sizeof (uintptr_t))
35997        return 0;
35998   ;
35999   return 0;
36000 }
36001 _ACEOF
36002 rm -f conftest.$ac_objext
36003 if { (ac_try="$ac_compile"
36004 case "(($ac_try" in
36005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36006   *) ac_try_echo=$ac_try;;
36007 esac
36008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36009 $as_echo "$ac_try_echo") >&5
36010   (eval "$ac_compile") 2>conftest.er1
36011   ac_status=$?
36012   grep -v '^ *+' conftest.er1 >conftest.err
36013   rm -f conftest.er1
36014   cat conftest.err >&5
36015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016   (exit $ac_status); } && {
36017          test -z "$ac_c_werror_flag" ||
36018          test ! -s conftest.err
36019        } && test -s conftest.$ac_objext; then
36020   cat >conftest.$ac_ext <<_ACEOF
36021 /* confdefs.h.  */
36022 _ACEOF
36023 cat confdefs.h >>conftest.$ac_ext
36024 cat >>conftest.$ac_ext <<_ACEOF
36025 /* end confdefs.h.  */
36026 $ac_includes_default
36027 int
36028 main ()
36029 {
36030 if (sizeof ((uintptr_t)))
36031           return 0;
36032   ;
36033   return 0;
36034 }
36035 _ACEOF
36036 rm -f conftest.$ac_objext
36037 if { (ac_try="$ac_compile"
36038 case "(($ac_try" in
36039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36040   *) ac_try_echo=$ac_try;;
36041 esac
36042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36043 $as_echo "$ac_try_echo") >&5
36044   (eval "$ac_compile") 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } && {
36051          test -z "$ac_c_werror_flag" ||
36052          test ! -s conftest.err
36053        } && test -s conftest.$ac_objext; then
36054   :
36055 else
36056   $as_echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36058
36059         ac_cv_type_uintptr_t=yes
36060 fi
36061
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 else
36064   $as_echo "$as_me: failed program was:" >&5
36065 sed 's/^/| /' conftest.$ac_ext >&5
36066
36067
36068 fi
36069
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36071 fi
36072 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
36073 $as_echo "$ac_cv_type_uintptr_t" >&6; }
36074 if test "x$ac_cv_type_uintptr_t" = x""yes; then
36075
36076 cat >>confdefs.h <<\_ACEOF
36077 #define HAVE_UINTPTR_T 1
36078 _ACEOF
36079
36080 else
36081   for ac_type in 'unsigned int' 'unsigned long int' \
36082         'unsigned long long int'; do
36083        cat >conftest.$ac_ext <<_ACEOF
36084 /* confdefs.h.  */
36085 _ACEOF
36086 cat confdefs.h >>conftest.$ac_ext
36087 cat >>conftest.$ac_ext <<_ACEOF
36088 /* end confdefs.h.  */
36089 $ac_includes_default
36090 int
36091 main ()
36092 {
36093 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
36094 test_array [0] = 0
36095
36096   ;
36097   return 0;
36098 }
36099 _ACEOF
36100 rm -f conftest.$ac_objext
36101 if { (ac_try="$ac_compile"
36102 case "(($ac_try" in
36103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36104   *) ac_try_echo=$ac_try;;
36105 esac
36106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36107 $as_echo "$ac_try_echo") >&5
36108   (eval "$ac_compile") 2>conftest.er1
36109   ac_status=$?
36110   grep -v '^ *+' conftest.er1 >conftest.err
36111   rm -f conftest.er1
36112   cat conftest.err >&5
36113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114   (exit $ac_status); } && {
36115          test -z "$ac_c_werror_flag" ||
36116          test ! -s conftest.err
36117        } && test -s conftest.$ac_objext; then
36118
36119 cat >>confdefs.h <<_ACEOF
36120 #define uintptr_t $ac_type
36121 _ACEOF
36122
36123           ac_type=
36124 else
36125   $as_echo "$as_me: failed program was:" >&5
36126 sed 's/^/| /' conftest.$ac_ext >&5
36127
36128
36129 fi
36130
36131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36132        test -z "$ac_type" && break
36133      done
36134 fi
36135
36136
36137 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
36138 $as_echo_n "checking for ino_t... " >&6; }
36139 if test "${ac_cv_type_ino_t+set}" = set; then
36140   $as_echo_n "(cached) " >&6
36141 else
36142   ac_cv_type_ino_t=no
36143 cat >conftest.$ac_ext <<_ACEOF
36144 /* confdefs.h.  */
36145 _ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h.  */
36149 $ac_includes_default
36150 int
36151 main ()
36152 {
36153 if (sizeof (ino_t))
36154        return 0;
36155   ;
36156   return 0;
36157 }
36158 _ACEOF
36159 rm -f conftest.$ac_objext
36160 if { (ac_try="$ac_compile"
36161 case "(($ac_try" in
36162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163   *) ac_try_echo=$ac_try;;
36164 esac
36165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36166 $as_echo "$ac_try_echo") >&5
36167   (eval "$ac_compile") 2>conftest.er1
36168   ac_status=$?
36169   grep -v '^ *+' conftest.er1 >conftest.err
36170   rm -f conftest.er1
36171   cat conftest.err >&5
36172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); } && {
36174          test -z "$ac_c_werror_flag" ||
36175          test ! -s conftest.err
36176        } && test -s conftest.$ac_objext; then
36177   cat >conftest.$ac_ext <<_ACEOF
36178 /* confdefs.h.  */
36179 _ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h.  */
36183 $ac_includes_default
36184 int
36185 main ()
36186 {
36187 if (sizeof ((ino_t)))
36188           return 0;
36189   ;
36190   return 0;
36191 }
36192 _ACEOF
36193 rm -f conftest.$ac_objext
36194 if { (ac_try="$ac_compile"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36200 $as_echo "$ac_try_echo") >&5
36201   (eval "$ac_compile") 2>conftest.er1
36202   ac_status=$?
36203   grep -v '^ *+' conftest.er1 >conftest.err
36204   rm -f conftest.er1
36205   cat conftest.err >&5
36206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207   (exit $ac_status); } && {
36208          test -z "$ac_c_werror_flag" ||
36209          test ! -s conftest.err
36210        } && test -s conftest.$ac_objext; then
36211   :
36212 else
36213   $as_echo "$as_me: failed program was:" >&5
36214 sed 's/^/| /' conftest.$ac_ext >&5
36215
36216         ac_cv_type_ino_t=yes
36217 fi
36218
36219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36220 else
36221   $as_echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36223
36224
36225 fi
36226
36227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36228 fi
36229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
36230 $as_echo "$ac_cv_type_ino_t" >&6; }
36231 if test "x$ac_cv_type_ino_t" = x""yes; then
36232   :
36233 else
36234
36235 cat >>confdefs.h <<_ACEOF
36236 #define ino_t unsigned long
36237 _ACEOF
36238
36239 fi
36240
36241 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
36242 $as_echo_n "checking for dev_t... " >&6; }
36243 if test "${ac_cv_type_dev_t+set}" = set; then
36244   $as_echo_n "(cached) " >&6
36245 else
36246   ac_cv_type_dev_t=no
36247 cat >conftest.$ac_ext <<_ACEOF
36248 /* confdefs.h.  */
36249 _ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h.  */
36253 $ac_includes_default
36254 int
36255 main ()
36256 {
36257 if (sizeof (dev_t))
36258        return 0;
36259   ;
36260   return 0;
36261 }
36262 _ACEOF
36263 rm -f conftest.$ac_objext
36264 if { (ac_try="$ac_compile"
36265 case "(($ac_try" in
36266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267   *) ac_try_echo=$ac_try;;
36268 esac
36269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36270 $as_echo "$ac_try_echo") >&5
36271   (eval "$ac_compile") 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } && {
36278          test -z "$ac_c_werror_flag" ||
36279          test ! -s conftest.err
36280        } && test -s conftest.$ac_objext; then
36281   cat >conftest.$ac_ext <<_ACEOF
36282 /* confdefs.h.  */
36283 _ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h.  */
36287 $ac_includes_default
36288 int
36289 main ()
36290 {
36291 if (sizeof ((dev_t)))
36292           return 0;
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301   *) ac_try_echo=$ac_try;;
36302 esac
36303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36304 $as_echo "$ac_try_echo") >&5
36305   (eval "$ac_compile") 2>conftest.er1
36306   ac_status=$?
36307   grep -v '^ *+' conftest.er1 >conftest.err
36308   rm -f conftest.er1
36309   cat conftest.err >&5
36310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311   (exit $ac_status); } && {
36312          test -z "$ac_c_werror_flag" ||
36313          test ! -s conftest.err
36314        } && test -s conftest.$ac_objext; then
36315   :
36316 else
36317   $as_echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36319
36320         ac_cv_type_dev_t=yes
36321 fi
36322
36323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36324 else
36325   $as_echo "$as_me: failed program was:" >&5
36326 sed 's/^/| /' conftest.$ac_ext >&5
36327
36328
36329 fi
36330
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332 fi
36333 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
36334 $as_echo "$ac_cv_type_dev_t" >&6; }
36335 if test "x$ac_cv_type_dev_t" = x""yes; then
36336   :
36337 else
36338
36339 cat >>confdefs.h <<_ACEOF
36340 #define dev_t unsigned long
36341 _ACEOF
36342
36343 fi
36344
36345 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
36346 $as_echo_n "checking for daddr_t... " >&6; }
36347 if test "${ac_cv_type_daddr_t+set}" = set; then
36348   $as_echo_n "(cached) " >&6
36349 else
36350   ac_cv_type_daddr_t=no
36351 cat >conftest.$ac_ext <<_ACEOF
36352 /* confdefs.h.  */
36353 _ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h.  */
36357 $ac_includes_default
36358 int
36359 main ()
36360 {
36361 if (sizeof (daddr_t))
36362        return 0;
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36374 $as_echo "$ac_try_echo") >&5
36375   (eval "$ac_compile") 2>conftest.er1
36376   ac_status=$?
36377   grep -v '^ *+' conftest.er1 >conftest.err
36378   rm -f conftest.er1
36379   cat conftest.err >&5
36380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381   (exit $ac_status); } && {
36382          test -z "$ac_c_werror_flag" ||
36383          test ! -s conftest.err
36384        } && test -s conftest.$ac_objext; then
36385   cat >conftest.$ac_ext <<_ACEOF
36386 /* confdefs.h.  */
36387 _ACEOF
36388 cat confdefs.h >>conftest.$ac_ext
36389 cat >>conftest.$ac_ext <<_ACEOF
36390 /* end confdefs.h.  */
36391 $ac_includes_default
36392 int
36393 main ()
36394 {
36395 if (sizeof ((daddr_t)))
36396           return 0;
36397   ;
36398   return 0;
36399 }
36400 _ACEOF
36401 rm -f conftest.$ac_objext
36402 if { (ac_try="$ac_compile"
36403 case "(($ac_try" in
36404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405   *) ac_try_echo=$ac_try;;
36406 esac
36407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36408 $as_echo "$ac_try_echo") >&5
36409   (eval "$ac_compile") 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } && {
36416          test -z "$ac_c_werror_flag" ||
36417          test ! -s conftest.err
36418        } && test -s conftest.$ac_objext; then
36419   :
36420 else
36421   $as_echo "$as_me: failed program was:" >&5
36422 sed 's/^/| /' conftest.$ac_ext >&5
36423
36424         ac_cv_type_daddr_t=yes
36425 fi
36426
36427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36428 else
36429   $as_echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36431
36432
36433 fi
36434
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36436 fi
36437 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
36438 $as_echo "$ac_cv_type_daddr_t" >&6; }
36439 if test "x$ac_cv_type_daddr_t" = x""yes; then
36440   :
36441 else
36442
36443 cat >>confdefs.h <<_ACEOF
36444 #define daddr_t long
36445 _ACEOF
36446
36447 fi
36448
36449 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
36450 $as_echo_n "checking for major_t... " >&6; }
36451 if test "${ac_cv_type_major_t+set}" = set; then
36452   $as_echo_n "(cached) " >&6
36453 else
36454   ac_cv_type_major_t=no
36455 cat >conftest.$ac_ext <<_ACEOF
36456 /* confdefs.h.  */
36457 _ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h.  */
36461 $ac_includes_default
36462 int
36463 main ()
36464 {
36465 if (sizeof (major_t))
36466        return 0;
36467   ;
36468   return 0;
36469 }
36470 _ACEOF
36471 rm -f conftest.$ac_objext
36472 if { (ac_try="$ac_compile"
36473 case "(($ac_try" in
36474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36475   *) ac_try_echo=$ac_try;;
36476 esac
36477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36478 $as_echo "$ac_try_echo") >&5
36479   (eval "$ac_compile") 2>conftest.er1
36480   ac_status=$?
36481   grep -v '^ *+' conftest.er1 >conftest.err
36482   rm -f conftest.er1
36483   cat conftest.err >&5
36484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36485   (exit $ac_status); } && {
36486          test -z "$ac_c_werror_flag" ||
36487          test ! -s conftest.err
36488        } && test -s conftest.$ac_objext; then
36489   cat >conftest.$ac_ext <<_ACEOF
36490 /* confdefs.h.  */
36491 _ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h.  */
36495 $ac_includes_default
36496 int
36497 main ()
36498 {
36499 if (sizeof ((major_t)))
36500           return 0;
36501   ;
36502   return 0;
36503 }
36504 _ACEOF
36505 rm -f conftest.$ac_objext
36506 if { (ac_try="$ac_compile"
36507 case "(($ac_try" in
36508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36509   *) ac_try_echo=$ac_try;;
36510 esac
36511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36512 $as_echo "$ac_try_echo") >&5
36513   (eval "$ac_compile") 2>conftest.er1
36514   ac_status=$?
36515   grep -v '^ *+' conftest.er1 >conftest.err
36516   rm -f conftest.er1
36517   cat conftest.err >&5
36518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); } && {
36520          test -z "$ac_c_werror_flag" ||
36521          test ! -s conftest.err
36522        } && test -s conftest.$ac_objext; then
36523   :
36524 else
36525   $as_echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36527
36528         ac_cv_type_major_t=yes
36529 fi
36530
36531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36532 else
36533   $as_echo "$as_me: failed program was:" >&5
36534 sed 's/^/| /' conftest.$ac_ext >&5
36535
36536
36537 fi
36538
36539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36540 fi
36541 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
36542 $as_echo "$ac_cv_type_major_t" >&6; }
36543 if test "x$ac_cv_type_major_t" = x""yes; then
36544   :
36545 else
36546
36547 cat >>confdefs.h <<_ACEOF
36548 #define major_t int
36549 _ACEOF
36550
36551 fi
36552
36553 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
36554 $as_echo_n "checking for minor_t... " >&6; }
36555 if test "${ac_cv_type_minor_t+set}" = set; then
36556   $as_echo_n "(cached) " >&6
36557 else
36558   ac_cv_type_minor_t=no
36559 cat >conftest.$ac_ext <<_ACEOF
36560 /* confdefs.h.  */
36561 _ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h.  */
36565 $ac_includes_default
36566 int
36567 main ()
36568 {
36569 if (sizeof (minor_t))
36570        return 0;
36571   ;
36572   return 0;
36573 }
36574 _ACEOF
36575 rm -f conftest.$ac_objext
36576 if { (ac_try="$ac_compile"
36577 case "(($ac_try" in
36578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36579   *) ac_try_echo=$ac_try;;
36580 esac
36581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36582 $as_echo "$ac_try_echo") >&5
36583   (eval "$ac_compile") 2>conftest.er1
36584   ac_status=$?
36585   grep -v '^ *+' conftest.er1 >conftest.err
36586   rm -f conftest.er1
36587   cat conftest.err >&5
36588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); } && {
36590          test -z "$ac_c_werror_flag" ||
36591          test ! -s conftest.err
36592        } && test -s conftest.$ac_objext; then
36593   cat >conftest.$ac_ext <<_ACEOF
36594 /* confdefs.h.  */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h.  */
36599 $ac_includes_default
36600 int
36601 main ()
36602 {
36603 if (sizeof ((minor_t)))
36604           return 0;
36605   ;
36606   return 0;
36607 }
36608 _ACEOF
36609 rm -f conftest.$ac_objext
36610 if { (ac_try="$ac_compile"
36611 case "(($ac_try" in
36612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613   *) ac_try_echo=$ac_try;;
36614 esac
36615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36616 $as_echo "$ac_try_echo") >&5
36617   (eval "$ac_compile") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_c_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest.$ac_objext; then
36627   :
36628 else
36629   $as_echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36631
36632         ac_cv_type_minor_t=yes
36633 fi
36634
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636 else
36637   $as_echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36639
36640
36641 fi
36642
36643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36644 fi
36645 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
36646 $as_echo "$ac_cv_type_minor_t" >&6; }
36647 if test "x$ac_cv_type_minor_t" = x""yes; then
36648   :
36649 else
36650
36651 cat >>confdefs.h <<_ACEOF
36652 #define minor_t int
36653 _ACEOF
36654
36655 fi
36656
36657 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
36658 $as_echo_n "checking for ssize_t... " >&6; }
36659 if test "${ac_cv_type_ssize_t+set}" = set; then
36660   $as_echo_n "(cached) " >&6
36661 else
36662   ac_cv_type_ssize_t=no
36663 cat >conftest.$ac_ext <<_ACEOF
36664 /* confdefs.h.  */
36665 _ACEOF
36666 cat confdefs.h >>conftest.$ac_ext
36667 cat >>conftest.$ac_ext <<_ACEOF
36668 /* end confdefs.h.  */
36669 $ac_includes_default
36670 int
36671 main ()
36672 {
36673 if (sizeof (ssize_t))
36674        return 0;
36675   ;
36676   return 0;
36677 }
36678 _ACEOF
36679 rm -f conftest.$ac_objext
36680 if { (ac_try="$ac_compile"
36681 case "(($ac_try" in
36682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36683   *) ac_try_echo=$ac_try;;
36684 esac
36685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36686 $as_echo "$ac_try_echo") >&5
36687   (eval "$ac_compile") 2>conftest.er1
36688   ac_status=$?
36689   grep -v '^ *+' conftest.er1 >conftest.err
36690   rm -f conftest.er1
36691   cat conftest.err >&5
36692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693   (exit $ac_status); } && {
36694          test -z "$ac_c_werror_flag" ||
36695          test ! -s conftest.err
36696        } && test -s conftest.$ac_objext; then
36697   cat >conftest.$ac_ext <<_ACEOF
36698 /* confdefs.h.  */
36699 _ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h.  */
36703 $ac_includes_default
36704 int
36705 main ()
36706 {
36707 if (sizeof ((ssize_t)))
36708           return 0;
36709   ;
36710   return 0;
36711 }
36712 _ACEOF
36713 rm -f conftest.$ac_objext
36714 if { (ac_try="$ac_compile"
36715 case "(($ac_try" in
36716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36717   *) ac_try_echo=$ac_try;;
36718 esac
36719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36720 $as_echo "$ac_try_echo") >&5
36721   (eval "$ac_compile") 2>conftest.er1
36722   ac_status=$?
36723   grep -v '^ *+' conftest.er1 >conftest.err
36724   rm -f conftest.er1
36725   cat conftest.err >&5
36726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); } && {
36728          test -z "$ac_c_werror_flag" ||
36729          test ! -s conftest.err
36730        } && test -s conftest.$ac_objext; then
36731   :
36732 else
36733   $as_echo "$as_me: failed program was:" >&5
36734 sed 's/^/| /' conftest.$ac_ext >&5
36735
36736         ac_cv_type_ssize_t=yes
36737 fi
36738
36739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36740 else
36741   $as_echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36743
36744
36745 fi
36746
36747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36748 fi
36749 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36750 $as_echo "$ac_cv_type_ssize_t" >&6; }
36751 if test "x$ac_cv_type_ssize_t" = x""yes; then
36752   :
36753 else
36754
36755 cat >>confdefs.h <<_ACEOF
36756 #define ssize_t int
36757 _ACEOF
36758
36759 fi
36760
36761 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
36762 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
36763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
36764   $as_echo_n "(cached) " >&6
36765 else
36766   cat >conftest.$ac_ext <<_ACEOF
36767 /* confdefs.h.  */
36768 _ACEOF
36769 cat confdefs.h >>conftest.$ac_ext
36770 cat >>conftest.$ac_ext <<_ACEOF
36771 /* end confdefs.h.  */
36772 $ac_includes_default
36773 int
36774 main ()
36775 {
36776 static struct stat ac_aggr;
36777 if (ac_aggr.st_blocks)
36778 return 0;
36779   ;
36780   return 0;
36781 }
36782 _ACEOF
36783 rm -f conftest.$ac_objext
36784 if { (ac_try="$ac_compile"
36785 case "(($ac_try" in
36786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36787   *) ac_try_echo=$ac_try;;
36788 esac
36789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36790 $as_echo "$ac_try_echo") >&5
36791   (eval "$ac_compile") 2>conftest.er1
36792   ac_status=$?
36793   grep -v '^ *+' conftest.er1 >conftest.err
36794   rm -f conftest.er1
36795   cat conftest.err >&5
36796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797   (exit $ac_status); } && {
36798          test -z "$ac_c_werror_flag" ||
36799          test ! -s conftest.err
36800        } && test -s conftest.$ac_objext; then
36801   ac_cv_member_struct_stat_st_blocks=yes
36802 else
36803   $as_echo "$as_me: failed program was:" >&5
36804 sed 's/^/| /' conftest.$ac_ext >&5
36805
36806         cat >conftest.$ac_ext <<_ACEOF
36807 /* confdefs.h.  */
36808 _ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h.  */
36812 $ac_includes_default
36813 int
36814 main ()
36815 {
36816 static struct stat ac_aggr;
36817 if (sizeof ac_aggr.st_blocks)
36818 return 0;
36819   ;
36820   return 0;
36821 }
36822 _ACEOF
36823 rm -f conftest.$ac_objext
36824 if { (ac_try="$ac_compile"
36825 case "(($ac_try" in
36826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36827   *) ac_try_echo=$ac_try;;
36828 esac
36829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36830 $as_echo "$ac_try_echo") >&5
36831   (eval "$ac_compile") 2>conftest.er1
36832   ac_status=$?
36833   grep -v '^ *+' conftest.er1 >conftest.err
36834   rm -f conftest.er1
36835   cat conftest.err >&5
36836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837   (exit $ac_status); } && {
36838          test -z "$ac_c_werror_flag" ||
36839          test ! -s conftest.err
36840        } && test -s conftest.$ac_objext; then
36841   ac_cv_member_struct_stat_st_blocks=yes
36842 else
36843   $as_echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36845
36846         ac_cv_member_struct_stat_st_blocks=no
36847 fi
36848
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36850 fi
36851
36852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36853 fi
36854 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36855 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36856 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36857
36858 cat >>confdefs.h <<_ACEOF
36859 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36860 _ACEOF
36861
36862
36863 cat >>confdefs.h <<\_ACEOF
36864 #define HAVE_ST_BLOCKS 1
36865 _ACEOF
36866
36867 else
36868   case " $LIBOBJS " in
36869   *" fileblocks.$ac_objext "* ) ;;
36870   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36871  ;;
36872 esac
36873
36874 fi
36875
36876
36877 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36878 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36879 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36880   $as_echo_n "(cached) " >&6
36881 else
36882   cat >conftest.$ac_ext <<_ACEOF
36883 /* confdefs.h.  */
36884 _ACEOF
36885 cat confdefs.h >>conftest.$ac_ext
36886 cat >>conftest.$ac_ext <<_ACEOF
36887 /* end confdefs.h.  */
36888 $ac_includes_default
36889 int
36890 main ()
36891 {
36892 static struct stat ac_aggr;
36893 if (ac_aggr.st_rdev)
36894 return 0;
36895   ;
36896   return 0;
36897 }
36898 _ACEOF
36899 rm -f conftest.$ac_objext
36900 if { (ac_try="$ac_compile"
36901 case "(($ac_try" in
36902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36903   *) ac_try_echo=$ac_try;;
36904 esac
36905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36906 $as_echo "$ac_try_echo") >&5
36907   (eval "$ac_compile") 2>conftest.er1
36908   ac_status=$?
36909   grep -v '^ *+' conftest.er1 >conftest.err
36910   rm -f conftest.er1
36911   cat conftest.err >&5
36912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913   (exit $ac_status); } && {
36914          test -z "$ac_c_werror_flag" ||
36915          test ! -s conftest.err
36916        } && test -s conftest.$ac_objext; then
36917   ac_cv_member_struct_stat_st_rdev=yes
36918 else
36919   $as_echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36921
36922         cat >conftest.$ac_ext <<_ACEOF
36923 /* confdefs.h.  */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h.  */
36928 $ac_includes_default
36929 int
36930 main ()
36931 {
36932 static struct stat ac_aggr;
36933 if (sizeof ac_aggr.st_rdev)
36934 return 0;
36935   ;
36936   return 0;
36937 }
36938 _ACEOF
36939 rm -f conftest.$ac_objext
36940 if { (ac_try="$ac_compile"
36941 case "(($ac_try" in
36942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36943   *) ac_try_echo=$ac_try;;
36944 esac
36945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36946 $as_echo "$ac_try_echo") >&5
36947   (eval "$ac_compile") 2>conftest.er1
36948   ac_status=$?
36949   grep -v '^ *+' conftest.er1 >conftest.err
36950   rm -f conftest.er1
36951   cat conftest.err >&5
36952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); } && {
36954          test -z "$ac_c_werror_flag" ||
36955          test ! -s conftest.err
36956        } && test -s conftest.$ac_objext; then
36957   ac_cv_member_struct_stat_st_rdev=yes
36958 else
36959   $as_echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36961
36962         ac_cv_member_struct_stat_st_rdev=no
36963 fi
36964
36965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969 fi
36970 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36971 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36972 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36973
36974 cat >>confdefs.h <<_ACEOF
36975 #define HAVE_STRUCT_STAT_ST_RDEV 1
36976 _ACEOF
36977
36978
36979 cat >>confdefs.h <<\_ACEOF
36980 #define HAVE_ST_RDEV 1
36981 _ACEOF
36982
36983 fi
36984
36985
36986 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36987 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36988 if test "${ac_cv_struct_tm+set}" = set; then
36989   $as_echo_n "(cached) " >&6
36990 else
36991   cat >conftest.$ac_ext <<_ACEOF
36992 /* confdefs.h.  */
36993 _ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h.  */
36997 #include <sys/types.h>
36998 #include <time.h>
36999
37000 int
37001 main ()
37002 {
37003 struct tm tm;
37004                                      int *p = &tm.tm_sec;
37005                                      return !p;
37006   ;
37007   return 0;
37008 }
37009 _ACEOF
37010 rm -f conftest.$ac_objext
37011 if { (ac_try="$ac_compile"
37012 case "(($ac_try" in
37013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014   *) ac_try_echo=$ac_try;;
37015 esac
37016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37017 $as_echo "$ac_try_echo") >&5
37018   (eval "$ac_compile") 2>conftest.er1
37019   ac_status=$?
37020   grep -v '^ *+' conftest.er1 >conftest.err
37021   rm -f conftest.er1
37022   cat conftest.err >&5
37023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024   (exit $ac_status); } && {
37025          test -z "$ac_c_werror_flag" ||
37026          test ! -s conftest.err
37027        } && test -s conftest.$ac_objext; then
37028   ac_cv_struct_tm=time.h
37029 else
37030   $as_echo "$as_me: failed program was:" >&5
37031 sed 's/^/| /' conftest.$ac_ext >&5
37032
37033         ac_cv_struct_tm=sys/time.h
37034 fi
37035
37036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37037 fi
37038 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37039 $as_echo "$ac_cv_struct_tm" >&6; }
37040 if test $ac_cv_struct_tm = sys/time.h; then
37041
37042 cat >>confdefs.h <<\_ACEOF
37043 #define TM_IN_SYS_TIME 1
37044 _ACEOF
37045
37046 fi
37047
37048 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
37049 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
37050 if test "${ac_cv_c_const+set}" = set; then
37051   $as_echo_n "(cached) " >&6
37052 else
37053   cat >conftest.$ac_ext <<_ACEOF
37054 /* confdefs.h.  */
37055 _ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h.  */
37059
37060 int
37061 main ()
37062 {
37063 /* FIXME: Include the comments suggested by Paul. */
37064 #ifndef __cplusplus
37065   /* Ultrix mips cc rejects this.  */
37066   typedef int charset[2];
37067   const charset cs;
37068   /* SunOS 4.1.1 cc rejects this.  */
37069   char const *const *pcpcc;
37070   char **ppc;
37071   /* NEC SVR4.0.2 mips cc rejects this.  */
37072   struct point {int x, y;};
37073   static struct point const zero = {0,0};
37074   /* AIX XL C 1.02.0.0 rejects this.
37075      It does not let you subtract one const X* pointer from another in
37076      an arm of an if-expression whose if-part is not a constant
37077      expression */
37078   const char *g = "string";
37079   pcpcc = &g + (g ? g-g : 0);
37080   /* HPUX 7.0 cc rejects these. */
37081   ++pcpcc;
37082   ppc = (char**) pcpcc;
37083   pcpcc = (char const *const *) ppc;
37084   { /* SCO 3.2v4 cc rejects this.  */
37085     char *t;
37086     char const *s = 0 ? (char *) 0 : (char const *) 0;
37087
37088     *t++ = 0;
37089     if (s) return 0;
37090   }
37091   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
37092     int x[] = {25, 17};
37093     const int *foo = &x[0];
37094     ++foo;
37095   }
37096   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37097     typedef const int *iptr;
37098     iptr p = 0;
37099     ++p;
37100   }
37101   { /* AIX XL C 1.02.0.0 rejects this saying
37102        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37103     struct s { int j; const int *ap[3]; };
37104     struct s *b; b->j = 5;
37105   }
37106   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37107     const int foo = 10;
37108     if (!foo) return 0;
37109   }
37110   return !cs[0] && !zero.x;
37111 #endif
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_cv_c_const=yes
37136 else
37137   $as_echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37139
37140         ac_cv_c_const=no
37141 fi
37142
37143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37144 fi
37145 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
37146 $as_echo "$ac_cv_c_const" >&6; }
37147 if test $ac_cv_c_const = no; then
37148
37149 cat >>confdefs.h <<\_ACEOF
37150 #define const /**/
37151 _ACEOF
37152
37153 fi
37154
37155
37156 # The cast to long int works around a bug in the HP C Compiler
37157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37159 # This bug is HP SR number 8606223364.
37160 { $as_echo "$as_me:$LINENO: checking size of char" >&5
37161 $as_echo_n "checking size of char... " >&6; }
37162 if test "${ac_cv_sizeof_char+set}" = set; then
37163   $as_echo_n "(cached) " >&6
37164 else
37165   if test "$cross_compiling" = yes; then
37166   # Depending upon the size, compute the lo and hi bounds.
37167 cat >conftest.$ac_ext <<_ACEOF
37168 /* confdefs.h.  */
37169 _ACEOF
37170 cat confdefs.h >>conftest.$ac_ext
37171 cat >>conftest.$ac_ext <<_ACEOF
37172 /* end confdefs.h.  */
37173 $ac_includes_default
37174 int
37175 main ()
37176 {
37177 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
37178 test_array [0] = 0
37179
37180   ;
37181   return 0;
37182 }
37183 _ACEOF
37184 rm -f conftest.$ac_objext
37185 if { (ac_try="$ac_compile"
37186 case "(($ac_try" in
37187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188   *) ac_try_echo=$ac_try;;
37189 esac
37190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37191 $as_echo "$ac_try_echo") >&5
37192   (eval "$ac_compile") 2>conftest.er1
37193   ac_status=$?
37194   grep -v '^ *+' conftest.er1 >conftest.err
37195   rm -f conftest.er1
37196   cat conftest.err >&5
37197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198   (exit $ac_status); } && {
37199          test -z "$ac_c_werror_flag" ||
37200          test ! -s conftest.err
37201        } && test -s conftest.$ac_objext; then
37202   ac_lo=0 ac_mid=0
37203   while :; do
37204     cat >conftest.$ac_ext <<_ACEOF
37205 /* confdefs.h.  */
37206 _ACEOF
37207 cat confdefs.h >>conftest.$ac_ext
37208 cat >>conftest.$ac_ext <<_ACEOF
37209 /* end confdefs.h.  */
37210 $ac_includes_default
37211 int
37212 main ()
37213 {
37214 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
37215 test_array [0] = 0
37216
37217   ;
37218   return 0;
37219 }
37220 _ACEOF
37221 rm -f conftest.$ac_objext
37222 if { (ac_try="$ac_compile"
37223 case "(($ac_try" in
37224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37225   *) ac_try_echo=$ac_try;;
37226 esac
37227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37228 $as_echo "$ac_try_echo") >&5
37229   (eval "$ac_compile") 2>conftest.er1
37230   ac_status=$?
37231   grep -v '^ *+' conftest.er1 >conftest.err
37232   rm -f conftest.er1
37233   cat conftest.err >&5
37234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235   (exit $ac_status); } && {
37236          test -z "$ac_c_werror_flag" ||
37237          test ! -s conftest.err
37238        } && test -s conftest.$ac_objext; then
37239   ac_hi=$ac_mid; break
37240 else
37241   $as_echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37243
37244         ac_lo=`expr $ac_mid + 1`
37245                         if test $ac_lo -le $ac_mid; then
37246                           ac_lo= ac_hi=
37247                           break
37248                         fi
37249                         ac_mid=`expr 2 '*' $ac_mid + 1`
37250 fi
37251
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253   done
37254 else
37255   $as_echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37257
37258         cat >conftest.$ac_ext <<_ACEOF
37259 /* confdefs.h.  */
37260 _ACEOF
37261 cat confdefs.h >>conftest.$ac_ext
37262 cat >>conftest.$ac_ext <<_ACEOF
37263 /* end confdefs.h.  */
37264 $ac_includes_default
37265 int
37266 main ()
37267 {
37268 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
37269 test_array [0] = 0
37270
37271   ;
37272   return 0;
37273 }
37274 _ACEOF
37275 rm -f conftest.$ac_objext
37276 if { (ac_try="$ac_compile"
37277 case "(($ac_try" in
37278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37279   *) ac_try_echo=$ac_try;;
37280 esac
37281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37282 $as_echo "$ac_try_echo") >&5
37283   (eval "$ac_compile") 2>conftest.er1
37284   ac_status=$?
37285   grep -v '^ *+' conftest.er1 >conftest.err
37286   rm -f conftest.er1
37287   cat conftest.err >&5
37288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289   (exit $ac_status); } && {
37290          test -z "$ac_c_werror_flag" ||
37291          test ! -s conftest.err
37292        } && test -s conftest.$ac_objext; then
37293   ac_hi=-1 ac_mid=-1
37294   while :; do
37295     cat >conftest.$ac_ext <<_ACEOF
37296 /* confdefs.h.  */
37297 _ACEOF
37298 cat confdefs.h >>conftest.$ac_ext
37299 cat >>conftest.$ac_ext <<_ACEOF
37300 /* end confdefs.h.  */
37301 $ac_includes_default
37302 int
37303 main ()
37304 {
37305 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
37306 test_array [0] = 0
37307
37308   ;
37309   return 0;
37310 }
37311 _ACEOF
37312 rm -f conftest.$ac_objext
37313 if { (ac_try="$ac_compile"
37314 case "(($ac_try" in
37315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316   *) ac_try_echo=$ac_try;;
37317 esac
37318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37319 $as_echo "$ac_try_echo") >&5
37320   (eval "$ac_compile") 2>conftest.er1
37321   ac_status=$?
37322   grep -v '^ *+' conftest.er1 >conftest.err
37323   rm -f conftest.er1
37324   cat conftest.err >&5
37325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326   (exit $ac_status); } && {
37327          test -z "$ac_c_werror_flag" ||
37328          test ! -s conftest.err
37329        } && test -s conftest.$ac_objext; then
37330   ac_lo=$ac_mid; break
37331 else
37332   $as_echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37334
37335         ac_hi=`expr '(' $ac_mid ')' - 1`
37336                         if test $ac_mid -le $ac_hi; then
37337                           ac_lo= ac_hi=
37338                           break
37339                         fi
37340                         ac_mid=`expr 2 '*' $ac_mid`
37341 fi
37342
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37344   done
37345 else
37346   $as_echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37348
37349         ac_lo= ac_hi=
37350 fi
37351
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37353 fi
37354
37355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37356 # Binary search between lo and hi bounds.
37357 while test "x$ac_lo" != "x$ac_hi"; do
37358   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37359   cat >conftest.$ac_ext <<_ACEOF
37360 /* confdefs.h.  */
37361 _ACEOF
37362 cat confdefs.h >>conftest.$ac_ext
37363 cat >>conftest.$ac_ext <<_ACEOF
37364 /* end confdefs.h.  */
37365 $ac_includes_default
37366 int
37367 main ()
37368 {
37369 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
37370 test_array [0] = 0
37371
37372   ;
37373   return 0;
37374 }
37375 _ACEOF
37376 rm -f conftest.$ac_objext
37377 if { (ac_try="$ac_compile"
37378 case "(($ac_try" in
37379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380   *) ac_try_echo=$ac_try;;
37381 esac
37382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37383 $as_echo "$ac_try_echo") >&5
37384   (eval "$ac_compile") 2>conftest.er1
37385   ac_status=$?
37386   grep -v '^ *+' conftest.er1 >conftest.err
37387   rm -f conftest.er1
37388   cat conftest.err >&5
37389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390   (exit $ac_status); } && {
37391          test -z "$ac_c_werror_flag" ||
37392          test ! -s conftest.err
37393        } && test -s conftest.$ac_objext; then
37394   ac_hi=$ac_mid
37395 else
37396   $as_echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399         ac_lo=`expr '(' $ac_mid ')' + 1`
37400 fi
37401
37402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37403 done
37404 case $ac_lo in
37405 ?*) ac_cv_sizeof_char=$ac_lo;;
37406 '') if test "$ac_cv_type_char" = yes; then
37407      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37409 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
37410 See \`config.log' for more details." >&5
37411 $as_echo "$as_me: error: cannot compute sizeof (char)
37412 See \`config.log' for more details." >&2;}
37413    { (exit 77); exit 77; }; }; }
37414    else
37415      ac_cv_sizeof_char=0
37416    fi ;;
37417 esac
37418 else
37419   cat >conftest.$ac_ext <<_ACEOF
37420 /* confdefs.h.  */
37421 _ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h.  */
37425 $ac_includes_default
37426 static long int longval () { return (long int) (sizeof (char)); }
37427 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
37428 #include <stdio.h>
37429 #include <stdlib.h>
37430 int
37431 main ()
37432 {
37433
37434   FILE *f = fopen ("conftest.val", "w");
37435   if (! f)
37436     return 1;
37437   if (((long int) (sizeof (char))) < 0)
37438     {
37439       long int i = longval ();
37440       if (i != ((long int) (sizeof (char))))
37441         return 1;
37442       fprintf (f, "%ld", i);
37443     }
37444   else
37445     {
37446       unsigned long int i = ulongval ();
37447       if (i != ((long int) (sizeof (char))))
37448         return 1;
37449       fprintf (f, "%lu", i);
37450     }
37451   /* Do not output a trailing newline, as this causes \r\n confusion
37452      on some platforms.  */
37453   return ferror (f) || fclose (f) != 0;
37454
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest$ac_exeext
37460 if { (ac_try="$ac_link"
37461 case "(($ac_try" in
37462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463   *) ac_try_echo=$ac_try;;
37464 esac
37465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37466 $as_echo "$ac_try_echo") >&5
37467   (eval "$ac_link") 2>&5
37468   ac_status=$?
37469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37471   { (case "(($ac_try" in
37472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37473   *) ac_try_echo=$ac_try;;
37474 esac
37475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37476 $as_echo "$ac_try_echo") >&5
37477   (eval "$ac_try") 2>&5
37478   ac_status=$?
37479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480   (exit $ac_status); }; }; then
37481   ac_cv_sizeof_char=`cat conftest.val`
37482 else
37483   $as_echo "$as_me: program exited with status $ac_status" >&5
37484 $as_echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487 ( exit $ac_status )
37488 if test "$ac_cv_type_char" = yes; then
37489      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37491 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
37492 See \`config.log' for more details." >&5
37493 $as_echo "$as_me: error: cannot compute sizeof (char)
37494 See \`config.log' for more details." >&2;}
37495    { (exit 77); exit 77; }; }; }
37496    else
37497      ac_cv_sizeof_char=0
37498    fi
37499 fi
37500 rm -rf conftest.dSYM
37501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37502 fi
37503 rm -f conftest.val
37504 fi
37505 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
37506 $as_echo "$ac_cv_sizeof_char" >&6; }
37507
37508
37509
37510 cat >>confdefs.h <<_ACEOF
37511 #define SIZEOF_CHAR $ac_cv_sizeof_char
37512 _ACEOF
37513
37514
37515 # The cast to long int works around a bug in the HP C Compiler
37516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37518 # This bug is HP SR number 8606223364.
37519 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
37520 $as_echo_n "checking size of short int... " >&6; }
37521 if test "${ac_cv_sizeof_short_int+set}" = set; then
37522   $as_echo_n "(cached) " >&6
37523 else
37524   if test "$cross_compiling" = yes; then
37525   # Depending upon the size, compute the lo and hi bounds.
37526 cat >conftest.$ac_ext <<_ACEOF
37527 /* confdefs.h.  */
37528 _ACEOF
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h.  */
37532 $ac_includes_default
37533 int
37534 main ()
37535 {
37536 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
37537 test_array [0] = 0
37538
37539   ;
37540   return 0;
37541 }
37542 _ACEOF
37543 rm -f conftest.$ac_objext
37544 if { (ac_try="$ac_compile"
37545 case "(($ac_try" in
37546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547   *) ac_try_echo=$ac_try;;
37548 esac
37549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37550 $as_echo "$ac_try_echo") >&5
37551   (eval "$ac_compile") 2>conftest.er1
37552   ac_status=$?
37553   grep -v '^ *+' conftest.er1 >conftest.err
37554   rm -f conftest.er1
37555   cat conftest.err >&5
37556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); } && {
37558          test -z "$ac_c_werror_flag" ||
37559          test ! -s conftest.err
37560        } && test -s conftest.$ac_objext; then
37561   ac_lo=0 ac_mid=0
37562   while :; do
37563     cat >conftest.$ac_ext <<_ACEOF
37564 /* confdefs.h.  */
37565 _ACEOF
37566 cat confdefs.h >>conftest.$ac_ext
37567 cat >>conftest.$ac_ext <<_ACEOF
37568 /* end confdefs.h.  */
37569 $ac_includes_default
37570 int
37571 main ()
37572 {
37573 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
37574 test_array [0] = 0
37575
37576   ;
37577   return 0;
37578 }
37579 _ACEOF
37580 rm -f conftest.$ac_objext
37581 if { (ac_try="$ac_compile"
37582 case "(($ac_try" in
37583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37584   *) ac_try_echo=$ac_try;;
37585 esac
37586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37587 $as_echo "$ac_try_echo") >&5
37588   (eval "$ac_compile") 2>conftest.er1
37589   ac_status=$?
37590   grep -v '^ *+' conftest.er1 >conftest.err
37591   rm -f conftest.er1
37592   cat conftest.err >&5
37593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594   (exit $ac_status); } && {
37595          test -z "$ac_c_werror_flag" ||
37596          test ! -s conftest.err
37597        } && test -s conftest.$ac_objext; then
37598   ac_hi=$ac_mid; break
37599 else
37600   $as_echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37602
37603         ac_lo=`expr $ac_mid + 1`
37604                         if test $ac_lo -le $ac_mid; then
37605                           ac_lo= ac_hi=
37606                           break
37607                         fi
37608                         ac_mid=`expr 2 '*' $ac_mid + 1`
37609 fi
37610
37611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37612   done
37613 else
37614   $as_echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37616
37617         cat >conftest.$ac_ext <<_ACEOF
37618 /* confdefs.h.  */
37619 _ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h.  */
37623 $ac_includes_default
37624 int
37625 main ()
37626 {
37627 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
37628 test_array [0] = 0
37629
37630   ;
37631   return 0;
37632 }
37633 _ACEOF
37634 rm -f conftest.$ac_objext
37635 if { (ac_try="$ac_compile"
37636 case "(($ac_try" in
37637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638   *) ac_try_echo=$ac_try;;
37639 esac
37640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37641 $as_echo "$ac_try_echo") >&5
37642   (eval "$ac_compile") 2>conftest.er1
37643   ac_status=$?
37644   grep -v '^ *+' conftest.er1 >conftest.err
37645   rm -f conftest.er1
37646   cat conftest.err >&5
37647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } && {
37649          test -z "$ac_c_werror_flag" ||
37650          test ! -s conftest.err
37651        } && test -s conftest.$ac_objext; then
37652   ac_hi=-1 ac_mid=-1
37653   while :; do
37654     cat >conftest.$ac_ext <<_ACEOF
37655 /* confdefs.h.  */
37656 _ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h.  */
37660 $ac_includes_default
37661 int
37662 main ()
37663 {
37664 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
37665 test_array [0] = 0
37666
37667   ;
37668   return 0;
37669 }
37670 _ACEOF
37671 rm -f conftest.$ac_objext
37672 if { (ac_try="$ac_compile"
37673 case "(($ac_try" in
37674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37675   *) ac_try_echo=$ac_try;;
37676 esac
37677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37678 $as_echo "$ac_try_echo") >&5
37679   (eval "$ac_compile") 2>conftest.er1
37680   ac_status=$?
37681   grep -v '^ *+' conftest.er1 >conftest.err
37682   rm -f conftest.er1
37683   cat conftest.err >&5
37684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685   (exit $ac_status); } && {
37686          test -z "$ac_c_werror_flag" ||
37687          test ! -s conftest.err
37688        } && test -s conftest.$ac_objext; then
37689   ac_lo=$ac_mid; break
37690 else
37691   $as_echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37693
37694         ac_hi=`expr '(' $ac_mid ')' - 1`
37695                         if test $ac_mid -le $ac_hi; then
37696                           ac_lo= ac_hi=
37697                           break
37698                         fi
37699                         ac_mid=`expr 2 '*' $ac_mid`
37700 fi
37701
37702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37703   done
37704 else
37705   $as_echo "$as_me: failed program was:" >&5
37706 sed 's/^/| /' conftest.$ac_ext >&5
37707
37708         ac_lo= ac_hi=
37709 fi
37710
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37712 fi
37713
37714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 # Binary search between lo and hi bounds.
37716 while test "x$ac_lo" != "x$ac_hi"; do
37717   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37718   cat >conftest.$ac_ext <<_ACEOF
37719 /* confdefs.h.  */
37720 _ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h.  */
37724 $ac_includes_default
37725 int
37726 main ()
37727 {
37728 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
37729 test_array [0] = 0
37730
37731   ;
37732   return 0;
37733 }
37734 _ACEOF
37735 rm -f conftest.$ac_objext
37736 if { (ac_try="$ac_compile"
37737 case "(($ac_try" in
37738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37739   *) ac_try_echo=$ac_try;;
37740 esac
37741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37742 $as_echo "$ac_try_echo") >&5
37743   (eval "$ac_compile") 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } && {
37750          test -z "$ac_c_werror_flag" ||
37751          test ! -s conftest.err
37752        } && test -s conftest.$ac_objext; then
37753   ac_hi=$ac_mid
37754 else
37755   $as_echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37757
37758         ac_lo=`expr '(' $ac_mid ')' + 1`
37759 fi
37760
37761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37762 done
37763 case $ac_lo in
37764 ?*) ac_cv_sizeof_short_int=$ac_lo;;
37765 '') if test "$ac_cv_type_short_int" = yes; then
37766      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37768 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37769 See \`config.log' for more details." >&5
37770 $as_echo "$as_me: error: cannot compute sizeof (short int)
37771 See \`config.log' for more details." >&2;}
37772    { (exit 77); exit 77; }; }; }
37773    else
37774      ac_cv_sizeof_short_int=0
37775    fi ;;
37776 esac
37777 else
37778   cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h.  */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h.  */
37784 $ac_includes_default
37785 static long int longval () { return (long int) (sizeof (short int)); }
37786 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37787 #include <stdio.h>
37788 #include <stdlib.h>
37789 int
37790 main ()
37791 {
37792
37793   FILE *f = fopen ("conftest.val", "w");
37794   if (! f)
37795     return 1;
37796   if (((long int) (sizeof (short int))) < 0)
37797     {
37798       long int i = longval ();
37799       if (i != ((long int) (sizeof (short int))))
37800         return 1;
37801       fprintf (f, "%ld", i);
37802     }
37803   else
37804     {
37805       unsigned long int i = ulongval ();
37806       if (i != ((long int) (sizeof (short int))))
37807         return 1;
37808       fprintf (f, "%lu", i);
37809     }
37810   /* Do not output a trailing newline, as this causes \r\n confusion
37811      on some platforms.  */
37812   return ferror (f) || fclose (f) != 0;
37813
37814   ;
37815   return 0;
37816 }
37817 _ACEOF
37818 rm -f conftest$ac_exeext
37819 if { (ac_try="$ac_link"
37820 case "(($ac_try" in
37821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37822   *) ac_try_echo=$ac_try;;
37823 esac
37824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37825 $as_echo "$ac_try_echo") >&5
37826   (eval "$ac_link") 2>&5
37827   ac_status=$?
37828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37830   { (case "(($ac_try" in
37831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832   *) ac_try_echo=$ac_try;;
37833 esac
37834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37835 $as_echo "$ac_try_echo") >&5
37836   (eval "$ac_try") 2>&5
37837   ac_status=$?
37838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839   (exit $ac_status); }; }; then
37840   ac_cv_sizeof_short_int=`cat conftest.val`
37841 else
37842   $as_echo "$as_me: program exited with status $ac_status" >&5
37843 $as_echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846 ( exit $ac_status )
37847 if test "$ac_cv_type_short_int" = yes; then
37848      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37850 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37851 See \`config.log' for more details." >&5
37852 $as_echo "$as_me: error: cannot compute sizeof (short int)
37853 See \`config.log' for more details." >&2;}
37854    { (exit 77); exit 77; }; }; }
37855    else
37856      ac_cv_sizeof_short_int=0
37857    fi
37858 fi
37859 rm -rf conftest.dSYM
37860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37861 fi
37862 rm -f conftest.val
37863 fi
37864 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37865 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37866
37867
37868
37869 cat >>confdefs.h <<_ACEOF
37870 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37871 _ACEOF
37872
37873
37874 # The cast to long int works around a bug in the HP C Compiler
37875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37877 # This bug is HP SR number 8606223364.
37878 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37879 $as_echo_n "checking size of int... " >&6; }
37880 if test "${ac_cv_sizeof_int+set}" = set; then
37881   $as_echo_n "(cached) " >&6
37882 else
37883   if test "$cross_compiling" = yes; then
37884   # Depending upon the size, compute the lo and hi bounds.
37885 cat >conftest.$ac_ext <<_ACEOF
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891 $ac_includes_default
37892 int
37893 main ()
37894 {
37895 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37896 test_array [0] = 0
37897
37898   ;
37899   return 0;
37900 }
37901 _ACEOF
37902 rm -f conftest.$ac_objext
37903 if { (ac_try="$ac_compile"
37904 case "(($ac_try" in
37905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37906   *) ac_try_echo=$ac_try;;
37907 esac
37908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37909 $as_echo "$ac_try_echo") >&5
37910   (eval "$ac_compile") 2>conftest.er1
37911   ac_status=$?
37912   grep -v '^ *+' conftest.er1 >conftest.err
37913   rm -f conftest.er1
37914   cat conftest.err >&5
37915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916   (exit $ac_status); } && {
37917          test -z "$ac_c_werror_flag" ||
37918          test ! -s conftest.err
37919        } && test -s conftest.$ac_objext; then
37920   ac_lo=0 ac_mid=0
37921   while :; do
37922     cat >conftest.$ac_ext <<_ACEOF
37923 /* confdefs.h.  */
37924 _ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h.  */
37928 $ac_includes_default
37929 int
37930 main ()
37931 {
37932 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37933 test_array [0] = 0
37934
37935   ;
37936   return 0;
37937 }
37938 _ACEOF
37939 rm -f conftest.$ac_objext
37940 if { (ac_try="$ac_compile"
37941 case "(($ac_try" in
37942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37943   *) ac_try_echo=$ac_try;;
37944 esac
37945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37946 $as_echo "$ac_try_echo") >&5
37947   (eval "$ac_compile") 2>conftest.er1
37948   ac_status=$?
37949   grep -v '^ *+' conftest.er1 >conftest.err
37950   rm -f conftest.er1
37951   cat conftest.err >&5
37952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953   (exit $ac_status); } && {
37954          test -z "$ac_c_werror_flag" ||
37955          test ! -s conftest.err
37956        } && test -s conftest.$ac_objext; then
37957   ac_hi=$ac_mid; break
37958 else
37959   $as_echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962         ac_lo=`expr $ac_mid + 1`
37963                         if test $ac_lo -le $ac_mid; then
37964                           ac_lo= ac_hi=
37965                           break
37966                         fi
37967                         ac_mid=`expr 2 '*' $ac_mid + 1`
37968 fi
37969
37970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37971   done
37972 else
37973   $as_echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37975
37976         cat >conftest.$ac_ext <<_ACEOF
37977 /* confdefs.h.  */
37978 _ACEOF
37979 cat confdefs.h >>conftest.$ac_ext
37980 cat >>conftest.$ac_ext <<_ACEOF
37981 /* end confdefs.h.  */
37982 $ac_includes_default
37983 int
37984 main ()
37985 {
37986 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37987 test_array [0] = 0
37988
37989   ;
37990   return 0;
37991 }
37992 _ACEOF
37993 rm -f conftest.$ac_objext
37994 if { (ac_try="$ac_compile"
37995 case "(($ac_try" in
37996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997   *) ac_try_echo=$ac_try;;
37998 esac
37999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38000 $as_echo "$ac_try_echo") >&5
38001   (eval "$ac_compile") 2>conftest.er1
38002   ac_status=$?
38003   grep -v '^ *+' conftest.er1 >conftest.err
38004   rm -f conftest.er1
38005   cat conftest.err >&5
38006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007   (exit $ac_status); } && {
38008          test -z "$ac_c_werror_flag" ||
38009          test ! -s conftest.err
38010        } && test -s conftest.$ac_objext; then
38011   ac_hi=-1 ac_mid=-1
38012   while :; do
38013     cat >conftest.$ac_ext <<_ACEOF
38014 /* confdefs.h.  */
38015 _ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h.  */
38019 $ac_includes_default
38020 int
38021 main ()
38022 {
38023 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
38024 test_array [0] = 0
38025
38026   ;
38027   return 0;
38028 }
38029 _ACEOF
38030 rm -f conftest.$ac_objext
38031 if { (ac_try="$ac_compile"
38032 case "(($ac_try" in
38033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034   *) ac_try_echo=$ac_try;;
38035 esac
38036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38037 $as_echo "$ac_try_echo") >&5
38038   (eval "$ac_compile") 2>conftest.er1
38039   ac_status=$?
38040   grep -v '^ *+' conftest.er1 >conftest.err
38041   rm -f conftest.er1
38042   cat conftest.err >&5
38043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044   (exit $ac_status); } && {
38045          test -z "$ac_c_werror_flag" ||
38046          test ! -s conftest.err
38047        } && test -s conftest.$ac_objext; then
38048   ac_lo=$ac_mid; break
38049 else
38050   $as_echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053         ac_hi=`expr '(' $ac_mid ')' - 1`
38054                         if test $ac_mid -le $ac_hi; then
38055                           ac_lo= ac_hi=
38056                           break
38057                         fi
38058                         ac_mid=`expr 2 '*' $ac_mid`
38059 fi
38060
38061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38062   done
38063 else
38064   $as_echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38066
38067         ac_lo= ac_hi=
38068 fi
38069
38070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38071 fi
38072
38073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38074 # Binary search between lo and hi bounds.
38075 while test "x$ac_lo" != "x$ac_hi"; do
38076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38077   cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083 $ac_includes_default
38084 int
38085 main ()
38086 {
38087 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
38088 test_array [0] = 0
38089
38090   ;
38091   return 0;
38092 }
38093 _ACEOF
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098   *) ac_try_echo=$ac_try;;
38099 esac
38100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38101 $as_echo "$ac_try_echo") >&5
38102   (eval "$ac_compile") 2>conftest.er1
38103   ac_status=$?
38104   grep -v '^ *+' conftest.er1 >conftest.err
38105   rm -f conftest.er1
38106   cat conftest.err >&5
38107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); } && {
38109          test -z "$ac_c_werror_flag" ||
38110          test ! -s conftest.err
38111        } && test -s conftest.$ac_objext; then
38112   ac_hi=$ac_mid
38113 else
38114   $as_echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38116
38117         ac_lo=`expr '(' $ac_mid ')' + 1`
38118 fi
38119
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38121 done
38122 case $ac_lo in
38123 ?*) ac_cv_sizeof_int=$ac_lo;;
38124 '') if test "$ac_cv_type_int" = yes; then
38125      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38127 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
38128 See \`config.log' for more details." >&5
38129 $as_echo "$as_me: error: cannot compute sizeof (int)
38130 See \`config.log' for more details." >&2;}
38131    { (exit 77); exit 77; }; }; }
38132    else
38133      ac_cv_sizeof_int=0
38134    fi ;;
38135 esac
38136 else
38137   cat >conftest.$ac_ext <<_ACEOF
38138 /* confdefs.h.  */
38139 _ACEOF
38140 cat confdefs.h >>conftest.$ac_ext
38141 cat >>conftest.$ac_ext <<_ACEOF
38142 /* end confdefs.h.  */
38143 $ac_includes_default
38144 static long int longval () { return (long int) (sizeof (int)); }
38145 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
38146 #include <stdio.h>
38147 #include <stdlib.h>
38148 int
38149 main ()
38150 {
38151
38152   FILE *f = fopen ("conftest.val", "w");
38153   if (! f)
38154     return 1;
38155   if (((long int) (sizeof (int))) < 0)
38156     {
38157       long int i = longval ();
38158       if (i != ((long int) (sizeof (int))))
38159         return 1;
38160       fprintf (f, "%ld", i);
38161     }
38162   else
38163     {
38164       unsigned long int i = ulongval ();
38165       if (i != ((long int) (sizeof (int))))
38166         return 1;
38167       fprintf (f, "%lu", i);
38168     }
38169   /* Do not output a trailing newline, as this causes \r\n confusion
38170      on some platforms.  */
38171   return ferror (f) || fclose (f) != 0;
38172
38173   ;
38174   return 0;
38175 }
38176 _ACEOF
38177 rm -f conftest$ac_exeext
38178 if { (ac_try="$ac_link"
38179 case "(($ac_try" in
38180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38181   *) ac_try_echo=$ac_try;;
38182 esac
38183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38184 $as_echo "$ac_try_echo") >&5
38185   (eval "$ac_link") 2>&5
38186   ac_status=$?
38187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38189   { (case "(($ac_try" in
38190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191   *) ac_try_echo=$ac_try;;
38192 esac
38193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38194 $as_echo "$ac_try_echo") >&5
38195   (eval "$ac_try") 2>&5
38196   ac_status=$?
38197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); }; }; then
38199   ac_cv_sizeof_int=`cat conftest.val`
38200 else
38201   $as_echo "$as_me: program exited with status $ac_status" >&5
38202 $as_echo "$as_me: failed program was:" >&5
38203 sed 's/^/| /' conftest.$ac_ext >&5
38204
38205 ( exit $ac_status )
38206 if test "$ac_cv_type_int" = yes; then
38207      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38209 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
38210 See \`config.log' for more details." >&5
38211 $as_echo "$as_me: error: cannot compute sizeof (int)
38212 See \`config.log' for more details." >&2;}
38213    { (exit 77); exit 77; }; }; }
38214    else
38215      ac_cv_sizeof_int=0
38216    fi
38217 fi
38218 rm -rf conftest.dSYM
38219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38220 fi
38221 rm -f conftest.val
38222 fi
38223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
38224 $as_echo "$ac_cv_sizeof_int" >&6; }
38225
38226
38227
38228 cat >>confdefs.h <<_ACEOF
38229 #define SIZEOF_INT $ac_cv_sizeof_int
38230 _ACEOF
38231
38232
38233 # The cast to long int works around a bug in the HP C Compiler
38234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38236 # This bug is HP SR number 8606223364.
38237 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
38238 $as_echo_n "checking size of long int... " >&6; }
38239 if test "${ac_cv_sizeof_long_int+set}" = set; then
38240   $as_echo_n "(cached) " >&6
38241 else
38242   if test "$cross_compiling" = yes; then
38243   # Depending upon the size, compute the lo and hi bounds.
38244 cat >conftest.$ac_ext <<_ACEOF
38245 /* confdefs.h.  */
38246 _ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h.  */
38250 $ac_includes_default
38251 int
38252 main ()
38253 {
38254 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
38255 test_array [0] = 0
38256
38257   ;
38258   return 0;
38259 }
38260 _ACEOF
38261 rm -f conftest.$ac_objext
38262 if { (ac_try="$ac_compile"
38263 case "(($ac_try" in
38264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38265   *) ac_try_echo=$ac_try;;
38266 esac
38267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38268 $as_echo "$ac_try_echo") >&5
38269   (eval "$ac_compile") 2>conftest.er1
38270   ac_status=$?
38271   grep -v '^ *+' conftest.er1 >conftest.err
38272   rm -f conftest.er1
38273   cat conftest.err >&5
38274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); } && {
38276          test -z "$ac_c_werror_flag" ||
38277          test ! -s conftest.err
38278        } && test -s conftest.$ac_objext; then
38279   ac_lo=0 ac_mid=0
38280   while :; do
38281     cat >conftest.$ac_ext <<_ACEOF
38282 /* confdefs.h.  */
38283 _ACEOF
38284 cat confdefs.h >>conftest.$ac_ext
38285 cat >>conftest.$ac_ext <<_ACEOF
38286 /* end confdefs.h.  */
38287 $ac_includes_default
38288 int
38289 main ()
38290 {
38291 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
38292 test_array [0] = 0
38293
38294   ;
38295   return 0;
38296 }
38297 _ACEOF
38298 rm -f conftest.$ac_objext
38299 if { (ac_try="$ac_compile"
38300 case "(($ac_try" in
38301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302   *) ac_try_echo=$ac_try;;
38303 esac
38304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38305 $as_echo "$ac_try_echo") >&5
38306   (eval "$ac_compile") 2>conftest.er1
38307   ac_status=$?
38308   grep -v '^ *+' conftest.er1 >conftest.err
38309   rm -f conftest.er1
38310   cat conftest.err >&5
38311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312   (exit $ac_status); } && {
38313          test -z "$ac_c_werror_flag" ||
38314          test ! -s conftest.err
38315        } && test -s conftest.$ac_objext; then
38316   ac_hi=$ac_mid; break
38317 else
38318   $as_echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38320
38321         ac_lo=`expr $ac_mid + 1`
38322                         if test $ac_lo -le $ac_mid; then
38323                           ac_lo= ac_hi=
38324                           break
38325                         fi
38326                         ac_mid=`expr 2 '*' $ac_mid + 1`
38327 fi
38328
38329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38330   done
38331 else
38332   $as_echo "$as_me: failed program was:" >&5
38333 sed 's/^/| /' conftest.$ac_ext >&5
38334
38335         cat >conftest.$ac_ext <<_ACEOF
38336 /* confdefs.h.  */
38337 _ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h.  */
38341 $ac_includes_default
38342 int
38343 main ()
38344 {
38345 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
38346 test_array [0] = 0
38347
38348   ;
38349   return 0;
38350 }
38351 _ACEOF
38352 rm -f conftest.$ac_objext
38353 if { (ac_try="$ac_compile"
38354 case "(($ac_try" in
38355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38356   *) ac_try_echo=$ac_try;;
38357 esac
38358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38359 $as_echo "$ac_try_echo") >&5
38360   (eval "$ac_compile") 2>conftest.er1
38361   ac_status=$?
38362   grep -v '^ *+' conftest.er1 >conftest.err
38363   rm -f conftest.er1
38364   cat conftest.err >&5
38365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); } && {
38367          test -z "$ac_c_werror_flag" ||
38368          test ! -s conftest.err
38369        } && test -s conftest.$ac_objext; then
38370   ac_hi=-1 ac_mid=-1
38371   while :; do
38372     cat >conftest.$ac_ext <<_ACEOF
38373 /* confdefs.h.  */
38374 _ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h.  */
38378 $ac_includes_default
38379 int
38380 main ()
38381 {
38382 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
38383 test_array [0] = 0
38384
38385   ;
38386   return 0;
38387 }
38388 _ACEOF
38389 rm -f conftest.$ac_objext
38390 if { (ac_try="$ac_compile"
38391 case "(($ac_try" in
38392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38393   *) ac_try_echo=$ac_try;;
38394 esac
38395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38396 $as_echo "$ac_try_echo") >&5
38397   (eval "$ac_compile") 2>conftest.er1
38398   ac_status=$?
38399   grep -v '^ *+' conftest.er1 >conftest.err
38400   rm -f conftest.er1
38401   cat conftest.err >&5
38402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403   (exit $ac_status); } && {
38404          test -z "$ac_c_werror_flag" ||
38405          test ! -s conftest.err
38406        } && test -s conftest.$ac_objext; then
38407   ac_lo=$ac_mid; break
38408 else
38409   $as_echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38411
38412         ac_hi=`expr '(' $ac_mid ')' - 1`
38413                         if test $ac_mid -le $ac_hi; then
38414                           ac_lo= ac_hi=
38415                           break
38416                         fi
38417                         ac_mid=`expr 2 '*' $ac_mid`
38418 fi
38419
38420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38421   done
38422 else
38423   $as_echo "$as_me: failed program was:" >&5
38424 sed 's/^/| /' conftest.$ac_ext >&5
38425
38426         ac_lo= ac_hi=
38427 fi
38428
38429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38430 fi
38431
38432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38433 # Binary search between lo and hi bounds.
38434 while test "x$ac_lo" != "x$ac_hi"; do
38435   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38436   cat >conftest.$ac_ext <<_ACEOF
38437 /* confdefs.h.  */
38438 _ACEOF
38439 cat confdefs.h >>conftest.$ac_ext
38440 cat >>conftest.$ac_ext <<_ACEOF
38441 /* end confdefs.h.  */
38442 $ac_includes_default
38443 int
38444 main ()
38445 {
38446 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
38447 test_array [0] = 0
38448
38449   ;
38450   return 0;
38451 }
38452 _ACEOF
38453 rm -f conftest.$ac_objext
38454 if { (ac_try="$ac_compile"
38455 case "(($ac_try" in
38456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38457   *) ac_try_echo=$ac_try;;
38458 esac
38459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38460 $as_echo "$ac_try_echo") >&5
38461   (eval "$ac_compile") 2>conftest.er1
38462   ac_status=$?
38463   grep -v '^ *+' conftest.er1 >conftest.err
38464   rm -f conftest.er1
38465   cat conftest.err >&5
38466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467   (exit $ac_status); } && {
38468          test -z "$ac_c_werror_flag" ||
38469          test ! -s conftest.err
38470        } && test -s conftest.$ac_objext; then
38471   ac_hi=$ac_mid
38472 else
38473   $as_echo "$as_me: failed program was:" >&5
38474 sed 's/^/| /' conftest.$ac_ext >&5
38475
38476         ac_lo=`expr '(' $ac_mid ')' + 1`
38477 fi
38478
38479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38480 done
38481 case $ac_lo in
38482 ?*) ac_cv_sizeof_long_int=$ac_lo;;
38483 '') if test "$ac_cv_type_long_int" = yes; then
38484      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38486 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
38487 See \`config.log' for more details." >&5
38488 $as_echo "$as_me: error: cannot compute sizeof (long int)
38489 See \`config.log' for more details." >&2;}
38490    { (exit 77); exit 77; }; }; }
38491    else
38492      ac_cv_sizeof_long_int=0
38493    fi ;;
38494 esac
38495 else
38496   cat >conftest.$ac_ext <<_ACEOF
38497 /* confdefs.h.  */
38498 _ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h.  */
38502 $ac_includes_default
38503 static long int longval () { return (long int) (sizeof (long int)); }
38504 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
38505 #include <stdio.h>
38506 #include <stdlib.h>
38507 int
38508 main ()
38509 {
38510
38511   FILE *f = fopen ("conftest.val", "w");
38512   if (! f)
38513     return 1;
38514   if (((long int) (sizeof (long int))) < 0)
38515     {
38516       long int i = longval ();
38517       if (i != ((long int) (sizeof (long int))))
38518         return 1;
38519       fprintf (f, "%ld", i);
38520     }
38521   else
38522     {
38523       unsigned long int i = ulongval ();
38524       if (i != ((long int) (sizeof (long int))))
38525         return 1;
38526       fprintf (f, "%lu", i);
38527     }
38528   /* Do not output a trailing newline, as this causes \r\n confusion
38529      on some platforms.  */
38530   return ferror (f) || fclose (f) != 0;
38531
38532   ;
38533   return 0;
38534 }
38535 _ACEOF
38536 rm -f conftest$ac_exeext
38537 if { (ac_try="$ac_link"
38538 case "(($ac_try" in
38539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38540   *) ac_try_echo=$ac_try;;
38541 esac
38542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38543 $as_echo "$ac_try_echo") >&5
38544   (eval "$ac_link") 2>&5
38545   ac_status=$?
38546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38548   { (case "(($ac_try" in
38549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550   *) ac_try_echo=$ac_try;;
38551 esac
38552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38553 $as_echo "$ac_try_echo") >&5
38554   (eval "$ac_try") 2>&5
38555   ac_status=$?
38556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557   (exit $ac_status); }; }; then
38558   ac_cv_sizeof_long_int=`cat conftest.val`
38559 else
38560   $as_echo "$as_me: program exited with status $ac_status" >&5
38561 $as_echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564 ( exit $ac_status )
38565 if test "$ac_cv_type_long_int" = yes; then
38566      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38568 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
38569 See \`config.log' for more details." >&5
38570 $as_echo "$as_me: error: cannot compute sizeof (long int)
38571 See \`config.log' for more details." >&2;}
38572    { (exit 77); exit 77; }; }; }
38573    else
38574      ac_cv_sizeof_long_int=0
38575    fi
38576 fi
38577 rm -rf conftest.dSYM
38578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38579 fi
38580 rm -f conftest.val
38581 fi
38582 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
38583 $as_echo "$ac_cv_sizeof_long_int" >&6; }
38584
38585
38586
38587 cat >>confdefs.h <<_ACEOF
38588 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
38589 _ACEOF
38590
38591
38592 # The cast to long int works around a bug in the HP C Compiler
38593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38595 # This bug is HP SR number 8606223364.
38596 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
38597 $as_echo_n "checking size of long long int... " >&6; }
38598 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
38599   $as_echo_n "(cached) " >&6
38600 else
38601   if test "$cross_compiling" = yes; then
38602   # Depending upon the size, compute the lo and hi bounds.
38603 cat >conftest.$ac_ext <<_ACEOF
38604 /* confdefs.h.  */
38605 _ACEOF
38606 cat confdefs.h >>conftest.$ac_ext
38607 cat >>conftest.$ac_ext <<_ACEOF
38608 /* end confdefs.h.  */
38609 $ac_includes_default
38610 int
38611 main ()
38612 {
38613 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
38614 test_array [0] = 0
38615
38616   ;
38617   return 0;
38618 }
38619 _ACEOF
38620 rm -f conftest.$ac_objext
38621 if { (ac_try="$ac_compile"
38622 case "(($ac_try" in
38623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38624   *) ac_try_echo=$ac_try;;
38625 esac
38626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38627 $as_echo "$ac_try_echo") >&5
38628   (eval "$ac_compile") 2>conftest.er1
38629   ac_status=$?
38630   grep -v '^ *+' conftest.er1 >conftest.err
38631   rm -f conftest.er1
38632   cat conftest.err >&5
38633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634   (exit $ac_status); } && {
38635          test -z "$ac_c_werror_flag" ||
38636          test ! -s conftest.err
38637        } && test -s conftest.$ac_objext; then
38638   ac_lo=0 ac_mid=0
38639   while :; do
38640     cat >conftest.$ac_ext <<_ACEOF
38641 /* confdefs.h.  */
38642 _ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h.  */
38646 $ac_includes_default
38647 int
38648 main ()
38649 {
38650 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38651 test_array [0] = 0
38652
38653   ;
38654   return 0;
38655 }
38656 _ACEOF
38657 rm -f conftest.$ac_objext
38658 if { (ac_try="$ac_compile"
38659 case "(($ac_try" in
38660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38661   *) ac_try_echo=$ac_try;;
38662 esac
38663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38664 $as_echo "$ac_try_echo") >&5
38665   (eval "$ac_compile") 2>conftest.er1
38666   ac_status=$?
38667   grep -v '^ *+' conftest.er1 >conftest.err
38668   rm -f conftest.er1
38669   cat conftest.err >&5
38670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671   (exit $ac_status); } && {
38672          test -z "$ac_c_werror_flag" ||
38673          test ! -s conftest.err
38674        } && test -s conftest.$ac_objext; then
38675   ac_hi=$ac_mid; break
38676 else
38677   $as_echo "$as_me: failed program was:" >&5
38678 sed 's/^/| /' conftest.$ac_ext >&5
38679
38680         ac_lo=`expr $ac_mid + 1`
38681                         if test $ac_lo -le $ac_mid; then
38682                           ac_lo= ac_hi=
38683                           break
38684                         fi
38685                         ac_mid=`expr 2 '*' $ac_mid + 1`
38686 fi
38687
38688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38689   done
38690 else
38691   $as_echo "$as_me: failed program was:" >&5
38692 sed 's/^/| /' conftest.$ac_ext >&5
38693
38694         cat >conftest.$ac_ext <<_ACEOF
38695 /* confdefs.h.  */
38696 _ACEOF
38697 cat confdefs.h >>conftest.$ac_ext
38698 cat >>conftest.$ac_ext <<_ACEOF
38699 /* end confdefs.h.  */
38700 $ac_includes_default
38701 int
38702 main ()
38703 {
38704 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
38705 test_array [0] = 0
38706
38707   ;
38708   return 0;
38709 }
38710 _ACEOF
38711 rm -f conftest.$ac_objext
38712 if { (ac_try="$ac_compile"
38713 case "(($ac_try" in
38714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38715   *) ac_try_echo=$ac_try;;
38716 esac
38717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38718 $as_echo "$ac_try_echo") >&5
38719   (eval "$ac_compile") 2>conftest.er1
38720   ac_status=$?
38721   grep -v '^ *+' conftest.er1 >conftest.err
38722   rm -f conftest.er1
38723   cat conftest.err >&5
38724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725   (exit $ac_status); } && {
38726          test -z "$ac_c_werror_flag" ||
38727          test ! -s conftest.err
38728        } && test -s conftest.$ac_objext; then
38729   ac_hi=-1 ac_mid=-1
38730   while :; do
38731     cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737 $ac_includes_default
38738 int
38739 main ()
38740 {
38741 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
38742 test_array [0] = 0
38743
38744   ;
38745   return 0;
38746 }
38747 _ACEOF
38748 rm -f conftest.$ac_objext
38749 if { (ac_try="$ac_compile"
38750 case "(($ac_try" in
38751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752   *) ac_try_echo=$ac_try;;
38753 esac
38754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38755 $as_echo "$ac_try_echo") >&5
38756   (eval "$ac_compile") 2>conftest.er1
38757   ac_status=$?
38758   grep -v '^ *+' conftest.er1 >conftest.err
38759   rm -f conftest.er1
38760   cat conftest.err >&5
38761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762   (exit $ac_status); } && {
38763          test -z "$ac_c_werror_flag" ||
38764          test ! -s conftest.err
38765        } && test -s conftest.$ac_objext; then
38766   ac_lo=$ac_mid; break
38767 else
38768   $as_echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38770
38771         ac_hi=`expr '(' $ac_mid ')' - 1`
38772                         if test $ac_mid -le $ac_hi; then
38773                           ac_lo= ac_hi=
38774                           break
38775                         fi
38776                         ac_mid=`expr 2 '*' $ac_mid`
38777 fi
38778
38779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38780   done
38781 else
38782   $as_echo "$as_me: failed program was:" >&5
38783 sed 's/^/| /' conftest.$ac_ext >&5
38784
38785         ac_lo= ac_hi=
38786 fi
38787
38788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38789 fi
38790
38791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38792 # Binary search between lo and hi bounds.
38793 while test "x$ac_lo" != "x$ac_hi"; do
38794   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38795   cat >conftest.$ac_ext <<_ACEOF
38796 /* confdefs.h.  */
38797 _ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h.  */
38801 $ac_includes_default
38802 int
38803 main ()
38804 {
38805 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38806 test_array [0] = 0
38807
38808   ;
38809   return 0;
38810 }
38811 _ACEOF
38812 rm -f conftest.$ac_objext
38813 if { (ac_try="$ac_compile"
38814 case "(($ac_try" in
38815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38816   *) ac_try_echo=$ac_try;;
38817 esac
38818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38819 $as_echo "$ac_try_echo") >&5
38820   (eval "$ac_compile") 2>conftest.er1
38821   ac_status=$?
38822   grep -v '^ *+' conftest.er1 >conftest.err
38823   rm -f conftest.er1
38824   cat conftest.err >&5
38825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826   (exit $ac_status); } && {
38827          test -z "$ac_c_werror_flag" ||
38828          test ! -s conftest.err
38829        } && test -s conftest.$ac_objext; then
38830   ac_hi=$ac_mid
38831 else
38832   $as_echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38834
38835         ac_lo=`expr '(' $ac_mid ')' + 1`
38836 fi
38837
38838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38839 done
38840 case $ac_lo in
38841 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38842 '') if test "$ac_cv_type_long_long_int" = yes; then
38843      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38845 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38846 See \`config.log' for more details." >&5
38847 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38848 See \`config.log' for more details." >&2;}
38849    { (exit 77); exit 77; }; }; }
38850    else
38851      ac_cv_sizeof_long_long_int=0
38852    fi ;;
38853 esac
38854 else
38855   cat >conftest.$ac_ext <<_ACEOF
38856 /* confdefs.h.  */
38857 _ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h.  */
38861 $ac_includes_default
38862 static long int longval () { return (long int) (sizeof (long long int)); }
38863 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38864 #include <stdio.h>
38865 #include <stdlib.h>
38866 int
38867 main ()
38868 {
38869
38870   FILE *f = fopen ("conftest.val", "w");
38871   if (! f)
38872     return 1;
38873   if (((long int) (sizeof (long long int))) < 0)
38874     {
38875       long int i = longval ();
38876       if (i != ((long int) (sizeof (long long int))))
38877         return 1;
38878       fprintf (f, "%ld", i);
38879     }
38880   else
38881     {
38882       unsigned long int i = ulongval ();
38883       if (i != ((long int) (sizeof (long long int))))
38884         return 1;
38885       fprintf (f, "%lu", i);
38886     }
38887   /* Do not output a trailing newline, as this causes \r\n confusion
38888      on some platforms.  */
38889   return ferror (f) || fclose (f) != 0;
38890
38891   ;
38892   return 0;
38893 }
38894 _ACEOF
38895 rm -f conftest$ac_exeext
38896 if { (ac_try="$ac_link"
38897 case "(($ac_try" in
38898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38899   *) ac_try_echo=$ac_try;;
38900 esac
38901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38902 $as_echo "$ac_try_echo") >&5
38903   (eval "$ac_link") 2>&5
38904   ac_status=$?
38905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38907   { (case "(($ac_try" in
38908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909   *) ac_try_echo=$ac_try;;
38910 esac
38911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38912 $as_echo "$ac_try_echo") >&5
38913   (eval "$ac_try") 2>&5
38914   ac_status=$?
38915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916   (exit $ac_status); }; }; then
38917   ac_cv_sizeof_long_long_int=`cat conftest.val`
38918 else
38919   $as_echo "$as_me: program exited with status $ac_status" >&5
38920 $as_echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38922
38923 ( exit $ac_status )
38924 if test "$ac_cv_type_long_long_int" = yes; then
38925      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38927 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38928 See \`config.log' for more details." >&5
38929 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38930 See \`config.log' for more details." >&2;}
38931    { (exit 77); exit 77; }; }; }
38932    else
38933      ac_cv_sizeof_long_long_int=0
38934    fi
38935 fi
38936 rm -rf conftest.dSYM
38937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38938 fi
38939 rm -f conftest.val
38940 fi
38941 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38942 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38943
38944
38945
38946 cat >>confdefs.h <<_ACEOF
38947 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38948 _ACEOF
38949
38950
38951 # The cast to long int works around a bug in the HP C Compiler
38952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38954 # This bug is HP SR number 8606223364.
38955 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38956 $as_echo_n "checking size of int *... " >&6; }
38957 if test "${ac_cv_sizeof_int_p+set}" = set; then
38958   $as_echo_n "(cached) " >&6
38959 else
38960   if test "$cross_compiling" = yes; then
38961   # Depending upon the size, compute the lo and hi bounds.
38962 cat >conftest.$ac_ext <<_ACEOF
38963 /* confdefs.h.  */
38964 _ACEOF
38965 cat confdefs.h >>conftest.$ac_ext
38966 cat >>conftest.$ac_ext <<_ACEOF
38967 /* end confdefs.h.  */
38968 $ac_includes_default
38969 int
38970 main ()
38971 {
38972 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38973 test_array [0] = 0
38974
38975   ;
38976   return 0;
38977 }
38978 _ACEOF
38979 rm -f conftest.$ac_objext
38980 if { (ac_try="$ac_compile"
38981 case "(($ac_try" in
38982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38983   *) ac_try_echo=$ac_try;;
38984 esac
38985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38986 $as_echo "$ac_try_echo") >&5
38987   (eval "$ac_compile") 2>conftest.er1
38988   ac_status=$?
38989   grep -v '^ *+' conftest.er1 >conftest.err
38990   rm -f conftest.er1
38991   cat conftest.err >&5
38992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993   (exit $ac_status); } && {
38994          test -z "$ac_c_werror_flag" ||
38995          test ! -s conftest.err
38996        } && test -s conftest.$ac_objext; then
38997   ac_lo=0 ac_mid=0
38998   while :; do
38999     cat >conftest.$ac_ext <<_ACEOF
39000 /* confdefs.h.  */
39001 _ACEOF
39002 cat confdefs.h >>conftest.$ac_ext
39003 cat >>conftest.$ac_ext <<_ACEOF
39004 /* end confdefs.h.  */
39005 $ac_includes_default
39006 int
39007 main ()
39008 {
39009 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
39010 test_array [0] = 0
39011
39012   ;
39013   return 0;
39014 }
39015 _ACEOF
39016 rm -f conftest.$ac_objext
39017 if { (ac_try="$ac_compile"
39018 case "(($ac_try" in
39019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39020   *) ac_try_echo=$ac_try;;
39021 esac
39022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39023 $as_echo "$ac_try_echo") >&5
39024   (eval "$ac_compile") 2>conftest.er1
39025   ac_status=$?
39026   grep -v '^ *+' conftest.er1 >conftest.err
39027   rm -f conftest.er1
39028   cat conftest.err >&5
39029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030   (exit $ac_status); } && {
39031          test -z "$ac_c_werror_flag" ||
39032          test ! -s conftest.err
39033        } && test -s conftest.$ac_objext; then
39034   ac_hi=$ac_mid; break
39035 else
39036   $as_echo "$as_me: failed program was:" >&5
39037 sed 's/^/| /' conftest.$ac_ext >&5
39038
39039         ac_lo=`expr $ac_mid + 1`
39040                         if test $ac_lo -le $ac_mid; then
39041                           ac_lo= ac_hi=
39042                           break
39043                         fi
39044                         ac_mid=`expr 2 '*' $ac_mid + 1`
39045 fi
39046
39047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39048   done
39049 else
39050   $as_echo "$as_me: failed program was:" >&5
39051 sed 's/^/| /' conftest.$ac_ext >&5
39052
39053         cat >conftest.$ac_ext <<_ACEOF
39054 /* confdefs.h.  */
39055 _ACEOF
39056 cat confdefs.h >>conftest.$ac_ext
39057 cat >>conftest.$ac_ext <<_ACEOF
39058 /* end confdefs.h.  */
39059 $ac_includes_default
39060 int
39061 main ()
39062 {
39063 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
39064 test_array [0] = 0
39065
39066   ;
39067   return 0;
39068 }
39069 _ACEOF
39070 rm -f conftest.$ac_objext
39071 if { (ac_try="$ac_compile"
39072 case "(($ac_try" in
39073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39074   *) ac_try_echo=$ac_try;;
39075 esac
39076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39077 $as_echo "$ac_try_echo") >&5
39078   (eval "$ac_compile") 2>conftest.er1
39079   ac_status=$?
39080   grep -v '^ *+' conftest.er1 >conftest.err
39081   rm -f conftest.er1
39082   cat conftest.err >&5
39083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084   (exit $ac_status); } && {
39085          test -z "$ac_c_werror_flag" ||
39086          test ! -s conftest.err
39087        } && test -s conftest.$ac_objext; then
39088   ac_hi=-1 ac_mid=-1
39089   while :; do
39090     cat >conftest.$ac_ext <<_ACEOF
39091 /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096 $ac_includes_default
39097 int
39098 main ()
39099 {
39100 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
39101 test_array [0] = 0
39102
39103   ;
39104   return 0;
39105 }
39106 _ACEOF
39107 rm -f conftest.$ac_objext
39108 if { (ac_try="$ac_compile"
39109 case "(($ac_try" in
39110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39111   *) ac_try_echo=$ac_try;;
39112 esac
39113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39114 $as_echo "$ac_try_echo") >&5
39115   (eval "$ac_compile") 2>conftest.er1
39116   ac_status=$?
39117   grep -v '^ *+' conftest.er1 >conftest.err
39118   rm -f conftest.er1
39119   cat conftest.err >&5
39120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121   (exit $ac_status); } && {
39122          test -z "$ac_c_werror_flag" ||
39123          test ! -s conftest.err
39124        } && test -s conftest.$ac_objext; then
39125   ac_lo=$ac_mid; break
39126 else
39127   $as_echo "$as_me: failed program was:" >&5
39128 sed 's/^/| /' conftest.$ac_ext >&5
39129
39130         ac_hi=`expr '(' $ac_mid ')' - 1`
39131                         if test $ac_mid -le $ac_hi; then
39132                           ac_lo= ac_hi=
39133                           break
39134                         fi
39135                         ac_mid=`expr 2 '*' $ac_mid`
39136 fi
39137
39138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39139   done
39140 else
39141   $as_echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39143
39144         ac_lo= ac_hi=
39145 fi
39146
39147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39148 fi
39149
39150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39151 # Binary search between lo and hi bounds.
39152 while test "x$ac_lo" != "x$ac_hi"; do
39153   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39154   cat >conftest.$ac_ext <<_ACEOF
39155 /* confdefs.h.  */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h.  */
39160 $ac_includes_default
39161 int
39162 main ()
39163 {
39164 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
39165 test_array [0] = 0
39166
39167   ;
39168   return 0;
39169 }
39170 _ACEOF
39171 rm -f conftest.$ac_objext
39172 if { (ac_try="$ac_compile"
39173 case "(($ac_try" in
39174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39175   *) ac_try_echo=$ac_try;;
39176 esac
39177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39178 $as_echo "$ac_try_echo") >&5
39179   (eval "$ac_compile") 2>conftest.er1
39180   ac_status=$?
39181   grep -v '^ *+' conftest.er1 >conftest.err
39182   rm -f conftest.er1
39183   cat conftest.err >&5
39184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); } && {
39186          test -z "$ac_c_werror_flag" ||
39187          test ! -s conftest.err
39188        } && test -s conftest.$ac_objext; then
39189   ac_hi=$ac_mid
39190 else
39191   $as_echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39193
39194         ac_lo=`expr '(' $ac_mid ')' + 1`
39195 fi
39196
39197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39198 done
39199 case $ac_lo in
39200 ?*) ac_cv_sizeof_int_p=$ac_lo;;
39201 '') if test "$ac_cv_type_int_p" = yes; then
39202      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39204 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
39205 See \`config.log' for more details." >&5
39206 $as_echo "$as_me: error: cannot compute sizeof (int *)
39207 See \`config.log' for more details." >&2;}
39208    { (exit 77); exit 77; }; }; }
39209    else
39210      ac_cv_sizeof_int_p=0
39211    fi ;;
39212 esac
39213 else
39214   cat >conftest.$ac_ext <<_ACEOF
39215 /* confdefs.h.  */
39216 _ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h.  */
39220 $ac_includes_default
39221 static long int longval () { return (long int) (sizeof (int *)); }
39222 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
39223 #include <stdio.h>
39224 #include <stdlib.h>
39225 int
39226 main ()
39227 {
39228
39229   FILE *f = fopen ("conftest.val", "w");
39230   if (! f)
39231     return 1;
39232   if (((long int) (sizeof (int *))) < 0)
39233     {
39234       long int i = longval ();
39235       if (i != ((long int) (sizeof (int *))))
39236         return 1;
39237       fprintf (f, "%ld", i);
39238     }
39239   else
39240     {
39241       unsigned long int i = ulongval ();
39242       if (i != ((long int) (sizeof (int *))))
39243         return 1;
39244       fprintf (f, "%lu", i);
39245     }
39246   /* Do not output a trailing newline, as this causes \r\n confusion
39247      on some platforms.  */
39248   return ferror (f) || fclose (f) != 0;
39249
39250   ;
39251   return 0;
39252 }
39253 _ACEOF
39254 rm -f conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258   *) ac_try_echo=$ac_try;;
39259 esac
39260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39261 $as_echo "$ac_try_echo") >&5
39262   (eval "$ac_link") 2>&5
39263   ac_status=$?
39264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39266   { (case "(($ac_try" in
39267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268   *) ac_try_echo=$ac_try;;
39269 esac
39270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39271 $as_echo "$ac_try_echo") >&5
39272   (eval "$ac_try") 2>&5
39273   ac_status=$?
39274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275   (exit $ac_status); }; }; then
39276   ac_cv_sizeof_int_p=`cat conftest.val`
39277 else
39278   $as_echo "$as_me: program exited with status $ac_status" >&5
39279 $as_echo "$as_me: failed program was:" >&5
39280 sed 's/^/| /' conftest.$ac_ext >&5
39281
39282 ( exit $ac_status )
39283 if test "$ac_cv_type_int_p" = yes; then
39284      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39286 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
39287 See \`config.log' for more details." >&5
39288 $as_echo "$as_me: error: cannot compute sizeof (int *)
39289 See \`config.log' for more details." >&2;}
39290    { (exit 77); exit 77; }; }; }
39291    else
39292      ac_cv_sizeof_int_p=0
39293    fi
39294 fi
39295 rm -rf conftest.dSYM
39296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39297 fi
39298 rm -f conftest.val
39299 fi
39300 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
39301 $as_echo "$ac_cv_sizeof_int_p" >&6; }
39302
39303
39304
39305 cat >>confdefs.h <<_ACEOF
39306 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
39307 _ACEOF
39308
39309
39310
39311 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
39312 $as_echo_n "checking for u_int type... " >&6; }
39313 if test "${ac_cv_have_u_int+set}" = set; then
39314   $as_echo_n "(cached) " >&6
39315 else
39316
39317        cat >conftest.$ac_ext <<_ACEOF
39318 /* confdefs.h.  */
39319 _ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h.  */
39323
39324               #include <sys/types.h>
39325
39326 int
39327 main ()
39328 {
39329
39330               u_int a; a = 1;
39331
39332   ;
39333   return 0;
39334 }
39335 _ACEOF
39336 rm -f conftest.$ac_objext
39337 if { (ac_try="$ac_compile"
39338 case "(($ac_try" in
39339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39340   *) ac_try_echo=$ac_try;;
39341 esac
39342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39343 $as_echo "$ac_try_echo") >&5
39344   (eval "$ac_compile") 2>conftest.er1
39345   ac_status=$?
39346   grep -v '^ *+' conftest.er1 >conftest.err
39347   rm -f conftest.er1
39348   cat conftest.err >&5
39349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350   (exit $ac_status); } && {
39351          test -z "$ac_c_werror_flag" ||
39352          test ! -s conftest.err
39353        } && test -s conftest.$ac_objext; then
39354
39355               ac_cv_have_u_int="yes"
39356
39357 else
39358   $as_echo "$as_me: failed program was:" >&5
39359 sed 's/^/| /' conftest.$ac_ext >&5
39360
39361
39362               ac_cv_have_u_int="no"
39363
39364
39365 fi
39366
39367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39368
39369
39370 fi
39371 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
39372 $as_echo "$ac_cv_have_u_int" >&6; }
39373 if test "x$ac_cv_have_u_int" = "xyes" ; then
39374    cat >>confdefs.h <<\_ACEOF
39375 #define HAVE_U_INT 1
39376 _ACEOF
39377
39378    have_u_int=1
39379 fi
39380
39381 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
39382 $as_echo_n "checking for intmax_t type... " >&6; }
39383 if test "${ac_cv_have_intmax_t+set}" = set; then
39384   $as_echo_n "(cached) " >&6
39385 else
39386
39387        cat >conftest.$ac_ext <<_ACEOF
39388 /* confdefs.h.  */
39389 _ACEOF
39390 cat confdefs.h >>conftest.$ac_ext
39391 cat >>conftest.$ac_ext <<_ACEOF
39392 /* end confdefs.h.  */
39393
39394               #include <sys/types.h>
39395
39396 int
39397 main ()
39398 {
39399
39400               intmax_t a; a = 1;
39401
39402   ;
39403   return 0;
39404 }
39405 _ACEOF
39406 rm -f conftest.$ac_objext
39407 if { (ac_try="$ac_compile"
39408 case "(($ac_try" in
39409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39410   *) ac_try_echo=$ac_try;;
39411 esac
39412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39413 $as_echo "$ac_try_echo") >&5
39414   (eval "$ac_compile") 2>conftest.er1
39415   ac_status=$?
39416   grep -v '^ *+' conftest.er1 >conftest.err
39417   rm -f conftest.er1
39418   cat conftest.err >&5
39419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420   (exit $ac_status); } && {
39421          test -z "$ac_c_werror_flag" ||
39422          test ! -s conftest.err
39423        } && test -s conftest.$ac_objext; then
39424
39425               ac_cv_have_intmax_t="yes"
39426
39427 else
39428   $as_echo "$as_me: failed program was:" >&5
39429 sed 's/^/| /' conftest.$ac_ext >&5
39430
39431
39432               cat >conftest.$ac_ext <<_ACEOF
39433 /* confdefs.h.  */
39434 _ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h.  */
39438
39439                      #include <stdint.h>
39440
39441 int
39442 main ()
39443 {
39444
39445                      intmax_t a; a = 1;
39446
39447   ;
39448   return 0;
39449 }
39450 _ACEOF
39451 rm -f conftest.$ac_objext
39452 if { (ac_try="$ac_compile"
39453 case "(($ac_try" in
39454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39455   *) ac_try_echo=$ac_try;;
39456 esac
39457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39458 $as_echo "$ac_try_echo") >&5
39459   (eval "$ac_compile") 2>conftest.er1
39460   ac_status=$?
39461   grep -v '^ *+' conftest.er1 >conftest.err
39462   rm -f conftest.er1
39463   cat conftest.err >&5
39464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465   (exit $ac_status); } && {
39466          test -z "$ac_c_werror_flag" ||
39467          test ! -s conftest.err
39468        } && test -s conftest.$ac_objext; then
39469
39470                      ac_cv_have_intmax_t="yes"
39471
39472 else
39473   $as_echo "$as_me: failed program was:" >&5
39474 sed 's/^/| /' conftest.$ac_ext >&5
39475
39476
39477                      ac_cv_have_intmax_t="no"
39478
39479
39480 fi
39481
39482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39483
39484
39485 fi
39486
39487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39488
39489
39490 fi
39491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
39492 $as_echo "$ac_cv_have_intmax_t" >&6; }
39493 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
39494    cat >>confdefs.h <<\_ACEOF
39495 #define HAVE_INTMAX_T 1
39496 _ACEOF
39497
39498    have_intmax_t=1
39499 fi
39500
39501 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
39502 $as_echo_n "checking for u_intmax_t type... " >&6; }
39503 if test "${ac_cv_have_u_intmax_t+set}" = set; then
39504   $as_echo_n "(cached) " >&6
39505 else
39506
39507        cat >conftest.$ac_ext <<_ACEOF
39508 /* confdefs.h.  */
39509 _ACEOF
39510 cat confdefs.h >>conftest.$ac_ext
39511 cat >>conftest.$ac_ext <<_ACEOF
39512 /* end confdefs.h.  */
39513
39514               #include <sys/types.h>
39515
39516 int
39517 main ()
39518 {
39519
39520               u_intmax_t a; a = 1;
39521
39522   ;
39523   return 0;
39524 }
39525 _ACEOF
39526 rm -f conftest.$ac_objext
39527 if { (ac_try="$ac_compile"
39528 case "(($ac_try" in
39529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39530   *) ac_try_echo=$ac_try;;
39531 esac
39532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39533 $as_echo "$ac_try_echo") >&5
39534   (eval "$ac_compile") 2>conftest.er1
39535   ac_status=$?
39536   grep -v '^ *+' conftest.er1 >conftest.err
39537   rm -f conftest.er1
39538   cat conftest.err >&5
39539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); } && {
39541          test -z "$ac_c_werror_flag" ||
39542          test ! -s conftest.err
39543        } && test -s conftest.$ac_objext; then
39544
39545               ac_cv_have_u_intmax_t="yes"
39546
39547 else
39548   $as_echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551
39552               cat >conftest.$ac_ext <<_ACEOF
39553 /* confdefs.h.  */
39554 _ACEOF
39555 cat confdefs.h >>conftest.$ac_ext
39556 cat >>conftest.$ac_ext <<_ACEOF
39557 /* end confdefs.h.  */
39558
39559                      #include <stdint.h>
39560
39561 int
39562 main ()
39563 {
39564
39565                     u_intmax_t a; a = 1;
39566
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext
39572 if { (ac_try="$ac_compile"
39573 case "(($ac_try" in
39574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575   *) ac_try_echo=$ac_try;;
39576 esac
39577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39578 $as_echo "$ac_try_echo") >&5
39579   (eval "$ac_compile") 2>conftest.er1
39580   ac_status=$?
39581   grep -v '^ *+' conftest.er1 >conftest.err
39582   rm -f conftest.er1
39583   cat conftest.err >&5
39584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585   (exit $ac_status); } && {
39586          test -z "$ac_c_werror_flag" ||
39587          test ! -s conftest.err
39588        } && test -s conftest.$ac_objext; then
39589
39590                     ac_cv_have_u_intmax_t="yes"
39591
39592 else
39593   $as_echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39595
39596
39597                     ac_cv_have_u_intmax_t="no"
39598
39599
39600 fi
39601
39602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39603
39604
39605 fi
39606
39607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39608
39609
39610 fi
39611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
39612 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
39613 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
39614    cat >>confdefs.h <<\_ACEOF
39615 #define HAVE_U_INTMAX_T 1
39616 _ACEOF
39617
39618    have_u_intmax_t=1
39619 fi
39620
39621 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
39622 $as_echo_n "checking for intXX_t types... " >&6; }
39623 if test "${ac_cv_have_intxx_t+set}" = set; then
39624   $as_echo_n "(cached) " >&6
39625 else
39626
39627        cat >conftest.$ac_ext <<_ACEOF
39628 /* confdefs.h.  */
39629 _ACEOF
39630 cat confdefs.h >>conftest.$ac_ext
39631 cat >>conftest.$ac_ext <<_ACEOF
39632 /* end confdefs.h.  */
39633
39634               #include <sys/types.h>
39635
39636 int
39637 main ()
39638 {
39639
39640               int8_t a; int16_t b; int32_t c; a = b = c = 1;
39641
39642   ;
39643   return 0;
39644 }
39645 _ACEOF
39646 rm -f conftest.$ac_objext
39647 if { (ac_try="$ac_compile"
39648 case "(($ac_try" in
39649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39650   *) ac_try_echo=$ac_try;;
39651 esac
39652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39653 $as_echo "$ac_try_echo") >&5
39654   (eval "$ac_compile") 2>conftest.er1
39655   ac_status=$?
39656   grep -v '^ *+' conftest.er1 >conftest.err
39657   rm -f conftest.er1
39658   cat conftest.err >&5
39659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); } && {
39661          test -z "$ac_c_werror_flag" ||
39662          test ! -s conftest.err
39663        } && test -s conftest.$ac_objext; then
39664
39665               ac_cv_have_intxx_t="yes"
39666
39667 else
39668   $as_echo "$as_me: failed program was:" >&5
39669 sed 's/^/| /' conftest.$ac_ext >&5
39670
39671
39672               ac_cv_have_intxx_t="no"
39673
39674
39675 fi
39676
39677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39678
39679
39680 fi
39681 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
39682 $as_echo "$ac_cv_have_intxx_t" >&6; }
39683 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
39684    cat >>confdefs.h <<\_ACEOF
39685 #define HAVE_INTXX_T 1
39686 _ACEOF
39687
39688    have_intxx_t=1
39689 fi
39690
39691 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
39692 $as_echo_n "checking for int64_t type... " >&6; }
39693 if test "${ac_cv_have_int64_t+set}" = set; then
39694   $as_echo_n "(cached) " >&6
39695 else
39696
39697        cat >conftest.$ac_ext <<_ACEOF
39698 /* confdefs.h.  */
39699 _ACEOF
39700 cat confdefs.h >>conftest.$ac_ext
39701 cat >>conftest.$ac_ext <<_ACEOF
39702 /* end confdefs.h.  */
39703
39704               #include <sys/types.h>
39705
39706 int
39707 main ()
39708 {
39709
39710               int64_t a; a = 1;
39711
39712   ;
39713   return 0;
39714 }
39715 _ACEOF
39716 rm -f conftest.$ac_objext
39717 if { (ac_try="$ac_compile"
39718 case "(($ac_try" in
39719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39720   *) ac_try_echo=$ac_try;;
39721 esac
39722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39723 $as_echo "$ac_try_echo") >&5
39724   (eval "$ac_compile") 2>conftest.er1
39725   ac_status=$?
39726   grep -v '^ *+' conftest.er1 >conftest.err
39727   rm -f conftest.er1
39728   cat conftest.err >&5
39729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730   (exit $ac_status); } && {
39731          test -z "$ac_c_werror_flag" ||
39732          test ! -s conftest.err
39733        } && test -s conftest.$ac_objext; then
39734
39735               ac_cv_have_int64_t="yes"
39736
39737 else
39738   $as_echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39740
39741
39742               ac_cv_have_int64_t="no"
39743
39744
39745 fi
39746
39747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39748
39749
39750 fi
39751 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
39752 $as_echo "$ac_cv_have_int64_t" >&6; }
39753 if test "x$ac_cv_have_int64_t" = "xyes" ; then
39754    cat >>confdefs.h <<\_ACEOF
39755 #define HAVE_INT64_T 1
39756 _ACEOF
39757
39758    have_int64_t=1
39759 fi
39760
39761 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
39762 $as_echo_n "checking for u_intXX_t types... " >&6; }
39763 if test "${ac_cv_have_u_intxx_t+set}" = set; then
39764   $as_echo_n "(cached) " >&6
39765 else
39766
39767        cat >conftest.$ac_ext <<_ACEOF
39768 /* confdefs.h.  */
39769 _ACEOF
39770 cat confdefs.h >>conftest.$ac_ext
39771 cat >>conftest.$ac_ext <<_ACEOF
39772 /* end confdefs.h.  */
39773
39774               #include <sys/types.h>
39775
39776 int
39777 main ()
39778 {
39779
39780               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
39781
39782   ;
39783   return 0;
39784 }
39785 _ACEOF
39786 rm -f conftest.$ac_objext
39787 if { (ac_try="$ac_compile"
39788 case "(($ac_try" in
39789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39790   *) ac_try_echo=$ac_try;;
39791 esac
39792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39793 $as_echo "$ac_try_echo") >&5
39794   (eval "$ac_compile") 2>conftest.er1
39795   ac_status=$?
39796   grep -v '^ *+' conftest.er1 >conftest.err
39797   rm -f conftest.er1
39798   cat conftest.err >&5
39799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800   (exit $ac_status); } && {
39801          test -z "$ac_c_werror_flag" ||
39802          test ! -s conftest.err
39803        } && test -s conftest.$ac_objext; then
39804
39805              ac_cv_have_u_intxx_t="yes"
39806
39807 else
39808   $as_echo "$as_me: failed program was:" >&5
39809 sed 's/^/| /' conftest.$ac_ext >&5
39810
39811
39812              ac_cv_have_u_intxx_t="no"
39813
39814
39815 fi
39816
39817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39818
39819
39820 fi
39821 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39822 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39823 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39824    cat >>confdefs.h <<\_ACEOF
39825 #define HAVE_U_INTXX_T 1
39826 _ACEOF
39827
39828    have_u_intxx_t=1
39829 fi
39830
39831 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39832 $as_echo_n "checking for u_int64_t types... " >&6; }
39833 if test "${ac_cv_have_u_int64_t+set}" = set; then
39834   $as_echo_n "(cached) " >&6
39835 else
39836
39837        cat >conftest.$ac_ext <<_ACEOF
39838 /* confdefs.h.  */
39839 _ACEOF
39840 cat confdefs.h >>conftest.$ac_ext
39841 cat >>conftest.$ac_ext <<_ACEOF
39842 /* end confdefs.h.  */
39843
39844               #include <sys/types.h>
39845
39846 int
39847 main ()
39848 {
39849
39850               u_int64_t a; a = 1;
39851
39852   ;
39853   return 0;
39854 }
39855 _ACEOF
39856 rm -f conftest.$ac_objext
39857 if { (ac_try="$ac_compile"
39858 case "(($ac_try" in
39859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39860   *) ac_try_echo=$ac_try;;
39861 esac
39862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39863 $as_echo "$ac_try_echo") >&5
39864   (eval "$ac_compile") 2>conftest.er1
39865   ac_status=$?
39866   grep -v '^ *+' conftest.er1 >conftest.err
39867   rm -f conftest.er1
39868   cat conftest.err >&5
39869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870   (exit $ac_status); } && {
39871          test -z "$ac_c_werror_flag" ||
39872          test ! -s conftest.err
39873        } && test -s conftest.$ac_objext; then
39874
39875              ac_cv_have_u_int64_t="yes"
39876
39877 else
39878   $as_echo "$as_me: failed program was:" >&5
39879 sed 's/^/| /' conftest.$ac_ext >&5
39880
39881
39882              ac_cv_have_u_int64_t="no"
39883
39884
39885 fi
39886
39887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39888
39889
39890 fi
39891 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39892 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39893 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39894    cat >>confdefs.h <<\_ACEOF
39895 #define HAVE_U_INT64_T 1
39896 _ACEOF
39897
39898    have_u_int64_t=1
39899 fi
39900
39901 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39902     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39903 then
39904    { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39905 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39906    cat >conftest.$ac_ext <<_ACEOF
39907 /* confdefs.h.  */
39908 _ACEOF
39909 cat confdefs.h >>conftest.$ac_ext
39910 cat >>conftest.$ac_ext <<_ACEOF
39911 /* end confdefs.h.  */
39912
39913           #include <sys/bitypes.h>
39914
39915 int
39916 main ()
39917 {
39918
39919           int8_t a; int16_t b; int32_t c;
39920           u_int8_t e; u_int16_t f; u_int32_t g;
39921           a = b = c = e = f = g = 1;
39922
39923   ;
39924   return 0;
39925 }
39926 _ACEOF
39927 rm -f conftest.$ac_objext
39928 if { (ac_try="$ac_compile"
39929 case "(($ac_try" in
39930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931   *) ac_try_echo=$ac_try;;
39932 esac
39933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39934 $as_echo "$ac_try_echo") >&5
39935   (eval "$ac_compile") 2>conftest.er1
39936   ac_status=$?
39937   grep -v '^ *+' conftest.er1 >conftest.err
39938   rm -f conftest.er1
39939   cat conftest.err >&5
39940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941   (exit $ac_status); } && {
39942          test -z "$ac_c_werror_flag" ||
39943          test ! -s conftest.err
39944        } && test -s conftest.$ac_objext; then
39945
39946           cat >>confdefs.h <<\_ACEOF
39947 #define HAVE_U_INTXX_T 1
39948 _ACEOF
39949
39950           cat >>confdefs.h <<\_ACEOF
39951 #define HAVE_INTXX_T 1
39952 _ACEOF
39953
39954           cat >>confdefs.h <<\_ACEOF
39955 #define HAVE_SYS_BITYPES_H 1
39956 _ACEOF
39957
39958           { $as_echo "$as_me:$LINENO: result: yes" >&5
39959 $as_echo "yes" >&6; }
39960
39961 else
39962   $as_echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39964
39965
39966           { $as_echo "$as_me:$LINENO: result: no" >&5
39967 $as_echo "no" >&6; }
39968
39969
39970 fi
39971
39972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39973 fi
39974
39975 if test -z "$have_u_intxx_t" ; then
39976    { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39977 $as_echo_n "checking for uintXX_t types... " >&6; }
39978 if test "${ac_cv_have_uintxx_t+set}" = set; then
39979   $as_echo_n "(cached) " >&6
39980 else
39981
39982           cat >conftest.$ac_ext <<_ACEOF
39983 /* confdefs.h.  */
39984 _ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h.  */
39988
39989                  #include <sys/types.h>
39990
39991 int
39992 main ()
39993 {
39994
39995                  uint8_t a; uint16_t b;
39996                  uint32_t c; a = b = c = 1;
39997
39998   ;
39999   return 0;
40000 }
40001 _ACEOF
40002 rm -f conftest.$ac_objext
40003 if { (ac_try="$ac_compile"
40004 case "(($ac_try" in
40005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40006   *) ac_try_echo=$ac_try;;
40007 esac
40008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40009 $as_echo "$ac_try_echo") >&5
40010   (eval "$ac_compile") 2>conftest.er1
40011   ac_status=$?
40012   grep -v '^ *+' conftest.er1 >conftest.err
40013   rm -f conftest.er1
40014   cat conftest.err >&5
40015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016   (exit $ac_status); } && {
40017          test -z "$ac_c_werror_flag" ||
40018          test ! -s conftest.err
40019        } && test -s conftest.$ac_objext; then
40020
40021                 ac_cv_have_uintxx_t="yes"
40022
40023 else
40024   $as_echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40026
40027
40028                 ac_cv_have_uintxx_t="no"
40029
40030
40031 fi
40032
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40034
40035
40036 fi
40037 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
40038 $as_echo "$ac_cv_have_uintxx_t" >&6; }
40039    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
40040       cat >>confdefs.h <<\_ACEOF
40041 #define HAVE_UINTXX_T 1
40042 _ACEOF
40043
40044    fi
40045 fi
40046
40047 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
40048     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
40049 then
40050    { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
40051 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
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
40059           #include <sys/bitypes.h>
40060
40061 int
40062 main ()
40063 {
40064
40065           int64_t a; u_int64_t b;
40066           a = b = 1;
40067
40068   ;
40069   return 0;
40070 }
40071 _ACEOF
40072 rm -f conftest.$ac_objext
40073 if { (ac_try="$ac_compile"
40074 case "(($ac_try" in
40075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40076   *) ac_try_echo=$ac_try;;
40077 esac
40078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40079 $as_echo "$ac_try_echo") >&5
40080   (eval "$ac_compile") 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } && {
40087          test -z "$ac_c_werror_flag" ||
40088          test ! -s conftest.err
40089        } && test -s conftest.$ac_objext; then
40090
40091           cat >>confdefs.h <<\_ACEOF
40092 #define HAVE_U_INT64_T 1
40093 _ACEOF
40094
40095           cat >>confdefs.h <<\_ACEOF
40096 #define HAVE_INT64_T 1
40097 _ACEOF
40098
40099           { $as_echo "$as_me:$LINENO: result: yes" >&5
40100 $as_echo "yes" >&6; }
40101
40102 else
40103   $as_echo "$as_me: failed program was:" >&5
40104 sed 's/^/| /' conftest.$ac_ext >&5
40105
40106
40107           { $as_echo "$as_me:$LINENO: result: no" >&5
40108 $as_echo "no" >&6; }
40109
40110
40111 fi
40112
40113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40114 fi
40115
40116 if (test -z "$have_uintxx_t" && \
40117     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
40118 then
40119    { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
40120 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
40121    cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h.  */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h.  */
40127
40128           #include <sys/bitypes.h>
40129
40130 int
40131 main ()
40132 {
40133
40134           uint8_t a; uint16_t b;
40135           uint32_t c; a = b = c = 1;
40136
40137   ;
40138   return 0;
40139 }
40140 _ACEOF
40141 rm -f conftest.$ac_objext
40142 if { (ac_try="$ac_compile"
40143 case "(($ac_try" in
40144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40145   *) ac_try_echo=$ac_try;;
40146 esac
40147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40148 $as_echo "$ac_try_echo") >&5
40149   (eval "$ac_compile") 2>conftest.er1
40150   ac_status=$?
40151   grep -v '^ *+' conftest.er1 >conftest.err
40152   rm -f conftest.er1
40153   cat conftest.err >&5
40154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155   (exit $ac_status); } && {
40156          test -z "$ac_c_werror_flag" ||
40157          test ! -s conftest.err
40158        } && test -s conftest.$ac_objext; then
40159
40160           cat >>confdefs.h <<\_ACEOF
40161 #define HAVE_UINTXX_T 1
40162 _ACEOF
40163
40164           { $as_echo "$as_me:$LINENO: result: yes" >&5
40165 $as_echo "yes" >&6; }
40166
40167 else
40168   $as_echo "$as_me: failed program was:" >&5
40169 sed 's/^/| /' conftest.$ac_ext >&5
40170
40171
40172           { $as_echo "$as_me:$LINENO: result: no" >&5
40173 $as_echo "no" >&6; }
40174
40175
40176 fi
40177
40178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40179 fi
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194 for ac_func in \
40195    fork \
40196    getcwd \
40197    gethostname \
40198    getpid \
40199    gettimeofday \
40200    setpgid \
40201    setpgrp \
40202    setsid \
40203    signal \
40204    strerror \
40205    strncmp \
40206    strncpy \
40207    vfprintf \
40208
40209 do
40210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40211 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40212 $as_echo_n "checking for $ac_func... " >&6; }
40213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40214   $as_echo_n "(cached) " >&6
40215 else
40216   cat >conftest.$ac_ext <<_ACEOF
40217 /* confdefs.h.  */
40218 _ACEOF
40219 cat confdefs.h >>conftest.$ac_ext
40220 cat >>conftest.$ac_ext <<_ACEOF
40221 /* end confdefs.h.  */
40222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40224 #define $ac_func innocuous_$ac_func
40225
40226 /* System header to define __stub macros and hopefully few prototypes,
40227     which can conflict with char $ac_func (); below.
40228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40229     <limits.h> exists even on freestanding compilers.  */
40230
40231 #ifdef __STDC__
40232 # include <limits.h>
40233 #else
40234 # include <assert.h>
40235 #endif
40236
40237 #undef $ac_func
40238
40239 /* Override any GCC internal prototype to avoid an error.
40240    Use char because int might match the return type of a GCC
40241    builtin and then its argument prototype would still apply.  */
40242 #ifdef __cplusplus
40243 extern "C"
40244 #endif
40245 char $ac_func ();
40246 /* The GNU C library defines this for functions which it implements
40247     to always fail with ENOSYS.  Some functions are actually named
40248     something starting with __ and the normal name is an alias.  */
40249 #if defined __stub_$ac_func || defined __stub___$ac_func
40250 choke me
40251 #endif
40252
40253 int
40254 main ()
40255 {
40256 return $ac_func ();
40257   ;
40258   return 0;
40259 }
40260 _ACEOF
40261 rm -f conftest.$ac_objext conftest$ac_exeext
40262 if { (ac_try="$ac_link"
40263 case "(($ac_try" in
40264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40265   *) ac_try_echo=$ac_try;;
40266 esac
40267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40268 $as_echo "$ac_try_echo") >&5
40269   (eval "$ac_link") 2>conftest.er1
40270   ac_status=$?
40271   grep -v '^ *+' conftest.er1 >conftest.err
40272   rm -f conftest.er1
40273   cat conftest.err >&5
40274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275   (exit $ac_status); } && {
40276          test -z "$ac_c_werror_flag" ||
40277          test ! -s conftest.err
40278        } && test -s conftest$ac_exeext && {
40279          test "$cross_compiling" = yes ||
40280          $as_test_x conftest$ac_exeext
40281        }; then
40282   eval "$as_ac_var=yes"
40283 else
40284   $as_echo "$as_me: failed program was:" >&5
40285 sed 's/^/| /' conftest.$ac_ext >&5
40286
40287         eval "$as_ac_var=no"
40288 fi
40289
40290 rm -rf conftest.dSYM
40291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40292       conftest$ac_exeext conftest.$ac_ext
40293 fi
40294 ac_res=`eval 'as_val=${'$as_ac_var'}
40295                  $as_echo "$as_val"'`
40296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40297 $as_echo "$ac_res" >&6; }
40298 as_val=`eval 'as_val=${'$as_ac_var'}
40299                  $as_echo "$as_val"'`
40300    if test "x$as_val" = x""yes; then
40301   cat >>confdefs.h <<_ACEOF
40302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40303 _ACEOF
40304
40305 else
40306   echo 'configure: cannot find needed function.'; exit 1
40307
40308 fi
40309 done
40310
40311
40312
40313 for ac_func in getpagesize
40314 do
40315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40317 $as_echo_n "checking for $ac_func... " >&6; }
40318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40319   $as_echo_n "(cached) " >&6
40320 else
40321   cat >conftest.$ac_ext <<_ACEOF
40322 /* confdefs.h.  */
40323 _ACEOF
40324 cat confdefs.h >>conftest.$ac_ext
40325 cat >>conftest.$ac_ext <<_ACEOF
40326 /* end confdefs.h.  */
40327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40329 #define $ac_func innocuous_$ac_func
40330
40331 /* System header to define __stub macros and hopefully few prototypes,
40332     which can conflict with char $ac_func (); below.
40333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40334     <limits.h> exists even on freestanding compilers.  */
40335
40336 #ifdef __STDC__
40337 # include <limits.h>
40338 #else
40339 # include <assert.h>
40340 #endif
40341
40342 #undef $ac_func
40343
40344 /* Override any GCC internal prototype to avoid an error.
40345    Use char because int might match the return type of a GCC
40346    builtin and then its argument prototype would still apply.  */
40347 #ifdef __cplusplus
40348 extern "C"
40349 #endif
40350 char $ac_func ();
40351 /* The GNU C library defines this for functions which it implements
40352     to always fail with ENOSYS.  Some functions are actually named
40353     something starting with __ and the normal name is an alias.  */
40354 #if defined __stub_$ac_func || defined __stub___$ac_func
40355 choke me
40356 #endif
40357
40358 int
40359 main ()
40360 {
40361 return $ac_func ();
40362   ;
40363   return 0;
40364 }
40365 _ACEOF
40366 rm -f conftest.$ac_objext conftest$ac_exeext
40367 if { (ac_try="$ac_link"
40368 case "(($ac_try" in
40369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40370   *) ac_try_echo=$ac_try;;
40371 esac
40372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40373 $as_echo "$ac_try_echo") >&5
40374   (eval "$ac_link") 2>conftest.er1
40375   ac_status=$?
40376   grep -v '^ *+' conftest.er1 >conftest.err
40377   rm -f conftest.er1
40378   cat conftest.err >&5
40379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380   (exit $ac_status); } && {
40381          test -z "$ac_c_werror_flag" ||
40382          test ! -s conftest.err
40383        } && test -s conftest$ac_exeext && {
40384          test "$cross_compiling" = yes ||
40385          $as_test_x conftest$ac_exeext
40386        }; then
40387   eval "$as_ac_var=yes"
40388 else
40389   $as_echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40391
40392         eval "$as_ac_var=no"
40393 fi
40394
40395 rm -rf conftest.dSYM
40396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40397       conftest$ac_exeext conftest.$ac_ext
40398 fi
40399 ac_res=`eval 'as_val=${'$as_ac_var'}
40400                  $as_echo "$as_val"'`
40401                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40402 $as_echo "$ac_res" >&6; }
40403 as_val=`eval 'as_val=${'$as_ac_var'}
40404                  $as_echo "$as_val"'`
40405    if test "x$as_val" = x""yes; then
40406   cat >>confdefs.h <<_ACEOF
40407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40408 _ACEOF
40409
40410 cat >>confdefs.h <<\_ACEOF
40411 #define HAVE_GETPAGESIZE 1
40412 _ACEOF
40413
40414 fi
40415 done
40416
40417
40418 for ac_func in malloc_trim
40419 do
40420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40422 $as_echo_n "checking for $ac_func... " >&6; }
40423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40424   $as_echo_n "(cached) " >&6
40425 else
40426   cat >conftest.$ac_ext <<_ACEOF
40427 /* confdefs.h.  */
40428 _ACEOF
40429 cat confdefs.h >>conftest.$ac_ext
40430 cat >>conftest.$ac_ext <<_ACEOF
40431 /* end confdefs.h.  */
40432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40434 #define $ac_func innocuous_$ac_func
40435
40436 /* System header to define __stub macros and hopefully few prototypes,
40437     which can conflict with char $ac_func (); below.
40438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40439     <limits.h> exists even on freestanding compilers.  */
40440
40441 #ifdef __STDC__
40442 # include <limits.h>
40443 #else
40444 # include <assert.h>
40445 #endif
40446
40447 #undef $ac_func
40448
40449 /* Override any GCC internal prototype to avoid an error.
40450    Use char because int might match the return type of a GCC
40451    builtin and then its argument prototype would still apply.  */
40452 #ifdef __cplusplus
40453 extern "C"
40454 #endif
40455 char $ac_func ();
40456 /* The GNU C library defines this for functions which it implements
40457     to always fail with ENOSYS.  Some functions are actually named
40458     something starting with __ and the normal name is an alias.  */
40459 #if defined __stub_$ac_func || defined __stub___$ac_func
40460 choke me
40461 #endif
40462
40463 int
40464 main ()
40465 {
40466 return $ac_func ();
40467   ;
40468   return 0;
40469 }
40470 _ACEOF
40471 rm -f conftest.$ac_objext conftest$ac_exeext
40472 if { (ac_try="$ac_link"
40473 case "(($ac_try" in
40474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40475   *) ac_try_echo=$ac_try;;
40476 esac
40477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40478 $as_echo "$ac_try_echo") >&5
40479   (eval "$ac_link") 2>conftest.er1
40480   ac_status=$?
40481   grep -v '^ *+' conftest.er1 >conftest.err
40482   rm -f conftest.er1
40483   cat conftest.err >&5
40484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); } && {
40486          test -z "$ac_c_werror_flag" ||
40487          test ! -s conftest.err
40488        } && test -s conftest$ac_exeext && {
40489          test "$cross_compiling" = yes ||
40490          $as_test_x conftest$ac_exeext
40491        }; then
40492   eval "$as_ac_var=yes"
40493 else
40494   $as_echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40496
40497         eval "$as_ac_var=no"
40498 fi
40499
40500 rm -rf conftest.dSYM
40501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40502       conftest$ac_exeext conftest.$ac_ext
40503 fi
40504 ac_res=`eval 'as_val=${'$as_ac_var'}
40505                  $as_echo "$as_val"'`
40506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40507 $as_echo "$ac_res" >&6; }
40508 as_val=`eval 'as_val=${'$as_ac_var'}
40509                  $as_echo "$as_val"'`
40510    if test "x$as_val" = x""yes; then
40511   cat >>confdefs.h <<_ACEOF
40512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40513 _ACEOF
40514
40515 cat >>confdefs.h <<\_ACEOF
40516 #define HAVE_MALLOC_TRIM 1
40517 _ACEOF
40518
40519 fi
40520 done
40521
40522
40523
40524 for ac_func in fchdir
40525 do
40526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40528 $as_echo_n "checking for $ac_func... " >&6; }
40529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40530   $as_echo_n "(cached) " >&6
40531 else
40532   cat >conftest.$ac_ext <<_ACEOF
40533 /* confdefs.h.  */
40534 _ACEOF
40535 cat confdefs.h >>conftest.$ac_ext
40536 cat >>conftest.$ac_ext <<_ACEOF
40537 /* end confdefs.h.  */
40538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40540 #define $ac_func innocuous_$ac_func
40541
40542 /* System header to define __stub macros and hopefully few prototypes,
40543     which can conflict with char $ac_func (); below.
40544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40545     <limits.h> exists even on freestanding compilers.  */
40546
40547 #ifdef __STDC__
40548 # include <limits.h>
40549 #else
40550 # include <assert.h>
40551 #endif
40552
40553 #undef $ac_func
40554
40555 /* Override any GCC internal prototype to avoid an error.
40556    Use char because int might match the return type of a GCC
40557    builtin and then its argument prototype would still apply.  */
40558 #ifdef __cplusplus
40559 extern "C"
40560 #endif
40561 char $ac_func ();
40562 /* The GNU C library defines this for functions which it implements
40563     to always fail with ENOSYS.  Some functions are actually named
40564     something starting with __ and the normal name is an alias.  */
40565 #if defined __stub_$ac_func || defined __stub___$ac_func
40566 choke me
40567 #endif
40568
40569 int
40570 main ()
40571 {
40572 return $ac_func ();
40573   ;
40574   return 0;
40575 }
40576 _ACEOF
40577 rm -f conftest.$ac_objext conftest$ac_exeext
40578 if { (ac_try="$ac_link"
40579 case "(($ac_try" in
40580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40581   *) ac_try_echo=$ac_try;;
40582 esac
40583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40584 $as_echo "$ac_try_echo") >&5
40585   (eval "$ac_link") 2>conftest.er1
40586   ac_status=$?
40587   grep -v '^ *+' conftest.er1 >conftest.err
40588   rm -f conftest.er1
40589   cat conftest.err >&5
40590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591   (exit $ac_status); } && {
40592          test -z "$ac_c_werror_flag" ||
40593          test ! -s conftest.err
40594        } && test -s conftest$ac_exeext && {
40595          test "$cross_compiling" = yes ||
40596          $as_test_x conftest$ac_exeext
40597        }; then
40598   eval "$as_ac_var=yes"
40599 else
40600   $as_echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40602
40603         eval "$as_ac_var=no"
40604 fi
40605
40606 rm -rf conftest.dSYM
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608       conftest$ac_exeext conftest.$ac_ext
40609 fi
40610 ac_res=`eval 'as_val=${'$as_ac_var'}
40611                  $as_echo "$as_val"'`
40612                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40613 $as_echo "$ac_res" >&6; }
40614 as_val=`eval 'as_val=${'$as_ac_var'}
40615                  $as_echo "$as_val"'`
40616    if test "x$as_val" = x""yes; then
40617   cat >>confdefs.h <<_ACEOF
40618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40619 _ACEOF
40620  cat >>confdefs.h <<\_ACEOF
40621 #define HAVE_FCHDIR 1
40622 _ACEOF
40623
40624 fi
40625 done
40626
40627
40628 for ac_func in strtoll
40629 do
40630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40632 $as_echo_n "checking for $ac_func... " >&6; }
40633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40634   $as_echo_n "(cached) " >&6
40635 else
40636   cat >conftest.$ac_ext <<_ACEOF
40637 /* confdefs.h.  */
40638 _ACEOF
40639 cat confdefs.h >>conftest.$ac_ext
40640 cat >>conftest.$ac_ext <<_ACEOF
40641 /* end confdefs.h.  */
40642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40644 #define $ac_func innocuous_$ac_func
40645
40646 /* System header to define __stub macros and hopefully few prototypes,
40647     which can conflict with char $ac_func (); below.
40648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40649     <limits.h> exists even on freestanding compilers.  */
40650
40651 #ifdef __STDC__
40652 # include <limits.h>
40653 #else
40654 # include <assert.h>
40655 #endif
40656
40657 #undef $ac_func
40658
40659 /* Override any GCC internal prototype to avoid an error.
40660    Use char because int might match the return type of a GCC
40661    builtin and then its argument prototype would still apply.  */
40662 #ifdef __cplusplus
40663 extern "C"
40664 #endif
40665 char $ac_func ();
40666 /* The GNU C library defines this for functions which it implements
40667     to always fail with ENOSYS.  Some functions are actually named
40668     something starting with __ and the normal name is an alias.  */
40669 #if defined __stub_$ac_func || defined __stub___$ac_func
40670 choke me
40671 #endif
40672
40673 int
40674 main ()
40675 {
40676 return $ac_func ();
40677   ;
40678   return 0;
40679 }
40680 _ACEOF
40681 rm -f conftest.$ac_objext conftest$ac_exeext
40682 if { (ac_try="$ac_link"
40683 case "(($ac_try" in
40684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40685   *) ac_try_echo=$ac_try;;
40686 esac
40687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40688 $as_echo "$ac_try_echo") >&5
40689   (eval "$ac_link") 2>conftest.er1
40690   ac_status=$?
40691   grep -v '^ *+' conftest.er1 >conftest.err
40692   rm -f conftest.er1
40693   cat conftest.err >&5
40694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695   (exit $ac_status); } && {
40696          test -z "$ac_c_werror_flag" ||
40697          test ! -s conftest.err
40698        } && test -s conftest$ac_exeext && {
40699          test "$cross_compiling" = yes ||
40700          $as_test_x conftest$ac_exeext
40701        }; then
40702   eval "$as_ac_var=yes"
40703 else
40704   $as_echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40706
40707         eval "$as_ac_var=no"
40708 fi
40709
40710 rm -rf conftest.dSYM
40711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40712       conftest$ac_exeext conftest.$ac_ext
40713 fi
40714 ac_res=`eval 'as_val=${'$as_ac_var'}
40715                  $as_echo "$as_val"'`
40716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40717 $as_echo "$ac_res" >&6; }
40718 as_val=`eval 'as_val=${'$as_ac_var'}
40719                  $as_echo "$as_val"'`
40720    if test "x$as_val" = x""yes; then
40721   cat >>confdefs.h <<_ACEOF
40722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40723 _ACEOF
40724  cat >>confdefs.h <<\_ACEOF
40725 #define HAVE_STRTOLL 1
40726 _ACEOF
40727
40728 fi
40729 done
40730
40731
40732 for ac_func in posix_fadvise
40733 do
40734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40736 $as_echo_n "checking for $ac_func... " >&6; }
40737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40738   $as_echo_n "(cached) " >&6
40739 else
40740   cat >conftest.$ac_ext <<_ACEOF
40741 /* confdefs.h.  */
40742 _ACEOF
40743 cat confdefs.h >>conftest.$ac_ext
40744 cat >>conftest.$ac_ext <<_ACEOF
40745 /* end confdefs.h.  */
40746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40748 #define $ac_func innocuous_$ac_func
40749
40750 /* System header to define __stub macros and hopefully few prototypes,
40751     which can conflict with char $ac_func (); below.
40752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40753     <limits.h> exists even on freestanding compilers.  */
40754
40755 #ifdef __STDC__
40756 # include <limits.h>
40757 #else
40758 # include <assert.h>
40759 #endif
40760
40761 #undef $ac_func
40762
40763 /* Override any GCC internal prototype to avoid an error.
40764    Use char because int might match the return type of a GCC
40765    builtin and then its argument prototype would still apply.  */
40766 #ifdef __cplusplus
40767 extern "C"
40768 #endif
40769 char $ac_func ();
40770 /* The GNU C library defines this for functions which it implements
40771     to always fail with ENOSYS.  Some functions are actually named
40772     something starting with __ and the normal name is an alias.  */
40773 #if defined __stub_$ac_func || defined __stub___$ac_func
40774 choke me
40775 #endif
40776
40777 int
40778 main ()
40779 {
40780 return $ac_func ();
40781   ;
40782   return 0;
40783 }
40784 _ACEOF
40785 rm -f conftest.$ac_objext conftest$ac_exeext
40786 if { (ac_try="$ac_link"
40787 case "(($ac_try" in
40788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40789   *) ac_try_echo=$ac_try;;
40790 esac
40791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40792 $as_echo "$ac_try_echo") >&5
40793   (eval "$ac_link") 2>conftest.er1
40794   ac_status=$?
40795   grep -v '^ *+' conftest.er1 >conftest.err
40796   rm -f conftest.er1
40797   cat conftest.err >&5
40798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); } && {
40800          test -z "$ac_c_werror_flag" ||
40801          test ! -s conftest.err
40802        } && test -s conftest$ac_exeext && {
40803          test "$cross_compiling" = yes ||
40804          $as_test_x conftest$ac_exeext
40805        }; then
40806   eval "$as_ac_var=yes"
40807 else
40808   $as_echo "$as_me: failed program was:" >&5
40809 sed 's/^/| /' conftest.$ac_ext >&5
40810
40811         eval "$as_ac_var=no"
40812 fi
40813
40814 rm -rf conftest.dSYM
40815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40816       conftest$ac_exeext conftest.$ac_ext
40817 fi
40818 ac_res=`eval 'as_val=${'$as_ac_var'}
40819                  $as_echo "$as_val"'`
40820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40821 $as_echo "$ac_res" >&6; }
40822 as_val=`eval 'as_val=${'$as_ac_var'}
40823                  $as_echo "$as_val"'`
40824    if test "x$as_val" = x""yes; then
40825   cat >>confdefs.h <<_ACEOF
40826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40827 _ACEOF
40828
40829 fi
40830 done
40831
40832
40833 for ac_func in fdatasync
40834 do
40835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40837 $as_echo_n "checking for $ac_func... " >&6; }
40838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40839   $as_echo_n "(cached) " >&6
40840 else
40841   cat >conftest.$ac_ext <<_ACEOF
40842 /* confdefs.h.  */
40843 _ACEOF
40844 cat confdefs.h >>conftest.$ac_ext
40845 cat >>conftest.$ac_ext <<_ACEOF
40846 /* end confdefs.h.  */
40847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40849 #define $ac_func innocuous_$ac_func
40850
40851 /* System header to define __stub macros and hopefully few prototypes,
40852     which can conflict with char $ac_func (); below.
40853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40854     <limits.h> exists even on freestanding compilers.  */
40855
40856 #ifdef __STDC__
40857 # include <limits.h>
40858 #else
40859 # include <assert.h>
40860 #endif
40861
40862 #undef $ac_func
40863
40864 /* Override any GCC internal prototype to avoid an error.
40865    Use char because int might match the return type of a GCC
40866    builtin and then its argument prototype would still apply.  */
40867 #ifdef __cplusplus
40868 extern "C"
40869 #endif
40870 char $ac_func ();
40871 /* The GNU C library defines this for functions which it implements
40872     to always fail with ENOSYS.  Some functions are actually named
40873     something starting with __ and the normal name is an alias.  */
40874 #if defined __stub_$ac_func || defined __stub___$ac_func
40875 choke me
40876 #endif
40877
40878 int
40879 main ()
40880 {
40881 return $ac_func ();
40882   ;
40883   return 0;
40884 }
40885 _ACEOF
40886 rm -f conftest.$ac_objext conftest$ac_exeext
40887 if { (ac_try="$ac_link"
40888 case "(($ac_try" in
40889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40890   *) ac_try_echo=$ac_try;;
40891 esac
40892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40893 $as_echo "$ac_try_echo") >&5
40894   (eval "$ac_link") 2>conftest.er1
40895   ac_status=$?
40896   grep -v '^ *+' conftest.er1 >conftest.err
40897   rm -f conftest.er1
40898   cat conftest.err >&5
40899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); } && {
40901          test -z "$ac_c_werror_flag" ||
40902          test ! -s conftest.err
40903        } && test -s conftest$ac_exeext && {
40904          test "$cross_compiling" = yes ||
40905          $as_test_x conftest$ac_exeext
40906        }; then
40907   eval "$as_ac_var=yes"
40908 else
40909   $as_echo "$as_me: failed program was:" >&5
40910 sed 's/^/| /' conftest.$ac_ext >&5
40911
40912         eval "$as_ac_var=no"
40913 fi
40914
40915 rm -rf conftest.dSYM
40916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40917       conftest$ac_exeext conftest.$ac_ext
40918 fi
40919 ac_res=`eval 'as_val=${'$as_ac_var'}
40920                  $as_echo "$as_val"'`
40921                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40922 $as_echo "$ac_res" >&6; }
40923 as_val=`eval 'as_val=${'$as_ac_var'}
40924                  $as_echo "$as_val"'`
40925    if test "x$as_val" = x""yes; then
40926   cat >>confdefs.h <<_ACEOF
40927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40928 _ACEOF
40929
40930 fi
40931 done
40932
40933
40934
40935 for ac_func in chflags
40936 do
40937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40939 $as_echo_n "checking for $ac_func... " >&6; }
40940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40941   $as_echo_n "(cached) " >&6
40942 else
40943   cat >conftest.$ac_ext <<_ACEOF
40944 /* confdefs.h.  */
40945 _ACEOF
40946 cat confdefs.h >>conftest.$ac_ext
40947 cat >>conftest.$ac_ext <<_ACEOF
40948 /* end confdefs.h.  */
40949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40951 #define $ac_func innocuous_$ac_func
40952
40953 /* System header to define __stub macros and hopefully few prototypes,
40954     which can conflict with char $ac_func (); below.
40955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40956     <limits.h> exists even on freestanding compilers.  */
40957
40958 #ifdef __STDC__
40959 # include <limits.h>
40960 #else
40961 # include <assert.h>
40962 #endif
40963
40964 #undef $ac_func
40965
40966 /* Override any GCC internal prototype to avoid an error.
40967    Use char because int might match the return type of a GCC
40968    builtin and then its argument prototype would still apply.  */
40969 #ifdef __cplusplus
40970 extern "C"
40971 #endif
40972 char $ac_func ();
40973 /* The GNU C library defines this for functions which it implements
40974     to always fail with ENOSYS.  Some functions are actually named
40975     something starting with __ and the normal name is an alias.  */
40976 #if defined __stub_$ac_func || defined __stub___$ac_func
40977 choke me
40978 #endif
40979
40980 int
40981 main ()
40982 {
40983 return $ac_func ();
40984   ;
40985   return 0;
40986 }
40987 _ACEOF
40988 rm -f conftest.$ac_objext conftest$ac_exeext
40989 if { (ac_try="$ac_link"
40990 case "(($ac_try" in
40991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40992   *) ac_try_echo=$ac_try;;
40993 esac
40994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40995 $as_echo "$ac_try_echo") >&5
40996   (eval "$ac_link") 2>conftest.er1
40997   ac_status=$?
40998   grep -v '^ *+' conftest.er1 >conftest.err
40999   rm -f conftest.er1
41000   cat conftest.err >&5
41001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002   (exit $ac_status); } && {
41003          test -z "$ac_c_werror_flag" ||
41004          test ! -s conftest.err
41005        } && test -s conftest$ac_exeext && {
41006          test "$cross_compiling" = yes ||
41007          $as_test_x conftest$ac_exeext
41008        }; then
41009   eval "$as_ac_var=yes"
41010 else
41011   $as_echo "$as_me: failed program was:" >&5
41012 sed 's/^/| /' conftest.$ac_ext >&5
41013
41014         eval "$as_ac_var=no"
41015 fi
41016
41017 rm -rf conftest.dSYM
41018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41019       conftest$ac_exeext conftest.$ac_ext
41020 fi
41021 ac_res=`eval 'as_val=${'$as_ac_var'}
41022                  $as_echo "$as_val"'`
41023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41024 $as_echo "$ac_res" >&6; }
41025 as_val=`eval 'as_val=${'$as_ac_var'}
41026                  $as_echo "$as_val"'`
41027    if test "x$as_val" = x""yes; then
41028   cat >>confdefs.h <<_ACEOF
41029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41030 _ACEOF
41031
41032 fi
41033 done
41034
41035
41036
41037
41038
41039
41040 for ac_func in snprintf vsnprintf gethostid fseeko
41041 do
41042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41044 $as_echo_n "checking for $ac_func... " >&6; }
41045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41046   $as_echo_n "(cached) " >&6
41047 else
41048   cat >conftest.$ac_ext <<_ACEOF
41049 /* confdefs.h.  */
41050 _ACEOF
41051 cat confdefs.h >>conftest.$ac_ext
41052 cat >>conftest.$ac_ext <<_ACEOF
41053 /* end confdefs.h.  */
41054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41056 #define $ac_func innocuous_$ac_func
41057
41058 /* System header to define __stub macros and hopefully few prototypes,
41059     which can conflict with char $ac_func (); below.
41060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41061     <limits.h> exists even on freestanding compilers.  */
41062
41063 #ifdef __STDC__
41064 # include <limits.h>
41065 #else
41066 # include <assert.h>
41067 #endif
41068
41069 #undef $ac_func
41070
41071 /* Override any GCC internal prototype to avoid an error.
41072    Use char because int might match the return type of a GCC
41073    builtin and then its argument prototype would still apply.  */
41074 #ifdef __cplusplus
41075 extern "C"
41076 #endif
41077 char $ac_func ();
41078 /* The GNU C library defines this for functions which it implements
41079     to always fail with ENOSYS.  Some functions are actually named
41080     something starting with __ and the normal name is an alias.  */
41081 #if defined __stub_$ac_func || defined __stub___$ac_func
41082 choke me
41083 #endif
41084
41085 int
41086 main ()
41087 {
41088 return $ac_func ();
41089   ;
41090   return 0;
41091 }
41092 _ACEOF
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097   *) ac_try_echo=$ac_try;;
41098 esac
41099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41100 $as_echo "$ac_try_echo") >&5
41101   (eval "$ac_link") 2>conftest.er1
41102   ac_status=$?
41103   grep -v '^ *+' conftest.er1 >conftest.err
41104   rm -f conftest.er1
41105   cat conftest.err >&5
41106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107   (exit $ac_status); } && {
41108          test -z "$ac_c_werror_flag" ||
41109          test ! -s conftest.err
41110        } && test -s conftest$ac_exeext && {
41111          test "$cross_compiling" = yes ||
41112          $as_test_x conftest$ac_exeext
41113        }; then
41114   eval "$as_ac_var=yes"
41115 else
41116   $as_echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41118
41119         eval "$as_ac_var=no"
41120 fi
41121
41122 rm -rf conftest.dSYM
41123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41124       conftest$ac_exeext conftest.$ac_ext
41125 fi
41126 ac_res=`eval 'as_val=${'$as_ac_var'}
41127                  $as_echo "$as_val"'`
41128                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41129 $as_echo "$ac_res" >&6; }
41130 as_val=`eval 'as_val=${'$as_ac_var'}
41131                  $as_echo "$as_val"'`
41132    if test "x$as_val" = x""yes; then
41133   cat >>confdefs.h <<_ACEOF
41134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41135 _ACEOF
41136
41137 fi
41138 done
41139
41140
41141 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
41142 $as_echo_n "checking for va_copy... " >&6; }
41143 if test "${ba_cv_va_copy+set}" = set; then
41144   $as_echo_n "(cached) " >&6
41145 else
41146
41147        cat >conftest.$ac_ext <<_ACEOF
41148 /* confdefs.h.  */
41149 _ACEOF
41150 cat confdefs.h >>conftest.$ac_ext
41151 cat >>conftest.$ac_ext <<_ACEOF
41152 /* end confdefs.h.  */
41153
41154               #include <stdarg.h>
41155               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
41156               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
41157
41158 int
41159 main ()
41160 {
41161
41162               call_use_va_copy(1,2,3)
41163
41164   ;
41165   return 0;
41166 }
41167 _ACEOF
41168 rm -f conftest.$ac_objext conftest$ac_exeext
41169 if { (ac_try="$ac_link"
41170 case "(($ac_try" in
41171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41172   *) ac_try_echo=$ac_try;;
41173 esac
41174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41175 $as_echo "$ac_try_echo") >&5
41176   (eval "$ac_link") 2>conftest.er1
41177   ac_status=$?
41178   grep -v '^ *+' conftest.er1 >conftest.err
41179   rm -f conftest.er1
41180   cat conftest.err >&5
41181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); } && {
41183          test -z "$ac_c_werror_flag" ||
41184          test ! -s conftest.err
41185        } && test -s conftest$ac_exeext && {
41186          test "$cross_compiling" = yes ||
41187          $as_test_x conftest$ac_exeext
41188        }; then
41189
41190               ba_cv_va_copy=yes,
41191
41192 else
41193   $as_echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41195
41196
41197               ba_cv_va_copy=no
41198
41199
41200 fi
41201
41202 rm -rf conftest.dSYM
41203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41204       conftest$ac_exeext conftest.$ac_ext
41205
41206
41207 fi
41208 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
41209 $as_echo "$ba_cv_va_copy" >&6; }
41210 test $ba_cv_va_copy = yes &&
41211 cat >>confdefs.h <<\_ACEOF
41212 #define HAVE_VA_COPY 1
41213 _ACEOF
41214
41215
41216
41217
41218
41219
41220 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
41221 do
41222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41224 $as_echo_n "checking for $ac_func... " >&6; }
41225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41226   $as_echo_n "(cached) " >&6
41227 else
41228   cat >conftest.$ac_ext <<_ACEOF
41229 /* confdefs.h.  */
41230 _ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h.  */
41234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41236 #define $ac_func innocuous_$ac_func
41237
41238 /* System header to define __stub macros and hopefully few prototypes,
41239     which can conflict with char $ac_func (); below.
41240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41241     <limits.h> exists even on freestanding compilers.  */
41242
41243 #ifdef __STDC__
41244 # include <limits.h>
41245 #else
41246 # include <assert.h>
41247 #endif
41248
41249 #undef $ac_func
41250
41251 /* Override any GCC internal prototype to avoid an error.
41252    Use char because int might match the return type of a GCC
41253    builtin and then its argument prototype would still apply.  */
41254 #ifdef __cplusplus
41255 extern "C"
41256 #endif
41257 char $ac_func ();
41258 /* The GNU C library defines this for functions which it implements
41259     to always fail with ENOSYS.  Some functions are actually named
41260     something starting with __ and the normal name is an alias.  */
41261 #if defined __stub_$ac_func || defined __stub___$ac_func
41262 choke me
41263 #endif
41264
41265 int
41266 main ()
41267 {
41268 return $ac_func ();
41269   ;
41270   return 0;
41271 }
41272 _ACEOF
41273 rm -f conftest.$ac_objext conftest$ac_exeext
41274 if { (ac_try="$ac_link"
41275 case "(($ac_try" in
41276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41277   *) ac_try_echo=$ac_try;;
41278 esac
41279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41280 $as_echo "$ac_try_echo") >&5
41281   (eval "$ac_link") 2>conftest.er1
41282   ac_status=$?
41283   grep -v '^ *+' conftest.er1 >conftest.err
41284   rm -f conftest.er1
41285   cat conftest.err >&5
41286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287   (exit $ac_status); } && {
41288          test -z "$ac_c_werror_flag" ||
41289          test ! -s conftest.err
41290        } && test -s conftest$ac_exeext && {
41291          test "$cross_compiling" = yes ||
41292          $as_test_x conftest$ac_exeext
41293        }; then
41294   eval "$as_ac_var=yes"
41295 else
41296   $as_echo "$as_me: failed program was:" >&5
41297 sed 's/^/| /' conftest.$ac_ext >&5
41298
41299         eval "$as_ac_var=no"
41300 fi
41301
41302 rm -rf conftest.dSYM
41303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41304       conftest$ac_exeext conftest.$ac_ext
41305 fi
41306 ac_res=`eval 'as_val=${'$as_ac_var'}
41307                  $as_echo "$as_val"'`
41308                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41309 $as_echo "$ac_res" >&6; }
41310 as_val=`eval 'as_val=${'$as_ac_var'}
41311                  $as_echo "$as_val"'`
41312    if test "x$as_val" = x""yes; then
41313   cat >>confdefs.h <<_ACEOF
41314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41315 _ACEOF
41316
41317 fi
41318 done
41319
41320
41321 # If resolver functions are not in libc check for -lnsl or -lresolv.
41322 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
41323 $as_echo_n "checking for gethostbyname_r... " >&6; }
41324 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
41325   $as_echo_n "(cached) " >&6
41326 else
41327   cat >conftest.$ac_ext <<_ACEOF
41328 /* confdefs.h.  */
41329 _ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h.  */
41333 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
41334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41335 #define gethostbyname_r innocuous_gethostbyname_r
41336
41337 /* System header to define __stub macros and hopefully few prototypes,
41338     which can conflict with char gethostbyname_r (); below.
41339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41340     <limits.h> exists even on freestanding compilers.  */
41341
41342 #ifdef __STDC__
41343 # include <limits.h>
41344 #else
41345 # include <assert.h>
41346 #endif
41347
41348 #undef gethostbyname_r
41349
41350 /* Override any GCC internal prototype to avoid an error.
41351    Use char because int might match the return type of a GCC
41352    builtin and then its argument prototype would still apply.  */
41353 #ifdef __cplusplus
41354 extern "C"
41355 #endif
41356 char gethostbyname_r ();
41357 /* The GNU C library defines this for functions which it implements
41358     to always fail with ENOSYS.  Some functions are actually named
41359     something starting with __ and the normal name is an alias.  */
41360 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
41361 choke me
41362 #endif
41363
41364 int
41365 main ()
41366 {
41367 return gethostbyname_r ();
41368   ;
41369   return 0;
41370 }
41371 _ACEOF
41372 rm -f conftest.$ac_objext conftest$ac_exeext
41373 if { (ac_try="$ac_link"
41374 case "(($ac_try" in
41375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41376   *) ac_try_echo=$ac_try;;
41377 esac
41378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41379 $as_echo "$ac_try_echo") >&5
41380   (eval "$ac_link") 2>conftest.er1
41381   ac_status=$?
41382   grep -v '^ *+' conftest.er1 >conftest.err
41383   rm -f conftest.er1
41384   cat conftest.err >&5
41385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); } && {
41387          test -z "$ac_c_werror_flag" ||
41388          test ! -s conftest.err
41389        } && test -s conftest$ac_exeext && {
41390          test "$cross_compiling" = yes ||
41391          $as_test_x conftest$ac_exeext
41392        }; then
41393   ac_cv_func_gethostbyname_r=yes
41394 else
41395   $as_echo "$as_me: failed program was:" >&5
41396 sed 's/^/| /' conftest.$ac_ext >&5
41397
41398         ac_cv_func_gethostbyname_r=no
41399 fi
41400
41401 rm -rf conftest.dSYM
41402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41403       conftest$ac_exeext conftest.$ac_ext
41404 fi
41405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
41406 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
41407 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
41408   { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
41409 $as_echo "using libc's resolver" >&6; }
41410 else
41411
41412 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
41413 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
41414 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
41415   $as_echo_n "(cached) " >&6
41416 else
41417   ac_check_lib_save_LIBS=$LIBS
41418 LIBS="-lnsl  $LIBS"
41419 cat >conftest.$ac_ext <<_ACEOF
41420 /* confdefs.h.  */
41421 _ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h.  */
41425
41426 /* Override any GCC internal prototype to avoid an error.
41427    Use char because int might match the return type of a GCC
41428    builtin and then its argument prototype would still apply.  */
41429 #ifdef __cplusplus
41430 extern "C"
41431 #endif
41432 char gethostbyname_r ();
41433 int
41434 main ()
41435 {
41436 return gethostbyname_r ();
41437   ;
41438   return 0;
41439 }
41440 _ACEOF
41441 rm -f conftest.$ac_objext conftest$ac_exeext
41442 if { (ac_try="$ac_link"
41443 case "(($ac_try" in
41444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41445   *) ac_try_echo=$ac_try;;
41446 esac
41447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41448 $as_echo "$ac_try_echo") >&5
41449   (eval "$ac_link") 2>conftest.er1
41450   ac_status=$?
41451   grep -v '^ *+' conftest.er1 >conftest.err
41452   rm -f conftest.er1
41453   cat conftest.err >&5
41454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455   (exit $ac_status); } && {
41456          test -z "$ac_c_werror_flag" ||
41457          test ! -s conftest.err
41458        } && test -s conftest$ac_exeext && {
41459          test "$cross_compiling" = yes ||
41460          $as_test_x conftest$ac_exeext
41461        }; then
41462   ac_cv_lib_nsl_gethostbyname_r=yes
41463 else
41464   $as_echo "$as_me: failed program was:" >&5
41465 sed 's/^/| /' conftest.$ac_ext >&5
41466
41467         ac_cv_lib_nsl_gethostbyname_r=no
41468 fi
41469
41470 rm -rf conftest.dSYM
41471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41472       conftest$ac_exeext conftest.$ac_ext
41473 LIBS=$ac_check_lib_save_LIBS
41474 fi
41475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
41476 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
41477 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
41478   cat >>confdefs.h <<_ACEOF
41479 #define HAVE_LIBNSL 1
41480 _ACEOF
41481
41482   LIBS="-lnsl $LIBS"
41483
41484 fi
41485
41486
41487 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
41488 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
41489 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
41490   $as_echo_n "(cached) " >&6
41491 else
41492   ac_check_lib_save_LIBS=$LIBS
41493 LIBS="-lresolv  $LIBS"
41494 cat >conftest.$ac_ext <<_ACEOF
41495 /* confdefs.h.  */
41496 _ACEOF
41497 cat confdefs.h >>conftest.$ac_ext
41498 cat >>conftest.$ac_ext <<_ACEOF
41499 /* end confdefs.h.  */
41500
41501 /* Override any GCC internal prototype to avoid an error.
41502    Use char because int might match the return type of a GCC
41503    builtin and then its argument prototype would still apply.  */
41504 #ifdef __cplusplus
41505 extern "C"
41506 #endif
41507 char gethostbyname_r ();
41508 int
41509 main ()
41510 {
41511 return gethostbyname_r ();
41512   ;
41513   return 0;
41514 }
41515 _ACEOF
41516 rm -f conftest.$ac_objext conftest$ac_exeext
41517 if { (ac_try="$ac_link"
41518 case "(($ac_try" in
41519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520   *) ac_try_echo=$ac_try;;
41521 esac
41522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41523 $as_echo "$ac_try_echo") >&5
41524   (eval "$ac_link") 2>conftest.er1
41525   ac_status=$?
41526   grep -v '^ *+' conftest.er1 >conftest.err
41527   rm -f conftest.er1
41528   cat conftest.err >&5
41529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530   (exit $ac_status); } && {
41531          test -z "$ac_c_werror_flag" ||
41532          test ! -s conftest.err
41533        } && test -s conftest$ac_exeext && {
41534          test "$cross_compiling" = yes ||
41535          $as_test_x conftest$ac_exeext
41536        }; then
41537   ac_cv_lib_resolv_gethostbyname_r=yes
41538 else
41539   $as_echo "$as_me: failed program was:" >&5
41540 sed 's/^/| /' conftest.$ac_ext >&5
41541
41542         ac_cv_lib_resolv_gethostbyname_r=no
41543 fi
41544
41545 rm -rf conftest.dSYM
41546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41547       conftest$ac_exeext conftest.$ac_ext
41548 LIBS=$ac_check_lib_save_LIBS
41549 fi
41550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
41551 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
41552 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
41553   cat >>confdefs.h <<_ACEOF
41554 #define HAVE_LIBRESOLV 1
41555 _ACEOF
41556
41557   LIBS="-lresolv $LIBS"
41558
41559 fi
41560
41561 fi
41562
41563
41564
41565 for ac_func in inet_pton
41566 do
41567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41569 $as_echo_n "checking for $ac_func... " >&6; }
41570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41571   $as_echo_n "(cached) " >&6
41572 else
41573   cat >conftest.$ac_ext <<_ACEOF
41574 /* confdefs.h.  */
41575 _ACEOF
41576 cat confdefs.h >>conftest.$ac_ext
41577 cat >>conftest.$ac_ext <<_ACEOF
41578 /* end confdefs.h.  */
41579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41581 #define $ac_func innocuous_$ac_func
41582
41583 /* System header to define __stub macros and hopefully few prototypes,
41584     which can conflict with char $ac_func (); below.
41585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41586     <limits.h> exists even on freestanding compilers.  */
41587
41588 #ifdef __STDC__
41589 # include <limits.h>
41590 #else
41591 # include <assert.h>
41592 #endif
41593
41594 #undef $ac_func
41595
41596 /* Override any GCC internal prototype to avoid an error.
41597    Use char because int might match the return type of a GCC
41598    builtin and then its argument prototype would still apply.  */
41599 #ifdef __cplusplus
41600 extern "C"
41601 #endif
41602 char $ac_func ();
41603 /* The GNU C library defines this for functions which it implements
41604     to always fail with ENOSYS.  Some functions are actually named
41605     something starting with __ and the normal name is an alias.  */
41606 #if defined __stub_$ac_func || defined __stub___$ac_func
41607 choke me
41608 #endif
41609
41610 int
41611 main ()
41612 {
41613 return $ac_func ();
41614   ;
41615   return 0;
41616 }
41617 _ACEOF
41618 rm -f conftest.$ac_objext conftest$ac_exeext
41619 if { (ac_try="$ac_link"
41620 case "(($ac_try" in
41621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41622   *) ac_try_echo=$ac_try;;
41623 esac
41624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41625 $as_echo "$ac_try_echo") >&5
41626   (eval "$ac_link") 2>conftest.er1
41627   ac_status=$?
41628   grep -v '^ *+' conftest.er1 >conftest.err
41629   rm -f conftest.er1
41630   cat conftest.err >&5
41631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632   (exit $ac_status); } && {
41633          test -z "$ac_c_werror_flag" ||
41634          test ! -s conftest.err
41635        } && test -s conftest$ac_exeext && {
41636          test "$cross_compiling" = yes ||
41637          $as_test_x conftest$ac_exeext
41638        }; then
41639   eval "$as_ac_var=yes"
41640 else
41641   $as_echo "$as_me: failed program was:" >&5
41642 sed 's/^/| /' conftest.$ac_ext >&5
41643
41644         eval "$as_ac_var=no"
41645 fi
41646
41647 rm -rf conftest.dSYM
41648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41649       conftest$ac_exeext conftest.$ac_ext
41650 fi
41651 ac_res=`eval 'as_val=${'$as_ac_var'}
41652                  $as_echo "$as_val"'`
41653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41654 $as_echo "$ac_res" >&6; }
41655 as_val=`eval 'as_val=${'$as_ac_var'}
41656                  $as_echo "$as_val"'`
41657    if test "x$as_val" = x""yes; then
41658   cat >>confdefs.h <<_ACEOF
41659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41660 _ACEOF
41661  cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_INET_PTON 1
41663 _ACEOF
41664
41665 fi
41666 done
41667
41668
41669 for ac_func in inet_ntop
41670 do
41671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41673 $as_echo_n "checking for $ac_func... " >&6; }
41674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41675   $as_echo_n "(cached) " >&6
41676 else
41677   cat >conftest.$ac_ext <<_ACEOF
41678 /* confdefs.h.  */
41679 _ACEOF
41680 cat confdefs.h >>conftest.$ac_ext
41681 cat >>conftest.$ac_ext <<_ACEOF
41682 /* end confdefs.h.  */
41683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41685 #define $ac_func innocuous_$ac_func
41686
41687 /* System header to define __stub macros and hopefully few prototypes,
41688     which can conflict with char $ac_func (); below.
41689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41690     <limits.h> exists even on freestanding compilers.  */
41691
41692 #ifdef __STDC__
41693 # include <limits.h>
41694 #else
41695 # include <assert.h>
41696 #endif
41697
41698 #undef $ac_func
41699
41700 /* Override any GCC internal prototype to avoid an error.
41701    Use char because int might match the return type of a GCC
41702    builtin and then its argument prototype would still apply.  */
41703 #ifdef __cplusplus
41704 extern "C"
41705 #endif
41706 char $ac_func ();
41707 /* The GNU C library defines this for functions which it implements
41708     to always fail with ENOSYS.  Some functions are actually named
41709     something starting with __ and the normal name is an alias.  */
41710 #if defined __stub_$ac_func || defined __stub___$ac_func
41711 choke me
41712 #endif
41713
41714 int
41715 main ()
41716 {
41717 return $ac_func ();
41718   ;
41719   return 0;
41720 }
41721 _ACEOF
41722 rm -f conftest.$ac_objext conftest$ac_exeext
41723 if { (ac_try="$ac_link"
41724 case "(($ac_try" in
41725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41726   *) ac_try_echo=$ac_try;;
41727 esac
41728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41729 $as_echo "$ac_try_echo") >&5
41730   (eval "$ac_link") 2>conftest.er1
41731   ac_status=$?
41732   grep -v '^ *+' conftest.er1 >conftest.err
41733   rm -f conftest.er1
41734   cat conftest.err >&5
41735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736   (exit $ac_status); } && {
41737          test -z "$ac_c_werror_flag" ||
41738          test ! -s conftest.err
41739        } && test -s conftest$ac_exeext && {
41740          test "$cross_compiling" = yes ||
41741          $as_test_x conftest$ac_exeext
41742        }; then
41743   eval "$as_ac_var=yes"
41744 else
41745   $as_echo "$as_me: failed program was:" >&5
41746 sed 's/^/| /' conftest.$ac_ext >&5
41747
41748         eval "$as_ac_var=no"
41749 fi
41750
41751 rm -rf conftest.dSYM
41752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41753       conftest$ac_exeext conftest.$ac_ext
41754 fi
41755 ac_res=`eval 'as_val=${'$as_ac_var'}
41756                  $as_echo "$as_val"'`
41757                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41758 $as_echo "$ac_res" >&6; }
41759 as_val=`eval 'as_val=${'$as_ac_var'}
41760                  $as_echo "$as_val"'`
41761    if test "x$as_val" = x""yes; then
41762   cat >>confdefs.h <<_ACEOF
41763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41764 _ACEOF
41765  cat >>confdefs.h <<\_ACEOF
41766 #define HAVE_INET_NTOP 1
41767 _ACEOF
41768
41769 fi
41770 done
41771
41772
41773 for ac_func in gethostbyname2
41774 do
41775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41777 $as_echo_n "checking for $ac_func... " >&6; }
41778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41779   $as_echo_n "(cached) " >&6
41780 else
41781   cat >conftest.$ac_ext <<_ACEOF
41782 /* confdefs.h.  */
41783 _ACEOF
41784 cat confdefs.h >>conftest.$ac_ext
41785 cat >>conftest.$ac_ext <<_ACEOF
41786 /* end confdefs.h.  */
41787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41789 #define $ac_func innocuous_$ac_func
41790
41791 /* System header to define __stub macros and hopefully few prototypes,
41792     which can conflict with char $ac_func (); below.
41793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41794     <limits.h> exists even on freestanding compilers.  */
41795
41796 #ifdef __STDC__
41797 # include <limits.h>
41798 #else
41799 # include <assert.h>
41800 #endif
41801
41802 #undef $ac_func
41803
41804 /* Override any GCC internal prototype to avoid an error.
41805    Use char because int might match the return type of a GCC
41806    builtin and then its argument prototype would still apply.  */
41807 #ifdef __cplusplus
41808 extern "C"
41809 #endif
41810 char $ac_func ();
41811 /* The GNU C library defines this for functions which it implements
41812     to always fail with ENOSYS.  Some functions are actually named
41813     something starting with __ and the normal name is an alias.  */
41814 #if defined __stub_$ac_func || defined __stub___$ac_func
41815 choke me
41816 #endif
41817
41818 int
41819 main ()
41820 {
41821 return $ac_func ();
41822   ;
41823   return 0;
41824 }
41825 _ACEOF
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (ac_try="$ac_link"
41828 case "(($ac_try" in
41829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41830   *) ac_try_echo=$ac_try;;
41831 esac
41832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41833 $as_echo "$ac_try_echo") >&5
41834   (eval "$ac_link") 2>conftest.er1
41835   ac_status=$?
41836   grep -v '^ *+' conftest.er1 >conftest.err
41837   rm -f conftest.er1
41838   cat conftest.err >&5
41839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840   (exit $ac_status); } && {
41841          test -z "$ac_c_werror_flag" ||
41842          test ! -s conftest.err
41843        } && test -s conftest$ac_exeext && {
41844          test "$cross_compiling" = yes ||
41845          $as_test_x conftest$ac_exeext
41846        }; then
41847   eval "$as_ac_var=yes"
41848 else
41849   $as_echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41851
41852         eval "$as_ac_var=no"
41853 fi
41854
41855 rm -rf conftest.dSYM
41856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41857       conftest$ac_exeext conftest.$ac_ext
41858 fi
41859 ac_res=`eval 'as_val=${'$as_ac_var'}
41860                  $as_echo "$as_val"'`
41861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41862 $as_echo "$ac_res" >&6; }
41863 as_val=`eval 'as_val=${'$as_ac_var'}
41864                  $as_echo "$as_val"'`
41865    if test "x$as_val" = x""yes; then
41866   cat >>confdefs.h <<_ACEOF
41867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41868 _ACEOF
41869  cat >>confdefs.h <<\_ACEOF
41870 #define HAVE_GETHOSTBYNAME2 1
41871 _ACEOF
41872
41873 fi
41874 done
41875
41876
41877 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
41878 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
41879 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
41880   $as_echo_n "(cached) " >&6
41881 else
41882
41883        cat >conftest.$ac_ext <<_ACEOF
41884 /* confdefs.h.  */
41885 _ACEOF
41886 cat confdefs.h >>conftest.$ac_ext
41887 cat >>conftest.$ac_ext <<_ACEOF
41888 /* end confdefs.h.  */
41889
41890               #include <sys/socket.h>
41891
41892 int
41893 main ()
41894 {
41895
41896               struct sockaddr s; s.sa_len;
41897
41898   ;
41899   return 0;
41900 }
41901 _ACEOF
41902 rm -f conftest.$ac_objext
41903 if { (ac_try="$ac_compile"
41904 case "(($ac_try" in
41905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41906   *) ac_try_echo=$ac_try;;
41907 esac
41908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41909 $as_echo "$ac_try_echo") >&5
41910   (eval "$ac_compile") 2>conftest.er1
41911   ac_status=$?
41912   grep -v '^ *+' conftest.er1 >conftest.err
41913   rm -f conftest.er1
41914   cat conftest.err >&5
41915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916   (exit $ac_status); } && {
41917          test -z "$ac_c_werror_flag" ||
41918          test ! -s conftest.err
41919        } && test -s conftest.$ac_objext; then
41920
41921              ac_cv_struct_sockaddr_sa_len=yes
41922
41923 else
41924   $as_echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41926
41927         ac_cv_struct_sockaddr_sa_len=no
41928
41929
41930 fi
41931
41932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41933
41934
41935 fi
41936 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
41937 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
41938
41939 if test $ac_cv_struct_sockaddr_sa_len = yes; then
41940
41941 cat >>confdefs.h <<\_ACEOF
41942 #define HAVE_SA_LEN 1
41943 _ACEOF
41944
41945 fi
41946
41947
41948 for ac_func in strftime
41949 do
41950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41952 $as_echo_n "checking for $ac_func... " >&6; }
41953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41954   $as_echo_n "(cached) " >&6
41955 else
41956   cat >conftest.$ac_ext <<_ACEOF
41957 /* confdefs.h.  */
41958 _ACEOF
41959 cat confdefs.h >>conftest.$ac_ext
41960 cat >>conftest.$ac_ext <<_ACEOF
41961 /* end confdefs.h.  */
41962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41964 #define $ac_func innocuous_$ac_func
41965
41966 /* System header to define __stub macros and hopefully few prototypes,
41967     which can conflict with char $ac_func (); below.
41968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41969     <limits.h> exists even on freestanding compilers.  */
41970
41971 #ifdef __STDC__
41972 # include <limits.h>
41973 #else
41974 # include <assert.h>
41975 #endif
41976
41977 #undef $ac_func
41978
41979 /* Override any GCC internal prototype to avoid an error.
41980    Use char because int might match the return type of a GCC
41981    builtin and then its argument prototype would still apply.  */
41982 #ifdef __cplusplus
41983 extern "C"
41984 #endif
41985 char $ac_func ();
41986 /* The GNU C library defines this for functions which it implements
41987     to always fail with ENOSYS.  Some functions are actually named
41988     something starting with __ and the normal name is an alias.  */
41989 #if defined __stub_$ac_func || defined __stub___$ac_func
41990 choke me
41991 #endif
41992
41993 int
41994 main ()
41995 {
41996 return $ac_func ();
41997   ;
41998   return 0;
41999 }
42000 _ACEOF
42001 rm -f conftest.$ac_objext conftest$ac_exeext
42002 if { (ac_try="$ac_link"
42003 case "(($ac_try" in
42004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42005   *) ac_try_echo=$ac_try;;
42006 esac
42007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42008 $as_echo "$ac_try_echo") >&5
42009   (eval "$ac_link") 2>conftest.er1
42010   ac_status=$?
42011   grep -v '^ *+' conftest.er1 >conftest.err
42012   rm -f conftest.er1
42013   cat conftest.err >&5
42014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015   (exit $ac_status); } && {
42016          test -z "$ac_c_werror_flag" ||
42017          test ! -s conftest.err
42018        } && test -s conftest$ac_exeext && {
42019          test "$cross_compiling" = yes ||
42020          $as_test_x conftest$ac_exeext
42021        }; then
42022   eval "$as_ac_var=yes"
42023 else
42024   $as_echo "$as_me: failed program was:" >&5
42025 sed 's/^/| /' conftest.$ac_ext >&5
42026
42027         eval "$as_ac_var=no"
42028 fi
42029
42030 rm -rf conftest.dSYM
42031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42032       conftest$ac_exeext conftest.$ac_ext
42033 fi
42034 ac_res=`eval 'as_val=${'$as_ac_var'}
42035                  $as_echo "$as_val"'`
42036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42037 $as_echo "$ac_res" >&6; }
42038 as_val=`eval 'as_val=${'$as_ac_var'}
42039                  $as_echo "$as_val"'`
42040    if test "x$as_val" = x""yes; then
42041   cat >>confdefs.h <<_ACEOF
42042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42043 _ACEOF
42044
42045 else
42046   # strftime is in -lintl on SCO UNIX.
42047 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42048 $as_echo_n "checking for strftime in -lintl... " >&6; }
42049 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42050   $as_echo_n "(cached) " >&6
42051 else
42052   ac_check_lib_save_LIBS=$LIBS
42053 LIBS="-lintl  $LIBS"
42054 cat >conftest.$ac_ext <<_ACEOF
42055 /* confdefs.h.  */
42056 _ACEOF
42057 cat confdefs.h >>conftest.$ac_ext
42058 cat >>conftest.$ac_ext <<_ACEOF
42059 /* end confdefs.h.  */
42060
42061 /* Override any GCC internal prototype to avoid an error.
42062    Use char because int might match the return type of a GCC
42063    builtin and then its argument prototype would still apply.  */
42064 #ifdef __cplusplus
42065 extern "C"
42066 #endif
42067 char strftime ();
42068 int
42069 main ()
42070 {
42071 return strftime ();
42072   ;
42073   return 0;
42074 }
42075 _ACEOF
42076 rm -f conftest.$ac_objext conftest$ac_exeext
42077 if { (ac_try="$ac_link"
42078 case "(($ac_try" in
42079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42080   *) ac_try_echo=$ac_try;;
42081 esac
42082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42083 $as_echo "$ac_try_echo") >&5
42084   (eval "$ac_link") 2>conftest.er1
42085   ac_status=$?
42086   grep -v '^ *+' conftest.er1 >conftest.err
42087   rm -f conftest.er1
42088   cat conftest.err >&5
42089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090   (exit $ac_status); } && {
42091          test -z "$ac_c_werror_flag" ||
42092          test ! -s conftest.err
42093        } && test -s conftest$ac_exeext && {
42094          test "$cross_compiling" = yes ||
42095          $as_test_x conftest$ac_exeext
42096        }; then
42097   ac_cv_lib_intl_strftime=yes
42098 else
42099   $as_echo "$as_me: failed program was:" >&5
42100 sed 's/^/| /' conftest.$ac_ext >&5
42101
42102         ac_cv_lib_intl_strftime=no
42103 fi
42104
42105 rm -rf conftest.dSYM
42106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42107       conftest$ac_exeext conftest.$ac_ext
42108 LIBS=$ac_check_lib_save_LIBS
42109 fi
42110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42111 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
42112 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
42113   cat >>confdefs.h <<\_ACEOF
42114 #define HAVE_STRFTIME 1
42115 _ACEOF
42116
42117 LIBS="-lintl $LIBS"
42118 fi
42119
42120 fi
42121 done
42122
42123
42124 for ac_func in vprintf
42125 do
42126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42127 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42128 $as_echo_n "checking for $ac_func... " >&6; }
42129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42130   $as_echo_n "(cached) " >&6
42131 else
42132   cat >conftest.$ac_ext <<_ACEOF
42133 /* confdefs.h.  */
42134 _ACEOF
42135 cat confdefs.h >>conftest.$ac_ext
42136 cat >>conftest.$ac_ext <<_ACEOF
42137 /* end confdefs.h.  */
42138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42140 #define $ac_func innocuous_$ac_func
42141
42142 /* System header to define __stub macros and hopefully few prototypes,
42143     which can conflict with char $ac_func (); below.
42144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42145     <limits.h> exists even on freestanding compilers.  */
42146
42147 #ifdef __STDC__
42148 # include <limits.h>
42149 #else
42150 # include <assert.h>
42151 #endif
42152
42153 #undef $ac_func
42154
42155 /* Override any GCC internal prototype to avoid an error.
42156    Use char because int might match the return type of a GCC
42157    builtin and then its argument prototype would still apply.  */
42158 #ifdef __cplusplus
42159 extern "C"
42160 #endif
42161 char $ac_func ();
42162 /* The GNU C library defines this for functions which it implements
42163     to always fail with ENOSYS.  Some functions are actually named
42164     something starting with __ and the normal name is an alias.  */
42165 #if defined __stub_$ac_func || defined __stub___$ac_func
42166 choke me
42167 #endif
42168
42169 int
42170 main ()
42171 {
42172 return $ac_func ();
42173   ;
42174   return 0;
42175 }
42176 _ACEOF
42177 rm -f conftest.$ac_objext conftest$ac_exeext
42178 if { (ac_try="$ac_link"
42179 case "(($ac_try" in
42180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42181   *) ac_try_echo=$ac_try;;
42182 esac
42183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42184 $as_echo "$ac_try_echo") >&5
42185   (eval "$ac_link") 2>conftest.er1
42186   ac_status=$?
42187   grep -v '^ *+' conftest.er1 >conftest.err
42188   rm -f conftest.er1
42189   cat conftest.err >&5
42190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191   (exit $ac_status); } && {
42192          test -z "$ac_c_werror_flag" ||
42193          test ! -s conftest.err
42194        } && test -s conftest$ac_exeext && {
42195          test "$cross_compiling" = yes ||
42196          $as_test_x conftest$ac_exeext
42197        }; then
42198   eval "$as_ac_var=yes"
42199 else
42200   $as_echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42202
42203         eval "$as_ac_var=no"
42204 fi
42205
42206 rm -rf conftest.dSYM
42207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42208       conftest$ac_exeext conftest.$ac_ext
42209 fi
42210 ac_res=`eval 'as_val=${'$as_ac_var'}
42211                  $as_echo "$as_val"'`
42212                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42213 $as_echo "$ac_res" >&6; }
42214 as_val=`eval 'as_val=${'$as_ac_var'}
42215                  $as_echo "$as_val"'`
42216    if test "x$as_val" = x""yes; then
42217   cat >>confdefs.h <<_ACEOF
42218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42219 _ACEOF
42220
42221 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
42222 $as_echo_n "checking for _doprnt... " >&6; }
42223 if test "${ac_cv_func__doprnt+set}" = set; then
42224   $as_echo_n "(cached) " >&6
42225 else
42226   cat >conftest.$ac_ext <<_ACEOF
42227 /* confdefs.h.  */
42228 _ACEOF
42229 cat confdefs.h >>conftest.$ac_ext
42230 cat >>conftest.$ac_ext <<_ACEOF
42231 /* end confdefs.h.  */
42232 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42234 #define _doprnt innocuous__doprnt
42235
42236 /* System header to define __stub macros and hopefully few prototypes,
42237     which can conflict with char _doprnt (); below.
42238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42239     <limits.h> exists even on freestanding compilers.  */
42240
42241 #ifdef __STDC__
42242 # include <limits.h>
42243 #else
42244 # include <assert.h>
42245 #endif
42246
42247 #undef _doprnt
42248
42249 /* Override any GCC internal prototype to avoid an error.
42250    Use char because int might match the return type of a GCC
42251    builtin and then its argument prototype would still apply.  */
42252 #ifdef __cplusplus
42253 extern "C"
42254 #endif
42255 char _doprnt ();
42256 /* The GNU C library defines this for functions which it implements
42257     to always fail with ENOSYS.  Some functions are actually named
42258     something starting with __ and the normal name is an alias.  */
42259 #if defined __stub__doprnt || defined __stub____doprnt
42260 choke me
42261 #endif
42262
42263 int
42264 main ()
42265 {
42266 return _doprnt ();
42267   ;
42268   return 0;
42269 }
42270 _ACEOF
42271 rm -f conftest.$ac_objext conftest$ac_exeext
42272 if { (ac_try="$ac_link"
42273 case "(($ac_try" in
42274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42275   *) ac_try_echo=$ac_try;;
42276 esac
42277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42278 $as_echo "$ac_try_echo") >&5
42279   (eval "$ac_link") 2>conftest.er1
42280   ac_status=$?
42281   grep -v '^ *+' conftest.er1 >conftest.err
42282   rm -f conftest.er1
42283   cat conftest.err >&5
42284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); } && {
42286          test -z "$ac_c_werror_flag" ||
42287          test ! -s conftest.err
42288        } && test -s conftest$ac_exeext && {
42289          test "$cross_compiling" = yes ||
42290          $as_test_x conftest$ac_exeext
42291        }; then
42292   ac_cv_func__doprnt=yes
42293 else
42294   $as_echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42296
42297         ac_cv_func__doprnt=no
42298 fi
42299
42300 rm -rf conftest.dSYM
42301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42302       conftest$ac_exeext conftest.$ac_ext
42303 fi
42304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42305 $as_echo "$ac_cv_func__doprnt" >&6; }
42306 if test "x$ac_cv_func__doprnt" = x""yes; then
42307
42308 cat >>confdefs.h <<\_ACEOF
42309 #define HAVE_DOPRNT 1
42310 _ACEOF
42311
42312 fi
42313
42314 fi
42315 done
42316
42317
42318 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
42319 # for constant arguments.  Useless!
42320 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
42321 $as_echo_n "checking for working alloca.h... " >&6; }
42322 if test "${ac_cv_working_alloca_h+set}" = set; then
42323   $as_echo_n "(cached) " >&6
42324 else
42325   cat >conftest.$ac_ext <<_ACEOF
42326 /* confdefs.h.  */
42327 _ACEOF
42328 cat confdefs.h >>conftest.$ac_ext
42329 cat >>conftest.$ac_ext <<_ACEOF
42330 /* end confdefs.h.  */
42331 #include <alloca.h>
42332 int
42333 main ()
42334 {
42335 char *p = (char *) alloca (2 * sizeof (int));
42336                           if (p) return 0;
42337   ;
42338   return 0;
42339 }
42340 _ACEOF
42341 rm -f conftest.$ac_objext conftest$ac_exeext
42342 if { (ac_try="$ac_link"
42343 case "(($ac_try" in
42344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42345   *) ac_try_echo=$ac_try;;
42346 esac
42347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42348 $as_echo "$ac_try_echo") >&5
42349   (eval "$ac_link") 2>conftest.er1
42350   ac_status=$?
42351   grep -v '^ *+' conftest.er1 >conftest.err
42352   rm -f conftest.er1
42353   cat conftest.err >&5
42354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355   (exit $ac_status); } && {
42356          test -z "$ac_c_werror_flag" ||
42357          test ! -s conftest.err
42358        } && test -s conftest$ac_exeext && {
42359          test "$cross_compiling" = yes ||
42360          $as_test_x conftest$ac_exeext
42361        }; then
42362   ac_cv_working_alloca_h=yes
42363 else
42364   $as_echo "$as_me: failed program was:" >&5
42365 sed 's/^/| /' conftest.$ac_ext >&5
42366
42367         ac_cv_working_alloca_h=no
42368 fi
42369
42370 rm -rf conftest.dSYM
42371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42372       conftest$ac_exeext conftest.$ac_ext
42373 fi
42374 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
42375 $as_echo "$ac_cv_working_alloca_h" >&6; }
42376 if test $ac_cv_working_alloca_h = yes; then
42377
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_ALLOCA_H 1
42380 _ACEOF
42381
42382 fi
42383
42384 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
42385 $as_echo_n "checking for alloca... " >&6; }
42386 if test "${ac_cv_func_alloca_works+set}" = set; then
42387   $as_echo_n "(cached) " >&6
42388 else
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 #ifdef __GNUC__
42396 # define alloca __builtin_alloca
42397 #else
42398 # ifdef _MSC_VER
42399 #  include <malloc.h>
42400 #  define alloca _alloca
42401 # else
42402 #  ifdef HAVE_ALLOCA_H
42403 #   include <alloca.h>
42404 #  else
42405 #   ifdef _AIX
42406  #pragma alloca
42407 #   else
42408 #    ifndef alloca /* predefined by HP cc +Olibcalls */
42409 char *alloca ();
42410 #    endif
42411 #   endif
42412 #  endif
42413 # endif
42414 #endif
42415
42416 int
42417 main ()
42418 {
42419 char *p = (char *) alloca (1);
42420                                     if (p) return 0;
42421   ;
42422   return 0;
42423 }
42424 _ACEOF
42425 rm -f conftest.$ac_objext conftest$ac_exeext
42426 if { (ac_try="$ac_link"
42427 case "(($ac_try" in
42428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429   *) ac_try_echo=$ac_try;;
42430 esac
42431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42432 $as_echo "$ac_try_echo") >&5
42433   (eval "$ac_link") 2>conftest.er1
42434   ac_status=$?
42435   grep -v '^ *+' conftest.er1 >conftest.err
42436   rm -f conftest.er1
42437   cat conftest.err >&5
42438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439   (exit $ac_status); } && {
42440          test -z "$ac_c_werror_flag" ||
42441          test ! -s conftest.err
42442        } && test -s conftest$ac_exeext && {
42443          test "$cross_compiling" = yes ||
42444          $as_test_x conftest$ac_exeext
42445        }; then
42446   ac_cv_func_alloca_works=yes
42447 else
42448   $as_echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42450
42451         ac_cv_func_alloca_works=no
42452 fi
42453
42454 rm -rf conftest.dSYM
42455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42456       conftest$ac_exeext conftest.$ac_ext
42457 fi
42458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
42459 $as_echo "$ac_cv_func_alloca_works" >&6; }
42460
42461 if test $ac_cv_func_alloca_works = yes; then
42462
42463 cat >>confdefs.h <<\_ACEOF
42464 #define HAVE_ALLOCA 1
42465 _ACEOF
42466
42467 else
42468   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42469 # that cause trouble.  Some versions do not even contain alloca or
42470 # contain a buggy version.  If you still want to use their alloca,
42471 # use ar to extract alloca.o from them instead of compiling alloca.c.
42472
42473 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
42474
42475 cat >>confdefs.h <<\_ACEOF
42476 #define C_ALLOCA 1
42477 _ACEOF
42478
42479
42480 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
42481 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
42482 if test "${ac_cv_os_cray+set}" = set; then
42483   $as_echo_n "(cached) " >&6
42484 else
42485   cat >conftest.$ac_ext <<_ACEOF
42486 /* confdefs.h.  */
42487 _ACEOF
42488 cat confdefs.h >>conftest.$ac_ext
42489 cat >>conftest.$ac_ext <<_ACEOF
42490 /* end confdefs.h.  */
42491 #if defined CRAY && ! defined CRAY2
42492 webecray
42493 #else
42494 wenotbecray
42495 #endif
42496
42497 _ACEOF
42498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42499   $EGREP "webecray" >/dev/null 2>&1; then
42500   ac_cv_os_cray=yes
42501 else
42502   ac_cv_os_cray=no
42503 fi
42504 rm -f conftest*
42505
42506 fi
42507 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
42508 $as_echo "$ac_cv_os_cray" >&6; }
42509 if test $ac_cv_os_cray = yes; then
42510   for ac_func in _getb67 GETB67 getb67; do
42511     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42513 $as_echo_n "checking for $ac_func... " >&6; }
42514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42515   $as_echo_n "(cached) " >&6
42516 else
42517   cat >conftest.$ac_ext <<_ACEOF
42518 /* confdefs.h.  */
42519 _ACEOF
42520 cat confdefs.h >>conftest.$ac_ext
42521 cat >>conftest.$ac_ext <<_ACEOF
42522 /* end confdefs.h.  */
42523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42525 #define $ac_func innocuous_$ac_func
42526
42527 /* System header to define __stub macros and hopefully few prototypes,
42528     which can conflict with char $ac_func (); below.
42529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42530     <limits.h> exists even on freestanding compilers.  */
42531
42532 #ifdef __STDC__
42533 # include <limits.h>
42534 #else
42535 # include <assert.h>
42536 #endif
42537
42538 #undef $ac_func
42539
42540 /* Override any GCC internal prototype to avoid an error.
42541    Use char because int might match the return type of a GCC
42542    builtin and then its argument prototype would still apply.  */
42543 #ifdef __cplusplus
42544 extern "C"
42545 #endif
42546 char $ac_func ();
42547 /* The GNU C library defines this for functions which it implements
42548     to always fail with ENOSYS.  Some functions are actually named
42549     something starting with __ and the normal name is an alias.  */
42550 #if defined __stub_$ac_func || defined __stub___$ac_func
42551 choke me
42552 #endif
42553
42554 int
42555 main ()
42556 {
42557 return $ac_func ();
42558   ;
42559   return 0;
42560 }
42561 _ACEOF
42562 rm -f conftest.$ac_objext conftest$ac_exeext
42563 if { (ac_try="$ac_link"
42564 case "(($ac_try" in
42565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42566   *) ac_try_echo=$ac_try;;
42567 esac
42568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42569 $as_echo "$ac_try_echo") >&5
42570   (eval "$ac_link") 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } && {
42577          test -z "$ac_c_werror_flag" ||
42578          test ! -s conftest.err
42579        } && test -s conftest$ac_exeext && {
42580          test "$cross_compiling" = yes ||
42581          $as_test_x conftest$ac_exeext
42582        }; then
42583   eval "$as_ac_var=yes"
42584 else
42585   $as_echo "$as_me: failed program was:" >&5
42586 sed 's/^/| /' conftest.$ac_ext >&5
42587
42588         eval "$as_ac_var=no"
42589 fi
42590
42591 rm -rf conftest.dSYM
42592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42593       conftest$ac_exeext conftest.$ac_ext
42594 fi
42595 ac_res=`eval 'as_val=${'$as_ac_var'}
42596                  $as_echo "$as_val"'`
42597                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42598 $as_echo "$ac_res" >&6; }
42599 as_val=`eval 'as_val=${'$as_ac_var'}
42600                  $as_echo "$as_val"'`
42601    if test "x$as_val" = x""yes; then
42602
42603 cat >>confdefs.h <<_ACEOF
42604 #define CRAY_STACKSEG_END $ac_func
42605 _ACEOF
42606
42607     break
42608 fi
42609
42610   done
42611 fi
42612
42613 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
42614 $as_echo_n "checking stack direction for C alloca... " >&6; }
42615 if test "${ac_cv_c_stack_direction+set}" = set; then
42616   $as_echo_n "(cached) " >&6
42617 else
42618   if test "$cross_compiling" = yes; then
42619   ac_cv_c_stack_direction=0
42620 else
42621   cat >conftest.$ac_ext <<_ACEOF
42622 /* confdefs.h.  */
42623 _ACEOF
42624 cat confdefs.h >>conftest.$ac_ext
42625 cat >>conftest.$ac_ext <<_ACEOF
42626 /* end confdefs.h.  */
42627 $ac_includes_default
42628 int
42629 find_stack_direction ()
42630 {
42631   static char *addr = 0;
42632   auto char dummy;
42633   if (addr == 0)
42634     {
42635       addr = &dummy;
42636       return find_stack_direction ();
42637     }
42638   else
42639     return (&dummy > addr) ? 1 : -1;
42640 }
42641
42642 int
42643 main ()
42644 {
42645   return find_stack_direction () < 0;
42646 }
42647 _ACEOF
42648 rm -f conftest$ac_exeext
42649 if { (ac_try="$ac_link"
42650 case "(($ac_try" in
42651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42652   *) ac_try_echo=$ac_try;;
42653 esac
42654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42655 $as_echo "$ac_try_echo") >&5
42656   (eval "$ac_link") 2>&5
42657   ac_status=$?
42658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42660   { (case "(($ac_try" in
42661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42662   *) ac_try_echo=$ac_try;;
42663 esac
42664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42665 $as_echo "$ac_try_echo") >&5
42666   (eval "$ac_try") 2>&5
42667   ac_status=$?
42668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669   (exit $ac_status); }; }; then
42670   ac_cv_c_stack_direction=1
42671 else
42672   $as_echo "$as_me: program exited with status $ac_status" >&5
42673 $as_echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42675
42676 ( exit $ac_status )
42677 ac_cv_c_stack_direction=-1
42678 fi
42679 rm -rf conftest.dSYM
42680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42681 fi
42682
42683
42684 fi
42685 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
42686 $as_echo "$ac_cv_c_stack_direction" >&6; }
42687
42688 cat >>confdefs.h <<_ACEOF
42689 #define STACK_DIRECTION $ac_cv_c_stack_direction
42690 _ACEOF
42691
42692
42693 fi
42694
42695 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
42696 # -lseq on Dynix/PTX, -lgen on Unixware.
42697 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
42698 $as_echo_n "checking for library containing getmntent... " >&6; }
42699 if test "${ac_cv_search_getmntent+set}" = set; then
42700   $as_echo_n "(cached) " >&6
42701 else
42702   ac_func_search_save_LIBS=$LIBS
42703 cat >conftest.$ac_ext <<_ACEOF
42704 /* confdefs.h.  */
42705 _ACEOF
42706 cat confdefs.h >>conftest.$ac_ext
42707 cat >>conftest.$ac_ext <<_ACEOF
42708 /* end confdefs.h.  */
42709
42710 /* Override any GCC internal prototype to avoid an error.
42711    Use char because int might match the return type of a GCC
42712    builtin and then its argument prototype would still apply.  */
42713 #ifdef __cplusplus
42714 extern "C"
42715 #endif
42716 char getmntent ();
42717 int
42718 main ()
42719 {
42720 return getmntent ();
42721   ;
42722   return 0;
42723 }
42724 _ACEOF
42725 for ac_lib in '' sun seq gen; do
42726   if test -z "$ac_lib"; then
42727     ac_res="none required"
42728   else
42729     ac_res=-l$ac_lib
42730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42731   fi
42732   rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736   *) ac_try_echo=$ac_try;;
42737 esac
42738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42739 $as_echo "$ac_try_echo") >&5
42740   (eval "$ac_link") 2>conftest.er1
42741   ac_status=$?
42742   grep -v '^ *+' conftest.er1 >conftest.err
42743   rm -f conftest.er1
42744   cat conftest.err >&5
42745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); } && {
42747          test -z "$ac_c_werror_flag" ||
42748          test ! -s conftest.err
42749        } && test -s conftest$ac_exeext && {
42750          test "$cross_compiling" = yes ||
42751          $as_test_x conftest$ac_exeext
42752        }; then
42753   ac_cv_search_getmntent=$ac_res
42754 else
42755   $as_echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42757
42758
42759 fi
42760
42761 rm -rf conftest.dSYM
42762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42763       conftest$ac_exeext
42764   if test "${ac_cv_search_getmntent+set}" = set; then
42765   break
42766 fi
42767 done
42768 if test "${ac_cv_search_getmntent+set}" = set; then
42769   :
42770 else
42771   ac_cv_search_getmntent=no
42772 fi
42773 rm conftest.$ac_ext
42774 LIBS=$ac_func_search_save_LIBS
42775 fi
42776 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
42777 $as_echo "$ac_cv_search_getmntent" >&6; }
42778 ac_res=$ac_cv_search_getmntent
42779 if test "$ac_res" != no; then
42780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42781   ac_cv_func_getmntent=yes
42782
42783 cat >>confdefs.h <<\_ACEOF
42784 #define HAVE_GETMNTENT 1
42785 _ACEOF
42786
42787 else
42788   ac_cv_func_getmntent=no
42789 fi
42790
42791
42792
42793 for ac_func in getmntinfo
42794 do
42795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42797 $as_echo_n "checking for $ac_func... " >&6; }
42798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42799   $as_echo_n "(cached) " >&6
42800 else
42801   cat >conftest.$ac_ext <<_ACEOF
42802 /* confdefs.h.  */
42803 _ACEOF
42804 cat confdefs.h >>conftest.$ac_ext
42805 cat >>conftest.$ac_ext <<_ACEOF
42806 /* end confdefs.h.  */
42807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42809 #define $ac_func innocuous_$ac_func
42810
42811 /* System header to define __stub macros and hopefully few prototypes,
42812     which can conflict with char $ac_func (); below.
42813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42814     <limits.h> exists even on freestanding compilers.  */
42815
42816 #ifdef __STDC__
42817 # include <limits.h>
42818 #else
42819 # include <assert.h>
42820 #endif
42821
42822 #undef $ac_func
42823
42824 /* Override any GCC internal prototype to avoid an error.
42825    Use char because int might match the return type of a GCC
42826    builtin and then its argument prototype would still apply.  */
42827 #ifdef __cplusplus
42828 extern "C"
42829 #endif
42830 char $ac_func ();
42831 /* The GNU C library defines this for functions which it implements
42832     to always fail with ENOSYS.  Some functions are actually named
42833     something starting with __ and the normal name is an alias.  */
42834 #if defined __stub_$ac_func || defined __stub___$ac_func
42835 choke me
42836 #endif
42837
42838 int
42839 main ()
42840 {
42841 return $ac_func ();
42842   ;
42843   return 0;
42844 }
42845 _ACEOF
42846 rm -f conftest.$ac_objext conftest$ac_exeext
42847 if { (ac_try="$ac_link"
42848 case "(($ac_try" in
42849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42850   *) ac_try_echo=$ac_try;;
42851 esac
42852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42853 $as_echo "$ac_try_echo") >&5
42854   (eval "$ac_link") 2>conftest.er1
42855   ac_status=$?
42856   grep -v '^ *+' conftest.er1 >conftest.err
42857   rm -f conftest.er1
42858   cat conftest.err >&5
42859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860   (exit $ac_status); } && {
42861          test -z "$ac_c_werror_flag" ||
42862          test ! -s conftest.err
42863        } && test -s conftest$ac_exeext && {
42864          test "$cross_compiling" = yes ||
42865          $as_test_x conftest$ac_exeext
42866        }; then
42867   eval "$as_ac_var=yes"
42868 else
42869   $as_echo "$as_me: failed program was:" >&5
42870 sed 's/^/| /' conftest.$ac_ext >&5
42871
42872         eval "$as_ac_var=no"
42873 fi
42874
42875 rm -rf conftest.dSYM
42876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42877       conftest$ac_exeext conftest.$ac_ext
42878 fi
42879 ac_res=`eval 'as_val=${'$as_ac_var'}
42880                  $as_echo "$as_val"'`
42881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42882 $as_echo "$ac_res" >&6; }
42883 as_val=`eval 'as_val=${'$as_ac_var'}
42884                  $as_echo "$as_val"'`
42885    if test "x$as_val" = x""yes; then
42886   cat >>confdefs.h <<_ACEOF
42887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42888 _ACEOF
42889  cat >>confdefs.h <<\_ACEOF
42890 #define HAVE_GETMNTINFO 1
42891 _ACEOF
42892
42893 fi
42894 done
42895
42896 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
42897 $as_echo_n "checking whether closedir returns void... " >&6; }
42898 if test "${ac_cv_func_closedir_void+set}" = set; then
42899   $as_echo_n "(cached) " >&6
42900 else
42901   if test "$cross_compiling" = yes; then
42902   ac_cv_func_closedir_void=yes
42903 else
42904   cat >conftest.$ac_ext <<_ACEOF
42905 /* confdefs.h.  */
42906 _ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h.  */
42910 $ac_includes_default
42911 #include <$ac_header_dirent>
42912 #ifndef __cplusplus
42913 int closedir ();
42914 #endif
42915
42916 int
42917 main ()
42918 {
42919 return closedir (opendir (".")) != 0;
42920   ;
42921   return 0;
42922 }
42923 _ACEOF
42924 rm -f conftest$ac_exeext
42925 if { (ac_try="$ac_link"
42926 case "(($ac_try" in
42927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42928   *) ac_try_echo=$ac_try;;
42929 esac
42930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42931 $as_echo "$ac_try_echo") >&5
42932   (eval "$ac_link") 2>&5
42933   ac_status=$?
42934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42936   { (case "(($ac_try" in
42937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42938   *) ac_try_echo=$ac_try;;
42939 esac
42940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42941 $as_echo "$ac_try_echo") >&5
42942   (eval "$ac_try") 2>&5
42943   ac_status=$?
42944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945   (exit $ac_status); }; }; then
42946   ac_cv_func_closedir_void=no
42947 else
42948   $as_echo "$as_me: program exited with status $ac_status" >&5
42949 $as_echo "$as_me: failed program was:" >&5
42950 sed 's/^/| /' conftest.$ac_ext >&5
42951
42952 ( exit $ac_status )
42953 ac_cv_func_closedir_void=yes
42954 fi
42955 rm -rf conftest.dSYM
42956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42957 fi
42958
42959
42960 fi
42961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
42962 $as_echo "$ac_cv_func_closedir_void" >&6; }
42963 if test $ac_cv_func_closedir_void = yes; then
42964
42965 cat >>confdefs.h <<\_ACEOF
42966 #define CLOSEDIR_VOID 1
42967 _ACEOF
42968
42969 fi
42970
42971 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42972 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42974   $as_echo_n "(cached) " >&6
42975 else
42976   if test "$cross_compiling" = yes; then
42977   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42978 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42979    { (exit 1); exit 1; }; }
42980 else
42981   cat >conftest.$ac_ext <<_ACEOF
42982 /* confdefs.h.  */
42983 _ACEOF
42984 cat confdefs.h >>conftest.$ac_ext
42985 cat >>conftest.$ac_ext <<_ACEOF
42986 /* end confdefs.h.  */
42987 $ac_includes_default
42988 int
42989 main ()
42990 {
42991 /* If this system has a BSD-style setpgrp which takes arguments,
42992   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42993   exit successfully. */
42994   return setpgrp (1,1) != -1;
42995   ;
42996   return 0;
42997 }
42998 _ACEOF
42999 rm -f conftest$ac_exeext
43000 if { (ac_try="$ac_link"
43001 case "(($ac_try" in
43002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43003   *) ac_try_echo=$ac_try;;
43004 esac
43005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43006 $as_echo "$ac_try_echo") >&5
43007   (eval "$ac_link") 2>&5
43008   ac_status=$?
43009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43011   { (case "(($ac_try" in
43012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43013   *) ac_try_echo=$ac_try;;
43014 esac
43015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43016 $as_echo "$ac_try_echo") >&5
43017   (eval "$ac_try") 2>&5
43018   ac_status=$?
43019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020   (exit $ac_status); }; }; then
43021   ac_cv_func_setpgrp_void=no
43022 else
43023   $as_echo "$as_me: program exited with status $ac_status" >&5
43024 $as_echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43026
43027 ( exit $ac_status )
43028 ac_cv_func_setpgrp_void=yes
43029 fi
43030 rm -rf conftest.dSYM
43031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43032 fi
43033
43034
43035 fi
43036 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
43037 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
43038 if test $ac_cv_func_setpgrp_void = yes; then
43039
43040 cat >>confdefs.h <<\_ACEOF
43041 #define SETPGRP_VOID 1
43042 _ACEOF
43043
43044 fi
43045             # AC_FUNC_FNMATCH    dnl use local version
43046
43047 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
43048 $as_echo_n "checking for gettext in -lintl... " >&6; }
43049 if test "${ac_cv_lib_intl_gettext+set}" = set; then
43050   $as_echo_n "(cached) " >&6
43051 else
43052   ac_check_lib_save_LIBS=$LIBS
43053 LIBS="-lintl  $LIBS"
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
43061 /* Override any GCC internal prototype to avoid an error.
43062    Use char because int might match the return type of a GCC
43063    builtin and then its argument prototype would still apply.  */
43064 #ifdef __cplusplus
43065 extern "C"
43066 #endif
43067 char gettext ();
43068 int
43069 main ()
43070 {
43071 return gettext ();
43072   ;
43073   return 0;
43074 }
43075 _ACEOF
43076 rm -f conftest.$ac_objext conftest$ac_exeext
43077 if { (ac_try="$ac_link"
43078 case "(($ac_try" in
43079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43080   *) ac_try_echo=$ac_try;;
43081 esac
43082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43083 $as_echo "$ac_try_echo") >&5
43084   (eval "$ac_link") 2>conftest.er1
43085   ac_status=$?
43086   grep -v '^ *+' conftest.er1 >conftest.err
43087   rm -f conftest.er1
43088   cat conftest.err >&5
43089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090   (exit $ac_status); } && {
43091          test -z "$ac_c_werror_flag" ||
43092          test ! -s conftest.err
43093        } && test -s conftest$ac_exeext && {
43094          test "$cross_compiling" = yes ||
43095          $as_test_x conftest$ac_exeext
43096        }; then
43097   ac_cv_lib_intl_gettext=yes
43098 else
43099   $as_echo "$as_me: failed program was:" >&5
43100 sed 's/^/| /' conftest.$ac_ext >&5
43101
43102         ac_cv_lib_intl_gettext=no
43103 fi
43104
43105 rm -rf conftest.dSYM
43106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43107       conftest$ac_exeext conftest.$ac_ext
43108 LIBS=$ac_check_lib_save_LIBS
43109 fi
43110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
43111 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
43112 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
43113   LIBS="$LIBS -lintl"
43114 fi
43115
43116
43117
43118 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
43119 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
43120 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
43121   $as_echo_n "(cached) " >&6
43122 else
43123   ac_check_lib_save_LIBS=$LIBS
43124 LIBS="-lsun  $LIBS"
43125 cat >conftest.$ac_ext <<_ACEOF
43126 /* confdefs.h.  */
43127 _ACEOF
43128 cat confdefs.h >>conftest.$ac_ext
43129 cat >>conftest.$ac_ext <<_ACEOF
43130 /* end confdefs.h.  */
43131
43132 /* Override any GCC internal prototype to avoid an error.
43133    Use char because int might match the return type of a GCC
43134    builtin and then its argument prototype would still apply.  */
43135 #ifdef __cplusplus
43136 extern "C"
43137 #endif
43138 char getpwnam ();
43139 int
43140 main ()
43141 {
43142 return getpwnam ();
43143   ;
43144   return 0;
43145 }
43146 _ACEOF
43147 rm -f conftest.$ac_objext conftest$ac_exeext
43148 if { (ac_try="$ac_link"
43149 case "(($ac_try" in
43150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43151   *) ac_try_echo=$ac_try;;
43152 esac
43153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43154 $as_echo "$ac_try_echo") >&5
43155   (eval "$ac_link") 2>conftest.er1
43156   ac_status=$?
43157   grep -v '^ *+' conftest.er1 >conftest.err
43158   rm -f conftest.er1
43159   cat conftest.err >&5
43160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43161   (exit $ac_status); } && {
43162          test -z "$ac_c_werror_flag" ||
43163          test ! -s conftest.err
43164        } && test -s conftest$ac_exeext && {
43165          test "$cross_compiling" = yes ||
43166          $as_test_x conftest$ac_exeext
43167        }; then
43168   ac_cv_lib_sun_getpwnam=yes
43169 else
43170   $as_echo "$as_me: failed program was:" >&5
43171 sed 's/^/| /' conftest.$ac_ext >&5
43172
43173         ac_cv_lib_sun_getpwnam=no
43174 fi
43175
43176 rm -rf conftest.dSYM
43177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43178       conftest$ac_exeext conftest.$ac_ext
43179 LIBS=$ac_check_lib_save_LIBS
43180 fi
43181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
43182 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
43183 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
43184   cat >>confdefs.h <<_ACEOF
43185 #define HAVE_LIBSUN 1
43186 _ACEOF
43187
43188   LIBS="-lsun $LIBS"
43189
43190 fi
43191
43192
43193
43194 for ac_header in zlib.h
43195 do
43196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43198   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43199 $as_echo_n "checking for $ac_header... " >&6; }
43200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43201   $as_echo_n "(cached) " >&6
43202 fi
43203 ac_res=`eval 'as_val=${'$as_ac_Header'}
43204                  $as_echo "$as_val"'`
43205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43206 $as_echo "$ac_res" >&6; }
43207 else
43208   # Is the header compilable?
43209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43210 $as_echo_n "checking $ac_header usability... " >&6; }
43211 cat >conftest.$ac_ext <<_ACEOF
43212 /* confdefs.h.  */
43213 _ACEOF
43214 cat confdefs.h >>conftest.$ac_ext
43215 cat >>conftest.$ac_ext <<_ACEOF
43216 /* end confdefs.h.  */
43217 $ac_includes_default
43218 #include <$ac_header>
43219 _ACEOF
43220 rm -f conftest.$ac_objext
43221 if { (ac_try="$ac_compile"
43222 case "(($ac_try" in
43223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43224   *) ac_try_echo=$ac_try;;
43225 esac
43226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43227 $as_echo "$ac_try_echo") >&5
43228   (eval "$ac_compile") 2>conftest.er1
43229   ac_status=$?
43230   grep -v '^ *+' conftest.er1 >conftest.err
43231   rm -f conftest.er1
43232   cat conftest.err >&5
43233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234   (exit $ac_status); } && {
43235          test -z "$ac_c_werror_flag" ||
43236          test ! -s conftest.err
43237        } && test -s conftest.$ac_objext; then
43238   ac_header_compiler=yes
43239 else
43240   $as_echo "$as_me: failed program was:" >&5
43241 sed 's/^/| /' conftest.$ac_ext >&5
43242
43243         ac_header_compiler=no
43244 fi
43245
43246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43248 $as_echo "$ac_header_compiler" >&6; }
43249
43250 # Is the header present?
43251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43252 $as_echo_n "checking $ac_header presence... " >&6; }
43253 cat >conftest.$ac_ext <<_ACEOF
43254 /* confdefs.h.  */
43255 _ACEOF
43256 cat confdefs.h >>conftest.$ac_ext
43257 cat >>conftest.$ac_ext <<_ACEOF
43258 /* end confdefs.h.  */
43259 #include <$ac_header>
43260 _ACEOF
43261 if { (ac_try="$ac_cpp conftest.$ac_ext"
43262 case "(($ac_try" in
43263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43264   *) ac_try_echo=$ac_try;;
43265 esac
43266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43267 $as_echo "$ac_try_echo") >&5
43268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43269   ac_status=$?
43270   grep -v '^ *+' conftest.er1 >conftest.err
43271   rm -f conftest.er1
43272   cat conftest.err >&5
43273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43274   (exit $ac_status); } >/dev/null && {
43275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43276          test ! -s conftest.err
43277        }; then
43278   ac_header_preproc=yes
43279 else
43280   $as_echo "$as_me: failed program was:" >&5
43281 sed 's/^/| /' conftest.$ac_ext >&5
43282
43283   ac_header_preproc=no
43284 fi
43285
43286 rm -f conftest.err conftest.$ac_ext
43287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43288 $as_echo "$ac_header_preproc" >&6; }
43289
43290 # So?  What about this header?
43291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43292   yes:no: )
43293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43297     ac_header_preproc=yes
43298     ;;
43299   no:yes:* )
43300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43303 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43307 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43312
43313     ;;
43314 esac
43315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43316 $as_echo_n "checking for $ac_header... " >&6; }
43317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43318   $as_echo_n "(cached) " >&6
43319 else
43320   eval "$as_ac_Header=\$ac_header_preproc"
43321 fi
43322 ac_res=`eval 'as_val=${'$as_ac_Header'}
43323                  $as_echo "$as_val"'`
43324                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43325 $as_echo "$ac_res" >&6; }
43326
43327 fi
43328 as_val=`eval 'as_val=${'$as_ac_Header'}
43329                  $as_echo "$as_val"'`
43330    if test "x$as_val" = x""yes; then
43331   cat >>confdefs.h <<_ACEOF
43332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43333 _ACEOF
43334
43335 fi
43336
43337 done
43338
43339 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
43340 $as_echo_n "checking for deflate in -lz... " >&6; }
43341 if test "${ac_cv_lib_z_deflate+set}" = set; then
43342   $as_echo_n "(cached) " >&6
43343 else
43344   ac_check_lib_save_LIBS=$LIBS
43345 LIBS="-lz  $LIBS"
43346 cat >conftest.$ac_ext <<_ACEOF
43347 /* confdefs.h.  */
43348 _ACEOF
43349 cat confdefs.h >>conftest.$ac_ext
43350 cat >>conftest.$ac_ext <<_ACEOF
43351 /* end confdefs.h.  */
43352
43353 /* Override any GCC internal prototype to avoid an error.
43354    Use char because int might match the return type of a GCC
43355    builtin and then its argument prototype would still apply.  */
43356 #ifdef __cplusplus
43357 extern "C"
43358 #endif
43359 char deflate ();
43360 int
43361 main ()
43362 {
43363 return deflate ();
43364   ;
43365   return 0;
43366 }
43367 _ACEOF
43368 rm -f conftest.$ac_objext conftest$ac_exeext
43369 if { (ac_try="$ac_link"
43370 case "(($ac_try" in
43371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43372   *) ac_try_echo=$ac_try;;
43373 esac
43374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43375 $as_echo "$ac_try_echo") >&5
43376   (eval "$ac_link") 2>conftest.er1
43377   ac_status=$?
43378   grep -v '^ *+' conftest.er1 >conftest.err
43379   rm -f conftest.er1
43380   cat conftest.err >&5
43381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43382   (exit $ac_status); } && {
43383          test -z "$ac_c_werror_flag" ||
43384          test ! -s conftest.err
43385        } && test -s conftest$ac_exeext && {
43386          test "$cross_compiling" = yes ||
43387          $as_test_x conftest$ac_exeext
43388        }; then
43389   ac_cv_lib_z_deflate=yes
43390 else
43391   $as_echo "$as_me: failed program was:" >&5
43392 sed 's/^/| /' conftest.$ac_ext >&5
43393
43394         ac_cv_lib_z_deflate=no
43395 fi
43396
43397 rm -rf conftest.dSYM
43398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43399       conftest$ac_exeext conftest.$ac_ext
43400 LIBS=$ac_check_lib_save_LIBS
43401 fi
43402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
43403 $as_echo "$ac_cv_lib_z_deflate" >&6; }
43404 if test "x$ac_cv_lib_z_deflate" = x""yes; then
43405   ZLIBS="-lz"
43406 fi
43407
43408 have_zlib=no
43409 if test x$ZLIBS = x-lz; then
43410    cat >>confdefs.h <<\_ACEOF
43411 #define HAVE_LIBZ 1
43412 _ACEOF
43413
43414    have_zlib=yes
43415 fi
43416
43417
43418 support_acl=auto
43419 # Check whether --enable-acl was given.
43420 if test "${enable_acl+set}" = set; then
43421   enableval=$enable_acl;
43422        if test x$enableval = xyes; then
43423           support_acl=yes
43424        elif test x$enableval = xno; then
43425           support_acl=no
43426        fi
43427
43428
43429 fi
43430
43431
43432 have_acl=no
43433 have_extended_acl=no
43434 if test x$support_acl = xyes -o x$support_acl = xauto; then
43435    if test "${ac_cv_header_sys_acl_h+set}" = set; then
43436   { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
43437 $as_echo_n "checking for sys/acl.h... " >&6; }
43438 if test "${ac_cv_header_sys_acl_h+set}" = set; then
43439   $as_echo_n "(cached) " >&6
43440 fi
43441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
43442 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
43443 else
43444   # Is the header compilable?
43445 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
43446 $as_echo_n "checking sys/acl.h usability... " >&6; }
43447 cat >conftest.$ac_ext <<_ACEOF
43448 /* confdefs.h.  */
43449 _ACEOF
43450 cat confdefs.h >>conftest.$ac_ext
43451 cat >>conftest.$ac_ext <<_ACEOF
43452 /* end confdefs.h.  */
43453 $ac_includes_default
43454 #include <sys/acl.h>
43455 _ACEOF
43456 rm -f conftest.$ac_objext
43457 if { (ac_try="$ac_compile"
43458 case "(($ac_try" in
43459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43460   *) ac_try_echo=$ac_try;;
43461 esac
43462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43463 $as_echo "$ac_try_echo") >&5
43464   (eval "$ac_compile") 2>conftest.er1
43465   ac_status=$?
43466   grep -v '^ *+' conftest.er1 >conftest.err
43467   rm -f conftest.er1
43468   cat conftest.err >&5
43469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470   (exit $ac_status); } && {
43471          test -z "$ac_c_werror_flag" ||
43472          test ! -s conftest.err
43473        } && test -s conftest.$ac_objext; then
43474   ac_header_compiler=yes
43475 else
43476   $as_echo "$as_me: failed program was:" >&5
43477 sed 's/^/| /' conftest.$ac_ext >&5
43478
43479         ac_header_compiler=no
43480 fi
43481
43482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43484 $as_echo "$ac_header_compiler" >&6; }
43485
43486 # Is the header present?
43487 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
43488 $as_echo_n "checking sys/acl.h presence... " >&6; }
43489 cat >conftest.$ac_ext <<_ACEOF
43490 /* confdefs.h.  */
43491 _ACEOF
43492 cat confdefs.h >>conftest.$ac_ext
43493 cat >>conftest.$ac_ext <<_ACEOF
43494 /* end confdefs.h.  */
43495 #include <sys/acl.h>
43496 _ACEOF
43497 if { (ac_try="$ac_cpp conftest.$ac_ext"
43498 case "(($ac_try" in
43499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43500   *) ac_try_echo=$ac_try;;
43501 esac
43502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43503 $as_echo "$ac_try_echo") >&5
43504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43505   ac_status=$?
43506   grep -v '^ *+' conftest.er1 >conftest.err
43507   rm -f conftest.er1
43508   cat conftest.err >&5
43509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510   (exit $ac_status); } >/dev/null && {
43511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43512          test ! -s conftest.err
43513        }; then
43514   ac_header_preproc=yes
43515 else
43516   $as_echo "$as_me: failed program was:" >&5
43517 sed 's/^/| /' conftest.$ac_ext >&5
43518
43519   ac_header_preproc=no
43520 fi
43521
43522 rm -f conftest.err conftest.$ac_ext
43523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43524 $as_echo "$ac_header_preproc" >&6; }
43525
43526 # So?  What about this header?
43527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43528   yes:no: )
43529     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
43530 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43531     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
43532 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
43533     ac_header_preproc=yes
43534     ;;
43535   no:yes:* )
43536     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
43537 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
43538     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
43539 $as_echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
43540     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
43541 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
43542     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
43543 $as_echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43544     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
43545 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
43546     { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
43547 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
43548
43549     ;;
43550 esac
43551 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
43552 $as_echo_n "checking for sys/acl.h... " >&6; }
43553 if test "${ac_cv_header_sys_acl_h+set}" = set; then
43554   $as_echo_n "(cached) " >&6
43555 else
43556   ac_cv_header_sys_acl_h=$ac_header_preproc
43557 fi
43558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
43559 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
43560
43561 fi
43562 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
43563
43564 cat >>confdefs.h <<\_ACEOF
43565 #define HAVE_SYS_ACL_H 1
43566 _ACEOF
43567
43568 fi
43569
43570
43571
43572             { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
43573 $as_echo_n "checking for acl_get_file... " >&6; }
43574 if test "${ac_cv_func_acl_get_file+set}" = set; then
43575   $as_echo_n "(cached) " >&6
43576 else
43577   cat >conftest.$ac_ext <<_ACEOF
43578 /* confdefs.h.  */
43579 _ACEOF
43580 cat confdefs.h >>conftest.$ac_ext
43581 cat >>conftest.$ac_ext <<_ACEOF
43582 /* end confdefs.h.  */
43583 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
43584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43585 #define acl_get_file innocuous_acl_get_file
43586
43587 /* System header to define __stub macros and hopefully few prototypes,
43588     which can conflict with char acl_get_file (); below.
43589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43590     <limits.h> exists even on freestanding compilers.  */
43591
43592 #ifdef __STDC__
43593 # include <limits.h>
43594 #else
43595 # include <assert.h>
43596 #endif
43597
43598 #undef acl_get_file
43599
43600 /* Override any GCC internal prototype to avoid an error.
43601    Use char because int might match the return type of a GCC
43602    builtin and then its argument prototype would still apply.  */
43603 #ifdef __cplusplus
43604 extern "C"
43605 #endif
43606 char acl_get_file ();
43607 /* The GNU C library defines this for functions which it implements
43608     to always fail with ENOSYS.  Some functions are actually named
43609     something starting with __ and the normal name is an alias.  */
43610 #if defined __stub_acl_get_file || defined __stub___acl_get_file
43611 choke me
43612 #endif
43613
43614 int
43615 main ()
43616 {
43617 return acl_get_file ();
43618   ;
43619   return 0;
43620 }
43621 _ACEOF
43622 rm -f conftest.$ac_objext conftest$ac_exeext
43623 if { (ac_try="$ac_link"
43624 case "(($ac_try" in
43625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43626   *) ac_try_echo=$ac_try;;
43627 esac
43628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43629 $as_echo "$ac_try_echo") >&5
43630   (eval "$ac_link") 2>conftest.er1
43631   ac_status=$?
43632   grep -v '^ *+' conftest.er1 >conftest.err
43633   rm -f conftest.er1
43634   cat conftest.err >&5
43635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43636   (exit $ac_status); } && {
43637          test -z "$ac_c_werror_flag" ||
43638          test ! -s conftest.err
43639        } && test -s conftest$ac_exeext && {
43640          test "$cross_compiling" = yes ||
43641          $as_test_x conftest$ac_exeext
43642        }; then
43643   ac_cv_func_acl_get_file=yes
43644 else
43645   $as_echo "$as_me: failed program was:" >&5
43646 sed 's/^/| /' conftest.$ac_ext >&5
43647
43648         ac_cv_func_acl_get_file=no
43649 fi
43650
43651 rm -rf conftest.dSYM
43652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43653       conftest$ac_exeext conftest.$ac_ext
43654 fi
43655 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
43656 $as_echo "$ac_cv_func_acl_get_file" >&6; }
43657 if test "x$ac_cv_func_acl_get_file" = x""yes; then
43658
43659           have_acl=yes
43660
43661
43662 fi
43663
43664
43665             if test $have_acl = no; then
43666       { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
43667 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
43668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
43669   $as_echo_n "(cached) " >&6
43670 else
43671   ac_check_lib_save_LIBS=$LIBS
43672 LIBS="-lacl  $LIBS"
43673 cat >conftest.$ac_ext <<_ACEOF
43674 /* confdefs.h.  */
43675 _ACEOF
43676 cat confdefs.h >>conftest.$ac_ext
43677 cat >>conftest.$ac_ext <<_ACEOF
43678 /* end confdefs.h.  */
43679
43680 /* Override any GCC internal prototype to avoid an error.
43681    Use char because int might match the return type of a GCC
43682    builtin and then its argument prototype would still apply.  */
43683 #ifdef __cplusplus
43684 extern "C"
43685 #endif
43686 char acl_get_file ();
43687 int
43688 main ()
43689 {
43690 return acl_get_file ();
43691   ;
43692   return 0;
43693 }
43694 _ACEOF
43695 rm -f conftest.$ac_objext conftest$ac_exeext
43696 if { (ac_try="$ac_link"
43697 case "(($ac_try" in
43698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43699   *) ac_try_echo=$ac_try;;
43700 esac
43701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43702 $as_echo "$ac_try_echo") >&5
43703   (eval "$ac_link") 2>conftest.er1
43704   ac_status=$?
43705   grep -v '^ *+' conftest.er1 >conftest.err
43706   rm -f conftest.er1
43707   cat conftest.err >&5
43708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43709   (exit $ac_status); } && {
43710          test -z "$ac_c_werror_flag" ||
43711          test ! -s conftest.err
43712        } && test -s conftest$ac_exeext && {
43713          test "$cross_compiling" = yes ||
43714          $as_test_x conftest$ac_exeext
43715        }; then
43716   ac_cv_lib_acl_acl_get_file=yes
43717 else
43718   $as_echo "$as_me: failed program was:" >&5
43719 sed 's/^/| /' conftest.$ac_ext >&5
43720
43721         ac_cv_lib_acl_acl_get_file=no
43722 fi
43723
43724 rm -rf conftest.dSYM
43725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43726       conftest$ac_exeext conftest.$ac_ext
43727 LIBS=$ac_check_lib_save_LIBS
43728 fi
43729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
43730 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
43731 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
43732
43733              have_acl=yes
43734              if test $have_afs = yes; then
43735                                                                 if test -d /usr/lib64/; then
43736                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
43737                 else
43738                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
43739                 fi
43740              else
43741                 FDLIBS="-lacl $FDLIBS"
43742              fi
43743
43744
43745 fi
43746
43747    fi
43748
43749                if test $have_acl = no -a \
43750            x${HAVE_OSF1_OS_TRUE} = x; then
43751       { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
43752 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
43753 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
43754   $as_echo_n "(cached) " >&6
43755 else
43756   ac_check_lib_save_LIBS=$LIBS
43757 LIBS="-lpacl  $LIBS"
43758 cat >conftest.$ac_ext <<_ACEOF
43759 /* confdefs.h.  */
43760 _ACEOF
43761 cat confdefs.h >>conftest.$ac_ext
43762 cat >>conftest.$ac_ext <<_ACEOF
43763 /* end confdefs.h.  */
43764
43765 /* Override any GCC internal prototype to avoid an error.
43766    Use char because int might match the return type of a GCC
43767    builtin and then its argument prototype would still apply.  */
43768 #ifdef __cplusplus
43769 extern "C"
43770 #endif
43771 char acl_get_file ();
43772 int
43773 main ()
43774 {
43775 return acl_get_file ();
43776   ;
43777   return 0;
43778 }
43779 _ACEOF
43780 rm -f conftest.$ac_objext conftest$ac_exeext
43781 if { (ac_try="$ac_link"
43782 case "(($ac_try" in
43783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43784   *) ac_try_echo=$ac_try;;
43785 esac
43786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43787 $as_echo "$ac_try_echo") >&5
43788   (eval "$ac_link") 2>conftest.er1
43789   ac_status=$?
43790   grep -v '^ *+' conftest.er1 >conftest.err
43791   rm -f conftest.er1
43792   cat conftest.err >&5
43793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794   (exit $ac_status); } && {
43795          test -z "$ac_c_werror_flag" ||
43796          test ! -s conftest.err
43797        } && test -s conftest$ac_exeext && {
43798          test "$cross_compiling" = yes ||
43799          $as_test_x conftest$ac_exeext
43800        }; then
43801   ac_cv_lib_pacl_acl_get_file=yes
43802 else
43803   $as_echo "$as_me: failed program was:" >&5
43804 sed 's/^/| /' conftest.$ac_ext >&5
43805
43806         ac_cv_lib_pacl_acl_get_file=no
43807 fi
43808
43809 rm -rf conftest.dSYM
43810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43811       conftest$ac_exeext conftest.$ac_ext
43812 LIBS=$ac_check_lib_save_LIBS
43813 fi
43814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
43815 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
43816 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
43817
43818              have_acl=yes
43819              FDLIBS="-lpacl $FDLIBS"
43820
43821
43822 fi
43823
43824
43825       { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
43826 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
43827       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
43828       if test $? = 0; then
43829
43830 cat >>confdefs.h <<\_ACEOF
43831 #define HAVE_ACL_TYPE_DEFAULT_DIR 1
43832 _ACEOF
43833
43834          { $as_echo "$as_me:$LINENO: result: yes" >&5
43835 $as_echo "yes" >&6; }
43836       else
43837          { $as_echo "$as_me:$LINENO: result: no" >&5
43838 $as_echo "no" >&6; }
43839       fi
43840    fi
43841
43842             if test $have_acl = yes -a \
43843            x${HAVE_DARWIN_OS_TRUE} = x; then
43844       { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
43845 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
43846       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
43847       if test $? = 0; then
43848
43849 cat >>confdefs.h <<\_ACEOF
43850 #define HAVE_ACL_TYPE_EXTENDED 1
43851 _ACEOF
43852
43853          { $as_echo "$as_me:$LINENO: result: yes" >&5
43854 $as_echo "yes" >&6; }
43855       else
43856          { $as_echo "$as_me:$LINENO: result: no" >&5
43857 $as_echo "no" >&6; }
43858       fi
43859    fi
43860
43861             if test $have_acl = yes -a \
43862            x${HAVE_FREEBSD_OS_TRUE} = x; then
43863       { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
43864 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
43865       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
43866       if test $? = 0; then
43867
43868 cat >>confdefs.h <<\_ACEOF
43869 #define HAVE_ACL_TYPE_NFS4 1
43870 _ACEOF
43871
43872          { $as_echo "$as_me:$LINENO: result: yes" >&5
43873 $as_echo "yes" >&6; }
43874       else
43875          { $as_echo "$as_me:$LINENO: result: no" >&5
43876 $as_echo "no" >&6; }
43877       fi
43878    fi
43879
43880             if test $have_acl = no -a \
43881            x${HAVE_SUN_OS_TRUE} = x; then
43882       { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
43883 $as_echo_n "checking for acltotext in -lsec... " >&6; }
43884 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
43885   $as_echo_n "(cached) " >&6
43886 else
43887   ac_check_lib_save_LIBS=$LIBS
43888 LIBS="-lsec  $LIBS"
43889 cat >conftest.$ac_ext <<_ACEOF
43890 /* confdefs.h.  */
43891 _ACEOF
43892 cat confdefs.h >>conftest.$ac_ext
43893 cat >>conftest.$ac_ext <<_ACEOF
43894 /* end confdefs.h.  */
43895
43896 /* Override any GCC internal prototype to avoid an error.
43897    Use char because int might match the return type of a GCC
43898    builtin and then its argument prototype would still apply.  */
43899 #ifdef __cplusplus
43900 extern "C"
43901 #endif
43902 char acltotext ();
43903 int
43904 main ()
43905 {
43906 return acltotext ();
43907   ;
43908   return 0;
43909 }
43910 _ACEOF
43911 rm -f conftest.$ac_objext conftest$ac_exeext
43912 if { (ac_try="$ac_link"
43913 case "(($ac_try" in
43914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43915   *) ac_try_echo=$ac_try;;
43916 esac
43917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43918 $as_echo "$ac_try_echo") >&5
43919   (eval "$ac_link") 2>conftest.er1
43920   ac_status=$?
43921   grep -v '^ *+' conftest.er1 >conftest.err
43922   rm -f conftest.er1
43923   cat conftest.err >&5
43924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43925   (exit $ac_status); } && {
43926          test -z "$ac_c_werror_flag" ||
43927          test ! -s conftest.err
43928        } && test -s conftest$ac_exeext && {
43929          test "$cross_compiling" = yes ||
43930          $as_test_x conftest$ac_exeext
43931        }; then
43932   ac_cv_lib_sec_acltotext=yes
43933 else
43934   $as_echo "$as_me: failed program was:" >&5
43935 sed 's/^/| /' conftest.$ac_ext >&5
43936
43937         ac_cv_lib_sec_acltotext=no
43938 fi
43939
43940 rm -rf conftest.dSYM
43941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43942       conftest$ac_exeext conftest.$ac_ext
43943 LIBS=$ac_check_lib_save_LIBS
43944 fi
43945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
43946 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
43947 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
43948
43949              have_acl=yes
43950              FDLIBS="-lsec $FDLIBS"
43951
43952              { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
43953 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
43954 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
43955   $as_echo_n "(cached) " >&6
43956 else
43957   ac_check_lib_save_LIBS=$LIBS
43958 LIBS="-lsec  $LIBS"
43959 cat >conftest.$ac_ext <<_ACEOF
43960 /* confdefs.h.  */
43961 _ACEOF
43962 cat confdefs.h >>conftest.$ac_ext
43963 cat >>conftest.$ac_ext <<_ACEOF
43964 /* end confdefs.h.  */
43965
43966 /* Override any GCC internal prototype to avoid an error.
43967    Use char because int might match the return type of a GCC
43968    builtin and then its argument prototype would still apply.  */
43969 #ifdef __cplusplus
43970 extern "C"
43971 #endif
43972 char acl_totext ();
43973 int
43974 main ()
43975 {
43976 return acl_totext ();
43977   ;
43978   return 0;
43979 }
43980 _ACEOF
43981 rm -f conftest.$ac_objext conftest$ac_exeext
43982 if { (ac_try="$ac_link"
43983 case "(($ac_try" in
43984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43985   *) ac_try_echo=$ac_try;;
43986 esac
43987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43988 $as_echo "$ac_try_echo") >&5
43989   (eval "$ac_link") 2>conftest.er1
43990   ac_status=$?
43991   grep -v '^ *+' conftest.er1 >conftest.err
43992   rm -f conftest.er1
43993   cat conftest.err >&5
43994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995   (exit $ac_status); } && {
43996          test -z "$ac_c_werror_flag" ||
43997          test ! -s conftest.err
43998        } && test -s conftest$ac_exeext && {
43999          test "$cross_compiling" = yes ||
44000          $as_test_x conftest$ac_exeext
44001        }; then
44002   ac_cv_lib_sec_acl_totext=yes
44003 else
44004   $as_echo "$as_me: failed program was:" >&5
44005 sed 's/^/| /' conftest.$ac_ext >&5
44006
44007         ac_cv_lib_sec_acl_totext=no
44008 fi
44009
44010 rm -rf conftest.dSYM
44011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44012       conftest$ac_exeext conftest.$ac_ext
44013 LIBS=$ac_check_lib_save_LIBS
44014 fi
44015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
44016 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
44017 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
44018
44019                     have_extended_acl=yes
44020
44021
44022 fi
44023
44024
44025
44026 fi
44027
44028    fi
44029
44030             if test $have_acl = no -a \
44031            x${HAVE_AIX_OS_TRUE} = x; then
44032       { $as_echo "$as_me:$LINENO: checking for acl_get" >&5
44033 $as_echo_n "checking for acl_get... " >&6; }
44034 if test "${ac_cv_func_acl_get+set}" = set; then
44035   $as_echo_n "(cached) " >&6
44036 else
44037   cat >conftest.$ac_ext <<_ACEOF
44038 /* confdefs.h.  */
44039 _ACEOF
44040 cat confdefs.h >>conftest.$ac_ext
44041 cat >>conftest.$ac_ext <<_ACEOF
44042 /* end confdefs.h.  */
44043 /* Define acl_get to an innocuous variant, in case <limits.h> declares acl_get.
44044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44045 #define acl_get innocuous_acl_get
44046
44047 /* System header to define __stub macros and hopefully few prototypes,
44048     which can conflict with char acl_get (); below.
44049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44050     <limits.h> exists even on freestanding compilers.  */
44051
44052 #ifdef __STDC__
44053 # include <limits.h>
44054 #else
44055 # include <assert.h>
44056 #endif
44057
44058 #undef acl_get
44059
44060 /* Override any GCC internal prototype to avoid an error.
44061    Use char because int might match the return type of a GCC
44062    builtin and then its argument prototype would still apply.  */
44063 #ifdef __cplusplus
44064 extern "C"
44065 #endif
44066 char acl_get ();
44067 /* The GNU C library defines this for functions which it implements
44068     to always fail with ENOSYS.  Some functions are actually named
44069     something starting with __ and the normal name is an alias.  */
44070 #if defined __stub_acl_get || defined __stub___acl_get
44071 choke me
44072 #endif
44073
44074 int
44075 main ()
44076 {
44077 return acl_get ();
44078   ;
44079   return 0;
44080 }
44081 _ACEOF
44082 rm -f conftest.$ac_objext conftest$ac_exeext
44083 if { (ac_try="$ac_link"
44084 case "(($ac_try" in
44085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44086   *) ac_try_echo=$ac_try;;
44087 esac
44088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44089 $as_echo "$ac_try_echo") >&5
44090   (eval "$ac_link") 2>conftest.er1
44091   ac_status=$?
44092   grep -v '^ *+' conftest.er1 >conftest.err
44093   rm -f conftest.er1
44094   cat conftest.err >&5
44095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096   (exit $ac_status); } && {
44097          test -z "$ac_c_werror_flag" ||
44098          test ! -s conftest.err
44099        } && test -s conftest$ac_exeext && {
44100          test "$cross_compiling" = yes ||
44101          $as_test_x conftest$ac_exeext
44102        }; then
44103   ac_cv_func_acl_get=yes
44104 else
44105   $as_echo "$as_me: failed program was:" >&5
44106 sed 's/^/| /' conftest.$ac_ext >&5
44107
44108         ac_cv_func_acl_get=no
44109 fi
44110
44111 rm -rf conftest.dSYM
44112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44113       conftest$ac_exeext conftest.$ac_ext
44114 fi
44115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get" >&5
44116 $as_echo "$ac_cv_func_acl_get" >&6; }
44117 if test "x$ac_cv_func_acl_get" = x""yes; then
44118
44119              have_acl=yes
44120
44121              { $as_echo "$as_me:$LINENO: checking for aclx_get" >&5
44122 $as_echo_n "checking for aclx_get... " >&6; }
44123 if test "${ac_cv_func_aclx_get+set}" = set; then
44124   $as_echo_n "(cached) " >&6
44125 else
44126   cat >conftest.$ac_ext <<_ACEOF
44127 /* confdefs.h.  */
44128 _ACEOF
44129 cat confdefs.h >>conftest.$ac_ext
44130 cat >>conftest.$ac_ext <<_ACEOF
44131 /* end confdefs.h.  */
44132 /* Define aclx_get to an innocuous variant, in case <limits.h> declares aclx_get.
44133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44134 #define aclx_get innocuous_aclx_get
44135
44136 /* System header to define __stub macros and hopefully few prototypes,
44137     which can conflict with char aclx_get (); below.
44138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44139     <limits.h> exists even on freestanding compilers.  */
44140
44141 #ifdef __STDC__
44142 # include <limits.h>
44143 #else
44144 # include <assert.h>
44145 #endif
44146
44147 #undef aclx_get
44148
44149 /* Override any GCC internal prototype to avoid an error.
44150    Use char because int might match the return type of a GCC
44151    builtin and then its argument prototype would still apply.  */
44152 #ifdef __cplusplus
44153 extern "C"
44154 #endif
44155 char aclx_get ();
44156 /* The GNU C library defines this for functions which it implements
44157     to always fail with ENOSYS.  Some functions are actually named
44158     something starting with __ and the normal name is an alias.  */
44159 #if defined __stub_aclx_get || defined __stub___aclx_get
44160 choke me
44161 #endif
44162
44163 int
44164 main ()
44165 {
44166 return aclx_get ();
44167   ;
44168   return 0;
44169 }
44170 _ACEOF
44171 rm -f conftest.$ac_objext conftest$ac_exeext
44172 if { (ac_try="$ac_link"
44173 case "(($ac_try" in
44174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44175   *) ac_try_echo=$ac_try;;
44176 esac
44177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44178 $as_echo "$ac_try_echo") >&5
44179   (eval "$ac_link") 2>conftest.er1
44180   ac_status=$?
44181   grep -v '^ *+' conftest.er1 >conftest.err
44182   rm -f conftest.er1
44183   cat conftest.err >&5
44184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185   (exit $ac_status); } && {
44186          test -z "$ac_c_werror_flag" ||
44187          test ! -s conftest.err
44188        } && test -s conftest$ac_exeext && {
44189          test "$cross_compiling" = yes ||
44190          $as_test_x conftest$ac_exeext
44191        }; then
44192   ac_cv_func_aclx_get=yes
44193 else
44194   $as_echo "$as_me: failed program was:" >&5
44195 sed 's/^/| /' conftest.$ac_ext >&5
44196
44197         ac_cv_func_aclx_get=no
44198 fi
44199
44200 rm -rf conftest.dSYM
44201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44202       conftest$ac_exeext conftest.$ac_ext
44203 fi
44204 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_aclx_get" >&5
44205 $as_echo "$ac_cv_func_aclx_get" >&6; }
44206 if test "x$ac_cv_func_aclx_get" = x""yes; then
44207
44208                     have_extended_acl=yes
44209
44210
44211 fi
44212
44213
44214
44215 fi
44216
44217    fi
44218
44219    if test x$support_acl = xyes -a $have_acl != yes; then
44220       { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
44221   please either load the acl libraries or rerun configure without --enable-acl" >&5
44222 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
44223   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
44224    { (exit 1); exit 1; }; }
44225    else
44226       if test $have_acl = yes; then
44227
44228 cat >>confdefs.h <<\_ACEOF
44229 #define HAVE_ACL 1
44230 _ACEOF
44231
44232       fi
44233
44234       if test $have_extended_acl = yes; then
44235
44236 cat >>confdefs.h <<\_ACEOF
44237 #define HAVE_EXTENDED_ACL 1
44238 _ACEOF
44239
44240       fi
44241    fi
44242 fi
44243
44244 support_xattr=auto
44245 # Check whether --enable-xattr was given.
44246 if test "${enable_xattr+set}" = set; then
44247   enableval=$enable_xattr;
44248        if test x$enableval = xyes; then
44249           support_xattr=yes
44250        elif test x$enableval = xno; then
44251           support_xattr=no
44252        fi
44253
44254
44255 fi
44256
44257
44258 have_xattr=no
44259 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
44260                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
44261            x${HAVE_NETBSD_OS_TRUE} = x -o \
44262            x${HAVE_OPENBSD_OS_TRUE} = x; then
44263       if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44264   { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
44265 $as_echo_n "checking for sys/extattr.h... " >&6; }
44266 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44267   $as_echo_n "(cached) " >&6
44268 fi
44269 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
44270 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
44271 else
44272   # Is the header compilable?
44273 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
44274 $as_echo_n "checking sys/extattr.h usability... " >&6; }
44275 cat >conftest.$ac_ext <<_ACEOF
44276 /* confdefs.h.  */
44277 _ACEOF
44278 cat confdefs.h >>conftest.$ac_ext
44279 cat >>conftest.$ac_ext <<_ACEOF
44280 /* end confdefs.h.  */
44281 $ac_includes_default
44282 #include <sys/extattr.h>
44283 _ACEOF
44284 rm -f conftest.$ac_objext
44285 if { (ac_try="$ac_compile"
44286 case "(($ac_try" in
44287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44288   *) ac_try_echo=$ac_try;;
44289 esac
44290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44291 $as_echo "$ac_try_echo") >&5
44292   (eval "$ac_compile") 2>conftest.er1
44293   ac_status=$?
44294   grep -v '^ *+' conftest.er1 >conftest.err
44295   rm -f conftest.er1
44296   cat conftest.err >&5
44297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44298   (exit $ac_status); } && {
44299          test -z "$ac_c_werror_flag" ||
44300          test ! -s conftest.err
44301        } && test -s conftest.$ac_objext; then
44302   ac_header_compiler=yes
44303 else
44304   $as_echo "$as_me: failed program was:" >&5
44305 sed 's/^/| /' conftest.$ac_ext >&5
44306
44307         ac_header_compiler=no
44308 fi
44309
44310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44312 $as_echo "$ac_header_compiler" >&6; }
44313
44314 # Is the header present?
44315 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
44316 $as_echo_n "checking sys/extattr.h presence... " >&6; }
44317 cat >conftest.$ac_ext <<_ACEOF
44318 /* confdefs.h.  */
44319 _ACEOF
44320 cat confdefs.h >>conftest.$ac_ext
44321 cat >>conftest.$ac_ext <<_ACEOF
44322 /* end confdefs.h.  */
44323 #include <sys/extattr.h>
44324 _ACEOF
44325 if { (ac_try="$ac_cpp conftest.$ac_ext"
44326 case "(($ac_try" in
44327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44328   *) ac_try_echo=$ac_try;;
44329 esac
44330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44331 $as_echo "$ac_try_echo") >&5
44332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44333   ac_status=$?
44334   grep -v '^ *+' conftest.er1 >conftest.err
44335   rm -f conftest.er1
44336   cat conftest.err >&5
44337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44338   (exit $ac_status); } >/dev/null && {
44339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44340          test ! -s conftest.err
44341        }; then
44342   ac_header_preproc=yes
44343 else
44344   $as_echo "$as_me: failed program was:" >&5
44345 sed 's/^/| /' conftest.$ac_ext >&5
44346
44347   ac_header_preproc=no
44348 fi
44349
44350 rm -f conftest.err conftest.$ac_ext
44351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44352 $as_echo "$ac_header_preproc" >&6; }
44353
44354 # So?  What about this header?
44355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44356   yes:no: )
44357     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44358 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44359     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
44360 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
44361     ac_header_preproc=yes
44362     ;;
44363   no:yes:* )
44364     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
44365 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
44366     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
44367 $as_echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
44368     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
44369 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
44370     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
44371 $as_echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44372     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
44373 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
44374     { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
44375 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
44376
44377     ;;
44378 esac
44379 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
44380 $as_echo_n "checking for sys/extattr.h... " >&6; }
44381 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44382   $as_echo_n "(cached) " >&6
44383 else
44384   ac_cv_header_sys_extattr_h=$ac_header_preproc
44385 fi
44386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
44387 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
44388
44389 fi
44390 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
44391
44392 cat >>confdefs.h <<\_ACEOF
44393 #define HAVE_SYS_EXTATTR_H 1
44394 _ACEOF
44395
44396 fi
44397
44398
44399       if test "${ac_cv_header_libutil_h+set}" = set; then
44400   { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
44401 $as_echo_n "checking for libutil.h... " >&6; }
44402 if test "${ac_cv_header_libutil_h+set}" = set; then
44403   $as_echo_n "(cached) " >&6
44404 fi
44405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
44406 $as_echo "$ac_cv_header_libutil_h" >&6; }
44407 else
44408   # Is the header compilable?
44409 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
44410 $as_echo_n "checking libutil.h usability... " >&6; }
44411 cat >conftest.$ac_ext <<_ACEOF
44412 /* confdefs.h.  */
44413 _ACEOF
44414 cat confdefs.h >>conftest.$ac_ext
44415 cat >>conftest.$ac_ext <<_ACEOF
44416 /* end confdefs.h.  */
44417 $ac_includes_default
44418 #include <libutil.h>
44419 _ACEOF
44420 rm -f conftest.$ac_objext
44421 if { (ac_try="$ac_compile"
44422 case "(($ac_try" in
44423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44424   *) ac_try_echo=$ac_try;;
44425 esac
44426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44427 $as_echo "$ac_try_echo") >&5
44428   (eval "$ac_compile") 2>conftest.er1
44429   ac_status=$?
44430   grep -v '^ *+' conftest.er1 >conftest.err
44431   rm -f conftest.er1
44432   cat conftest.err >&5
44433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44434   (exit $ac_status); } && {
44435          test -z "$ac_c_werror_flag" ||
44436          test ! -s conftest.err
44437        } && test -s conftest.$ac_objext; then
44438   ac_header_compiler=yes
44439 else
44440   $as_echo "$as_me: failed program was:" >&5
44441 sed 's/^/| /' conftest.$ac_ext >&5
44442
44443         ac_header_compiler=no
44444 fi
44445
44446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44448 $as_echo "$ac_header_compiler" >&6; }
44449
44450 # Is the header present?
44451 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
44452 $as_echo_n "checking libutil.h presence... " >&6; }
44453 cat >conftest.$ac_ext <<_ACEOF
44454 /* confdefs.h.  */
44455 _ACEOF
44456 cat confdefs.h >>conftest.$ac_ext
44457 cat >>conftest.$ac_ext <<_ACEOF
44458 /* end confdefs.h.  */
44459 #include <libutil.h>
44460 _ACEOF
44461 if { (ac_try="$ac_cpp conftest.$ac_ext"
44462 case "(($ac_try" in
44463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44464   *) ac_try_echo=$ac_try;;
44465 esac
44466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44467 $as_echo "$ac_try_echo") >&5
44468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44469   ac_status=$?
44470   grep -v '^ *+' conftest.er1 >conftest.err
44471   rm -f conftest.er1
44472   cat conftest.err >&5
44473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44474   (exit $ac_status); } >/dev/null && {
44475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44476          test ! -s conftest.err
44477        }; then
44478   ac_header_preproc=yes
44479 else
44480   $as_echo "$as_me: failed program was:" >&5
44481 sed 's/^/| /' conftest.$ac_ext >&5
44482
44483   ac_header_preproc=no
44484 fi
44485
44486 rm -f conftest.err conftest.$ac_ext
44487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44488 $as_echo "$ac_header_preproc" >&6; }
44489
44490 # So?  What about this header?
44491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44492   yes:no: )
44493     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
44494 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44495     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
44496 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
44497     ac_header_preproc=yes
44498     ;;
44499   no:yes:* )
44500     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
44501 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
44502     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
44503 $as_echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
44504     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
44505 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
44506     { $as_echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
44507 $as_echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
44508     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
44509 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
44510     { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
44511 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
44512
44513     ;;
44514 esac
44515 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
44516 $as_echo_n "checking for libutil.h... " >&6; }
44517 if test "${ac_cv_header_libutil_h+set}" = set; then
44518   $as_echo_n "(cached) " >&6
44519 else
44520   ac_cv_header_libutil_h=$ac_header_preproc
44521 fi
44522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
44523 $as_echo "$ac_cv_header_libutil_h" >&6; }
44524
44525 fi
44526 if test "x$ac_cv_header_libutil_h" = x""yes; then
44527
44528 cat >>confdefs.h <<\_ACEOF
44529 #define HAVE_LIBUTIL_H 1
44530 _ACEOF
44531
44532 fi
44533
44534
44535
44536
44537
44538 for ac_func in extattr_get_link extattr_set_link extattr_list_link
44539 do
44540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44542 $as_echo_n "checking for $ac_func... " >&6; }
44543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44544   $as_echo_n "(cached) " >&6
44545 else
44546   cat >conftest.$ac_ext <<_ACEOF
44547 /* confdefs.h.  */
44548 _ACEOF
44549 cat confdefs.h >>conftest.$ac_ext
44550 cat >>conftest.$ac_ext <<_ACEOF
44551 /* end confdefs.h.  */
44552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44554 #define $ac_func innocuous_$ac_func
44555
44556 /* System header to define __stub macros and hopefully few prototypes,
44557     which can conflict with char $ac_func (); below.
44558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44559     <limits.h> exists even on freestanding compilers.  */
44560
44561 #ifdef __STDC__
44562 # include <limits.h>
44563 #else
44564 # include <assert.h>
44565 #endif
44566
44567 #undef $ac_func
44568
44569 /* Override any GCC internal prototype to avoid an error.
44570    Use char because int might match the return type of a GCC
44571    builtin and then its argument prototype would still apply.  */
44572 #ifdef __cplusplus
44573 extern "C"
44574 #endif
44575 char $ac_func ();
44576 /* The GNU C library defines this for functions which it implements
44577     to always fail with ENOSYS.  Some functions are actually named
44578     something starting with __ and the normal name is an alias.  */
44579 #if defined __stub_$ac_func || defined __stub___$ac_func
44580 choke me
44581 #endif
44582
44583 int
44584 main ()
44585 {
44586 return $ac_func ();
44587   ;
44588   return 0;
44589 }
44590 _ACEOF
44591 rm -f conftest.$ac_objext conftest$ac_exeext
44592 if { (ac_try="$ac_link"
44593 case "(($ac_try" in
44594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44595   *) ac_try_echo=$ac_try;;
44596 esac
44597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44598 $as_echo "$ac_try_echo") >&5
44599   (eval "$ac_link") 2>conftest.er1
44600   ac_status=$?
44601   grep -v '^ *+' conftest.er1 >conftest.err
44602   rm -f conftest.er1
44603   cat conftest.err >&5
44604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); } && {
44606          test -z "$ac_c_werror_flag" ||
44607          test ! -s conftest.err
44608        } && test -s conftest$ac_exeext && {
44609          test "$cross_compiling" = yes ||
44610          $as_test_x conftest$ac_exeext
44611        }; then
44612   eval "$as_ac_var=yes"
44613 else
44614   $as_echo "$as_me: failed program was:" >&5
44615 sed 's/^/| /' conftest.$ac_ext >&5
44616
44617         eval "$as_ac_var=no"
44618 fi
44619
44620 rm -rf conftest.dSYM
44621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44622       conftest$ac_exeext conftest.$ac_ext
44623 fi
44624 ac_res=`eval 'as_val=${'$as_ac_var'}
44625                  $as_echo "$as_val"'`
44626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44627 $as_echo "$ac_res" >&6; }
44628 as_val=`eval 'as_val=${'$as_ac_var'}
44629                  $as_echo "$as_val"'`
44630    if test "x$as_val" = x""yes; then
44631   cat >>confdefs.h <<_ACEOF
44632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44633 _ACEOF
44634
44635              have_xattr=yes
44636
44637 cat >>confdefs.h <<\_ACEOF
44638 #define HAVE_EXTATTR_GET_LINK 1
44639 _ACEOF
44640
44641
44642 cat >>confdefs.h <<\_ACEOF
44643 #define HAVE_EXTATTR_SET_LINK 1
44644 _ACEOF
44645
44646
44647 cat >>confdefs.h <<\_ACEOF
44648 #define HAVE_EXTATTR_LIST_LINK 1
44649 _ACEOF
44650
44651
44652
44653 fi
44654 done
44655
44656
44657       if test $have_xattr = no; then
44658
44659
44660
44661 for ac_func in extattr_get_file extattr_set_file extattr_list_file
44662 do
44663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44664 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44665 $as_echo_n "checking for $ac_func... " >&6; }
44666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44667   $as_echo_n "(cached) " >&6
44668 else
44669   cat >conftest.$ac_ext <<_ACEOF
44670 /* confdefs.h.  */
44671 _ACEOF
44672 cat confdefs.h >>conftest.$ac_ext
44673 cat >>conftest.$ac_ext <<_ACEOF
44674 /* end confdefs.h.  */
44675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44677 #define $ac_func innocuous_$ac_func
44678
44679 /* System header to define __stub macros and hopefully few prototypes,
44680     which can conflict with char $ac_func (); below.
44681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44682     <limits.h> exists even on freestanding compilers.  */
44683
44684 #ifdef __STDC__
44685 # include <limits.h>
44686 #else
44687 # include <assert.h>
44688 #endif
44689
44690 #undef $ac_func
44691
44692 /* Override any GCC internal prototype to avoid an error.
44693    Use char because int might match the return type of a GCC
44694    builtin and then its argument prototype would still apply.  */
44695 #ifdef __cplusplus
44696 extern "C"
44697 #endif
44698 char $ac_func ();
44699 /* The GNU C library defines this for functions which it implements
44700     to always fail with ENOSYS.  Some functions are actually named
44701     something starting with __ and the normal name is an alias.  */
44702 #if defined __stub_$ac_func || defined __stub___$ac_func
44703 choke me
44704 #endif
44705
44706 int
44707 main ()
44708 {
44709 return $ac_func ();
44710   ;
44711   return 0;
44712 }
44713 _ACEOF
44714 rm -f conftest.$ac_objext conftest$ac_exeext
44715 if { (ac_try="$ac_link"
44716 case "(($ac_try" in
44717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44718   *) ac_try_echo=$ac_try;;
44719 esac
44720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44721 $as_echo "$ac_try_echo") >&5
44722   (eval "$ac_link") 2>conftest.er1
44723   ac_status=$?
44724   grep -v '^ *+' conftest.er1 >conftest.err
44725   rm -f conftest.er1
44726   cat conftest.err >&5
44727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44728   (exit $ac_status); } && {
44729          test -z "$ac_c_werror_flag" ||
44730          test ! -s conftest.err
44731        } && test -s conftest$ac_exeext && {
44732          test "$cross_compiling" = yes ||
44733          $as_test_x conftest$ac_exeext
44734        }; then
44735   eval "$as_ac_var=yes"
44736 else
44737   $as_echo "$as_me: failed program was:" >&5
44738 sed 's/^/| /' conftest.$ac_ext >&5
44739
44740         eval "$as_ac_var=no"
44741 fi
44742
44743 rm -rf conftest.dSYM
44744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44745       conftest$ac_exeext conftest.$ac_ext
44746 fi
44747 ac_res=`eval 'as_val=${'$as_ac_var'}
44748                  $as_echo "$as_val"'`
44749                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44750 $as_echo "$ac_res" >&6; }
44751 as_val=`eval 'as_val=${'$as_ac_var'}
44752                  $as_echo "$as_val"'`
44753    if test "x$as_val" = x""yes; then
44754   cat >>confdefs.h <<_ACEOF
44755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44756 _ACEOF
44757
44758                 have_xattr=yes
44759
44760 cat >>confdefs.h <<\_ACEOF
44761 #define HAVE_EXTATTR_GET_FILE 1
44762 _ACEOF
44763
44764
44765 cat >>confdefs.h <<\_ACEOF
44766 #define HAVE_EXTATTR_SET_FILE 1
44767 _ACEOF
44768
44769
44770 cat >>confdefs.h <<\_ACEOF
44771 #define HAVE_EXTATTR_LIST_FILE 1
44772 _ACEOF
44773
44774
44775
44776 fi
44777 done
44778
44779       fi
44780
44781       if test $have_xattr = yes; then
44782          have_extattr_string_in_libc=no
44783
44784
44785 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
44786 do
44787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44789 $as_echo_n "checking for $ac_func... " >&6; }
44790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44791   $as_echo_n "(cached) " >&6
44792 else
44793   cat >conftest.$ac_ext <<_ACEOF
44794 /* confdefs.h.  */
44795 _ACEOF
44796 cat confdefs.h >>conftest.$ac_ext
44797 cat >>conftest.$ac_ext <<_ACEOF
44798 /* end confdefs.h.  */
44799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44801 #define $ac_func innocuous_$ac_func
44802
44803 /* System header to define __stub macros and hopefully few prototypes,
44804     which can conflict with char $ac_func (); below.
44805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44806     <limits.h> exists even on freestanding compilers.  */
44807
44808 #ifdef __STDC__
44809 # include <limits.h>
44810 #else
44811 # include <assert.h>
44812 #endif
44813
44814 #undef $ac_func
44815
44816 /* Override any GCC internal prototype to avoid an error.
44817    Use char because int might match the return type of a GCC
44818    builtin and then its argument prototype would still apply.  */
44819 #ifdef __cplusplus
44820 extern "C"
44821 #endif
44822 char $ac_func ();
44823 /* The GNU C library defines this for functions which it implements
44824     to always fail with ENOSYS.  Some functions are actually named
44825     something starting with __ and the normal name is an alias.  */
44826 #if defined __stub_$ac_func || defined __stub___$ac_func
44827 choke me
44828 #endif
44829
44830 int
44831 main ()
44832 {
44833 return $ac_func ();
44834   ;
44835   return 0;
44836 }
44837 _ACEOF
44838 rm -f conftest.$ac_objext conftest$ac_exeext
44839 if { (ac_try="$ac_link"
44840 case "(($ac_try" in
44841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44842   *) ac_try_echo=$ac_try;;
44843 esac
44844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44845 $as_echo "$ac_try_echo") >&5
44846   (eval "$ac_link") 2>conftest.er1
44847   ac_status=$?
44848   grep -v '^ *+' conftest.er1 >conftest.err
44849   rm -f conftest.er1
44850   cat conftest.err >&5
44851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852   (exit $ac_status); } && {
44853          test -z "$ac_c_werror_flag" ||
44854          test ! -s conftest.err
44855        } && test -s conftest$ac_exeext && {
44856          test "$cross_compiling" = yes ||
44857          $as_test_x conftest$ac_exeext
44858        }; then
44859   eval "$as_ac_var=yes"
44860 else
44861   $as_echo "$as_me: failed program was:" >&5
44862 sed 's/^/| /' conftest.$ac_ext >&5
44863
44864         eval "$as_ac_var=no"
44865 fi
44866
44867 rm -rf conftest.dSYM
44868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44869       conftest$ac_exeext conftest.$ac_ext
44870 fi
44871 ac_res=`eval 'as_val=${'$as_ac_var'}
44872                  $as_echo "$as_val"'`
44873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44874 $as_echo "$ac_res" >&6; }
44875 as_val=`eval 'as_val=${'$as_ac_var'}
44876                  $as_echo "$as_val"'`
44877    if test "x$as_val" = x""yes; then
44878   cat >>confdefs.h <<_ACEOF
44879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44880 _ACEOF
44881
44882                 have_extattr_string_in_libc=yes
44883
44884 cat >>confdefs.h <<\_ACEOF
44885 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
44886 _ACEOF
44887
44888
44889 cat >>confdefs.h <<\_ACEOF
44890 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
44891 _ACEOF
44892
44893
44894
44895 fi
44896 done
44897
44898
44899                                  if test $have_extattr_string_in_libc = no; then
44900             { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
44901 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
44902 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
44903   $as_echo_n "(cached) " >&6
44904 else
44905   ac_check_lib_save_LIBS=$LIBS
44906 LIBS="-lutil  $LIBS"
44907 cat >conftest.$ac_ext <<_ACEOF
44908 /* confdefs.h.  */
44909 _ACEOF
44910 cat confdefs.h >>conftest.$ac_ext
44911 cat >>conftest.$ac_ext <<_ACEOF
44912 /* end confdefs.h.  */
44913
44914 /* Override any GCC internal prototype to avoid an error.
44915    Use char because int might match the return type of a GCC
44916    builtin and then its argument prototype would still apply.  */
44917 #ifdef __cplusplus
44918 extern "C"
44919 #endif
44920 char extattr_namespace_to_string extattr_string_to_namespace ();
44921 int
44922 main ()
44923 {
44924 return extattr_namespace_to_string extattr_string_to_namespace ();
44925   ;
44926   return 0;
44927 }
44928 _ACEOF
44929 rm -f conftest.$ac_objext conftest$ac_exeext
44930 if { (ac_try="$ac_link"
44931 case "(($ac_try" in
44932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44933   *) ac_try_echo=$ac_try;;
44934 esac
44935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44936 $as_echo "$ac_try_echo") >&5
44937   (eval "$ac_link") 2>conftest.er1
44938   ac_status=$?
44939   grep -v '^ *+' conftest.er1 >conftest.err
44940   rm -f conftest.er1
44941   cat conftest.err >&5
44942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943   (exit $ac_status); } && {
44944          test -z "$ac_c_werror_flag" ||
44945          test ! -s conftest.err
44946        } && test -s conftest$ac_exeext && {
44947          test "$cross_compiling" = yes ||
44948          $as_test_x conftest$ac_exeext
44949        }; then
44950   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
44951 else
44952   $as_echo "$as_me: failed program was:" >&5
44953 sed 's/^/| /' conftest.$ac_ext >&5
44954
44955         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
44956 fi
44957
44958 rm -rf conftest.dSYM
44959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44960       conftest$ac_exeext conftest.$ac_ext
44961 LIBS=$ac_check_lib_save_LIBS
44962 fi
44963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
44964 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
44965 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
44966
44967
44968 cat >>confdefs.h <<\_ACEOF
44969 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
44970 _ACEOF
44971
44972
44973 cat >>confdefs.h <<\_ACEOF
44974 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
44975 _ACEOF
44976
44977                    FDLIBS="-lutil $FDLIBS"
44978
44979
44980 fi
44981
44982          fi
44983       fi
44984    fi
44985
44986                if test $have_xattr = no -a \
44987            x${HAVE_AIX_OS_TRUE} = x; then
44988       if test "${ac_cv_header_sys_ea_h+set}" = set; then
44989   { $as_echo "$as_me:$LINENO: checking for sys/ea.h" >&5
44990 $as_echo_n "checking for sys/ea.h... " >&6; }
44991 if test "${ac_cv_header_sys_ea_h+set}" = set; then
44992   $as_echo_n "(cached) " >&6
44993 fi
44994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ea_h" >&5
44995 $as_echo "$ac_cv_header_sys_ea_h" >&6; }
44996 else
44997   # Is the header compilable?
44998 { $as_echo "$as_me:$LINENO: checking sys/ea.h usability" >&5
44999 $as_echo_n "checking sys/ea.h usability... " >&6; }
45000 cat >conftest.$ac_ext <<_ACEOF
45001 /* confdefs.h.  */
45002 _ACEOF
45003 cat confdefs.h >>conftest.$ac_ext
45004 cat >>conftest.$ac_ext <<_ACEOF
45005 /* end confdefs.h.  */
45006 $ac_includes_default
45007 #include <sys/ea.h>
45008 _ACEOF
45009 rm -f conftest.$ac_objext
45010 if { (ac_try="$ac_compile"
45011 case "(($ac_try" in
45012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45013   *) ac_try_echo=$ac_try;;
45014 esac
45015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45016 $as_echo "$ac_try_echo") >&5
45017   (eval "$ac_compile") 2>conftest.er1
45018   ac_status=$?
45019   grep -v '^ *+' conftest.er1 >conftest.err
45020   rm -f conftest.er1
45021   cat conftest.err >&5
45022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023   (exit $ac_status); } && {
45024          test -z "$ac_c_werror_flag" ||
45025          test ! -s conftest.err
45026        } && test -s conftest.$ac_objext; then
45027   ac_header_compiler=yes
45028 else
45029   $as_echo "$as_me: failed program was:" >&5
45030 sed 's/^/| /' conftest.$ac_ext >&5
45031
45032         ac_header_compiler=no
45033 fi
45034
45035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45037 $as_echo "$ac_header_compiler" >&6; }
45038
45039 # Is the header present?
45040 { $as_echo "$as_me:$LINENO: checking sys/ea.h presence" >&5
45041 $as_echo_n "checking sys/ea.h presence... " >&6; }
45042 cat >conftest.$ac_ext <<_ACEOF
45043 /* confdefs.h.  */
45044 _ACEOF
45045 cat confdefs.h >>conftest.$ac_ext
45046 cat >>conftest.$ac_ext <<_ACEOF
45047 /* end confdefs.h.  */
45048 #include <sys/ea.h>
45049 _ACEOF
45050 if { (ac_try="$ac_cpp conftest.$ac_ext"
45051 case "(($ac_try" in
45052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45053   *) ac_try_echo=$ac_try;;
45054 esac
45055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45056 $as_echo "$ac_try_echo") >&5
45057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45058   ac_status=$?
45059   grep -v '^ *+' conftest.er1 >conftest.err
45060   rm -f conftest.er1
45061   cat conftest.err >&5
45062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45063   (exit $ac_status); } >/dev/null && {
45064          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45065          test ! -s conftest.err
45066        }; then
45067   ac_header_preproc=yes
45068 else
45069   $as_echo "$as_me: failed program was:" >&5
45070 sed 's/^/| /' conftest.$ac_ext >&5
45071
45072   ac_header_preproc=no
45073 fi
45074
45075 rm -f conftest.err conftest.$ac_ext
45076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45077 $as_echo "$ac_header_preproc" >&6; }
45078
45079 # So?  What about this header?
45080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45081   yes:no: )
45082     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: accepted by the compiler, rejected by the preprocessor!" >&5
45083 $as_echo "$as_me: WARNING: sys/ea.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45084     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: proceeding with the compiler's result" >&5
45085 $as_echo "$as_me: WARNING: sys/ea.h: proceeding with the compiler's result" >&2;}
45086     ac_header_preproc=yes
45087     ;;
45088   no:yes:* )
45089     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: present but cannot be compiled" >&5
45090 $as_echo "$as_me: WARNING: sys/ea.h: present but cannot be compiled" >&2;}
45091     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h:     check for missing prerequisite headers?" >&5
45092 $as_echo "$as_me: WARNING: sys/ea.h:     check for missing prerequisite headers?" >&2;}
45093     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: see the Autoconf documentation" >&5
45094 $as_echo "$as_me: WARNING: sys/ea.h: see the Autoconf documentation" >&2;}
45095     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h:     section \"Present But Cannot Be Compiled\"" >&5
45096 $as_echo "$as_me: WARNING: sys/ea.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45097     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: proceeding with the preprocessor's result" >&5
45098 $as_echo "$as_me: WARNING: sys/ea.h: proceeding with the preprocessor's result" >&2;}
45099     { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: in the future, the compiler will take precedence" >&5
45100 $as_echo "$as_me: WARNING: sys/ea.h: in the future, the compiler will take precedence" >&2;}
45101
45102     ;;
45103 esac
45104 { $as_echo "$as_me:$LINENO: checking for sys/ea.h" >&5
45105 $as_echo_n "checking for sys/ea.h... " >&6; }
45106 if test "${ac_cv_header_sys_ea_h+set}" = set; then
45107   $as_echo_n "(cached) " >&6
45108 else
45109   ac_cv_header_sys_ea_h=$ac_header_preproc
45110 fi
45111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ea_h" >&5
45112 $as_echo "$ac_cv_header_sys_ea_h" >&6; }
45113
45114 fi
45115 if test "x$ac_cv_header_sys_ea_h" = x""yes; then
45116
45117 cat >>confdefs.h <<\_ACEOF
45118 #define HAVE_SYS_EA_H 1
45119 _ACEOF
45120
45121 fi
45122
45123
45124
45125
45126
45127 for ac_func in llistea lgetea lsetea
45128 do
45129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45131 $as_echo_n "checking for $ac_func... " >&6; }
45132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45133   $as_echo_n "(cached) " >&6
45134 else
45135   cat >conftest.$ac_ext <<_ACEOF
45136 /* confdefs.h.  */
45137 _ACEOF
45138 cat confdefs.h >>conftest.$ac_ext
45139 cat >>conftest.$ac_ext <<_ACEOF
45140 /* end confdefs.h.  */
45141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45143 #define $ac_func innocuous_$ac_func
45144
45145 /* System header to define __stub macros and hopefully few prototypes,
45146     which can conflict with char $ac_func (); below.
45147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45148     <limits.h> exists even on freestanding compilers.  */
45149
45150 #ifdef __STDC__
45151 # include <limits.h>
45152 #else
45153 # include <assert.h>
45154 #endif
45155
45156 #undef $ac_func
45157
45158 /* Override any GCC internal prototype to avoid an error.
45159    Use char because int might match the return type of a GCC
45160    builtin and then its argument prototype would still apply.  */
45161 #ifdef __cplusplus
45162 extern "C"
45163 #endif
45164 char $ac_func ();
45165 /* The GNU C library defines this for functions which it implements
45166     to always fail with ENOSYS.  Some functions are actually named
45167     something starting with __ and the normal name is an alias.  */
45168 #if defined __stub_$ac_func || defined __stub___$ac_func
45169 choke me
45170 #endif
45171
45172 int
45173 main ()
45174 {
45175 return $ac_func ();
45176   ;
45177   return 0;
45178 }
45179 _ACEOF
45180 rm -f conftest.$ac_objext conftest$ac_exeext
45181 if { (ac_try="$ac_link"
45182 case "(($ac_try" in
45183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45184   *) ac_try_echo=$ac_try;;
45185 esac
45186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45187 $as_echo "$ac_try_echo") >&5
45188   (eval "$ac_link") 2>conftest.er1
45189   ac_status=$?
45190   grep -v '^ *+' conftest.er1 >conftest.err
45191   rm -f conftest.er1
45192   cat conftest.err >&5
45193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194   (exit $ac_status); } && {
45195          test -z "$ac_c_werror_flag" ||
45196          test ! -s conftest.err
45197        } && test -s conftest$ac_exeext && {
45198          test "$cross_compiling" = yes ||
45199          $as_test_x conftest$ac_exeext
45200        }; then
45201   eval "$as_ac_var=yes"
45202 else
45203   $as_echo "$as_me: failed program was:" >&5
45204 sed 's/^/| /' conftest.$ac_ext >&5
45205
45206         eval "$as_ac_var=no"
45207 fi
45208
45209 rm -rf conftest.dSYM
45210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45211       conftest$ac_exeext conftest.$ac_ext
45212 fi
45213 ac_res=`eval 'as_val=${'$as_ac_var'}
45214                  $as_echo "$as_val"'`
45215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45216 $as_echo "$ac_res" >&6; }
45217 as_val=`eval 'as_val=${'$as_ac_var'}
45218                  $as_echo "$as_val"'`
45219    if test "x$as_val" = x""yes; then
45220   cat >>confdefs.h <<_ACEOF
45221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45222 _ACEOF
45223
45224              have_xattr=yes
45225
45226 cat >>confdefs.h <<\_ACEOF
45227 #define HAVE_LLISTEA 1
45228 _ACEOF
45229
45230
45231 cat >>confdefs.h <<\_ACEOF
45232 #define HAVE_LGETEA 1
45233 _ACEOF
45234
45235
45236 cat >>confdefs.h <<\_ACEOF
45237 #define HAVE_LSETEA 1
45238 _ACEOF
45239
45240
45241
45242 fi
45243 done
45244
45245
45246       if test $have_xattr = no; then
45247
45248
45249
45250 for ac_func in listea getea setea
45251 do
45252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45254 $as_echo_n "checking for $ac_func... " >&6; }
45255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45256   $as_echo_n "(cached) " >&6
45257 else
45258   cat >conftest.$ac_ext <<_ACEOF
45259 /* confdefs.h.  */
45260 _ACEOF
45261 cat confdefs.h >>conftest.$ac_ext
45262 cat >>conftest.$ac_ext <<_ACEOF
45263 /* end confdefs.h.  */
45264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45266 #define $ac_func innocuous_$ac_func
45267
45268 /* System header to define __stub macros and hopefully few prototypes,
45269     which can conflict with char $ac_func (); below.
45270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45271     <limits.h> exists even on freestanding compilers.  */
45272
45273 #ifdef __STDC__
45274 # include <limits.h>
45275 #else
45276 # include <assert.h>
45277 #endif
45278
45279 #undef $ac_func
45280
45281 /* Override any GCC internal prototype to avoid an error.
45282    Use char because int might match the return type of a GCC
45283    builtin and then its argument prototype would still apply.  */
45284 #ifdef __cplusplus
45285 extern "C"
45286 #endif
45287 char $ac_func ();
45288 /* The GNU C library defines this for functions which it implements
45289     to always fail with ENOSYS.  Some functions are actually named
45290     something starting with __ and the normal name is an alias.  */
45291 #if defined __stub_$ac_func || defined __stub___$ac_func
45292 choke me
45293 #endif
45294
45295 int
45296 main ()
45297 {
45298 return $ac_func ();
45299   ;
45300   return 0;
45301 }
45302 _ACEOF
45303 rm -f conftest.$ac_objext conftest$ac_exeext
45304 if { (ac_try="$ac_link"
45305 case "(($ac_try" in
45306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45307   *) ac_try_echo=$ac_try;;
45308 esac
45309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45310 $as_echo "$ac_try_echo") >&5
45311   (eval "$ac_link") 2>conftest.er1
45312   ac_status=$?
45313   grep -v '^ *+' conftest.er1 >conftest.err
45314   rm -f conftest.er1
45315   cat conftest.err >&5
45316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45317   (exit $ac_status); } && {
45318          test -z "$ac_c_werror_flag" ||
45319          test ! -s conftest.err
45320        } && test -s conftest$ac_exeext && {
45321          test "$cross_compiling" = yes ||
45322          $as_test_x conftest$ac_exeext
45323        }; then
45324   eval "$as_ac_var=yes"
45325 else
45326   $as_echo "$as_me: failed program was:" >&5
45327 sed 's/^/| /' conftest.$ac_ext >&5
45328
45329         eval "$as_ac_var=no"
45330 fi
45331
45332 rm -rf conftest.dSYM
45333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45334       conftest$ac_exeext conftest.$ac_ext
45335 fi
45336 ac_res=`eval 'as_val=${'$as_ac_var'}
45337                  $as_echo "$as_val"'`
45338                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45339 $as_echo "$ac_res" >&6; }
45340 as_val=`eval 'as_val=${'$as_ac_var'}
45341                  $as_echo "$as_val"'`
45342    if test "x$as_val" = x""yes; then
45343   cat >>confdefs.h <<_ACEOF
45344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45345 _ACEOF
45346
45347                 have_xattr=yes
45348
45349 cat >>confdefs.h <<\_ACEOF
45350 #define HAVE_LISTEA 1
45351 _ACEOF
45352
45353
45354 cat >>confdefs.h <<\_ACEOF
45355 #define HAVE_GETEA 1
45356 _ACEOF
45357
45358
45359 cat >>confdefs.h <<\_ACEOF
45360 #define HAVE_SETEA 1
45361 _ACEOF
45362
45363
45364
45365 fi
45366 done
45367
45368       fi
45369    fi
45370
45371                if test $have_xattr = no -a \
45372            x${HAVE_OSF1_OS_TRUE} = x; then
45373       if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45374   { $as_echo "$as_me:$LINENO: checking for sys/proplist.h" >&5
45375 $as_echo_n "checking for sys/proplist.h... " >&6; }
45376 if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45377   $as_echo_n "(cached) " >&6
45378 fi
45379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_proplist_h" >&5
45380 $as_echo "$ac_cv_header_sys_proplist_h" >&6; }
45381 else
45382   # Is the header compilable?
45383 { $as_echo "$as_me:$LINENO: checking sys/proplist.h usability" >&5
45384 $as_echo_n "checking sys/proplist.h usability... " >&6; }
45385 cat >conftest.$ac_ext <<_ACEOF
45386 /* confdefs.h.  */
45387 _ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h.  */
45391 $ac_includes_default
45392 #include <sys/proplist.h>
45393 _ACEOF
45394 rm -f conftest.$ac_objext
45395 if { (ac_try="$ac_compile"
45396 case "(($ac_try" in
45397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45398   *) ac_try_echo=$ac_try;;
45399 esac
45400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45401 $as_echo "$ac_try_echo") >&5
45402   (eval "$ac_compile") 2>conftest.er1
45403   ac_status=$?
45404   grep -v '^ *+' conftest.er1 >conftest.err
45405   rm -f conftest.er1
45406   cat conftest.err >&5
45407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45408   (exit $ac_status); } && {
45409          test -z "$ac_c_werror_flag" ||
45410          test ! -s conftest.err
45411        } && test -s conftest.$ac_objext; then
45412   ac_header_compiler=yes
45413 else
45414   $as_echo "$as_me: failed program was:" >&5
45415 sed 's/^/| /' conftest.$ac_ext >&5
45416
45417         ac_header_compiler=no
45418 fi
45419
45420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45422 $as_echo "$ac_header_compiler" >&6; }
45423
45424 # Is the header present?
45425 { $as_echo "$as_me:$LINENO: checking sys/proplist.h presence" >&5
45426 $as_echo_n "checking sys/proplist.h presence... " >&6; }
45427 cat >conftest.$ac_ext <<_ACEOF
45428 /* confdefs.h.  */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h.  */
45433 #include <sys/proplist.h>
45434 _ACEOF
45435 if { (ac_try="$ac_cpp conftest.$ac_ext"
45436 case "(($ac_try" in
45437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45438   *) ac_try_echo=$ac_try;;
45439 esac
45440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45441 $as_echo "$ac_try_echo") >&5
45442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45443   ac_status=$?
45444   grep -v '^ *+' conftest.er1 >conftest.err
45445   rm -f conftest.er1
45446   cat conftest.err >&5
45447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); } >/dev/null && {
45449          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45450          test ! -s conftest.err
45451        }; then
45452   ac_header_preproc=yes
45453 else
45454   $as_echo "$as_me: failed program was:" >&5
45455 sed 's/^/| /' conftest.$ac_ext >&5
45456
45457   ac_header_preproc=no
45458 fi
45459
45460 rm -f conftest.err conftest.$ac_ext
45461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45462 $as_echo "$ac_header_preproc" >&6; }
45463
45464 # So?  What about this header?
45465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45466   yes:no: )
45467     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: accepted by the compiler, rejected by the preprocessor!" >&5
45468 $as_echo "$as_me: WARNING: sys/proplist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45469     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: proceeding with the compiler's result" >&5
45470 $as_echo "$as_me: WARNING: sys/proplist.h: proceeding with the compiler's result" >&2;}
45471     ac_header_preproc=yes
45472     ;;
45473   no:yes:* )
45474     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: present but cannot be compiled" >&5
45475 $as_echo "$as_me: WARNING: sys/proplist.h: present but cannot be compiled" >&2;}
45476     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h:     check for missing prerequisite headers?" >&5
45477 $as_echo "$as_me: WARNING: sys/proplist.h:     check for missing prerequisite headers?" >&2;}
45478     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: see the Autoconf documentation" >&5
45479 $as_echo "$as_me: WARNING: sys/proplist.h: see the Autoconf documentation" >&2;}
45480     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h:     section \"Present But Cannot Be Compiled\"" >&5
45481 $as_echo "$as_me: WARNING: sys/proplist.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45482     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: proceeding with the preprocessor's result" >&5
45483 $as_echo "$as_me: WARNING: sys/proplist.h: proceeding with the preprocessor's result" >&2;}
45484     { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: in the future, the compiler will take precedence" >&5
45485 $as_echo "$as_me: WARNING: sys/proplist.h: in the future, the compiler will take precedence" >&2;}
45486
45487     ;;
45488 esac
45489 { $as_echo "$as_me:$LINENO: checking for sys/proplist.h" >&5
45490 $as_echo_n "checking for sys/proplist.h... " >&6; }
45491 if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45492   $as_echo_n "(cached) " >&6
45493 else
45494   ac_cv_header_sys_proplist_h=$ac_header_preproc
45495 fi
45496 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_proplist_h" >&5
45497 $as_echo "$ac_cv_header_sys_proplist_h" >&6; }
45498
45499 fi
45500 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then
45501
45502 cat >>confdefs.h <<\_ACEOF
45503 #define HAVE_SYS_PROPLIST_H 1
45504 _ACEOF
45505
45506 fi
45507
45508
45509
45510
45511
45512
45513
45514 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
45515 do
45516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45518 $as_echo_n "checking for $ac_func... " >&6; }
45519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45520   $as_echo_n "(cached) " >&6
45521 else
45522   cat >conftest.$ac_ext <<_ACEOF
45523 /* confdefs.h.  */
45524 _ACEOF
45525 cat confdefs.h >>conftest.$ac_ext
45526 cat >>conftest.$ac_ext <<_ACEOF
45527 /* end confdefs.h.  */
45528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45530 #define $ac_func innocuous_$ac_func
45531
45532 /* System header to define __stub macros and hopefully few prototypes,
45533     which can conflict with char $ac_func (); below.
45534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45535     <limits.h> exists even on freestanding compilers.  */
45536
45537 #ifdef __STDC__
45538 # include <limits.h>
45539 #else
45540 # include <assert.h>
45541 #endif
45542
45543 #undef $ac_func
45544
45545 /* Override any GCC internal prototype to avoid an error.
45546    Use char because int might match the return type of a GCC
45547    builtin and then its argument prototype would still apply.  */
45548 #ifdef __cplusplus
45549 extern "C"
45550 #endif
45551 char $ac_func ();
45552 /* The GNU C library defines this for functions which it implements
45553     to always fail with ENOSYS.  Some functions are actually named
45554     something starting with __ and the normal name is an alias.  */
45555 #if defined __stub_$ac_func || defined __stub___$ac_func
45556 choke me
45557 #endif
45558
45559 int
45560 main ()
45561 {
45562 return $ac_func ();
45563   ;
45564   return 0;
45565 }
45566 _ACEOF
45567 rm -f conftest.$ac_objext conftest$ac_exeext
45568 if { (ac_try="$ac_link"
45569 case "(($ac_try" in
45570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45571   *) ac_try_echo=$ac_try;;
45572 esac
45573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45574 $as_echo "$ac_try_echo") >&5
45575   (eval "$ac_link") 2>conftest.er1
45576   ac_status=$?
45577   grep -v '^ *+' conftest.er1 >conftest.err
45578   rm -f conftest.er1
45579   cat conftest.err >&5
45580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45581   (exit $ac_status); } && {
45582          test -z "$ac_c_werror_flag" ||
45583          test ! -s conftest.err
45584        } && test -s conftest$ac_exeext && {
45585          test "$cross_compiling" = yes ||
45586          $as_test_x conftest$ac_exeext
45587        }; then
45588   eval "$as_ac_var=yes"
45589 else
45590   $as_echo "$as_me: failed program was:" >&5
45591 sed 's/^/| /' conftest.$ac_ext >&5
45592
45593         eval "$as_ac_var=no"
45594 fi
45595
45596 rm -rf conftest.dSYM
45597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45598       conftest$ac_exeext conftest.$ac_ext
45599 fi
45600 ac_res=`eval 'as_val=${'$as_ac_var'}
45601                  $as_echo "$as_val"'`
45602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45603 $as_echo "$ac_res" >&6; }
45604 as_val=`eval 'as_val=${'$as_ac_var'}
45605                  $as_echo "$as_val"'`
45606    if test "x$as_val" = x""yes; then
45607   cat >>confdefs.h <<_ACEOF
45608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45609 _ACEOF
45610
45611              have_xattr=yes
45612
45613 cat >>confdefs.h <<\_ACEOF
45614 #define HAVE_GETPROPLIST 1
45615 _ACEOF
45616
45617
45618 cat >>confdefs.h <<\_ACEOF
45619 #define HAVE_GET_PROPLIST_ENTRY 1
45620 _ACEOF
45621
45622
45623 cat >>confdefs.h <<\_ACEOF
45624 #define HAVE_SIZEOF_PROPLIST_ENTRY 1
45625 _ACEOF
45626
45627
45628 cat >>confdefs.h <<\_ACEOF
45629 #define HAVE_ADD_PROPLIST_ENTRY 1
45630 _ACEOF
45631
45632
45633 cat >>confdefs.h <<\_ACEOF
45634 #define HAVE_SETPROPLIST 1
45635 _ACEOF
45636
45637
45638
45639 fi
45640 done
45641
45642    fi
45643
45644                if test $have_xattr = no -a \
45645            x${HAVE_SUN_OS_TRUE} = x; then
45646       if test "${ac_cv_header_sys_attr_h+set}" = set; then
45647   { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
45648 $as_echo_n "checking for sys/attr.h... " >&6; }
45649 if test "${ac_cv_header_sys_attr_h+set}" = set; then
45650   $as_echo_n "(cached) " >&6
45651 fi
45652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
45653 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
45654 else
45655   # Is the header compilable?
45656 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
45657 $as_echo_n "checking sys/attr.h usability... " >&6; }
45658 cat >conftest.$ac_ext <<_ACEOF
45659 /* confdefs.h.  */
45660 _ACEOF
45661 cat confdefs.h >>conftest.$ac_ext
45662 cat >>conftest.$ac_ext <<_ACEOF
45663 /* end confdefs.h.  */
45664 $ac_includes_default
45665 #include <sys/attr.h>
45666 _ACEOF
45667 rm -f conftest.$ac_objext
45668 if { (ac_try="$ac_compile"
45669 case "(($ac_try" in
45670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45671   *) ac_try_echo=$ac_try;;
45672 esac
45673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45674 $as_echo "$ac_try_echo") >&5
45675   (eval "$ac_compile") 2>conftest.er1
45676   ac_status=$?
45677   grep -v '^ *+' conftest.er1 >conftest.err
45678   rm -f conftest.er1
45679   cat conftest.err >&5
45680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45681   (exit $ac_status); } && {
45682          test -z "$ac_c_werror_flag" ||
45683          test ! -s conftest.err
45684        } && test -s conftest.$ac_objext; then
45685   ac_header_compiler=yes
45686 else
45687   $as_echo "$as_me: failed program was:" >&5
45688 sed 's/^/| /' conftest.$ac_ext >&5
45689
45690         ac_header_compiler=no
45691 fi
45692
45693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45695 $as_echo "$ac_header_compiler" >&6; }
45696
45697 # Is the header present?
45698 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
45699 $as_echo_n "checking sys/attr.h presence... " >&6; }
45700 cat >conftest.$ac_ext <<_ACEOF
45701 /* confdefs.h.  */
45702 _ACEOF
45703 cat confdefs.h >>conftest.$ac_ext
45704 cat >>conftest.$ac_ext <<_ACEOF
45705 /* end confdefs.h.  */
45706 #include <sys/attr.h>
45707 _ACEOF
45708 if { (ac_try="$ac_cpp conftest.$ac_ext"
45709 case "(($ac_try" in
45710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45711   *) ac_try_echo=$ac_try;;
45712 esac
45713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45714 $as_echo "$ac_try_echo") >&5
45715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45716   ac_status=$?
45717   grep -v '^ *+' conftest.er1 >conftest.err
45718   rm -f conftest.er1
45719   cat conftest.err >&5
45720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45721   (exit $ac_status); } >/dev/null && {
45722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45723          test ! -s conftest.err
45724        }; then
45725   ac_header_preproc=yes
45726 else
45727   $as_echo "$as_me: failed program was:" >&5
45728 sed 's/^/| /' conftest.$ac_ext >&5
45729
45730   ac_header_preproc=no
45731 fi
45732
45733 rm -f conftest.err conftest.$ac_ext
45734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45735 $as_echo "$ac_header_preproc" >&6; }
45736
45737 # So?  What about this header?
45738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45739   yes:no: )
45740     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
45741 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45742     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
45743 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
45744     ac_header_preproc=yes
45745     ;;
45746   no:yes:* )
45747     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
45748 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
45749     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
45750 $as_echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
45751     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
45752 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
45753     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
45754 $as_echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45755     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
45756 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
45757     { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
45758 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
45759
45760     ;;
45761 esac
45762 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
45763 $as_echo_n "checking for sys/attr.h... " >&6; }
45764 if test "${ac_cv_header_sys_attr_h+set}" = set; then
45765   $as_echo_n "(cached) " >&6
45766 else
45767   ac_cv_header_sys_attr_h=$ac_header_preproc
45768 fi
45769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
45770 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
45771
45772 fi
45773 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
45774
45775 cat >>confdefs.h <<\_ACEOF
45776 #define HAVE_SYS_ATTR_H 1
45777 _ACEOF
45778
45779 fi
45780
45781
45782       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45783   { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
45784 $as_echo_n "checking for sys/nvpair.h... " >&6; }
45785 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45786   $as_echo_n "(cached) " >&6
45787 fi
45788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
45789 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
45790 else
45791   # Is the header compilable?
45792 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
45793 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
45794 cat >conftest.$ac_ext <<_ACEOF
45795 /* confdefs.h.  */
45796 _ACEOF
45797 cat confdefs.h >>conftest.$ac_ext
45798 cat >>conftest.$ac_ext <<_ACEOF
45799 /* end confdefs.h.  */
45800 $ac_includes_default
45801 #include <sys/nvpair.h>
45802 _ACEOF
45803 rm -f conftest.$ac_objext
45804 if { (ac_try="$ac_compile"
45805 case "(($ac_try" in
45806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45807   *) ac_try_echo=$ac_try;;
45808 esac
45809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45810 $as_echo "$ac_try_echo") >&5
45811   (eval "$ac_compile") 2>conftest.er1
45812   ac_status=$?
45813   grep -v '^ *+' conftest.er1 >conftest.err
45814   rm -f conftest.er1
45815   cat conftest.err >&5
45816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817   (exit $ac_status); } && {
45818          test -z "$ac_c_werror_flag" ||
45819          test ! -s conftest.err
45820        } && test -s conftest.$ac_objext; then
45821   ac_header_compiler=yes
45822 else
45823   $as_echo "$as_me: failed program was:" >&5
45824 sed 's/^/| /' conftest.$ac_ext >&5
45825
45826         ac_header_compiler=no
45827 fi
45828
45829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45831 $as_echo "$ac_header_compiler" >&6; }
45832
45833 # Is the header present?
45834 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
45835 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
45836 cat >conftest.$ac_ext <<_ACEOF
45837 /* confdefs.h.  */
45838 _ACEOF
45839 cat confdefs.h >>conftest.$ac_ext
45840 cat >>conftest.$ac_ext <<_ACEOF
45841 /* end confdefs.h.  */
45842 #include <sys/nvpair.h>
45843 _ACEOF
45844 if { (ac_try="$ac_cpp conftest.$ac_ext"
45845 case "(($ac_try" in
45846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45847   *) ac_try_echo=$ac_try;;
45848 esac
45849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45850 $as_echo "$ac_try_echo") >&5
45851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45852   ac_status=$?
45853   grep -v '^ *+' conftest.er1 >conftest.err
45854   rm -f conftest.er1
45855   cat conftest.err >&5
45856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45857   (exit $ac_status); } >/dev/null && {
45858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45859          test ! -s conftest.err
45860        }; then
45861   ac_header_preproc=yes
45862 else
45863   $as_echo "$as_me: failed program was:" >&5
45864 sed 's/^/| /' conftest.$ac_ext >&5
45865
45866   ac_header_preproc=no
45867 fi
45868
45869 rm -f conftest.err conftest.$ac_ext
45870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45871 $as_echo "$ac_header_preproc" >&6; }
45872
45873 # So?  What about this header?
45874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45875   yes:no: )
45876     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
45877 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45878     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
45879 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
45880     ac_header_preproc=yes
45881     ;;
45882   no:yes:* )
45883     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
45884 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
45885     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
45886 $as_echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
45887     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
45888 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
45889     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
45890 $as_echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45891     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
45892 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
45893     { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
45894 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
45895
45896     ;;
45897 esac
45898 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
45899 $as_echo_n "checking for sys/nvpair.h... " >&6; }
45900 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45901   $as_echo_n "(cached) " >&6
45902 else
45903   ac_cv_header_sys_nvpair_h=$ac_header_preproc
45904 fi
45905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
45906 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
45907
45908 fi
45909 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
45910
45911 cat >>confdefs.h <<\_ACEOF
45912 #define HAVE_SYS_NVPAIR_H 1
45913 _ACEOF
45914
45915 fi
45916
45917
45918       if test "${ac_cv_header_attr_h+set}" = set; then
45919   { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
45920 $as_echo_n "checking for attr.h... " >&6; }
45921 if test "${ac_cv_header_attr_h+set}" = set; then
45922   $as_echo_n "(cached) " >&6
45923 fi
45924 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
45925 $as_echo "$ac_cv_header_attr_h" >&6; }
45926 else
45927   # Is the header compilable?
45928 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
45929 $as_echo_n "checking attr.h usability... " >&6; }
45930 cat >conftest.$ac_ext <<_ACEOF
45931 /* confdefs.h.  */
45932 _ACEOF
45933 cat confdefs.h >>conftest.$ac_ext
45934 cat >>conftest.$ac_ext <<_ACEOF
45935 /* end confdefs.h.  */
45936 $ac_includes_default
45937 #include <attr.h>
45938 _ACEOF
45939 rm -f conftest.$ac_objext
45940 if { (ac_try="$ac_compile"
45941 case "(($ac_try" in
45942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45943   *) ac_try_echo=$ac_try;;
45944 esac
45945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45946 $as_echo "$ac_try_echo") >&5
45947   (eval "$ac_compile") 2>conftest.er1
45948   ac_status=$?
45949   grep -v '^ *+' conftest.er1 >conftest.err
45950   rm -f conftest.er1
45951   cat conftest.err >&5
45952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953   (exit $ac_status); } && {
45954          test -z "$ac_c_werror_flag" ||
45955          test ! -s conftest.err
45956        } && test -s conftest.$ac_objext; then
45957   ac_header_compiler=yes
45958 else
45959   $as_echo "$as_me: failed program was:" >&5
45960 sed 's/^/| /' conftest.$ac_ext >&5
45961
45962         ac_header_compiler=no
45963 fi
45964
45965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45967 $as_echo "$ac_header_compiler" >&6; }
45968
45969 # Is the header present?
45970 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
45971 $as_echo_n "checking attr.h presence... " >&6; }
45972 cat >conftest.$ac_ext <<_ACEOF
45973 /* confdefs.h.  */
45974 _ACEOF
45975 cat confdefs.h >>conftest.$ac_ext
45976 cat >>conftest.$ac_ext <<_ACEOF
45977 /* end confdefs.h.  */
45978 #include <attr.h>
45979 _ACEOF
45980 if { (ac_try="$ac_cpp conftest.$ac_ext"
45981 case "(($ac_try" in
45982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45983   *) ac_try_echo=$ac_try;;
45984 esac
45985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45986 $as_echo "$ac_try_echo") >&5
45987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45988   ac_status=$?
45989   grep -v '^ *+' conftest.er1 >conftest.err
45990   rm -f conftest.er1
45991   cat conftest.err >&5
45992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45993   (exit $ac_status); } >/dev/null && {
45994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45995          test ! -s conftest.err
45996        }; then
45997   ac_header_preproc=yes
45998 else
45999   $as_echo "$as_me: failed program was:" >&5
46000 sed 's/^/| /' conftest.$ac_ext >&5
46001
46002   ac_header_preproc=no
46003 fi
46004
46005 rm -f conftest.err conftest.$ac_ext
46006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46007 $as_echo "$ac_header_preproc" >&6; }
46008
46009 # So?  What about this header?
46010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46011   yes:no: )
46012     { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
46013 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46014     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
46015 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
46016     ac_header_preproc=yes
46017     ;;
46018   no:yes:* )
46019     { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
46020 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
46021     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
46022 $as_echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
46023     { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
46024 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
46025     { $as_echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
46026 $as_echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
46027     { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
46028 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
46029     { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
46030 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
46031
46032     ;;
46033 esac
46034 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
46035 $as_echo_n "checking for attr.h... " >&6; }
46036 if test "${ac_cv_header_attr_h+set}" = set; then
46037   $as_echo_n "(cached) " >&6
46038 else
46039   ac_cv_header_attr_h=$ac_header_preproc
46040 fi
46041 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
46042 $as_echo "$ac_cv_header_attr_h" >&6; }
46043
46044 fi
46045 if test "x$ac_cv_header_attr_h" = x""yes; then
46046
46047 cat >>confdefs.h <<\_ACEOF
46048 #define HAVE_ATTR_H 1
46049 _ACEOF
46050
46051 fi
46052
46053
46054
46055
46056
46057
46058
46059
46060 for ac_func in openat fstatat unlinkat fchownat futimesat
46061 do
46062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46064 $as_echo_n "checking for $ac_func... " >&6; }
46065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46066   $as_echo_n "(cached) " >&6
46067 else
46068   cat >conftest.$ac_ext <<_ACEOF
46069 /* confdefs.h.  */
46070 _ACEOF
46071 cat confdefs.h >>conftest.$ac_ext
46072 cat >>conftest.$ac_ext <<_ACEOF
46073 /* end confdefs.h.  */
46074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46076 #define $ac_func innocuous_$ac_func
46077
46078 /* System header to define __stub macros and hopefully few prototypes,
46079     which can conflict with char $ac_func (); below.
46080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46081     <limits.h> exists even on freestanding compilers.  */
46082
46083 #ifdef __STDC__
46084 # include <limits.h>
46085 #else
46086 # include <assert.h>
46087 #endif
46088
46089 #undef $ac_func
46090
46091 /* Override any GCC internal prototype to avoid an error.
46092    Use char because int might match the return type of a GCC
46093    builtin and then its argument prototype would still apply.  */
46094 #ifdef __cplusplus
46095 extern "C"
46096 #endif
46097 char $ac_func ();
46098 /* The GNU C library defines this for functions which it implements
46099     to always fail with ENOSYS.  Some functions are actually named
46100     something starting with __ and the normal name is an alias.  */
46101 #if defined __stub_$ac_func || defined __stub___$ac_func
46102 choke me
46103 #endif
46104
46105 int
46106 main ()
46107 {
46108 return $ac_func ();
46109   ;
46110   return 0;
46111 }
46112 _ACEOF
46113 rm -f conftest.$ac_objext conftest$ac_exeext
46114 if { (ac_try="$ac_link"
46115 case "(($ac_try" in
46116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46117   *) ac_try_echo=$ac_try;;
46118 esac
46119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46120 $as_echo "$ac_try_echo") >&5
46121   (eval "$ac_link") 2>conftest.er1
46122   ac_status=$?
46123   grep -v '^ *+' conftest.er1 >conftest.err
46124   rm -f conftest.er1
46125   cat conftest.err >&5
46126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127   (exit $ac_status); } && {
46128          test -z "$ac_c_werror_flag" ||
46129          test ! -s conftest.err
46130        } && test -s conftest$ac_exeext && {
46131          test "$cross_compiling" = yes ||
46132          $as_test_x conftest$ac_exeext
46133        }; then
46134   eval "$as_ac_var=yes"
46135 else
46136   $as_echo "$as_me: failed program was:" >&5
46137 sed 's/^/| /' conftest.$ac_ext >&5
46138
46139         eval "$as_ac_var=no"
46140 fi
46141
46142 rm -rf conftest.dSYM
46143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46144       conftest$ac_exeext conftest.$ac_ext
46145 fi
46146 ac_res=`eval 'as_val=${'$as_ac_var'}
46147                  $as_echo "$as_val"'`
46148                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46149 $as_echo "$ac_res" >&6; }
46150 as_val=`eval 'as_val=${'$as_ac_var'}
46151                  $as_echo "$as_val"'`
46152    if test "x$as_val" = x""yes; then
46153   cat >>confdefs.h <<_ACEOF
46154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46155 _ACEOF
46156
46157              have_xattr=yes
46158
46159 cat >>confdefs.h <<\_ACEOF
46160 #define HAVE_OPENAT 1
46161 _ACEOF
46162
46163
46164 cat >>confdefs.h <<\_ACEOF
46165 #define HAVE_FSTATAT 1
46166 _ACEOF
46167
46168
46169 cat >>confdefs.h <<\_ACEOF
46170 #define HAVE_UNLINKAT 1
46171 _ACEOF
46172
46173
46174 cat >>confdefs.h <<\_ACEOF
46175 #define HAVE_FCHOWNAT 1
46176 _ACEOF
46177
46178
46179 cat >>confdefs.h <<\_ACEOF
46180 #define HAVE_FUTIMESAT 1
46181 _ACEOF
46182
46183
46184
46185 fi
46186 done
46187
46188
46189       if test $have_xattr = yes; then
46190          { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
46191 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
46192 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
46193   $as_echo_n "(cached) " >&6
46194 else
46195   ac_check_lib_save_LIBS=$LIBS
46196 LIBS="-lnvpair  $LIBS"
46197 cat >conftest.$ac_ext <<_ACEOF
46198 /* confdefs.h.  */
46199 _ACEOF
46200 cat confdefs.h >>conftest.$ac_ext
46201 cat >>conftest.$ac_ext <<_ACEOF
46202 /* end confdefs.h.  */
46203
46204 /* Override any GCC internal prototype to avoid an error.
46205    Use char because int might match the return type of a GCC
46206    builtin and then its argument prototype would still apply.  */
46207 #ifdef __cplusplus
46208 extern "C"
46209 #endif
46210 char nvlist_next_nvpair ();
46211 int
46212 main ()
46213 {
46214 return nvlist_next_nvpair ();
46215   ;
46216   return 0;
46217 }
46218 _ACEOF
46219 rm -f conftest.$ac_objext conftest$ac_exeext
46220 if { (ac_try="$ac_link"
46221 case "(($ac_try" in
46222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46223   *) ac_try_echo=$ac_try;;
46224 esac
46225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46226 $as_echo "$ac_try_echo") >&5
46227   (eval "$ac_link") 2>conftest.er1
46228   ac_status=$?
46229   grep -v '^ *+' conftest.er1 >conftest.err
46230   rm -f conftest.er1
46231   cat conftest.err >&5
46232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233   (exit $ac_status); } && {
46234          test -z "$ac_c_werror_flag" ||
46235          test ! -s conftest.err
46236        } && test -s conftest$ac_exeext && {
46237          test "$cross_compiling" = yes ||
46238          $as_test_x conftest$ac_exeext
46239        }; then
46240   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
46241 else
46242   $as_echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46244
46245         ac_cv_lib_nvpair_nvlist_next_nvpair=no
46246 fi
46247
46248 rm -rf conftest.dSYM
46249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46250       conftest$ac_exeext conftest.$ac_ext
46251 LIBS=$ac_check_lib_save_LIBS
46252 fi
46253 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
46254 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
46255 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
46256
46257
46258 cat >>confdefs.h <<\_ACEOF
46259 #define HAVE_NVLIST_NEXT_NVPAIR 1
46260 _ACEOF
46261
46262                 FDLIBS="-lnvpair $FDLIBS"
46263
46264
46265 fi
46266
46267       fi
46268    fi
46269
46270             if test $have_xattr = no; then
46271       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46272   { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
46273 $as_echo_n "checking for sys/xattr.h... " >&6; }
46274 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46275   $as_echo_n "(cached) " >&6
46276 fi
46277 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
46278 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
46279 else
46280   # Is the header compilable?
46281 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
46282 $as_echo_n "checking sys/xattr.h usability... " >&6; }
46283 cat >conftest.$ac_ext <<_ACEOF
46284 /* confdefs.h.  */
46285 _ACEOF
46286 cat confdefs.h >>conftest.$ac_ext
46287 cat >>conftest.$ac_ext <<_ACEOF
46288 /* end confdefs.h.  */
46289 $ac_includes_default
46290 #include <sys/xattr.h>
46291 _ACEOF
46292 rm -f conftest.$ac_objext
46293 if { (ac_try="$ac_compile"
46294 case "(($ac_try" in
46295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46296   *) ac_try_echo=$ac_try;;
46297 esac
46298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46299 $as_echo "$ac_try_echo") >&5
46300   (eval "$ac_compile") 2>conftest.er1
46301   ac_status=$?
46302   grep -v '^ *+' conftest.er1 >conftest.err
46303   rm -f conftest.er1
46304   cat conftest.err >&5
46305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46306   (exit $ac_status); } && {
46307          test -z "$ac_c_werror_flag" ||
46308          test ! -s conftest.err
46309        } && test -s conftest.$ac_objext; then
46310   ac_header_compiler=yes
46311 else
46312   $as_echo "$as_me: failed program was:" >&5
46313 sed 's/^/| /' conftest.$ac_ext >&5
46314
46315         ac_header_compiler=no
46316 fi
46317
46318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46320 $as_echo "$ac_header_compiler" >&6; }
46321
46322 # Is the header present?
46323 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
46324 $as_echo_n "checking sys/xattr.h presence... " >&6; }
46325 cat >conftest.$ac_ext <<_ACEOF
46326 /* confdefs.h.  */
46327 _ACEOF
46328 cat confdefs.h >>conftest.$ac_ext
46329 cat >>conftest.$ac_ext <<_ACEOF
46330 /* end confdefs.h.  */
46331 #include <sys/xattr.h>
46332 _ACEOF
46333 if { (ac_try="$ac_cpp conftest.$ac_ext"
46334 case "(($ac_try" in
46335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46336   *) ac_try_echo=$ac_try;;
46337 esac
46338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46339 $as_echo "$ac_try_echo") >&5
46340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46341   ac_status=$?
46342   grep -v '^ *+' conftest.er1 >conftest.err
46343   rm -f conftest.er1
46344   cat conftest.err >&5
46345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46346   (exit $ac_status); } >/dev/null && {
46347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46348          test ! -s conftest.err
46349        }; then
46350   ac_header_preproc=yes
46351 else
46352   $as_echo "$as_me: failed program was:" >&5
46353 sed 's/^/| /' conftest.$ac_ext >&5
46354
46355   ac_header_preproc=no
46356 fi
46357
46358 rm -f conftest.err conftest.$ac_ext
46359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46360 $as_echo "$ac_header_preproc" >&6; }
46361
46362 # So?  What about this header?
46363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46364   yes:no: )
46365     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
46366 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46367     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
46368 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
46369     ac_header_preproc=yes
46370     ;;
46371   no:yes:* )
46372     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
46373 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
46374     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
46375 $as_echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
46376     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
46377 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
46378     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
46379 $as_echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
46380     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
46381 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
46382     { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
46383 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
46384
46385     ;;
46386 esac
46387 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
46388 $as_echo_n "checking for sys/xattr.h... " >&6; }
46389 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46390   $as_echo_n "(cached) " >&6
46391 else
46392   ac_cv_header_sys_xattr_h=$ac_header_preproc
46393 fi
46394 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
46395 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
46396
46397 fi
46398 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
46399
46400 cat >>confdefs.h <<\_ACEOF
46401 #define HAVE_SYS_XATTR_H 1
46402 _ACEOF
46403
46404 fi
46405
46406
46407
46408
46409
46410 for ac_func in llistxattr lgetxattr lsetxattr
46411 do
46412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46413 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46414 $as_echo_n "checking for $ac_func... " >&6; }
46415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46416   $as_echo_n "(cached) " >&6
46417 else
46418   cat >conftest.$ac_ext <<_ACEOF
46419 /* confdefs.h.  */
46420 _ACEOF
46421 cat confdefs.h >>conftest.$ac_ext
46422 cat >>conftest.$ac_ext <<_ACEOF
46423 /* end confdefs.h.  */
46424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46426 #define $ac_func innocuous_$ac_func
46427
46428 /* System header to define __stub macros and hopefully few prototypes,
46429     which can conflict with char $ac_func (); below.
46430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46431     <limits.h> exists even on freestanding compilers.  */
46432
46433 #ifdef __STDC__
46434 # include <limits.h>
46435 #else
46436 # include <assert.h>
46437 #endif
46438
46439 #undef $ac_func
46440
46441 /* Override any GCC internal prototype to avoid an error.
46442    Use char because int might match the return type of a GCC
46443    builtin and then its argument prototype would still apply.  */
46444 #ifdef __cplusplus
46445 extern "C"
46446 #endif
46447 char $ac_func ();
46448 /* The GNU C library defines this for functions which it implements
46449     to always fail with ENOSYS.  Some functions are actually named
46450     something starting with __ and the normal name is an alias.  */
46451 #if defined __stub_$ac_func || defined __stub___$ac_func
46452 choke me
46453 #endif
46454
46455 int
46456 main ()
46457 {
46458 return $ac_func ();
46459   ;
46460   return 0;
46461 }
46462 _ACEOF
46463 rm -f conftest.$ac_objext conftest$ac_exeext
46464 if { (ac_try="$ac_link"
46465 case "(($ac_try" in
46466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46467   *) ac_try_echo=$ac_try;;
46468 esac
46469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46470 $as_echo "$ac_try_echo") >&5
46471   (eval "$ac_link") 2>conftest.er1
46472   ac_status=$?
46473   grep -v '^ *+' conftest.er1 >conftest.err
46474   rm -f conftest.er1
46475   cat conftest.err >&5
46476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477   (exit $ac_status); } && {
46478          test -z "$ac_c_werror_flag" ||
46479          test ! -s conftest.err
46480        } && test -s conftest$ac_exeext && {
46481          test "$cross_compiling" = yes ||
46482          $as_test_x conftest$ac_exeext
46483        }; then
46484   eval "$as_ac_var=yes"
46485 else
46486   $as_echo "$as_me: failed program was:" >&5
46487 sed 's/^/| /' conftest.$ac_ext >&5
46488
46489         eval "$as_ac_var=no"
46490 fi
46491
46492 rm -rf conftest.dSYM
46493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46494       conftest$ac_exeext conftest.$ac_ext
46495 fi
46496 ac_res=`eval 'as_val=${'$as_ac_var'}
46497                  $as_echo "$as_val"'`
46498                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46499 $as_echo "$ac_res" >&6; }
46500 as_val=`eval 'as_val=${'$as_ac_var'}
46501                  $as_echo "$as_val"'`
46502    if test "x$as_val" = x""yes; then
46503   cat >>confdefs.h <<_ACEOF
46504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46505 _ACEOF
46506
46507              have_xattr=yes
46508
46509 cat >>confdefs.h <<\_ACEOF
46510 #define HAVE_LLISTXATTR 1
46511 _ACEOF
46512
46513
46514 cat >>confdefs.h <<\_ACEOF
46515 #define HAVE_LGETXATTR 1
46516 _ACEOF
46517
46518
46519 cat >>confdefs.h <<\_ACEOF
46520 #define HAVE_LSETXATTR 1
46521 _ACEOF
46522
46523
46524
46525 fi
46526 done
46527
46528
46529       if test $have_xattr = no; then
46530
46531
46532
46533 for ac_func in listxattr getxattr setxattr
46534 do
46535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46536 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46537 $as_echo_n "checking for $ac_func... " >&6; }
46538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46539   $as_echo_n "(cached) " >&6
46540 else
46541   cat >conftest.$ac_ext <<_ACEOF
46542 /* confdefs.h.  */
46543 _ACEOF
46544 cat confdefs.h >>conftest.$ac_ext
46545 cat >>conftest.$ac_ext <<_ACEOF
46546 /* end confdefs.h.  */
46547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46549 #define $ac_func innocuous_$ac_func
46550
46551 /* System header to define __stub macros and hopefully few prototypes,
46552     which can conflict with char $ac_func (); below.
46553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46554     <limits.h> exists even on freestanding compilers.  */
46555
46556 #ifdef __STDC__
46557 # include <limits.h>
46558 #else
46559 # include <assert.h>
46560 #endif
46561
46562 #undef $ac_func
46563
46564 /* Override any GCC internal prototype to avoid an error.
46565    Use char because int might match the return type of a GCC
46566    builtin and then its argument prototype would still apply.  */
46567 #ifdef __cplusplus
46568 extern "C"
46569 #endif
46570 char $ac_func ();
46571 /* The GNU C library defines this for functions which it implements
46572     to always fail with ENOSYS.  Some functions are actually named
46573     something starting with __ and the normal name is an alias.  */
46574 #if defined __stub_$ac_func || defined __stub___$ac_func
46575 choke me
46576 #endif
46577
46578 int
46579 main ()
46580 {
46581 return $ac_func ();
46582   ;
46583   return 0;
46584 }
46585 _ACEOF
46586 rm -f conftest.$ac_objext conftest$ac_exeext
46587 if { (ac_try="$ac_link"
46588 case "(($ac_try" in
46589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46590   *) ac_try_echo=$ac_try;;
46591 esac
46592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46593 $as_echo "$ac_try_echo") >&5
46594   (eval "$ac_link") 2>conftest.er1
46595   ac_status=$?
46596   grep -v '^ *+' conftest.er1 >conftest.err
46597   rm -f conftest.er1
46598   cat conftest.err >&5
46599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46600   (exit $ac_status); } && {
46601          test -z "$ac_c_werror_flag" ||
46602          test ! -s conftest.err
46603        } && test -s conftest$ac_exeext && {
46604          test "$cross_compiling" = yes ||
46605          $as_test_x conftest$ac_exeext
46606        }; then
46607   eval "$as_ac_var=yes"
46608 else
46609   $as_echo "$as_me: failed program was:" >&5
46610 sed 's/^/| /' conftest.$ac_ext >&5
46611
46612         eval "$as_ac_var=no"
46613 fi
46614
46615 rm -rf conftest.dSYM
46616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46617       conftest$ac_exeext conftest.$ac_ext
46618 fi
46619 ac_res=`eval 'as_val=${'$as_ac_var'}
46620                  $as_echo "$as_val"'`
46621                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46622 $as_echo "$ac_res" >&6; }
46623 as_val=`eval 'as_val=${'$as_ac_var'}
46624                  $as_echo "$as_val"'`
46625    if test "x$as_val" = x""yes; then
46626   cat >>confdefs.h <<_ACEOF
46627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46628 _ACEOF
46629
46630                 have_xattr=yes
46631
46632 cat >>confdefs.h <<\_ACEOF
46633 #define HAVE_LISTXATTR 1
46634 _ACEOF
46635
46636
46637 cat >>confdefs.h <<\_ACEOF
46638 #define HAVE_GETXATTR 1
46639 _ACEOF
46640
46641
46642 cat >>confdefs.h <<\_ACEOF
46643 #define HAVE_SETXATTR 1
46644 _ACEOF
46645
46646
46647
46648 fi
46649 done
46650
46651       fi
46652    fi
46653
46654    if test x$support_xattr = xyes -a $have_xattr != yes; then
46655       { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
46656   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
46657 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
46658   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
46659    { (exit 1); exit 1; }; }
46660    else
46661       if test $have_xattr = yes; then
46662
46663 cat >>confdefs.h <<\_ACEOF
46664 #define HAVE_XATTR 1
46665 _ACEOF
46666
46667       fi
46668    fi
46669 fi
46670
46671 PTHREAD_LIB=""
46672 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
46673 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
46674 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
46675   $as_echo_n "(cached) " >&6
46676 else
46677   ac_check_lib_save_LIBS=$LIBS
46678 LIBS="-lpthread  $LIBS"
46679 cat >conftest.$ac_ext <<_ACEOF
46680 /* confdefs.h.  */
46681 _ACEOF
46682 cat confdefs.h >>conftest.$ac_ext
46683 cat >>conftest.$ac_ext <<_ACEOF
46684 /* end confdefs.h.  */
46685
46686 /* Override any GCC internal prototype to avoid an error.
46687    Use char because int might match the return type of a GCC
46688    builtin and then its argument prototype would still apply.  */
46689 #ifdef __cplusplus
46690 extern "C"
46691 #endif
46692 char pthread_create ();
46693 int
46694 main ()
46695 {
46696 return pthread_create ();
46697   ;
46698   return 0;
46699 }
46700 _ACEOF
46701 rm -f conftest.$ac_objext conftest$ac_exeext
46702 if { (ac_try="$ac_link"
46703 case "(($ac_try" in
46704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46705   *) ac_try_echo=$ac_try;;
46706 esac
46707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46708 $as_echo "$ac_try_echo") >&5
46709   (eval "$ac_link") 2>conftest.er1
46710   ac_status=$?
46711   grep -v '^ *+' conftest.er1 >conftest.err
46712   rm -f conftest.er1
46713   cat conftest.err >&5
46714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46715   (exit $ac_status); } && {
46716          test -z "$ac_c_werror_flag" ||
46717          test ! -s conftest.err
46718        } && test -s conftest$ac_exeext && {
46719          test "$cross_compiling" = yes ||
46720          $as_test_x conftest$ac_exeext
46721        }; then
46722   ac_cv_lib_pthread_pthread_create=yes
46723 else
46724   $as_echo "$as_me: failed program was:" >&5
46725 sed 's/^/| /' conftest.$ac_ext >&5
46726
46727         ac_cv_lib_pthread_pthread_create=no
46728 fi
46729
46730 rm -rf conftest.dSYM
46731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46732       conftest$ac_exeext conftest.$ac_ext
46733 LIBS=$ac_check_lib_save_LIBS
46734 fi
46735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
46736 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
46737 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
46738   PTHREAD_LIB="-lpthread"
46739 else
46740
46741        { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
46742 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
46743 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
46744   $as_echo_n "(cached) " >&6
46745 else
46746   ac_check_lib_save_LIBS=$LIBS
46747 LIBS="-lpthreads  $LIBS"
46748 cat >conftest.$ac_ext <<_ACEOF
46749 /* confdefs.h.  */
46750 _ACEOF
46751 cat confdefs.h >>conftest.$ac_ext
46752 cat >>conftest.$ac_ext <<_ACEOF
46753 /* end confdefs.h.  */
46754
46755 /* Override any GCC internal prototype to avoid an error.
46756    Use char because int might match the return type of a GCC
46757    builtin and then its argument prototype would still apply.  */
46758 #ifdef __cplusplus
46759 extern "C"
46760 #endif
46761 char pthread_create ();
46762 int
46763 main ()
46764 {
46765 return pthread_create ();
46766   ;
46767   return 0;
46768 }
46769 _ACEOF
46770 rm -f conftest.$ac_objext conftest$ac_exeext
46771 if { (ac_try="$ac_link"
46772 case "(($ac_try" in
46773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46774   *) ac_try_echo=$ac_try;;
46775 esac
46776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46777 $as_echo "$ac_try_echo") >&5
46778   (eval "$ac_link") 2>conftest.er1
46779   ac_status=$?
46780   grep -v '^ *+' conftest.er1 >conftest.err
46781   rm -f conftest.er1
46782   cat conftest.err >&5
46783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46784   (exit $ac_status); } && {
46785          test -z "$ac_c_werror_flag" ||
46786          test ! -s conftest.err
46787        } && test -s conftest$ac_exeext && {
46788          test "$cross_compiling" = yes ||
46789          $as_test_x conftest$ac_exeext
46790        }; then
46791   ac_cv_lib_pthreads_pthread_create=yes
46792 else
46793   $as_echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46795
46796         ac_cv_lib_pthreads_pthread_create=no
46797 fi
46798
46799 rm -rf conftest.dSYM
46800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46801       conftest$ac_exeext conftest.$ac_ext
46802 LIBS=$ac_check_lib_save_LIBS
46803 fi
46804 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
46805 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
46806 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
46807   PTHREAD_LIB="-lpthreads"
46808 else
46809
46810               { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
46811 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
46812 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
46813   $as_echo_n "(cached) " >&6
46814 else
46815   ac_check_lib_save_LIBS=$LIBS
46816 LIBS="-lc_r  $LIBS"
46817 cat >conftest.$ac_ext <<_ACEOF
46818 /* confdefs.h.  */
46819 _ACEOF
46820 cat confdefs.h >>conftest.$ac_ext
46821 cat >>conftest.$ac_ext <<_ACEOF
46822 /* end confdefs.h.  */
46823
46824 /* Override any GCC internal prototype to avoid an error.
46825    Use char because int might match the return type of a GCC
46826    builtin and then its argument prototype would still apply.  */
46827 #ifdef __cplusplus
46828 extern "C"
46829 #endif
46830 char pthread_create ();
46831 int
46832 main ()
46833 {
46834 return pthread_create ();
46835   ;
46836   return 0;
46837 }
46838 _ACEOF
46839 rm -f conftest.$ac_objext conftest$ac_exeext
46840 if { (ac_try="$ac_link"
46841 case "(($ac_try" in
46842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46843   *) ac_try_echo=$ac_try;;
46844 esac
46845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46846 $as_echo "$ac_try_echo") >&5
46847   (eval "$ac_link") 2>conftest.er1
46848   ac_status=$?
46849   grep -v '^ *+' conftest.er1 >conftest.err
46850   rm -f conftest.er1
46851   cat conftest.err >&5
46852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46853   (exit $ac_status); } && {
46854          test -z "$ac_c_werror_flag" ||
46855          test ! -s conftest.err
46856        } && test -s conftest$ac_exeext && {
46857          test "$cross_compiling" = yes ||
46858          $as_test_x conftest$ac_exeext
46859        }; then
46860   ac_cv_lib_c_r_pthread_create=yes
46861 else
46862   $as_echo "$as_me: failed program was:" >&5
46863 sed 's/^/| /' conftest.$ac_ext >&5
46864
46865         ac_cv_lib_c_r_pthread_create=no
46866 fi
46867
46868 rm -rf conftest.dSYM
46869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46870       conftest$ac_exeext conftest.$ac_ext
46871 LIBS=$ac_check_lib_save_LIBS
46872 fi
46873 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
46874 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
46875 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
46876   PTHREAD_LIB="-lc_r"
46877 else
46878
46879                      { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
46880 $as_echo_n "checking for pthread_create... " >&6; }
46881 if test "${ac_cv_func_pthread_create+set}" = set; then
46882   $as_echo_n "(cached) " >&6
46883 else
46884   cat >conftest.$ac_ext <<_ACEOF
46885 /* confdefs.h.  */
46886 _ACEOF
46887 cat confdefs.h >>conftest.$ac_ext
46888 cat >>conftest.$ac_ext <<_ACEOF
46889 /* end confdefs.h.  */
46890 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
46891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46892 #define pthread_create innocuous_pthread_create
46893
46894 /* System header to define __stub macros and hopefully few prototypes,
46895     which can conflict with char pthread_create (); below.
46896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46897     <limits.h> exists even on freestanding compilers.  */
46898
46899 #ifdef __STDC__
46900 # include <limits.h>
46901 #else
46902 # include <assert.h>
46903 #endif
46904
46905 #undef pthread_create
46906
46907 /* Override any GCC internal prototype to avoid an error.
46908    Use char because int might match the return type of a GCC
46909    builtin and then its argument prototype would still apply.  */
46910 #ifdef __cplusplus
46911 extern "C"
46912 #endif
46913 char pthread_create ();
46914 /* The GNU C library defines this for functions which it implements
46915     to always fail with ENOSYS.  Some functions are actually named
46916     something starting with __ and the normal name is an alias.  */
46917 #if defined __stub_pthread_create || defined __stub___pthread_create
46918 choke me
46919 #endif
46920
46921 int
46922 main ()
46923 {
46924 return pthread_create ();
46925   ;
46926   return 0;
46927 }
46928 _ACEOF
46929 rm -f conftest.$ac_objext conftest$ac_exeext
46930 if { (ac_try="$ac_link"
46931 case "(($ac_try" in
46932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46933   *) ac_try_echo=$ac_try;;
46934 esac
46935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46936 $as_echo "$ac_try_echo") >&5
46937   (eval "$ac_link") 2>conftest.er1
46938   ac_status=$?
46939   grep -v '^ *+' conftest.er1 >conftest.err
46940   rm -f conftest.er1
46941   cat conftest.err >&5
46942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943   (exit $ac_status); } && {
46944          test -z "$ac_c_werror_flag" ||
46945          test ! -s conftest.err
46946        } && test -s conftest$ac_exeext && {
46947          test "$cross_compiling" = yes ||
46948          $as_test_x conftest$ac_exeext
46949        }; then
46950   ac_cv_func_pthread_create=yes
46951 else
46952   $as_echo "$as_me: failed program was:" >&5
46953 sed 's/^/| /' conftest.$ac_ext >&5
46954
46955         ac_cv_func_pthread_create=no
46956 fi
46957
46958 rm -rf conftest.dSYM
46959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46960       conftest$ac_exeext conftest.$ac_ext
46961 fi
46962 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
46963 $as_echo "$ac_cv_func_pthread_create" >&6; }
46964
46965
46966
46967 fi
46968
46969
46970
46971 fi
46972
46973
46974
46975 fi
46976
46977
46978
46979
46980 for ac_header in sys/prctl.h sys/capability.h
46981 do
46982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46984   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46985 $as_echo_n "checking for $ac_header... " >&6; }
46986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46987   $as_echo_n "(cached) " >&6
46988 fi
46989 ac_res=`eval 'as_val=${'$as_ac_Header'}
46990                  $as_echo "$as_val"'`
46991                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46992 $as_echo "$ac_res" >&6; }
46993 else
46994   # Is the header compilable?
46995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46996 $as_echo_n "checking $ac_header usability... " >&6; }
46997 cat >conftest.$ac_ext <<_ACEOF
46998 /* confdefs.h.  */
46999 _ACEOF
47000 cat confdefs.h >>conftest.$ac_ext
47001 cat >>conftest.$ac_ext <<_ACEOF
47002 /* end confdefs.h.  */
47003 $ac_includes_default
47004 #include <$ac_header>
47005 _ACEOF
47006 rm -f conftest.$ac_objext
47007 if { (ac_try="$ac_compile"
47008 case "(($ac_try" in
47009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47010   *) ac_try_echo=$ac_try;;
47011 esac
47012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47013 $as_echo "$ac_try_echo") >&5
47014   (eval "$ac_compile") 2>conftest.er1
47015   ac_status=$?
47016   grep -v '^ *+' conftest.er1 >conftest.err
47017   rm -f conftest.er1
47018   cat conftest.err >&5
47019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020   (exit $ac_status); } && {
47021          test -z "$ac_c_werror_flag" ||
47022          test ! -s conftest.err
47023        } && test -s conftest.$ac_objext; then
47024   ac_header_compiler=yes
47025 else
47026   $as_echo "$as_me: failed program was:" >&5
47027 sed 's/^/| /' conftest.$ac_ext >&5
47028
47029         ac_header_compiler=no
47030 fi
47031
47032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47034 $as_echo "$ac_header_compiler" >&6; }
47035
47036 # Is the header present?
47037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47038 $as_echo_n "checking $ac_header presence... " >&6; }
47039 cat >conftest.$ac_ext <<_ACEOF
47040 /* confdefs.h.  */
47041 _ACEOF
47042 cat confdefs.h >>conftest.$ac_ext
47043 cat >>conftest.$ac_ext <<_ACEOF
47044 /* end confdefs.h.  */
47045 #include <$ac_header>
47046 _ACEOF
47047 if { (ac_try="$ac_cpp conftest.$ac_ext"
47048 case "(($ac_try" in
47049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47050   *) ac_try_echo=$ac_try;;
47051 esac
47052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47053 $as_echo "$ac_try_echo") >&5
47054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47055   ac_status=$?
47056   grep -v '^ *+' conftest.er1 >conftest.err
47057   rm -f conftest.er1
47058   cat conftest.err >&5
47059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47060   (exit $ac_status); } >/dev/null && {
47061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47062          test ! -s conftest.err
47063        }; then
47064   ac_header_preproc=yes
47065 else
47066   $as_echo "$as_me: failed program was:" >&5
47067 sed 's/^/| /' conftest.$ac_ext >&5
47068
47069   ac_header_preproc=no
47070 fi
47071
47072 rm -f conftest.err conftest.$ac_ext
47073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47074 $as_echo "$ac_header_preproc" >&6; }
47075
47076 # So?  What about this header?
47077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47078   yes:no: )
47079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47083     ac_header_preproc=yes
47084     ;;
47085   no:yes:* )
47086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47089 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47093 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47098
47099     ;;
47100 esac
47101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47102 $as_echo_n "checking for $ac_header... " >&6; }
47103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47104   $as_echo_n "(cached) " >&6
47105 else
47106   eval "$as_ac_Header=\$ac_header_preproc"
47107 fi
47108 ac_res=`eval 'as_val=${'$as_ac_Header'}
47109                  $as_echo "$as_val"'`
47110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47111 $as_echo "$ac_res" >&6; }
47112
47113 fi
47114 as_val=`eval 'as_val=${'$as_ac_Header'}
47115                  $as_echo "$as_val"'`
47116    if test "x$as_val" = x""yes; then
47117   cat >>confdefs.h <<_ACEOF
47118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47119 _ACEOF
47120
47121 fi
47122
47123 done
47124
47125
47126
47127 for ac_func in prctl setreuid
47128 do
47129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47131 $as_echo_n "checking for $ac_func... " >&6; }
47132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47133   $as_echo_n "(cached) " >&6
47134 else
47135   cat >conftest.$ac_ext <<_ACEOF
47136 /* confdefs.h.  */
47137 _ACEOF
47138 cat confdefs.h >>conftest.$ac_ext
47139 cat >>conftest.$ac_ext <<_ACEOF
47140 /* end confdefs.h.  */
47141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47143 #define $ac_func innocuous_$ac_func
47144
47145 /* System header to define __stub macros and hopefully few prototypes,
47146     which can conflict with char $ac_func (); below.
47147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47148     <limits.h> exists even on freestanding compilers.  */
47149
47150 #ifdef __STDC__
47151 # include <limits.h>
47152 #else
47153 # include <assert.h>
47154 #endif
47155
47156 #undef $ac_func
47157
47158 /* Override any GCC internal prototype to avoid an error.
47159    Use char because int might match the return type of a GCC
47160    builtin and then its argument prototype would still apply.  */
47161 #ifdef __cplusplus
47162 extern "C"
47163 #endif
47164 char $ac_func ();
47165 /* The GNU C library defines this for functions which it implements
47166     to always fail with ENOSYS.  Some functions are actually named
47167     something starting with __ and the normal name is an alias.  */
47168 #if defined __stub_$ac_func || defined __stub___$ac_func
47169 choke me
47170 #endif
47171
47172 int
47173 main ()
47174 {
47175 return $ac_func ();
47176   ;
47177   return 0;
47178 }
47179 _ACEOF
47180 rm -f conftest.$ac_objext conftest$ac_exeext
47181 if { (ac_try="$ac_link"
47182 case "(($ac_try" in
47183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47184   *) ac_try_echo=$ac_try;;
47185 esac
47186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47187 $as_echo "$ac_try_echo") >&5
47188   (eval "$ac_link") 2>conftest.er1
47189   ac_status=$?
47190   grep -v '^ *+' conftest.er1 >conftest.err
47191   rm -f conftest.er1
47192   cat conftest.err >&5
47193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47194   (exit $ac_status); } && {
47195          test -z "$ac_c_werror_flag" ||
47196          test ! -s conftest.err
47197        } && test -s conftest$ac_exeext && {
47198          test "$cross_compiling" = yes ||
47199          $as_test_x conftest$ac_exeext
47200        }; then
47201   eval "$as_ac_var=yes"
47202 else
47203   $as_echo "$as_me: failed program was:" >&5
47204 sed 's/^/| /' conftest.$ac_ext >&5
47205
47206         eval "$as_ac_var=no"
47207 fi
47208
47209 rm -rf conftest.dSYM
47210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47211       conftest$ac_exeext conftest.$ac_ext
47212 fi
47213 ac_res=`eval 'as_val=${'$as_ac_var'}
47214                  $as_echo "$as_val"'`
47215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47216 $as_echo "$ac_res" >&6; }
47217 as_val=`eval 'as_val=${'$as_ac_var'}
47218                  $as_echo "$as_val"'`
47219    if test "x$as_val" = x""yes; then
47220   cat >>confdefs.h <<_ACEOF
47221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47222 _ACEOF
47223
47224 fi
47225 done
47226
47227 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
47228 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
47229 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
47230   $as_echo_n "(cached) " >&6
47231 else
47232   ac_check_lib_save_LIBS=$LIBS
47233 LIBS="-lcap  $LIBS"
47234 cat >conftest.$ac_ext <<_ACEOF
47235 /* confdefs.h.  */
47236 _ACEOF
47237 cat confdefs.h >>conftest.$ac_ext
47238 cat >>conftest.$ac_ext <<_ACEOF
47239 /* end confdefs.h.  */
47240
47241 /* Override any GCC internal prototype to avoid an error.
47242    Use char because int might match the return type of a GCC
47243    builtin and then its argument prototype would still apply.  */
47244 #ifdef __cplusplus
47245 extern "C"
47246 #endif
47247 char cap_set_proc ();
47248 int
47249 main ()
47250 {
47251 return cap_set_proc ();
47252   ;
47253   return 0;
47254 }
47255 _ACEOF
47256 rm -f conftest.$ac_objext conftest$ac_exeext
47257 if { (ac_try="$ac_link"
47258 case "(($ac_try" in
47259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47260   *) ac_try_echo=$ac_try;;
47261 esac
47262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47263 $as_echo "$ac_try_echo") >&5
47264   (eval "$ac_link") 2>conftest.er1
47265   ac_status=$?
47266   grep -v '^ *+' conftest.er1 >conftest.err
47267   rm -f conftest.er1
47268   cat conftest.err >&5
47269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47270   (exit $ac_status); } && {
47271          test -z "$ac_c_werror_flag" ||
47272          test ! -s conftest.err
47273        } && test -s conftest$ac_exeext && {
47274          test "$cross_compiling" = yes ||
47275          $as_test_x conftest$ac_exeext
47276        }; then
47277   ac_cv_lib_cap_cap_set_proc=yes
47278 else
47279   $as_echo "$as_me: failed program was:" >&5
47280 sed 's/^/| /' conftest.$ac_ext >&5
47281
47282         ac_cv_lib_cap_cap_set_proc=no
47283 fi
47284
47285 rm -rf conftest.dSYM
47286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47287       conftest$ac_exeext conftest.$ac_ext
47288 LIBS=$ac_check_lib_save_LIBS
47289 fi
47290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
47291 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
47292 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
47293   CAP_LIBS="-lcap"
47294 else
47295   CAP_LIBS=
47296 fi
47297
47298 if test x$CAP_LIBS = x-lcap; then
47299
47300 cat >>confdefs.h <<\_ACEOF
47301 #define HAVE_LIBCAP 1
47302 _ACEOF
47303
47304 fi
47305
47306
47307
47308 cat >>confdefs.h <<\_ACEOF
47309 #define FDLIBS 1
47310 _ACEOF
47311
47312
47313 CFLAGS=${CFLAGS--O}
47314
47315 if test x$have_gcc = xyes ; then
47316    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
47317    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
47318 fi
47319 LDFLAGS=${LDFLAGS--O}
47320 CPPFLAGS="$CPPFLAGS"
47321 CFLAGS="$CFLAGS"
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337 OBJLIST=
47338
47339
47340 lld="lld"
47341 llu="llu"
47342
47343 WCFLAGS=
47344 WLDFLAGS=
47345
47346 PFILES="platforms/Makefile"
47347 PSCMD="ps -e"
47348 WIN32=
47349 MACOSX=
47350
47351 hostname=`uname -n | cut -d '.' -f 1`
47352 if test x${hostname} = x ; then
47353    hostname="localhost"
47354 fi
47355 ping -c 1 $hostname 2>/dev/null 1>/dev/null
47356 if test ! $? = 0; then
47357   hostname="localhost"
47358 fi
47359
47360 case "$DISTNAME" in
47361 aix)
47362    DISTVER=`uname -r`
47363    PSCMD="ps -e -o pid,comm"
47364    PFILES="${PFILES} \
47365       platforms/aix/Makefile"
47366    TAPEDRIVE="/dev/rmt0.1"
47367   ;;
47368 alpha)
47369    DISTVER=`uname -r`
47370    PTHREAD_LIB="-lpthread -lexc"
47371    if test "${CC}" = "gcc" ; then
47372       lld="lld"
47373       llu="llu"
47374    else
47375       lld="ld"
47376       llu="lu"
47377    fi
47378    TAPEDRIVE="/dev/nrmt0"
47379   ;;
47380 bsdi)
47381    DISTVER=`uname -a |awk '{print $3}'`
47382    TAPEDRIVE="/dev/nrmt0"
47383    PTHREAD_LIB="-pthread"
47384    CFLAGS="${CFLAGS} -pthread"
47385    PSCMD="ps -ax -o pid,command"
47386    lld="qd"
47387    llu="qu"
47388    PFILES="${PFILES} \
47389        platforms/bsdi/Makefile \
47390        platforms/bsdi/bacula-fd \
47391        platforms/bsdi/bacula-sd \
47392        platforms/bsdi/bacula-dir"
47393    largefile_support="yes"
47394   ;;
47395 cygwin)
47396    DISTVER=`uname -a |awk '{print $3}'`
47397    TAPEDRIVE="/dev/nrst0"
47398    WIN32=win32
47399    WCFLAGS="-mwindows"
47400    WLDFLAGS="-mwindows"
47401   ;;
47402 darwin)
47403    DISTVER=`uname -r`
47404    TAPEDRIVE="/dev/nst0"
47405    PSCMD="ps -e -o pid,command"
47406    MACOSX=macosx
47407    PFILES="${PFILES} \
47408       platforms/darwin/Makefile"
47409   ;;
47410 osx)
47411    DISTVER=`uname -r`
47412    TAPEDRIVE="/dev/nst0"
47413    PSCMD="ps -e -o pid,command"
47414    MACOSX=macosx
47415    PFILES="${PFILES} \
47416       platforms/osx/Makefile"
47417   ;;
47418 debian)
47419    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
47420       DISTNAME="ubuntu"
47421    fi
47422    DISTVER=`cat /etc/debian_version`
47423    if test -f /etc/lsb-release ; then
47424       . /etc/lsb-release
47425       if test "x$DISTRIB_ID" != "x" ; then
47426          DISTNAME=$DISTRIB_ID
47427       fi
47428       if test "x$DISTRIB_RELEASE" != "x" ; then
47429          DISTVER=$DISTRIB_RELEASE
47430       fi
47431    fi
47432    if test "$DISTNAME" = "Ubuntu" ; then
47433       DISTNAME="ubuntu"
47434    fi
47435    TAPEDRIVE="/dev/nst0"
47436    PSCMD="ps -e -o pid,command"
47437    if test "$DISTNAME" = "ubuntu" ; then
47438       PFILES="${PFILES} \
47439          platforms/ubuntu/Makefile \
47440          platforms/ubuntu/bacula-fd \
47441          platforms/ubuntu/bacula-sd \
47442          platforms/ubuntu/bacula-dir"
47443    else
47444       PFILES="${PFILES} \
47445          platforms/debian/Makefile \
47446          platforms/debian/bacula-fd \
47447          platforms/debian/bacula-sd \
47448          platforms/debian/bacula-dir"
47449    fi
47450   ;;
47451 freebsd)
47452    DISTVER=`uname -a |awk '{print $3}'`
47453    VER=`echo $DISTVER | cut -c 1`
47454    if test x$VER = x4 ; then
47455       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
47456       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
47457    fi
47458    lld="qd"
47459    llu="qu"
47460    TAPEDRIVE="/dev/nrsa0"
47461    PSCMD="ps -ax -o pid,command"
47462    PFILES="${PFILES} \
47463        platforms/freebsd/Makefile \
47464        platforms/freebsd/bacula-fd \
47465        platforms/freebsd/bacula-sd \
47466        platforms/freebsd/bacula-dir"
47467    largefile_support="yes"
47468   ;;
47469 hpux)
47470    PSCMD="UNIX95=1; ps -e -o pid,comm"
47471    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
47472    DISTVER=`uname -r`
47473    TAPEDRIVE="/dev/rmt/0hnb"
47474    PTHREAD_LIB="-lpthread"
47475    cat >>confdefs.h <<\_ACEOF
47476 #define _INCLUDE_LONGLONG 1
47477 _ACEOF
47478
47479   ;;
47480 irix)
47481    DISTVER=`uname -r`
47482    TAPEDRIVE="/dev/rmt/0cbn"
47483    PSCMD="ps -e -o pid,comm"
47484    PFILES="${PFILES} \
47485        platforms/irix/Makefile \
47486        platforms/irix/bacula-fd \
47487        platforms/irix/bacula-sd \
47488        platforms/irix/bacula-dir"
47489   ;;
47490 netbsd)
47491    DISTVER=`uname -a |awk '{print $3}'`
47492    lld="qd"
47493    llu="qu"
47494    TAPEDRIVE="/dev/nrst0"
47495    PSCMD="ps -ax -o pid,command"
47496    PTHREAD_LIB="-pthread"
47497    CFLAGS="${CFLAGS} -pthread"
47498   ;;
47499 openbsd)
47500    DISTVER=`uname -a |awk '{print $3}'`
47501    lld="qd"
47502    llu="qu"
47503    TAPEDRIVE="/dev/nrst0"
47504    PSCMD="ps -ax -o pid,command"
47505    PTHREAD_LIB="-pthread"
47506    CFLAGS="${CFLAGS} -pthread"
47507    PFILES="${PFILES} \
47508        platforms/openbsd/Makefile \
47509        platforms/openbsd/bacula-fd \
47510        platforms/openbsd/bacula-sd \
47511        platforms/openbsd/bacula-dir"
47512   ;;
47513 redhat)
47514    if test -f /etc/whitebox-release ; then
47515       f=/etc/whitebox-release
47516    else
47517       f=/etc/redhat-release
47518    fi
47519    if test `cat $f | grep release |\
47520          cut -f 3 -d ' '`x = "Enterprise"x ; then
47521       DISTVER="Enterprise "`cat $f | grep release |\
47522           cut -f 6 -d ' '`
47523    else
47524        DISTVER=`cat /etc/redhat-release | grep release |\
47525            cut -f 5 -d ' '`
47526    fi
47527    TAPEDRIVE="/dev/nst0"
47528    PSCMD="ps -e -o pid,command"
47529    PFILES="${PFILES} \
47530        platforms/redhat/Makefile \
47531        platforms/redhat/bacula-fd \
47532        platforms/redhat/bacula-sd \
47533        platforms/redhat/bacula-dir
47534        "
47535   ;;
47536 mandrake)
47537    DISTVER=`cat /etc/mandrake-release | grep release |\
47538       cut -f 5 -d ' '`
47539    TAPEDRIVE="/dev/nst0"
47540    PSCMD="ps -e -o pid,command"
47541    PFILES="${PFILES} \
47542        platforms/mandrake/Makefile \
47543        platforms/mandrake/bacula-fd \
47544        platforms/mandrake/bacula-sd \
47545        platforms/mandrake/bacula-dir \
47546        "
47547   ;;
47548 gentoo)
47549    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
47550    TAPEDRIVE="/dev/nst0"
47551    PSCMD="ps -e -o pid,command"
47552    PFILES="${PFILES} \
47553        platforms/gentoo/Makefile \
47554     platforms/gentoo/bacula-init \
47555        platforms/gentoo/bacula-fd \
47556        platforms/gentoo/bacula-sd \
47557        platforms/gentoo/bacula-dir"
47558   ;;
47559 slackware)
47560    DISTVER=`cat /etc/slackware-version`
47561    TAPEDRIVE="/dev/nst0"
47562    PSCMD="ps -e -o pid,command"
47563    PFILES="${PFILES} \
47564        platforms/slackware/Makefile \
47565        platforms/slackware/rc.bacula-fd \
47566        platforms/slackware/rc.bacula-sd \
47567        platforms/slackware/rc.bacula-dir\
47568        platforms/slackware/functions.bacula"
47569   ;;
47570 solaris)
47571    DISTVER=`uname -r`
47572    TAPEDRIVE="/dev/rmt/0cbn"
47573    PSCMD="ps -e -o pid,comm"
47574    PFILES="${PFILES} \
47575        platforms/solaris/Makefile \
47576        platforms/solaris/bacula-fd \
47577        platforms/solaris/bacula-sd \
47578        platforms/solaris/bacula-dir"
47579    case ${DISTVER} in
47580    5.5|5.6)
47581       cat >>confdefs.h <<\_ACEOF
47582 #define HAVE_OLD_SOCKOPT 1
47583 _ACEOF
47584
47585       cat >>confdefs.h <<\_ACEOF
47586 #define USE_THR_SETCONCURRENCY 1
47587 _ACEOF
47588
47589       ;;
47590    5.7|5.8)
47591       cat >>confdefs.h <<\_ACEOF
47592 #define USE_THR_SETCONCURRENCY 1
47593 _ACEOF
47594
47595       ;;
47596    *)
47597       ;;
47598    esac
47599    LIBS="$LIBS -lresolv -lrt"
47600   ;;
47601 suse)
47602    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
47603        cut -f 3 -d ' '`
47604    TAPEDRIVE="/dev/nst0"
47605    PSCMD="ps -e -o pid,command"
47606    PFILES="${PFILES} \
47607        platforms/suse/Makefile \
47608        platforms/suse/bacula-fd \
47609        platforms/suse/bacula-sd \
47610        platforms/suse/bacula-dir \
47611        platforms/suse/bacula"
47612   ;;
47613 suse5)
47614    DISTNAME=suse
47615    DISTVER=5.x
47616    TAPEDRIVE="/dev/nst0"
47617    PSCMD="ps -e -o pid,command"
47618    PFILES="${PFILES} \
47619        platforms/suse/Makefile \
47620        platforms/suse/bacula-fd \
47621        platforms/suse/bacula-sd \
47622        platforms/suse/bacula-dir"
47623   ;;
47624 unknown)
47625    DISTVER=unknown
47626    TAPEDRIVE="/dev/nst0"
47627   ;;
47628 *)
47629   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
47630   ;;
47631 esac
47632
47633
47634
47635 LIBS="$PTHREAD_LIB $LIBS"
47636
47637 cat >>confdefs.h <<_ACEOF
47638 #define lld "$lld"
47639 _ACEOF
47640
47641 cat >>confdefs.h <<_ACEOF
47642 #define llu "$llu"
47643 _ACEOF
47644
47645
47646
47647
47648
47649
47650
47651
47652 MCOMMON=./autoconf/Make.common
47653
47654
47655 if test "x${subsysdir}" = "x${sbindir}" ; then
47656    echo " "
47657    echo " "
47658    echo "You have set both --sbindir and --with-subsys-dir"
47659    echo "  equal to: ${subsysdir} "
47660    echo "This is not permitted. Please reconfigure."
47661    echo " "
47662    echo "Aborting configuration ..."
47663    echo " "
47664    echo " "
47665    exit 1
47666 fi
47667
47668 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
47669
47670 ac_config_commands="$ac_config_commands default"
47671
47672 cat >confcache <<\_ACEOF
47673 # This file is a shell script that caches the results of configure
47674 # tests run on this system so they can be shared between configure
47675 # scripts and configure runs, see configure's option --config-cache.
47676 # It is not useful on other systems.  If it contains results you don't
47677 # want to keep, you may remove or edit it.
47678 #
47679 # config.status only pays attention to the cache file if you give it
47680 # the --recheck option to rerun configure.
47681 #
47682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
47683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
47684 # following values.
47685
47686 _ACEOF
47687
47688 # The following way of writing the cache mishandles newlines in values,
47689 # but we know of no workaround that is simple, portable, and efficient.
47690 # So, we kill variables containing newlines.
47691 # Ultrix sh set writes to stderr and can't be redirected directly,
47692 # and sets the high bit in the cache file unless we assign to the vars.
47693 (
47694   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
47695     eval ac_val=\$$ac_var
47696     case $ac_val in #(
47697     *${as_nl}*)
47698       case $ac_var in #(
47699       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
47700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47701       esac
47702       case $ac_var in #(
47703       _ | IFS | as_nl) ;; #(
47704       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47705       *) $as_unset $ac_var ;;
47706       esac ;;
47707     esac
47708   done
47709
47710   (set) 2>&1 |
47711     case $as_nl`(ac_space=' '; set) 2>&1` in #(
47712     *${as_nl}ac_space=\ *)
47713       # `set' does not quote correctly, so add quotes (double-quote
47714       # substitution turns \\\\ into \\, and sed turns \\ into \).
47715       sed -n \
47716         "s/'/'\\\\''/g;
47717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47718       ;; #(
47719     *)
47720       # `set' quotes correctly as required by POSIX, so do not add quotes.
47721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47722       ;;
47723     esac |
47724     sort
47725 ) |
47726   sed '
47727      /^ac_cv_env_/b end
47728      t clear
47729      :clear
47730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47731      t end
47732      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47733      :end' >>confcache
47734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47735   if test -w "$cache_file"; then
47736     test "x$cache_file" != "x/dev/null" &&
47737       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
47738 $as_echo "$as_me: updating cache $cache_file" >&6;}
47739     cat confcache >$cache_file
47740   else
47741     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
47742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47743   fi
47744 fi
47745 rm -f confcache
47746
47747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
47748 # Let make expand exec_prefix.
47749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47750
47751 DEFS=-DHAVE_CONFIG_H
47752
47753 ac_libobjs=
47754 ac_ltlibobjs=
47755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47756   # 1. Remove the extension, and $U if already installed.
47757   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47758   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47759   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
47760   #    will be set to the directory where LIBOBJS objects are built.
47761   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47762   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
47763 done
47764 LIBOBJS=$ac_libobjs
47765
47766 LTLIBOBJS=$ac_ltlibobjs
47767
47768
47769
47770
47771 : ${CONFIG_STATUS=./config.status}
47772 ac_write_fail=0
47773 ac_clean_files_save=$ac_clean_files
47774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47775 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47776 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47777 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47778 #! $SHELL
47779 # Generated by $as_me.
47780 # Run this file to recreate the current configuration.
47781 # Compiler output produced by configure, useful for debugging
47782 # configure, is in config.log if it exists.
47783
47784 debug=false
47785 ac_cs_recheck=false
47786 ac_cs_silent=false
47787 SHELL=\${CONFIG_SHELL-$SHELL}
47788 _ACEOF
47789
47790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47791 ## --------------------- ##
47792 ## M4sh Initialization.  ##
47793 ## --------------------- ##
47794
47795 # Be more Bourne compatible
47796 DUALCASE=1; export DUALCASE # for MKS sh
47797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47798   emulate sh
47799   NULLCMD=:
47800   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47801   # is contrary to our usage.  Disable this feature.
47802   alias -g '${1+"$@"}'='"$@"'
47803   setopt NO_GLOB_SUBST
47804 else
47805   case `(set -o) 2>/dev/null` in
47806   *posix*) set -o posix ;;
47807 esac
47808
47809 fi
47810
47811
47812
47813
47814 # PATH needs CR
47815 # Avoid depending upon Character Ranges.
47816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47819 as_cr_digits='0123456789'
47820 as_cr_alnum=$as_cr_Letters$as_cr_digits
47821
47822 as_nl='
47823 '
47824 export as_nl
47825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47829 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47830   as_echo='printf %s\n'
47831   as_echo_n='printf %s'
47832 else
47833   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47834     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47835     as_echo_n='/usr/ucb/echo -n'
47836   else
47837     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47838     as_echo_n_body='eval
47839       arg=$1;
47840       case $arg in
47841       *"$as_nl"*)
47842         expr "X$arg" : "X\\(.*\\)$as_nl";
47843         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47844       esac;
47845       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47846     '
47847     export as_echo_n_body
47848     as_echo_n='sh -c $as_echo_n_body as_echo'
47849   fi
47850   export as_echo_body
47851   as_echo='sh -c $as_echo_body as_echo'
47852 fi
47853
47854 # The user is always right.
47855 if test "${PATH_SEPARATOR+set}" != set; then
47856   PATH_SEPARATOR=:
47857   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47858     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47859       PATH_SEPARATOR=';'
47860   }
47861 fi
47862
47863 # Support unset when possible.
47864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47865   as_unset=unset
47866 else
47867   as_unset=false
47868 fi
47869
47870
47871 # IFS
47872 # We need space, tab and new line, in precisely that order.  Quoting is
47873 # there to prevent editors from complaining about space-tab.
47874 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
47875 # splitting by setting IFS to empty value.)
47876 IFS=" ""        $as_nl"
47877
47878 # Find who we are.  Look in the path if we contain no directory separator.
47879 case $0 in
47880   *[\\/]* ) as_myself=$0 ;;
47881   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47882 for as_dir in $PATH
47883 do
47884   IFS=$as_save_IFS
47885   test -z "$as_dir" && as_dir=.
47886   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47887 done
47888 IFS=$as_save_IFS
47889
47890      ;;
47891 esac
47892 # We did not find ourselves, most probably we were run as `sh COMMAND'
47893 # in which case we are not to be found in the path.
47894 if test "x$as_myself" = x; then
47895   as_myself=$0
47896 fi
47897 if test ! -f "$as_myself"; then
47898   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47899   { (exit 1); exit 1; }
47900 fi
47901
47902 # Work around bugs in pre-3.0 UWIN ksh.
47903 for as_var in ENV MAIL MAILPATH
47904 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47905 done
47906 PS1='$ '
47907 PS2='> '
47908 PS4='+ '
47909
47910 # NLS nuisances.
47911 LC_ALL=C
47912 export LC_ALL
47913 LANGUAGE=C
47914 export LANGUAGE
47915
47916 # Required to use basename.
47917 if expr a : '\(a\)' >/dev/null 2>&1 &&
47918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
47919   as_expr=expr
47920 else
47921   as_expr=false
47922 fi
47923
47924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47925   as_basename=basename
47926 else
47927   as_basename=false
47928 fi
47929
47930
47931 # Name of the executable.
47932 as_me=`$as_basename -- "$0" ||
47933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47934          X"$0" : 'X\(//\)$' \| \
47935          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47936 $as_echo X/"$0" |
47937     sed '/^.*\/\([^/][^/]*\)\/*$/{
47938             s//\1/
47939             q
47940           }
47941           /^X\/\(\/\/\)$/{
47942             s//\1/
47943             q
47944           }
47945           /^X\/\(\/\).*/{
47946             s//\1/
47947             q
47948           }
47949           s/.*/./; q'`
47950
47951 # CDPATH.
47952 $as_unset CDPATH
47953
47954
47955
47956   as_lineno_1=$LINENO
47957   as_lineno_2=$LINENO
47958   test "x$as_lineno_1" != "x$as_lineno_2" &&
47959   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47960
47961   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47962   # uniformly replaced by the line number.  The first 'sed' inserts a
47963   # line-number line after each line using $LINENO; the second 'sed'
47964   # does the real work.  The second script uses 'N' to pair each
47965   # line-number line with the line containing $LINENO, and appends
47966   # trailing '-' during substitution so that $LINENO is not a special
47967   # case at line end.
47968   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47969   # scripts with optimization help from Paolo Bonzini.  Blame Lee
47970   # E. McMahon (1931-1989) for sed's syntax.  :-)
47971   sed -n '
47972     p
47973     /[$]LINENO/=
47974   ' <$as_myself |
47975     sed '
47976       s/[$]LINENO.*/&-/
47977       t lineno
47978       b
47979       :lineno
47980       N
47981       :loop
47982       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47983       t loop
47984       s/-\n.*//
47985     ' >$as_me.lineno &&
47986   chmod +x "$as_me.lineno" ||
47987     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47988    { (exit 1); exit 1; }; }
47989
47990   # Don't try to exec as it changes $[0], causing all sort of problems
47991   # (the dirname of $[0] is not the place where we might find the
47992   # original and so on.  Autoconf is especially sensitive to this).
47993   . "./$as_me.lineno"
47994   # Exit status is that of the last command.
47995   exit
47996 }
47997
47998
47999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48000   as_dirname=dirname
48001 else
48002   as_dirname=false
48003 fi
48004
48005 ECHO_C= ECHO_N= ECHO_T=
48006 case `echo -n x` in
48007 -n*)
48008   case `echo 'x\c'` in
48009   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
48010   *)   ECHO_C='\c';;
48011   esac;;
48012 *)
48013   ECHO_N='-n';;
48014 esac
48015 if expr a : '\(a\)' >/dev/null 2>&1 &&
48016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
48017   as_expr=expr
48018 else
48019   as_expr=false
48020 fi
48021
48022 rm -f conf$$ conf$$.exe conf$$.file
48023 if test -d conf$$.dir; then
48024   rm -f conf$$.dir/conf$$.file
48025 else
48026   rm -f conf$$.dir
48027   mkdir conf$$.dir 2>/dev/null
48028 fi
48029 if (echo >conf$$.file) 2>/dev/null; then
48030   if ln -s conf$$.file conf$$ 2>/dev/null; then
48031     as_ln_s='ln -s'
48032     # ... but there are two gotchas:
48033     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48034     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48035     # In both cases, we have to default to `cp -p'.
48036     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48037       as_ln_s='cp -p'
48038   elif ln conf$$.file conf$$ 2>/dev/null; then
48039     as_ln_s=ln
48040   else
48041     as_ln_s='cp -p'
48042   fi
48043 else
48044   as_ln_s='cp -p'
48045 fi
48046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48047 rmdir conf$$.dir 2>/dev/null
48048
48049 if mkdir -p . 2>/dev/null; then
48050   as_mkdir_p=:
48051 else
48052   test -d ./-p && rmdir ./-p
48053   as_mkdir_p=false
48054 fi
48055
48056 if test -x / >/dev/null 2>&1; then
48057   as_test_x='test -x'
48058 else
48059   if ls -dL / >/dev/null 2>&1; then
48060     as_ls_L_option=L
48061   else
48062     as_ls_L_option=
48063   fi
48064   as_test_x='
48065     eval sh -c '\''
48066       if test -d "$1"; then
48067         test -d "$1/.";
48068       else
48069         case $1 in
48070         -*)set "./$1";;
48071         esac;
48072         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48073         ???[sx]*):;;*)false;;esac;fi
48074     '\'' sh
48075   '
48076 fi
48077 as_executable_p=$as_test_x
48078
48079 # Sed expression to map a string onto a valid CPP name.
48080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48081
48082 # Sed expression to map a string onto a valid variable name.
48083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48084
48085
48086 exec 6>&1
48087
48088 # Save the log message, to keep $[0] and so on meaningful, and to
48089 # report actual input values of CONFIG_FILES etc. instead of their
48090 # values after options handling.
48091 ac_log="
48092 This file was extended by bacula $as_me 5.1.14, which was
48093 generated by GNU Autoconf 2.63.  Invocation command line was
48094
48095   CONFIG_FILES    = $CONFIG_FILES
48096   CONFIG_HEADERS  = $CONFIG_HEADERS
48097   CONFIG_LINKS    = $CONFIG_LINKS
48098   CONFIG_COMMANDS = $CONFIG_COMMANDS
48099   $ $0 $@
48100
48101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48102 "
48103
48104 _ACEOF
48105
48106 case $ac_config_files in *"
48107 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48108 esac
48109
48110 case $ac_config_headers in *"
48111 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48112 esac
48113
48114
48115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48116 # Files that config.status was made for.
48117 config_files="$ac_config_files"
48118 config_headers="$ac_config_headers"
48119 config_commands="$ac_config_commands"
48120
48121 _ACEOF
48122
48123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48124 ac_cs_usage="\
48125 \`$as_me' instantiates files from templates according to the
48126 current configuration.
48127
48128 Usage: $0 [OPTION]... [FILE]...
48129
48130   -h, --help       print this help, then exit
48131   -V, --version    print version number and configuration settings, then exit
48132   -q, --quiet, --silent
48133                    do not print progress messages
48134   -d, --debug      don't remove temporary files
48135       --recheck    update $as_me by reconfiguring in the same conditions
48136       --file=FILE[:TEMPLATE]
48137                    instantiate the configuration file FILE
48138       --header=FILE[:TEMPLATE]
48139                    instantiate the configuration header FILE
48140
48141 Configuration files:
48142 $config_files
48143
48144 Configuration headers:
48145 $config_headers
48146
48147 Configuration commands:
48148 $config_commands
48149
48150 Report bugs to <bug-autoconf@gnu.org>."
48151
48152 _ACEOF
48153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48154 ac_cs_version="\\
48155 bacula config.status 5.1.14
48156 configured by $0, generated by GNU Autoconf 2.63,
48157   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48158
48159 Copyright (C) 2008 Free Software Foundation, Inc.
48160 This config.status script is free software; the Free Software Foundation
48161 gives unlimited permission to copy, distribute and modify it."
48162
48163 ac_pwd='$ac_pwd'
48164 srcdir='$srcdir'
48165 INSTALL='$INSTALL'
48166 AWK='$AWK'
48167 test -n "\$AWK" || AWK=awk
48168 _ACEOF
48169
48170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48171 # The default lists apply if the user does not specify any file.
48172 ac_need_defaults=:
48173 while test $# != 0
48174 do
48175   case $1 in
48176   --*=*)
48177     ac_option=`expr "X$1" : 'X\([^=]*\)='`
48178     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48179     ac_shift=:
48180     ;;
48181   *)
48182     ac_option=$1
48183     ac_optarg=$2
48184     ac_shift=shift
48185     ;;
48186   esac
48187
48188   case $ac_option in
48189   # Handling of the options.
48190   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48191     ac_cs_recheck=: ;;
48192   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48193     $as_echo "$ac_cs_version"; exit ;;
48194   --debug | --debu | --deb | --de | --d | -d )
48195     debug=: ;;
48196   --file | --fil | --fi | --f )
48197     $ac_shift
48198     case $ac_optarg in
48199     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48200     esac
48201     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
48202     ac_need_defaults=false;;
48203   --header | --heade | --head | --hea )
48204     $ac_shift
48205     case $ac_optarg in
48206     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48207     esac
48208     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
48209     ac_need_defaults=false;;
48210   --he | --h)
48211     # Conflict between --help and --header
48212     { $as_echo "$as_me: error: ambiguous option: $1
48213 Try \`$0 --help' for more information." >&2
48214    { (exit 1); exit 1; }; };;
48215   --help | --hel | -h )
48216     $as_echo "$ac_cs_usage"; exit ;;
48217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48218   | -silent | --silent | --silen | --sile | --sil | --si | --s)
48219     ac_cs_silent=: ;;
48220
48221   # This is an error.
48222   -*) { $as_echo "$as_me: error: unrecognized option: $1
48223 Try \`$0 --help' for more information." >&2
48224    { (exit 1); exit 1; }; } ;;
48225
48226   *) ac_config_targets="$ac_config_targets $1"
48227      ac_need_defaults=false ;;
48228
48229   esac
48230   shift
48231 done
48232
48233 ac_configure_extra_args=
48234
48235 if $ac_cs_silent; then
48236   exec 6>/dev/null
48237   ac_configure_extra_args="$ac_configure_extra_args --silent"
48238 fi
48239
48240 _ACEOF
48241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48242 if \$ac_cs_recheck; then
48243   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48244   shift
48245   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
48246   CONFIG_SHELL='$SHELL'
48247   export CONFIG_SHELL
48248   exec "\$@"
48249 fi
48250
48251 _ACEOF
48252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48253 exec 5>>config.log
48254 {
48255   echo
48256   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48257 ## Running $as_me. ##
48258 _ASBOX
48259   $as_echo "$ac_log"
48260 } >&5
48261
48262 _ACEOF
48263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48264 #
48265 # INIT-COMMANDS
48266 #
48267
48268
48269 # The HP-UX ksh and POSIX shell print the target directory to stdout
48270 # if CDPATH is set.
48271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48272
48273 sed_quote_subst='$sed_quote_subst'
48274 double_quote_subst='$double_quote_subst'
48275 delay_variable_subst='$delay_variable_subst'
48276 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
48277 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
48278 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
48279 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
48280 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
48281 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
48282 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
48283 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
48284 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
48285 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
48286 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
48287 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
48288 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
48289 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
48290 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
48291 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
48292 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
48293 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
48294 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
48295 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
48296 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
48297 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
48298 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
48299 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
48300 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
48301 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
48302 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
48303 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48304 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
48305 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
48306 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
48307 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
48308 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
48309 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
48310 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
48311 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48312 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48313 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48314 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
48315 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
48316 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
48317 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
48318 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
48319 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
48320 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"`'
48321 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"`'
48322 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
48323 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
48324 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
48325 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
48326 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
48327 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
48328 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
48329 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
48330 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
48331 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
48332 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
48333 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
48334 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
48335 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
48336 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
48337 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
48338 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48339 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48340 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
48341 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
48342 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48343 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48344 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
48345 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48346 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48347 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48348 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48349 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48350 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48351 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
48352 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
48353 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
48354 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48355 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
48356 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
48357 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
48358 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
48359 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
48360 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48361 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
48362 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
48363 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
48364 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
48365 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
48366 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48367 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
48368 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
48369 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48370 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
48371 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
48372 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
48373 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
48374 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
48375 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48376 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48377 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
48378 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
48379 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
48380 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
48381 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48382 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48383 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48384 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
48385 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
48386 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
48387 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
48388 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
48389 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
48390 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
48391 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
48392 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
48393 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
48394 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
48395 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
48396 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
48397 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
48398 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
48399 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
48400 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48401 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48402 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48403 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48404 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48405 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48406 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48407 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48408 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48409 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48410 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48411 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48412 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48413 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48414 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48415 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48416 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48417 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48418 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48419 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48420 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48421 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48422 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48423 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48424 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48425 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48426 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48427 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48428 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48429 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48430 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48431 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48432 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48433 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48434 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48435 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48436 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48437 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48438 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48439 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48440 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48441 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48442 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48443 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48444 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48445 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48446 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48447
48448 LTCC='$LTCC'
48449 LTCFLAGS='$LTCFLAGS'
48450 compiler='$compiler_DEFAULT'
48451
48452 # Quote evaled strings.
48453 for var in SED \
48454 GREP \
48455 EGREP \
48456 FGREP \
48457 LD \
48458 NM \
48459 LN_S \
48460 lt_SP2NL \
48461 lt_NL2SP \
48462 reload_flag \
48463 OBJDUMP \
48464 deplibs_check_method \
48465 file_magic_cmd \
48466 AR \
48467 AR_FLAGS \
48468 STRIP \
48469 RANLIB \
48470 CC \
48471 CFLAGS \
48472 compiler \
48473 lt_cv_sys_global_symbol_pipe \
48474 lt_cv_sys_global_symbol_to_cdecl \
48475 lt_cv_sys_global_symbol_to_c_name_address \
48476 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
48477 SHELL \
48478 ECHO \
48479 lt_prog_compiler_no_builtin_flag \
48480 lt_prog_compiler_wl \
48481 lt_prog_compiler_pic \
48482 lt_prog_compiler_static \
48483 lt_cv_prog_compiler_c_o \
48484 need_locks \
48485 DSYMUTIL \
48486 NMEDIT \
48487 LIPO \
48488 OTOOL \
48489 OTOOL64 \
48490 shrext_cmds \
48491 export_dynamic_flag_spec \
48492 whole_archive_flag_spec \
48493 compiler_needs_object \
48494 with_gnu_ld \
48495 allow_undefined_flag \
48496 no_undefined_flag \
48497 hardcode_libdir_flag_spec \
48498 hardcode_libdir_flag_spec_ld \
48499 hardcode_libdir_separator \
48500 fix_srcfile_path \
48501 exclude_expsyms \
48502 include_expsyms \
48503 file_list_spec \
48504 variables_saved_for_relink \
48505 libname_spec \
48506 library_names_spec \
48507 soname_spec \
48508 finish_eval \
48509 old_striplib \
48510 striplib \
48511 compiler_lib_search_dirs \
48512 predep_objects \
48513 postdep_objects \
48514 predeps \
48515 postdeps \
48516 compiler_lib_search_path \
48517 LD_CXX \
48518 compiler_CXX \
48519 lt_prog_compiler_no_builtin_flag_CXX \
48520 lt_prog_compiler_wl_CXX \
48521 lt_prog_compiler_pic_CXX \
48522 lt_prog_compiler_static_CXX \
48523 lt_cv_prog_compiler_c_o_CXX \
48524 export_dynamic_flag_spec_CXX \
48525 whole_archive_flag_spec_CXX \
48526 compiler_needs_object_CXX \
48527 with_gnu_ld_CXX \
48528 allow_undefined_flag_CXX \
48529 no_undefined_flag_CXX \
48530 hardcode_libdir_flag_spec_CXX \
48531 hardcode_libdir_flag_spec_ld_CXX \
48532 hardcode_libdir_separator_CXX \
48533 fix_srcfile_path_CXX \
48534 exclude_expsyms_CXX \
48535 include_expsyms_CXX \
48536 file_list_spec_CXX \
48537 compiler_lib_search_dirs_CXX \
48538 predep_objects_CXX \
48539 postdep_objects_CXX \
48540 predeps_CXX \
48541 postdeps_CXX \
48542 compiler_lib_search_path_CXX; do
48543     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
48544     *[\\\\\\\`\\"\\\$]*)
48545       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
48546       ;;
48547     *)
48548       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48549       ;;
48550     esac
48551 done
48552
48553 # Double-quote double-evaled strings.
48554 for var in reload_cmds \
48555 old_postinstall_cmds \
48556 old_postuninstall_cmds \
48557 old_archive_cmds \
48558 extract_expsyms_cmds \
48559 old_archive_from_new_cmds \
48560 old_archive_from_expsyms_cmds \
48561 archive_cmds \
48562 archive_expsym_cmds \
48563 module_cmds \
48564 module_expsym_cmds \
48565 export_symbols_cmds \
48566 prelink_cmds \
48567 postinstall_cmds \
48568 postuninstall_cmds \
48569 finish_cmds \
48570 sys_lib_search_path_spec \
48571 sys_lib_dlsearch_path_spec \
48572 old_archive_cmds_CXX \
48573 old_archive_from_new_cmds_CXX \
48574 old_archive_from_expsyms_cmds_CXX \
48575 archive_cmds_CXX \
48576 archive_expsym_cmds_CXX \
48577 module_cmds_CXX \
48578 module_expsym_cmds_CXX \
48579 export_symbols_cmds_CXX \
48580 prelink_cmds_CXX; do
48581     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
48582     *[\\\\\\\`\\"\\\$]*)
48583       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
48584       ;;
48585     *)
48586       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48587       ;;
48588     esac
48589 done
48590
48591 # Fix-up fallback echo if it was mangled by the above quoting rules.
48592 case \$lt_ECHO in
48593 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
48594   ;;
48595 esac
48596
48597 ac_aux_dir='$ac_aux_dir'
48598 xsi_shell='$xsi_shell'
48599 lt_shell_append='$lt_shell_append'
48600
48601 # See if we are running on zsh, and set the options which allow our
48602 # commands through without removal of \ escapes INIT.
48603 if test -n "\${ZSH_VERSION+set}" ; then
48604    setopt NO_GLOB_SUBST
48605 fi
48606
48607
48608     PACKAGE='$PACKAGE'
48609     VERSION='$VERSION'
48610     TIMESTAMP='$TIMESTAMP'
48611     RM='$RM'
48612     ofile='$ofile'
48613
48614
48615
48616
48617
48618 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
48619     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
48620     # from automake.
48621     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
48622     # Capture the value of LINGUAS because we need it to compute CATALOGS.
48623     LINGUAS="${LINGUAS-%UNSET%}"
48624
48625
48626 _ACEOF
48627
48628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48629
48630 # Handling of arguments.
48631 for ac_config_target in $ac_config_targets
48632 do
48633   case $ac_config_target in
48634     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
48635     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48636     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
48637     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
48638     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48639     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
48640     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
48641     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
48642     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
48643     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
48644     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
48645     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
48646     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
48647     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
48648     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
48649     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
48650     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
48651     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
48652     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
48653     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
48654     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
48655     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
48656     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
48657     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
48658     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
48659     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
48660     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
48661     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
48662     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
48663     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
48664     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
48665     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
48666     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
48667     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
48668     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
48669     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
48670     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
48671     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
48672     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
48673     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
48674     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
48675     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
48676     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
48677     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
48678     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
48679     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
48680     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
48681     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
48682     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
48683     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
48684     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
48685     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
48686     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
48687     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
48688     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
48689     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
48690     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
48691     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
48692     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
48693     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
48694     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
48695     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
48696     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
48697     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
48698     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
48699     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
48700     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
48701     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
48702     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
48703     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
48704     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
48705     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
48706     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
48707     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
48708     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
48709     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
48710     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
48711     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
48712     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
48713     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
48714     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
48715     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
48716     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
48717     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
48718     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
48719     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
48720     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
48721     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
48722     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
48723     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
48724     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
48725     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
48726     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
48727     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
48728     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
48729     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
48730     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
48731     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
48732     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
48733     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
48734     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
48735     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
48736     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
48737     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
48738     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
48739     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
48740     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
48741     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
48742     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
48743     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
48744     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
48745     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
48746
48747   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48749    { (exit 1); exit 1; }; };;
48750   esac
48751 done
48752
48753
48754 # If the user did not use the arguments to specify the items to instantiate,
48755 # then the envvar interface is used.  Set only those that are not.
48756 # We use the long form for the default assignment because of an extremely
48757 # bizarre bug on SunOS 4.1.3.
48758 if $ac_need_defaults; then
48759   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48760   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48761   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48762 fi
48763
48764 # Have a temporary directory for convenience.  Make it in the build tree
48765 # simply because there is no reason against having it here, and in addition,
48766 # creating and moving files from /tmp can sometimes cause problems.
48767 # Hook for its removal unless debugging.
48768 # Note that there is a small window in which the directory will not be cleaned:
48769 # after its creation but before its name has been assigned to `$tmp'.
48770 $debug ||
48771 {
48772   tmp=
48773   trap 'exit_status=$?
48774   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48775 ' 0
48776   trap '{ (exit 1); exit 1; }' 1 2 13 15
48777 }
48778 # Create a (secure) tmp directory for tmp files.
48779
48780 {
48781   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48782   test -n "$tmp" && test -d "$tmp"
48783 }  ||
48784 {
48785   tmp=./conf$$-$RANDOM
48786   (umask 077 && mkdir "$tmp")
48787 } ||
48788 {
48789    $as_echo "$as_me: cannot create a temporary directory in ." >&2
48790    { (exit 1); exit 1; }
48791 }
48792
48793 # Set up the scripts for CONFIG_FILES section.
48794 # No need to generate them if there are no CONFIG_FILES.
48795 # This happens for instance with `./config.status config.h'.
48796 if test -n "$CONFIG_FILES"; then
48797
48798 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
48799   ac_cs_awk_getline=:
48800   ac_cs_awk_pipe_init=
48801   ac_cs_awk_read_file='
48802       while ((getline aline < (F[key])) > 0)
48803         print(aline)
48804       close(F[key])'
48805   ac_cs_awk_pipe_fini=
48806 else
48807   ac_cs_awk_getline=false
48808   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
48809   ac_cs_awk_read_file='
48810       print "|#_!!_#|"
48811       print "cat " F[key] " &&"
48812       '$ac_cs_awk_pipe_init
48813   # The final `:' finishes the AND list.
48814   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
48815 fi
48816 ac_cr='\r'
48817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48819   ac_cs_awk_cr='\\r'
48820 else
48821   ac_cs_awk_cr=$ac_cr
48822 fi
48823
48824 echo 'BEGIN {' >"$tmp/subs1.awk" &&
48825 _ACEOF
48826
48827 # Create commands to substitute file output variables.
48828 {
48829   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
48830   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
48831   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
48832   echo "_ACAWK" &&
48833   echo "_ACEOF"
48834 } >conf$$files.sh &&
48835 . ./conf$$files.sh ||
48836   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48837 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48838    { (exit 1); exit 1; }; }
48839 rm -f conf$$files.sh
48840
48841 {
48842   echo "cat >conf$$subs.awk <<_ACEOF" &&
48843   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48844   echo "_ACEOF"
48845 } >conf$$subs.sh ||
48846   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48847 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48848    { (exit 1); exit 1; }; }
48849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48850 ac_delim='%!_!# '
48851 for ac_last_try in false false false false false :; do
48852   . ./conf$$subs.sh ||
48853     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48854 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48855    { (exit 1); exit 1; }; }
48856
48857   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48858   if test $ac_delim_n = $ac_delim_num; then
48859     break
48860   elif $ac_last_try; then
48861     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48862 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48863    { (exit 1); exit 1; }; }
48864   else
48865     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48866   fi
48867 done
48868 rm -f conf$$subs.sh
48869
48870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48872 _ACEOF
48873 sed -n '
48874 h
48875 s/^/S["/; s/!.*/"]=/
48876 p
48877 g
48878 s/^[^!]*!//
48879 :repl
48880 t repl
48881 s/'"$ac_delim"'$//
48882 t delim
48883 :nl
48884 h
48885 s/\(.\{148\}\).*/\1/
48886 t more1
48887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48888 p
48889 n
48890 b repl
48891 :more1
48892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48893 p
48894 g
48895 s/.\{148\}//
48896 t nl
48897 :delim
48898 h
48899 s/\(.\{148\}\).*/\1/
48900 t more2
48901 s/["\\]/\\&/g; s/^/"/; s/$/"/
48902 p
48903 b
48904 :more2
48905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48906 p
48907 g
48908 s/.\{148\}//
48909 t delim
48910 ' <conf$$subs.awk | sed '
48911 /^[^""]/{
48912   N
48913   s/\n//
48914 }
48915 ' >>$CONFIG_STATUS || ac_write_fail=1
48916 rm -f conf$$subs.awk
48917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48918 _ACAWK
48919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48920   for (key in S) S_is_set[key] = 1
48921   FS = "\a"
48922   \$ac_cs_awk_pipe_init
48923 }
48924 {
48925   line = $ 0
48926   nfields = split(line, field, "@")
48927   substed = 0
48928   len = length(field[1])
48929   for (i = 2; i < nfields; i++) {
48930     key = field[i]
48931     keylen = length(key)
48932     if (S_is_set[key]) {
48933       value = S[key]
48934       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48935       len += length(value) + length(field[++i])
48936       substed = 1
48937     } else
48938       len += 1 + keylen
48939   }
48940   if (nfields == 3 && !substed) {
48941     key = field[2]
48942     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
48943       \$ac_cs_awk_read_file
48944       next
48945     }
48946   }
48947   print line
48948 }
48949 \$ac_cs_awk_pipe_fini
48950 _ACAWK
48951 _ACEOF
48952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48953 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48954   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48955 else
48956   cat
48957 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48958   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48959 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
48960    { (exit 1); exit 1; }; }
48961 _ACEOF
48962
48963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
48964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48965 # trailing colons and then remove the whole line if VPATH becomes empty
48966 # (actually we leave an empty line to preserve line numbers).
48967 if test "x$srcdir" = x.; then
48968   ac_vpsub='/^[  ]*VPATH[        ]*=/{
48969 s/:*\$(srcdir):*/:/
48970 s/:*\${srcdir}:*/:/
48971 s/:*@srcdir@:*/:/
48972 s/^\([^=]*=[     ]*\):*/\1/
48973 s/:*$//
48974 s/^[^=]*=[       ]*$//
48975 }'
48976 fi
48977
48978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48979 fi # test -n "$CONFIG_FILES"
48980
48981 # Set up the scripts for CONFIG_HEADERS section.
48982 # No need to generate them if there are no CONFIG_HEADERS.
48983 # This happens for instance with `./config.status Makefile'.
48984 if test -n "$CONFIG_HEADERS"; then
48985 cat >"$tmp/defines.awk" <<\_ACAWK ||
48986 BEGIN {
48987 _ACEOF
48988
48989 # Transform confdefs.h into an awk script `defines.awk', embedded as
48990 # here-document in config.status, that substitutes the proper values into
48991 # config.h.in to produce config.h.
48992
48993 # Create a delimiter string that does not exist in confdefs.h, to ease
48994 # handling of long lines.
48995 ac_delim='%!_!# '
48996 for ac_last_try in false false :; do
48997   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48998   if test -z "$ac_t"; then
48999     break
49000   elif $ac_last_try; then
49001     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
49002 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
49003    { (exit 1); exit 1; }; }
49004   else
49005     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49006   fi
49007 done
49008
49009 # For the awk script, D is an array of macro values keyed by name,
49010 # likewise P contains macro parameters if any.  Preserve backslash
49011 # newline sequences.
49012
49013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49014 sed -n '
49015 s/.\{148\}/&'"$ac_delim"'/g
49016 t rset
49017 :rset
49018 s/^[     ]*#[    ]*define[       ][      ]*/ /
49019 t def
49020 d
49021 :def
49022 s/\\$//
49023 t bsnl
49024 s/["\\]/\\&/g
49025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49026 D["\1"]=" \3"/p
49027 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
49028 d
49029 :bsnl
49030 s/["\\]/\\&/g
49031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49032 D["\1"]=" \3\\\\\\n"\\/p
49033 t cont
49034 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49035 t cont
49036 d
49037 :cont
49038 n
49039 s/.\{148\}/&'"$ac_delim"'/g
49040 t clear
49041 :clear
49042 s/\\$//
49043 t bsnlc
49044 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49045 d
49046 :bsnlc
49047 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49048 b cont
49049 ' <confdefs.h | sed '
49050 s/'"$ac_delim"'/"\\\
49051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49052
49053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49054   for (key in D) D_is_set[key] = 1
49055   FS = "\a"
49056 }
49057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49058   line = \$ 0
49059   split(line, arg, " ")
49060   if (arg[1] == "#") {
49061     defundef = arg[2]
49062     mac1 = arg[3]
49063   } else {
49064     defundef = substr(arg[1], 2)
49065     mac1 = arg[2]
49066   }
49067   split(mac1, mac2, "(") #)
49068   macro = mac2[1]
49069   prefix = substr(line, 1, index(line, defundef) - 1)
49070   if (D_is_set[macro]) {
49071     # Preserve the white space surrounding the "#".
49072     print prefix "define", macro P[macro] D[macro]
49073     next
49074   } else {
49075     # Replace #undef with comments.  This is necessary, for example,
49076     # in the case of _POSIX_SOURCE, which is predefined and required
49077     # on some systems where configure will not decide to define it.
49078     if (defundef == "undef") {
49079       print "/*", prefix defundef, macro, "*/"
49080       next
49081     }
49082   }
49083 }
49084 { print }
49085 _ACAWK
49086 _ACEOF
49087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49088   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49089 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49090    { (exit 1); exit 1; }; }
49091 fi # test -n "$CONFIG_HEADERS"
49092
49093
49094 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
49095 shift
49096 for ac_tag
49097 do
49098   case $ac_tag in
49099   :[FHLC]) ac_mode=$ac_tag; continue;;
49100   esac
49101   case $ac_mode$ac_tag in
49102   :[FHL]*:*);;
49103   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49104 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49105    { (exit 1); exit 1; }; };;
49106   :[FH]-) ac_tag=-:-;;
49107   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49108   esac
49109   ac_save_IFS=$IFS
49110   IFS=:
49111   set x $ac_tag
49112   IFS=$ac_save_IFS
49113   shift
49114   ac_file=$1
49115   shift
49116
49117   case $ac_mode in
49118   :L) ac_source=$1;;
49119   :[FH])
49120     ac_file_inputs=
49121     for ac_f
49122     do
49123       case $ac_f in
49124       -) ac_f="$tmp/stdin";;
49125       *) # Look for the file first in the build tree, then in the source tree
49126          # (if the path is not absolute).  The absolute path cannot be DOS-style,
49127          # because $ac_f cannot contain `:'.
49128          test -f "$ac_f" ||
49129            case $ac_f in
49130            [\\/$]*) false;;
49131            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49132            esac ||
49133            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49134 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49135    { (exit 1); exit 1; }; };;
49136       esac
49137       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49138       ac_file_inputs="$ac_file_inputs '$ac_f'"
49139     done
49140
49141     # Let's still pretend it is `configure' which instantiates (i.e., don't
49142     # use $as_me), people would be surprised to read:
49143     #    /* config.h.  Generated by config.status.  */
49144     configure_input='Generated from '`
49145           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49146         `' by configure.'
49147     if test x"$ac_file" != x-; then
49148       configure_input="$ac_file.  $configure_input"
49149       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
49150 $as_echo "$as_me: creating $ac_file" >&6;}
49151     fi
49152     # Neutralize special characters interpreted by sed in replacement strings.
49153     case $configure_input in #(
49154     *\&* | *\|* | *\\* )
49155        ac_sed_conf_input=`$as_echo "$configure_input" |
49156        sed 's/[\\\\&|]/\\\\&/g'`;; #(
49157     *) ac_sed_conf_input=$configure_input;;
49158     esac
49159
49160     case $ac_tag in
49161     *:-:* | *:-) cat >"$tmp/stdin" \
49162       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49163 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49164    { (exit 1); exit 1; }; } ;;
49165     esac
49166     ;;
49167   esac
49168
49169   ac_dir=`$as_dirname -- "$ac_file" ||
49170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49171          X"$ac_file" : 'X\(//\)[^/]' \| \
49172          X"$ac_file" : 'X\(//\)$' \| \
49173          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49174 $as_echo X"$ac_file" |
49175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49176             s//\1/
49177             q
49178           }
49179           /^X\(\/\/\)[^/].*/{
49180             s//\1/
49181             q
49182           }
49183           /^X\(\/\/\)$/{
49184             s//\1/
49185             q
49186           }
49187           /^X\(\/\).*/{
49188             s//\1/
49189             q
49190           }
49191           s/.*/./; q'`
49192   { as_dir="$ac_dir"
49193   case $as_dir in #(
49194   -*) as_dir=./$as_dir;;
49195   esac
49196   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49197     as_dirs=
49198     while :; do
49199       case $as_dir in #(
49200       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49201       *) as_qdir=$as_dir;;
49202       esac
49203       as_dirs="'$as_qdir' $as_dirs"
49204       as_dir=`$as_dirname -- "$as_dir" ||
49205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49206          X"$as_dir" : 'X\(//\)[^/]' \| \
49207          X"$as_dir" : 'X\(//\)$' \| \
49208          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49209 $as_echo X"$as_dir" |
49210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49211             s//\1/
49212             q
49213           }
49214           /^X\(\/\/\)[^/].*/{
49215             s//\1/
49216             q
49217           }
49218           /^X\(\/\/\)$/{
49219             s//\1/
49220             q
49221           }
49222           /^X\(\/\).*/{
49223             s//\1/
49224             q
49225           }
49226           s/.*/./; q'`
49227       test -d "$as_dir" && break
49228     done
49229     test -z "$as_dirs" || eval "mkdir $as_dirs"
49230   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
49231 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
49232    { (exit 1); exit 1; }; }; }
49233   ac_builddir=.
49234
49235 case "$ac_dir" in
49236 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49237 *)
49238   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49239   # A ".." for each directory in $ac_dir_suffix.
49240   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49241   case $ac_top_builddir_sub in
49242   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49243   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49244   esac ;;
49245 esac
49246 ac_abs_top_builddir=$ac_pwd
49247 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49248 # for backward compatibility:
49249 ac_top_builddir=$ac_top_build_prefix
49250
49251 case $srcdir in
49252   .)  # We are building in place.
49253     ac_srcdir=.
49254     ac_top_srcdir=$ac_top_builddir_sub
49255     ac_abs_top_srcdir=$ac_pwd ;;
49256   [\\/]* | ?:[\\/]* )  # Absolute name.
49257     ac_srcdir=$srcdir$ac_dir_suffix;
49258     ac_top_srcdir=$srcdir
49259     ac_abs_top_srcdir=$srcdir ;;
49260   *) # Relative name.
49261     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49262     ac_top_srcdir=$ac_top_build_prefix$srcdir
49263     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49264 esac
49265 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49266
49267
49268   case $ac_mode in
49269   :F)
49270   #
49271   # CONFIG_FILE
49272   #
49273
49274   case $INSTALL in
49275   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49276   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
49277   esac
49278 _ACEOF
49279
49280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49281 # If the template does not know about datarootdir, expand it.
49282 # FIXME: This hack should be removed a few years after 2.60.
49283 ac_datarootdir_hack=; ac_datarootdir_seen=
49284
49285 ac_sed_dataroot='
49286 /datarootdir/ {
49287   p
49288   q
49289 }
49290 /@datadir@/p
49291 /@docdir@/p
49292 /@infodir@/p
49293 /@localedir@/p
49294 /@mandir@/p
49295 '
49296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49297 *datarootdir*) ac_datarootdir_seen=yes;;
49298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49299   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49301 _ACEOF
49302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49303   ac_datarootdir_hack='
49304   s&@datadir@&$datadir&g
49305   s&@docdir@&$docdir&g
49306   s&@infodir@&$infodir&g
49307   s&@localedir@&$localedir&g
49308   s&@mandir@&$mandir&g
49309     s&\\\${datarootdir}&$datarootdir&g' ;;
49310 esac
49311 _ACEOF
49312
49313 # Neutralize VPATH when `$srcdir' = `.'.
49314 # Shell code in configure.ac might set extrasub.
49315 # FIXME: do we really want to maintain this feature?
49316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49317 ac_sed_extra="$ac_vpsub
49318 $extrasub
49319 _ACEOF
49320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49321 :t
49322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49323 s|@configure_input@|$ac_sed_conf_input|;t t
49324 s&@top_builddir@&$ac_top_builddir_sub&;t t
49325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49326 s&@srcdir@&$ac_srcdir&;t t
49327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49328 s&@top_srcdir@&$ac_top_srcdir&;t t
49329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49330 s&@builddir@&$ac_builddir&;t t
49331 s&@abs_builddir@&$ac_abs_builddir&;t t
49332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49333 s&@INSTALL@&$ac_INSTALL&;t t
49334 $ac_datarootdir_hack
49335 "
49336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
49337 if $ac_cs_awk_getline; then
49338   $AWK -f "$tmp/subs.awk"
49339 else
49340   $AWK -f "$tmp/subs.awk" | $SHELL
49341 fi >$tmp/out \
49342   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49344    { (exit 1); exit 1; }; }
49345
49346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49347   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
49348   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
49349   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49350 which seems to be undefined.  Please make sure it is defined." >&5
49351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49352 which seems to be undefined.  Please make sure it is defined." >&2;}
49353
49354   rm -f "$tmp/stdin"
49355   case $ac_file in
49356   -) cat "$tmp/out" && rm -f "$tmp/out";;
49357   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
49358   esac \
49359   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49360 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49361    { (exit 1); exit 1; }; }
49362  ;;
49363   :H)
49364   #
49365   # CONFIG_HEADER
49366   #
49367   if test x"$ac_file" != x-; then
49368     {
49369       $as_echo "/* $configure_input  */" \
49370       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
49371     } >"$tmp/config.h" \
49372       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49373 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49374    { (exit 1); exit 1; }; }
49375     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
49376       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49377 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49378     else
49379       rm -f "$ac_file"
49380       mv "$tmp/config.h" "$ac_file" \
49381         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49382 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49383    { (exit 1); exit 1; }; }
49384     fi
49385   else
49386     $as_echo "/* $configure_input  */" \
49387       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
49388       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
49389 $as_echo "$as_me: error: could not create -" >&2;}
49390    { (exit 1); exit 1; }; }
49391   fi
49392  ;;
49393
49394   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
49395 $as_echo "$as_me: executing $ac_file commands" >&6;}
49396  ;;
49397   esac
49398
49399
49400   case $ac_file$ac_mode in
49401     "libtool":C)
49402
49403     # See if we are running on zsh, and set the options which allow our
49404     # commands through without removal of \ escapes.
49405     if test -n "${ZSH_VERSION+set}" ; then
49406       setopt NO_GLOB_SUBST
49407     fi
49408
49409     cfgfile="${ofile}T"
49410     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
49411     $RM "$cfgfile"
49412
49413     cat <<_LT_EOF >> "$cfgfile"
49414 #! $SHELL
49415
49416 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
49417 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
49418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
49419 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
49420 #
49421 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
49422 #                 2006, 2007, 2008 Free Software Foundation, Inc.
49423 #   Written by Gordon Matzigkeit, 1996
49424 #
49425 #   This file is part of GNU Libtool.
49426 #
49427 # GNU Libtool is free software; you can redistribute it and/or
49428 # modify it under the terms of the GNU General Public License as
49429 # published by the Free Software Foundation; either version 2 of
49430 # the License, or (at your option) any later version.
49431 #
49432 # As a special exception to the GNU General Public License,
49433 # if you distribute this file as part of a program or library that
49434 # is built using GNU Libtool, you may include this file under the
49435 # same distribution terms that you use for the rest of that program.
49436 #
49437 # GNU Libtool is distributed in the hope that it will be useful,
49438 # but WITHOUT ANY WARRANTY; without even the implied warranty of
49439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49440 # GNU General Public License for more details.
49441 #
49442 # You should have received a copy of the GNU General Public License
49443 # along with GNU Libtool; see the file COPYING.  If not, a copy
49444 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
49445 # obtained by writing to the Free Software Foundation, Inc.,
49446 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
49447
49448
49449 # The names of the tagged configurations supported by this script.
49450 available_tags="CXX "
49451
49452 # ### BEGIN LIBTOOL CONFIG
49453
49454 # Which release of libtool.m4 was used?
49455 macro_version=$macro_version
49456 macro_revision=$macro_revision
49457
49458 # Whether or not to build shared libraries.
49459 build_libtool_libs=$enable_shared
49460
49461 # Whether or not to build static libraries.
49462 build_old_libs=$enable_static
49463
49464 # What type of objects to build.
49465 pic_mode=$pic_mode
49466
49467 # Whether or not to optimize for fast installation.
49468 fast_install=$enable_fast_install
49469
49470 # The host system.
49471 host_alias=$host_alias
49472 host=$host
49473 host_os=$host_os
49474
49475 # The build system.
49476 build_alias=$build_alias
49477 build=$build
49478 build_os=$build_os
49479
49480 # A sed program that does not truncate output.
49481 SED=$lt_SED
49482
49483 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
49484 Xsed="\$SED -e 1s/^X//"
49485
49486 # A grep program that handles long lines.
49487 GREP=$lt_GREP
49488
49489 # An ERE matcher.
49490 EGREP=$lt_EGREP
49491
49492 # A literal string matcher.
49493 FGREP=$lt_FGREP
49494
49495 # A BSD- or MS-compatible name lister.
49496 NM=$lt_NM
49497
49498 # Whether we need soft or hard links.
49499 LN_S=$lt_LN_S
49500
49501 # What is the maximum length of a command?
49502 max_cmd_len=$max_cmd_len
49503
49504 # Object file suffix (normally "o").
49505 objext=$ac_objext
49506
49507 # Executable file suffix (normally "").
49508 exeext=$exeext
49509
49510 # whether the shell understands "unset".
49511 lt_unset=$lt_unset
49512
49513 # turn spaces into newlines.
49514 SP2NL=$lt_lt_SP2NL
49515
49516 # turn newlines into spaces.
49517 NL2SP=$lt_lt_NL2SP
49518
49519 # How to create reloadable object files.
49520 reload_flag=$lt_reload_flag
49521 reload_cmds=$lt_reload_cmds
49522
49523 # An object symbol dumper.
49524 OBJDUMP=$lt_OBJDUMP
49525
49526 # Method to check whether dependent libraries are shared objects.
49527 deplibs_check_method=$lt_deplibs_check_method
49528
49529 # Command to use when deplibs_check_method == "file_magic".
49530 file_magic_cmd=$lt_file_magic_cmd
49531
49532 # The archiver.
49533 AR=$lt_AR
49534 AR_FLAGS=$lt_AR_FLAGS
49535
49536 # A symbol stripping program.
49537 STRIP=$lt_STRIP
49538
49539 # Commands used to install an old-style archive.
49540 RANLIB=$lt_RANLIB
49541 old_postinstall_cmds=$lt_old_postinstall_cmds
49542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
49543
49544 # A C compiler.
49545 LTCC=$lt_CC
49546
49547 # LTCC compiler flags.
49548 LTCFLAGS=$lt_CFLAGS
49549
49550 # Take the output of nm and produce a listing of raw symbols and C names.
49551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49552
49553 # Transform the output of nm in a proper C declaration.
49554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49555
49556 # Transform the output of nm in a C name address pair.
49557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49558
49559 # Transform the output of nm in a C name address pair when lib prefix is needed.
49560 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49561
49562 # The name of the directory that contains temporary libtool files.
49563 objdir=$objdir
49564
49565 # Shell to use when invoking shell scripts.
49566 SHELL=$lt_SHELL
49567
49568 # An echo program that does not interpret backslashes.
49569 ECHO=$lt_ECHO
49570
49571 # Used to examine libraries when file_magic_cmd begins with "file".
49572 MAGIC_CMD=$MAGIC_CMD
49573
49574 # Must we lock files when doing compilation?
49575 need_locks=$lt_need_locks
49576
49577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49578 DSYMUTIL=$lt_DSYMUTIL
49579
49580 # Tool to change global to local symbols on Mac OS X.
49581 NMEDIT=$lt_NMEDIT
49582
49583 # Tool to manipulate fat objects and archives on Mac OS X.
49584 LIPO=$lt_LIPO
49585
49586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
49587 OTOOL=$lt_OTOOL
49588
49589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49590 OTOOL64=$lt_OTOOL64
49591
49592 # Old archive suffix (normally "a").
49593 libext=$libext
49594
49595 # Shared library suffix (normally ".so").
49596 shrext_cmds=$lt_shrext_cmds
49597
49598 # The commands to extract the exported symbol list from a shared archive.
49599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
49600
49601 # Variables whose values should be saved in libtool wrapper scripts and
49602 # restored at link time.
49603 variables_saved_for_relink=$lt_variables_saved_for_relink
49604
49605 # Do we need the "lib" prefix for modules?
49606 need_lib_prefix=$need_lib_prefix
49607
49608 # Do we need a version for libraries?
49609 need_version=$need_version
49610
49611 # Library versioning type.
49612 version_type=$version_type
49613
49614 # Shared library runtime path variable.
49615 runpath_var=$runpath_var
49616
49617 # Shared library path variable.
49618 shlibpath_var=$shlibpath_var
49619
49620 # Is shlibpath searched before the hard-coded library search path?
49621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49622
49623 # Format of library name prefix.
49624 libname_spec=$lt_libname_spec
49625
49626 # List of archive names.  First name is the real one, the rest are links.
49627 # The last name is the one that the linker finds with -lNAME
49628 library_names_spec=$lt_library_names_spec
49629
49630 # The coded name of the library, if different from the real name.
49631 soname_spec=$lt_soname_spec
49632
49633 # Command to use after installation of a shared archive.
49634 postinstall_cmds=$lt_postinstall_cmds
49635
49636 # Command to use after uninstallation of a shared archive.
49637 postuninstall_cmds=$lt_postuninstall_cmds
49638
49639 # Commands used to finish a libtool library installation in a directory.
49640 finish_cmds=$lt_finish_cmds
49641
49642 # As "finish_cmds", except a single script fragment to be evaled but
49643 # not shown.
49644 finish_eval=$lt_finish_eval
49645
49646 # Whether we should hardcode library paths into libraries.
49647 hardcode_into_libs=$hardcode_into_libs
49648
49649 # Compile-time system search path for libraries.
49650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49651
49652 # Run-time system search path for libraries.
49653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49654
49655 # Whether dlopen is supported.
49656 dlopen_support=$enable_dlopen
49657
49658 # Whether dlopen of programs is supported.
49659 dlopen_self=$enable_dlopen_self
49660
49661 # Whether dlopen of statically linked programs is supported.
49662 dlopen_self_static=$enable_dlopen_self_static
49663
49664 # Commands to strip libraries.
49665 old_striplib=$lt_old_striplib
49666 striplib=$lt_striplib
49667
49668
49669 # The linker used to build libraries.
49670 LD=$lt_LD
49671
49672 # Commands used to build an old-style archive.
49673 old_archive_cmds=$lt_old_archive_cmds
49674
49675 # A language specific compiler.
49676 CC=$lt_compiler
49677
49678 # Is the compiler the GNU compiler?
49679 with_gcc=$GCC
49680
49681 # Compiler flag to turn off builtin functions.
49682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49683
49684 # How to pass a linker flag through the compiler.
49685 wl=$lt_lt_prog_compiler_wl
49686
49687 # Additional compiler flags for building library objects.
49688 pic_flag=$lt_lt_prog_compiler_pic
49689
49690 # Compiler flag to prevent dynamic linking.
49691 link_static_flag=$lt_lt_prog_compiler_static
49692
49693 # Does compiler simultaneously support -c and -o options?
49694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49695
49696 # Whether or not to add -lc for building shared libraries.
49697 build_libtool_need_lc=$archive_cmds_need_lc
49698
49699 # Whether or not to disallow shared libs when runtime libs are static.
49700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49701
49702 # Compiler flag to allow reflexive dlopens.
49703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49704
49705 # Compiler flag to generate shared objects directly from archives.
49706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
49707
49708 # Whether the compiler copes with passing no objects directly.
49709 compiler_needs_object=$lt_compiler_needs_object
49710
49711 # Create an old-style archive from a shared archive.
49712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49713
49714 # Create a temporary old-style archive to link instead of a shared archive.
49715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49716
49717 # Commands used to build a shared archive.
49718 archive_cmds=$lt_archive_cmds
49719 archive_expsym_cmds=$lt_archive_expsym_cmds
49720
49721 # Commands used to build a loadable module if different from building
49722 # a shared archive.
49723 module_cmds=$lt_module_cmds
49724 module_expsym_cmds=$lt_module_expsym_cmds
49725
49726 # Whether we are building with GNU ld or not.
49727 with_gnu_ld=$lt_with_gnu_ld
49728
49729 # Flag that allows shared libraries with undefined symbols to be built.
49730 allow_undefined_flag=$lt_allow_undefined_flag
49731
49732 # Flag that enforces no undefined symbols.
49733 no_undefined_flag=$lt_no_undefined_flag
49734
49735 # Flag to hardcode \$libdir into a binary during linking.
49736 # This must work even if \$libdir does not exist
49737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49738
49739 # If ld is used when linking, flag to hardcode \$libdir into a binary
49740 # during linking.  This must work even if \$libdir does not exist.
49741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49742
49743 # Whether we need a single "-rpath" flag with a separated argument.
49744 hardcode_libdir_separator=$lt_hardcode_libdir_separator
49745
49746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49747 # DIR into the resulting binary.
49748 hardcode_direct=$hardcode_direct
49749
49750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49751 # DIR into the resulting binary and the resulting library dependency is
49752 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49753 # library is relocated.
49754 hardcode_direct_absolute=$hardcode_direct_absolute
49755
49756 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49757 # into the resulting binary.
49758 hardcode_minus_L=$hardcode_minus_L
49759
49760 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49761 # into the resulting binary.
49762 hardcode_shlibpath_var=$hardcode_shlibpath_var
49763
49764 # Set to "yes" if building a shared library automatically hardcodes DIR
49765 # into the library and all subsequent libraries and executables linked
49766 # against it.
49767 hardcode_automatic=$hardcode_automatic
49768
49769 # Set to yes if linker adds runtime paths of dependent libraries
49770 # to runtime path list.
49771 inherit_rpath=$inherit_rpath
49772
49773 # Whether libtool must link a program against all its dependency libraries.
49774 link_all_deplibs=$link_all_deplibs
49775
49776 # Fix the shell variable \$srcfile for the compiler.
49777 fix_srcfile_path=$lt_fix_srcfile_path
49778
49779 # Set to "yes" if exported symbols are required.
49780 always_export_symbols=$always_export_symbols
49781
49782 # The commands to list exported symbols.
49783 export_symbols_cmds=$lt_export_symbols_cmds
49784
49785 # Symbols that should not be listed in the preloaded symbols.
49786 exclude_expsyms=$lt_exclude_expsyms
49787
49788 # Symbols that must always be exported.
49789 include_expsyms=$lt_include_expsyms
49790
49791 # Commands necessary for linking programs (against libraries) with templates.
49792 prelink_cmds=$lt_prelink_cmds
49793
49794 # Specify filename containing input files.
49795 file_list_spec=$lt_file_list_spec
49796
49797 # How to hardcode a shared library path into an executable.
49798 hardcode_action=$hardcode_action
49799
49800 # The directories searched by this compiler when creating a shared library.
49801 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49802
49803 # Dependencies to place before and after the objects being linked to
49804 # create a shared library.
49805 predep_objects=$lt_predep_objects
49806 postdep_objects=$lt_postdep_objects
49807 predeps=$lt_predeps
49808 postdeps=$lt_postdeps
49809
49810 # The library search path used internally by the compiler when linking
49811 # a shared library.
49812 compiler_lib_search_path=$lt_compiler_lib_search_path
49813
49814 # ### END LIBTOOL CONFIG
49815
49816 _LT_EOF
49817
49818   case $host_os in
49819   aix3*)
49820     cat <<\_LT_EOF >> "$cfgfile"
49821 # AIX sometimes has problems with the GCC collect2 program.  For some
49822 # reason, if we set the COLLECT_NAMES environment variable, the problems
49823 # vanish in a puff of smoke.
49824 if test "X${COLLECT_NAMES+set}" != Xset; then
49825   COLLECT_NAMES=
49826   export COLLECT_NAMES
49827 fi
49828 _LT_EOF
49829     ;;
49830   esac
49831
49832
49833 ltmain="$ac_aux_dir/ltmain.sh"
49834
49835
49836   # We use sed instead of cat because bash on DJGPP gets confused if
49837   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
49838   # text mode, it properly converts lines to CR/LF.  This bash problem
49839   # is reportedly fixed, but why not run on old versions too?
49840   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49841     || (rm -f "$cfgfile"; exit 1)
49842
49843   case $xsi_shell in
49844   yes)
49845     cat << \_LT_EOF >> "$cfgfile"
49846
49847 # func_dirname file append nondir_replacement
49848 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
49849 # otherwise set result to NONDIR_REPLACEMENT.
49850 func_dirname ()
49851 {
49852   case ${1} in
49853     */*) func_dirname_result="${1%/*}${2}" ;;
49854     *  ) func_dirname_result="${3}" ;;
49855   esac
49856 }
49857
49858 # func_basename file
49859 func_basename ()
49860 {
49861   func_basename_result="${1##*/}"
49862 }
49863
49864 # func_dirname_and_basename file append nondir_replacement
49865 # perform func_basename and func_dirname in a single function
49866 # call:
49867 #   dirname:  Compute the dirname of FILE.  If nonempty,
49868 #             add APPEND to the result, otherwise set result
49869 #             to NONDIR_REPLACEMENT.
49870 #             value returned in "$func_dirname_result"
49871 #   basename: Compute filename of FILE.
49872 #             value retuned in "$func_basename_result"
49873 # Implementation must be kept synchronized with func_dirname
49874 # and func_basename. For efficiency, we do not delegate to
49875 # those functions but instead duplicate the functionality here.
49876 func_dirname_and_basename ()
49877 {
49878   case ${1} in
49879     */*) func_dirname_result="${1%/*}${2}" ;;
49880     *  ) func_dirname_result="${3}" ;;
49881   esac
49882   func_basename_result="${1##*/}"
49883 }
49884
49885 # func_stripname prefix suffix name
49886 # strip PREFIX and SUFFIX off of NAME.
49887 # PREFIX and SUFFIX must not contain globbing or regex special
49888 # characters, hashes, percent signs, but SUFFIX may contain a leading
49889 # dot (in which case that matches only a dot).
49890 func_stripname ()
49891 {
49892   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49893   # positional parameters, so assign one to ordinary parameter first.
49894   func_stripname_result=${3}
49895   func_stripname_result=${func_stripname_result#"${1}"}
49896   func_stripname_result=${func_stripname_result%"${2}"}
49897 }
49898
49899 # func_opt_split
49900 func_opt_split ()
49901 {
49902   func_opt_split_opt=${1%%=*}
49903   func_opt_split_arg=${1#*=}
49904 }
49905
49906 # func_lo2o object
49907 func_lo2o ()
49908 {
49909   case ${1} in
49910     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49911     *)    func_lo2o_result=${1} ;;
49912   esac
49913 }
49914
49915 # func_xform libobj-or-source
49916 func_xform ()
49917 {
49918   func_xform_result=${1%.*}.lo
49919 }
49920
49921 # func_arith arithmetic-term...
49922 func_arith ()
49923 {
49924   func_arith_result=$(( $* ))
49925 }
49926
49927 # func_len string
49928 # STRING may not start with a hyphen.
49929 func_len ()
49930 {
49931   func_len_result=${#1}
49932 }
49933
49934 _LT_EOF
49935     ;;
49936   *) # Bourne compatible functions.
49937     cat << \_LT_EOF >> "$cfgfile"
49938
49939 # func_dirname file append nondir_replacement
49940 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
49941 # otherwise set result to NONDIR_REPLACEMENT.
49942 func_dirname ()
49943 {
49944   # Extract subdirectory from the argument.
49945   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49946   if test "X$func_dirname_result" = "X${1}"; then
49947     func_dirname_result="${3}"
49948   else
49949     func_dirname_result="$func_dirname_result${2}"
49950   fi
49951 }
49952
49953 # func_basename file
49954 func_basename ()
49955 {
49956   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49957 }
49958
49959
49960 # func_stripname prefix suffix name
49961 # strip PREFIX and SUFFIX off of NAME.
49962 # PREFIX and SUFFIX must not contain globbing or regex special
49963 # characters, hashes, percent signs, but SUFFIX may contain a leading
49964 # dot (in which case that matches only a dot).
49965 # func_strip_suffix prefix name
49966 func_stripname ()
49967 {
49968   case ${2} in
49969     .*) func_stripname_result=`$ECHO "X${3}" \
49970            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49971     *)  func_stripname_result=`$ECHO "X${3}" \
49972            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49973   esac
49974 }
49975
49976 # sed scripts:
49977 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49978 my_sed_long_arg='1s/^-[^=]*=//'
49979
49980 # func_opt_split
49981 func_opt_split ()
49982 {
49983   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49984   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49985 }
49986
49987 # func_lo2o object
49988 func_lo2o ()
49989 {
49990   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49991 }
49992
49993 # func_xform libobj-or-source
49994 func_xform ()
49995 {
49996   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49997 }
49998
49999 # func_arith arithmetic-term...
50000 func_arith ()
50001 {
50002   func_arith_result=`expr "$@"`
50003 }
50004
50005 # func_len string
50006 # STRING may not start with a hyphen.
50007 func_len ()
50008 {
50009   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50010 }
50011
50012 _LT_EOF
50013 esac
50014
50015 case $lt_shell_append in
50016   yes)
50017     cat << \_LT_EOF >> "$cfgfile"
50018
50019 # func_append var value
50020 # Append VALUE to the end of shell variable VAR.
50021 func_append ()
50022 {
50023   eval "$1+=\$2"
50024 }
50025 _LT_EOF
50026     ;;
50027   *)
50028     cat << \_LT_EOF >> "$cfgfile"
50029
50030 # func_append var value
50031 # Append VALUE to the end of shell variable VAR.
50032 func_append ()
50033 {
50034   eval "$1=\$$1\$2"
50035 }
50036
50037 _LT_EOF
50038     ;;
50039   esac
50040
50041
50042   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
50043     || (rm -f "$cfgfile"; exit 1)
50044
50045   mv -f "$cfgfile" "$ofile" ||
50046     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
50047   chmod +x "$ofile"
50048
50049
50050     cat <<_LT_EOF >> "$ofile"
50051
50052 # ### BEGIN LIBTOOL TAG CONFIG: CXX
50053
50054 # The linker used to build libraries.
50055 LD=$lt_LD_CXX
50056
50057 # Commands used to build an old-style archive.
50058 old_archive_cmds=$lt_old_archive_cmds_CXX
50059
50060 # A language specific compiler.
50061 CC=$lt_compiler_CXX
50062
50063 # Is the compiler the GNU compiler?
50064 with_gcc=$GCC_CXX
50065
50066 # Compiler flag to turn off builtin functions.
50067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
50068
50069 # How to pass a linker flag through the compiler.
50070 wl=$lt_lt_prog_compiler_wl_CXX
50071
50072 # Additional compiler flags for building library objects.
50073 pic_flag=$lt_lt_prog_compiler_pic_CXX
50074
50075 # Compiler flag to prevent dynamic linking.
50076 link_static_flag=$lt_lt_prog_compiler_static_CXX
50077
50078 # Does compiler simultaneously support -c and -o options?
50079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
50080
50081 # Whether or not to add -lc for building shared libraries.
50082 build_libtool_need_lc=$archive_cmds_need_lc_CXX
50083
50084 # Whether or not to disallow shared libs when runtime libs are static.
50085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
50086
50087 # Compiler flag to allow reflexive dlopens.
50088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
50089
50090 # Compiler flag to generate shared objects directly from archives.
50091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
50092
50093 # Whether the compiler copes with passing no objects directly.
50094 compiler_needs_object=$lt_compiler_needs_object_CXX
50095
50096 # Create an old-style archive from a shared archive.
50097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
50098
50099 # Create a temporary old-style archive to link instead of a shared archive.
50100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
50101
50102 # Commands used to build a shared archive.
50103 archive_cmds=$lt_archive_cmds_CXX
50104 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
50105
50106 # Commands used to build a loadable module if different from building
50107 # a shared archive.
50108 module_cmds=$lt_module_cmds_CXX
50109 module_expsym_cmds=$lt_module_expsym_cmds_CXX
50110
50111 # Whether we are building with GNU ld or not.
50112 with_gnu_ld=$lt_with_gnu_ld_CXX
50113
50114 # Flag that allows shared libraries with undefined symbols to be built.
50115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
50116
50117 # Flag that enforces no undefined symbols.
50118 no_undefined_flag=$lt_no_undefined_flag_CXX
50119
50120 # Flag to hardcode \$libdir into a binary during linking.
50121 # This must work even if \$libdir does not exist
50122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
50123
50124 # If ld is used when linking, flag to hardcode \$libdir into a binary
50125 # during linking.  This must work even if \$libdir does not exist.
50126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
50127
50128 # Whether we need a single "-rpath" flag with a separated argument.
50129 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
50130
50131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50132 # DIR into the resulting binary.
50133 hardcode_direct=$hardcode_direct_CXX
50134
50135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50136 # DIR into the resulting binary and the resulting library dependency is
50137 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
50138 # library is relocated.
50139 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
50140
50141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50142 # into the resulting binary.
50143 hardcode_minus_L=$hardcode_minus_L_CXX
50144
50145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50146 # into the resulting binary.
50147 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
50148
50149 # Set to "yes" if building a shared library automatically hardcodes DIR
50150 # into the library and all subsequent libraries and executables linked
50151 # against it.
50152 hardcode_automatic=$hardcode_automatic_CXX
50153
50154 # Set to yes if linker adds runtime paths of dependent libraries
50155 # to runtime path list.
50156 inherit_rpath=$inherit_rpath_CXX
50157
50158 # Whether libtool must link a program against all its dependency libraries.
50159 link_all_deplibs=$link_all_deplibs_CXX
50160
50161 # Fix the shell variable \$srcfile for the compiler.
50162 fix_srcfile_path=$lt_fix_srcfile_path_CXX
50163
50164 # Set to "yes" if exported symbols are required.
50165 always_export_symbols=$always_export_symbols_CXX
50166
50167 # The commands to list exported symbols.
50168 export_symbols_cmds=$lt_export_symbols_cmds_CXX
50169
50170 # Symbols that should not be listed in the preloaded symbols.
50171 exclude_expsyms=$lt_exclude_expsyms_CXX
50172
50173 # Symbols that must always be exported.
50174 include_expsyms=$lt_include_expsyms_CXX
50175
50176 # Commands necessary for linking programs (against libraries) with templates.
50177 prelink_cmds=$lt_prelink_cmds_CXX
50178
50179 # Specify filename containing input files.
50180 file_list_spec=$lt_file_list_spec_CXX
50181
50182 # How to hardcode a shared library path into an executable.
50183 hardcode_action=$hardcode_action_CXX
50184
50185 # The directories searched by this compiler when creating a shared library.
50186 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
50187
50188 # Dependencies to place before and after the objects being linked to
50189 # create a shared library.
50190 predep_objects=$lt_predep_objects_CXX
50191 postdep_objects=$lt_postdep_objects_CXX
50192 predeps=$lt_predeps_CXX
50193 postdeps=$lt_postdeps_CXX
50194
50195 # The library search path used internally by the compiler when linking
50196 # a shared library.
50197 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
50198
50199 # ### END LIBTOOL TAG CONFIG: CXX
50200 _LT_EOF
50201
50202  ;;
50203     "default-1":C)
50204     for ac_file in $CONFIG_FILES; do
50205       # Support "outfile[:infile[:infile...]]"
50206       case "$ac_file" in
50207         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
50208       esac
50209       # PO directories have a Makefile.in generated from Makefile.in.in.
50210       case "$ac_file" in */Makefile.in)
50211         # Adjust a relative srcdir.
50212         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
50213         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
50214         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
50215         # In autoconf-2.13 it is called $ac_given_srcdir.
50216         # In autoconf-2.50 it is called $srcdir.
50217         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
50218         case "$ac_given_srcdir" in
50219           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
50220           /*) top_srcdir="$ac_given_srcdir" ;;
50221           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
50222         esac
50223         # Treat a directory as a PO directory if and only if it has a
50224         # POTFILES.in file. This allows packages to have multiple PO
50225         # directories under different names or in different locations.
50226         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
50227           rm -f "$ac_dir/POTFILES"
50228           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
50229           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
50230           POMAKEFILEDEPS="POTFILES.in"
50231           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
50232           # on $ac_dir but don't depend on user-specified configuration
50233           # parameters.
50234           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
50235             # The LINGUAS file contains the set of available languages.
50236             if test -n "$OBSOLETE_ALL_LINGUAS"; then
50237               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
50238             fi
50239             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
50240             # Hide the ALL_LINGUAS assigment from automake.
50241             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
50242             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
50243           else
50244             # The set of available languages was given in configure.in.
50245             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
50246           fi
50247           # Compute POFILES
50248           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
50249           # Compute UPDATEPOFILES
50250           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
50251           # Compute DUMMYPOFILES
50252           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
50253           # Compute GMOFILES
50254           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
50255           case "$ac_given_srcdir" in
50256             .) srcdirpre= ;;
50257             *) srcdirpre='$(srcdir)/' ;;
50258           esac
50259           POFILES=
50260           UPDATEPOFILES=
50261           DUMMYPOFILES=
50262           GMOFILES=
50263           for lang in $ALL_LINGUAS; do
50264             POFILES="$POFILES $srcdirpre$lang.po"
50265             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
50266             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
50267             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
50268           done
50269           # CATALOGS depends on both $ac_dir and the user's LINGUAS
50270           # environment variable.
50271           INST_LINGUAS=
50272           if test -n "$ALL_LINGUAS"; then
50273             for presentlang in $ALL_LINGUAS; do
50274               useit=no
50275               if test "%UNSET%" != "$LINGUAS"; then
50276                 desiredlanguages="$LINGUAS"
50277               else
50278                 desiredlanguages="$ALL_LINGUAS"
50279               fi
50280               for desiredlang in $desiredlanguages; do
50281                 # Use the presentlang catalog if desiredlang is
50282                 #   a. equal to presentlang, or
50283                 #   b. a variant of presentlang (because in this case,
50284                 #      presentlang can be used as a fallback for messages
50285                 #      which are not translated in the desiredlang catalog).
50286                 case "$desiredlang" in
50287                   "$presentlang"*) useit=yes;;
50288                 esac
50289               done
50290               if test $useit = yes; then
50291                 INST_LINGUAS="$INST_LINGUAS $presentlang"
50292               fi
50293             done
50294           fi
50295           CATALOGS=
50296           if test -n "$INST_LINGUAS"; then
50297             for lang in $INST_LINGUAS; do
50298               CATALOGS="$CATALOGS $lang.gmo"
50299             done
50300           fi
50301           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
50302           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"
50303           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
50304             if test -f "$f"; then
50305               case "$f" in
50306                 *.orig | *.bak | *~) ;;
50307                 *) cat "$f" >> "$ac_dir/Makefile" ;;
50308               esac
50309             fi
50310           done
50311         fi
50312         ;;
50313       esac
50314     done ;;
50315     "default":C)
50316  ;;
50317
50318   esac
50319 done # for ac_tag
50320
50321
50322 { (exit 0); exit 0; }
50323 _ACEOF
50324 chmod +x $CONFIG_STATUS
50325 ac_clean_files=$ac_clean_files_save
50326
50327 test $ac_write_fail = 0 ||
50328   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
50329 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
50330    { (exit 1); exit 1; }; }
50331
50332
50333 # configure is writing to config.log, and then calls config.status.
50334 # config.status does its own redirection, appending to config.log.
50335 # Unfortunately, on DOS this fails, as config.log is still kept open
50336 # by configure, so config.status won't be able to write to it; its
50337 # output is simply discarded.  So we exec the FD to /dev/null,
50338 # effectively closing config.log, so it can be properly (re)opened and
50339 # appended to by config.status.  When coming back to configure, we
50340 # need to make the FD available again.
50341 if test "$no_create" != yes; then
50342   ac_cs_success=:
50343   ac_config_status_args=
50344   test "$silent" = yes &&
50345     ac_config_status_args="$ac_config_status_args --quiet"
50346   exec 5>/dev/null
50347   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50348   exec 5>>config.log
50349   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50350   # would make configure fail if this is the last instruction.
50351   $ac_cs_success || { (exit 1); exit 1; }
50352 fi
50353 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
50354   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
50355 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
50356 fi
50357
50358
50359 if test "${support_bat}" = "yes" ; then
50360    if test "x$QMAKE" = "xnone"; then
50361       { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
50362 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
50363    { (exit 1); exit 1; }; }
50364    fi
50365
50366    cd src/qt-console
50367    echo "Creating bat Makefile"
50368    touch bat
50369    chmod 755 bat
50370    rm -f Makefile
50371    $QMAKE
50372    ${MAKE:-make} clean
50373    cd ${BUILD_DIR}
50374 fi
50375
50376 if test X"$GCC" = "Xyes" ; then
50377   echo "Doing make of dependencies"
50378   ${MAKE:-make} depend
50379 fi
50380
50381 cd src/qt-console
50382 chmod 755 install_conf_file build-depkgs-qt-console
50383 cd ${BUILD_DIR}
50384
50385 cd scripts
50386 chmod 755 bacula btraceback mtx-changer
50387 chmod 755 dvd-handler dvd-simulator
50388 chmod 755 bconsole mtx-changer devel_bacula logrotate
50389 cd ..
50390
50391 c=updatedb
50392 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
50393 chmod 755 $c/update_postgresql_tables_10_to_11
50394 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
50395 chmod 755 $c/update_postgresql_tables_11_to_12
50396
50397
50398 c=src/cats
50399
50400 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
50401 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
50402
50403 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
50404 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
50405
50406 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
50407 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
50408
50409 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
50410 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
50411
50412 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
50413 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
50414
50415
50416 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
50417 chmod 755 $c/sqlite
50418 chmod 755 $c/mysql
50419
50420 chmod 755 src/win32/build-depkgs-mingw32
50421
50422 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
50423    largefile_support="yes"
50424 fi
50425
50426 if test X"$GCC" = "Xyes" ; then
50427                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
50428    if test "x${CCVERSION}" = "x" ; then
50429       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
50430    fi
50431    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
50432    if test x"${CXXVERSION}" = x ; then
50433       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
50434    fi
50435 fi
50436
50437 # clean up any old junk
50438 echo " "
50439 echo "Cleaning up"
50440 echo " "
50441 ${MAKE:-make} clean
50442
50443 echo "
50444 Configuration on `date`:
50445
50446    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
50447    Bacula version:           ${BACULA} ${VERSION} (${DATE})
50448    Source code location:     ${srcdir}
50449    Install binaries:         ${sbindir}
50450    Install libraries:        ${libdir}
50451    Install config files:     ${sysconfdir}
50452    Scripts directory:        ${scriptdir}
50453    Archive directory:        ${archivedir}
50454    Working directory:        ${working_dir}
50455    PID directory:            ${piddir}
50456    Subsys directory:         ${subsysdir}
50457    Man directory:            ${mandir}
50458    Data directory:           ${datarootdir}
50459    Plugin directory:         ${plugindir}
50460    C Compiler:               ${CC} ${CCVERSION}
50461    C++ Compiler:             ${CXX} ${CXXVERSION}
50462    Compiler flags:           ${WCFLAGS} ${CFLAGS}
50463    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
50464    Libraries:                ${LIBS}
50465    Statically Linked Tools:  ${support_static_tools}
50466    Statically Linked FD:     ${support_static_fd}
50467    Statically Linked SD:     ${support_static_sd}
50468    Statically Linked DIR:    ${support_static_dir}
50469    Statically Linked CONS:   ${support_static_cons}
50470    Database backends:        ${db_backends}
50471    Database port:            ${db_port}
50472    Database name:            ${db_name}
50473    Database user:            ${db_user}
50474
50475    Job Output Email:         ${job_email}
50476    Traceback Email:          ${dump_email}
50477    SMTP Host Address:        ${smtp_host}
50478
50479    Director Port:            ${dir_port}
50480    File daemon Port:         ${fd_port}
50481    Storage daemon Port:      ${sd_port}
50482
50483    Director User:            ${dir_user}
50484    Director Group:           ${dir_group}
50485    Storage Daemon User:      ${sd_user}
50486    Storage DaemonGroup:      ${sd_group}
50487    File Daemon User:         ${fd_user}
50488    File Daemon Group:        ${fd_group}
50489
50490    Large file support:      $largefile_support
50491    Bacula conio support:    ${got_conio} ${CONS_LIBS}
50492    readline support:        ${got_readline} ${PRTREADLINE_SRC}
50493    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
50494    TLS support:             ${support_tls}
50495    Encryption support:      ${support_crypto}
50496    ZLIB support:            ${have_zlib}
50497    enable-smartalloc:       ${support_smartalloc}
50498    enable-lockmgr:          ${support_lockmgr}
50499    bat support:             ${support_bat}
50500    enable-gnome:            ${support_gnome} ${gnome_version}
50501    enable-bwx-console:      ${support_wx_console} ${wx_version}
50502    enable-tray-monitor:     ${support_tray_monitor}
50503    client-only:             ${build_client_only}
50504    build-dird:              ${build_dird}
50505    build-stored:            ${build_stored}
50506    Plugin support:          ${have_plugins}
50507    AFS support:             ${have_afs}
50508    ACL support:             ${have_acl}
50509    XATTR support:           ${have_xattr}
50510    Python support:          ${support_python} ${PYTHON_LIBS}
50511    Batch insert enabled:    ${support_batch_insert}
50512
50513   " > config.out
50514
50515 # create a small shell script useful for support with
50516 # configure options and config.out info
50517 cat > scripts/bacula_config << EOF
50518 #!/bin/sh
50519 cat << __EOC__
50520 $ $0 $ac_configure_args
50521 EOF
50522 cat config.out >> scripts/bacula_config
50523 echo __EOC__ >> scripts/bacula_config
50524 chmod 755 scripts/bacula_config
50525
50526 cat config.out