]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak 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.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 LIBBAC_LT_CURRENT
815 LIBBAC_LT_REVISION
816 LIBBAC_LT_AGE
817 LIBBACCFG_LT_CURRENT
818 LIBBACCFG_LT_REVISION
819 LIBBACCFG_LT_AGE
820 LIBBACPY_LT_CURRENT
821 LIBBACPY_LT_REVISION
822 LIBBACPY_LT_AGE
823 LIBBACSQL_LT_CURRENT
824 LIBBACSQL_LT_REVISION
825 LIBBACSQL_LT_AGE
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
828 LIBBACFIND_LT_AGE
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 CXX
837 CXXFLAGS
838 ac_ct_CXX
839 CPP
840 GREP
841 EGREP
842 INSTALL_PROGRAM
843 INSTALL_SCRIPT
844 INSTALL_DATA
845 MV
846 REMOVE
847 CP
848 SED
849 ECHO
850 CMP
851 TBL
852 AR
853 OPENSSL
854 MTX
855 DD
856 MKISOFS
857 PYTHON
858 GROWISOFS
859 DVDRWMEDIAINFO
860 DVDRWFORMAT
861 PKGCONFIG
862 QMAKE
863 GMAKE
864 WXCONFIG
865 WXFLAGS
866 CDRECORD
867 PIDOF
868 AWK
869 ARFLAGS
870 MAKE_SHELL
871 LOCAL_LIBS
872 LOCAL_CFLAGS
873 LOCAL_LDFLAGS
874 LOCAL_DEFS
875 LIBTOOL
876 build
877 build_cpu
878 build_vendor
879 build_os
880 host
881 host_cpu
882 host_vendor
883 host_os
884 FGREP
885 LD
886 DUMPBIN
887 ac_ct_DUMPBIN
888 NM
889 LN_S
890 OBJDUMP
891 STRIP
892 RANLIB
893 lt_ECHO
894 DSYMUTIL
895 NMEDIT
896 LIPO
897 OTOOL
898 OTOOL64
899 CXXCPP
900 DEFAULT_OBJECT_TYPE
901 DEFAULT_ARCHIVE_TYPE
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
905 LIBTOOL_CLEAN_TARGET
906 QMAKE_LIBTOOL
907 FD_PLUGIN_DIR
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
910 HAVE_SUN_OS_TRUE
911 HAVE_SUN_OS_FALSE
912 HAVE_OSF1_OS_TRUE
913 HAVE_OSF1_OS_FALSE
914 HAVE_AIX_OS_TRUE
915 HAVE_AIX_OS_FALSE
916 HAVE_HPUX_OS_TRUE
917 HAVE_HPUX_OS_FALSE
918 HAVE_LINUX_OS_TRUE
919 HAVE_LINUX_OS_FALSE
920 HAVE_FREEBSD_OS_TRUE
921 HAVE_FREEBSD_OS_FALSE
922 HAVE_NETBSD_OS_TRUE
923 HAVE_NETBSD_OS_FALSE
924 HAVE_OPENBSD_OS_TRUE
925 HAVE_OPENBSD_OS_FALSE
926 HAVE_BSDI_OS_TRUE
927 HAVE_BSDI_OS_FALSE
928 HAVE_SGI_OS_TRUE
929 HAVE_SGI_OS_FALSE
930 HAVE_IRIX_OS_TRUE
931 HAVE_IRIX_OS_FALSE
932 HAVE_DARWIN_OS_TRUE
933 HAVE_DARWIN_OS_FALSE
934 SET_MAKE
935 MKINSTALLDIRS
936 USE_NLS
937 MSGFMT
938 GMSGFMT
939 XGETTEXT
940 MSGMERGE
941 INTL_MACOSX_LIBS
942 LIBICONV
943 LTLIBICONV
944 INTLLIBS
945 LIBINTL
946 LTLIBINTL
947 POSUB
948 GLIBC2
949 ALLOCA
950 GLIBC21
951 HAVE_POSIX_PRINTF
952 HAVE_ASPRINTF
953 HAVE_SNPRINTF
954 HAVE_WPRINTF
955 INTLBISON
956 BUILD_INCLUDED_LIBINTL
957 USE_INCLUDED_LIBINTL
958 CATOBJEXT
959 DATADIRNAME
960 INSTOBJEXT
961 GENCAT
962 INTLOBJS
963 INTL_LIBTOOL_SUFFIX_PREFIX
964 BAT_DIR
965 QWT_INC
966 QWT_LDFLAGS
967 QWT_LIB
968 QWT
969 WXCONS_CPPFLAGS
970 WXCONS_LDFLAGS
971 WX_DIR
972 TRAY_MONITOR_CPPFLAGS
973 TRAY_MONITOR_LDFLAGS
974 TRAY_MONITOR_DIR
975 TTOOL_LDFLAGS
976 STATIC_FD
977 STATIC_SD
978 STATIC_DIR
979 STATIC_CONS
980 STATIC_GNOME_CONS
981 STATIC_WX_CONS
982 ALL_DIRS
983 DIRD_DIR
984 DIR_TOOLS
985 STORED_DIR
986 CONS_INC
987 CONS_OBJ
988 CONS_SRC
989 CONS_LIBS
990 CONS_LDFLAGS
991 READLINE_SRC
992 PYTHON_LIBS
993 PYTHON_INCDIR
994 OPENSSL_LIBS
995 OPENSSL_INC
996 working_dir
997 archivedir
998 basename
999 hostname
1000 scriptdir
1001 bsrdir
1002 logdir
1003 plugindir
1004 dump_email
1005 job_email
1006 smtp_host
1007 piddir
1008 subsysdir
1009 baseport
1010 dir_port
1011 fd_port
1012 sd_port
1013 dir_password
1014 fd_password
1015 sd_password
1016 mon_dir_password
1017 mon_fd_password
1018 mon_sd_password
1019 db_name
1020 db_user
1021 db_password
1022 db_port
1023 dir_user
1024 dir_group
1025 sd_user
1026 sd_group
1027 fd_user
1028 fd_group
1029 SBINPERM
1030 SQL_LFLAGS
1031 SQL_INCLUDE
1032 SQL_BINDIR
1033 DBI_DBD_DRIVERDIR
1034 uncomment_dbi
1035 DB_PROG
1036 DB_PROG_LIB
1037 cats
1038 DB_TYPE
1039 GETCONF
1040 XMKMF
1041 X_CFLAGS
1042 X_PRE_LIBS
1043 X_LIBS
1044 X_EXTRA_LIBS
1045 LIBOBJS
1046 CAP_LIBS
1047 FDLIBS
1048 DEBUG
1049 DINCLUDE
1050 DLIB
1051 DB_LIBS
1052 WCFLAGS
1053 WLDFLAGS
1054 WRAPLIBS
1055 OBJLIST
1056 TAPEDRIVE
1057 PSCMD
1058 WIN32
1059 MACOSX
1060 DISTNAME
1061 DISTVER
1062 LTLIBOBJS'
1063 ac_subst_files='MCOMMON'
1064       ac_precious_vars='build_alias
1065 host_alias
1066 target_alias
1067 CC
1068 CFLAGS
1069 LDFLAGS
1070 LIBS
1071 CPPFLAGS
1072 CXX
1073 CXXFLAGS
1074 CCC
1075 CPP
1076 WXCONFIG
1077 WXFLAGS
1078 CXXCPP
1079 XMKMF'
1080
1081
1082 # Initialize some variables set by options.
1083 ac_init_help=
1084 ac_init_version=false
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1088 exec_prefix=NONE
1089 no_create=
1090 no_recursion=
1091 prefix=NONE
1092 program_prefix=NONE
1093 program_suffix=NONE
1094 program_transform_name=s,x,x,
1095 silent=
1096 site=
1097 srcdir=
1098 verbose=
1099 x_includes=NONE
1100 x_libraries=NONE
1101
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE}'
1119 infodir='${datarootdir}/info'
1120 htmldir='${docdir}'
1121 dvidir='${docdir}'
1122 pdfdir='${docdir}'
1123 psdir='${docdir}'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1127
1128 ac_prev=
1129 ac_dashdash=
1130 for ac_option
1131 do
1132   # If the previous option needs an argument, assign it.
1133   if test -n "$ac_prev"; then
1134     eval $ac_prev=\$ac_option
1135     ac_prev=
1136     continue
1137   fi
1138
1139   case $ac_option in
1140   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1141   *)    ac_optarg=yes ;;
1142   esac
1143
1144   # Accept the important Cygnus configure options, so we can diagnose typos.
1145
1146   case $ac_dashdash$ac_option in
1147   --)
1148     ac_dashdash=yes ;;
1149
1150   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1151     ac_prev=bindir ;;
1152   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153     bindir=$ac_optarg ;;
1154
1155   -build | --build | --buil | --bui | --bu)
1156     ac_prev=build_alias ;;
1157   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158     build_alias=$ac_optarg ;;
1159
1160   -cache-file | --cache-file | --cache-fil | --cache-fi \
1161   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162     ac_prev=cache_file ;;
1163   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165     cache_file=$ac_optarg ;;
1166
1167   --config-cache | -C)
1168     cache_file=config.cache ;;
1169
1170   -datadir | --datadir | --datadi | --datad)
1171     ac_prev=datadir ;;
1172   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173     datadir=$ac_optarg ;;
1174
1175   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176   | --dataroo | --dataro | --datar)
1177     ac_prev=datarootdir ;;
1178   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180     datarootdir=$ac_optarg ;;
1181
1182   -disable-* | --disable-*)
1183     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187    { (exit 1); exit 1; }; }
1188     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1189     eval enable_$ac_feature=no ;;
1190
1191   -docdir | --docdir | --docdi | --doc | --do)
1192     ac_prev=docdir ;;
1193   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1194     docdir=$ac_optarg ;;
1195
1196   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1197     ac_prev=dvidir ;;
1198   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1199     dvidir=$ac_optarg ;;
1200
1201   -enable-* | --enable-*)
1202     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1206    { (exit 1); exit 1; }; }
1207     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1208     eval enable_$ac_feature=\$ac_optarg ;;
1209
1210   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212   | --exec | --exe | --ex)
1213     ac_prev=exec_prefix ;;
1214   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216   | --exec=* | --exe=* | --ex=*)
1217     exec_prefix=$ac_optarg ;;
1218
1219   -gas | --gas | --ga | --g)
1220     # Obsolete; use --with-gas.
1221     with_gas=yes ;;
1222
1223   -help | --help | --hel | --he | -h)
1224     ac_init_help=long ;;
1225   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226     ac_init_help=recursive ;;
1227   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228     ac_init_help=short ;;
1229
1230   -host | --host | --hos | --ho)
1231     ac_prev=host_alias ;;
1232   -host=* | --host=* | --hos=* | --ho=*)
1233     host_alias=$ac_optarg ;;
1234
1235   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1236     ac_prev=htmldir ;;
1237   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1238   | --ht=*)
1239     htmldir=$ac_optarg ;;
1240
1241   -includedir | --includedir | --includedi | --included | --include \
1242   | --includ | --inclu | --incl | --inc)
1243     ac_prev=includedir ;;
1244   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245   | --includ=* | --inclu=* | --incl=* | --inc=*)
1246     includedir=$ac_optarg ;;
1247
1248   -infodir | --infodir | --infodi | --infod | --info | --inf)
1249     ac_prev=infodir ;;
1250   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251     infodir=$ac_optarg ;;
1252
1253   -libdir | --libdir | --libdi | --libd)
1254     ac_prev=libdir ;;
1255   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256     libdir=$ac_optarg ;;
1257
1258   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259   | --libexe | --libex | --libe)
1260     ac_prev=libexecdir ;;
1261   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262   | --libexe=* | --libex=* | --libe=*)
1263     libexecdir=$ac_optarg ;;
1264
1265   -localedir | --localedir | --localedi | --localed | --locale)
1266     ac_prev=localedir ;;
1267   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268     localedir=$ac_optarg ;;
1269
1270   -localstatedir | --localstatedir | --localstatedi | --localstated \
1271   | --localstate | --localstat | --localsta | --localst | --locals)
1272     ac_prev=localstatedir ;;
1273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275     localstatedir=$ac_optarg ;;
1276
1277   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1278     ac_prev=mandir ;;
1279   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280     mandir=$ac_optarg ;;
1281
1282   -nfp | --nfp | --nf)
1283     # Obsolete; use --without-fp.
1284     with_fp=no ;;
1285
1286   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287   | --no-cr | --no-c | -n)
1288     no_create=yes ;;
1289
1290   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1292     no_recursion=yes ;;
1293
1294   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296   | --oldin | --oldi | --old | --ol | --o)
1297     ac_prev=oldincludedir ;;
1298   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301     oldincludedir=$ac_optarg ;;
1302
1303   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1304     ac_prev=prefix ;;
1305   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306     prefix=$ac_optarg ;;
1307
1308   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309   | --program-pre | --program-pr | --program-p)
1310     ac_prev=program_prefix ;;
1311   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313     program_prefix=$ac_optarg ;;
1314
1315   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316   | --program-suf | --program-su | --program-s)
1317     ac_prev=program_suffix ;;
1318   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320     program_suffix=$ac_optarg ;;
1321
1322   -program-transform-name | --program-transform-name \
1323   | --program-transform-nam | --program-transform-na \
1324   | --program-transform-n | --program-transform- \
1325   | --program-transform | --program-transfor \
1326   | --program-transfo | --program-transf \
1327   | --program-trans | --program-tran \
1328   | --progr-tra | --program-tr | --program-t)
1329     ac_prev=program_transform_name ;;
1330   -program-transform-name=* | --program-transform-name=* \
1331   | --program-transform-nam=* | --program-transform-na=* \
1332   | --program-transform-n=* | --program-transform-=* \
1333   | --program-transform=* | --program-transfor=* \
1334   | --program-transfo=* | --program-transf=* \
1335   | --program-trans=* | --program-tran=* \
1336   | --progr-tra=* | --program-tr=* | --program-t=*)
1337     program_transform_name=$ac_optarg ;;
1338
1339   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1340     ac_prev=pdfdir ;;
1341   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342     pdfdir=$ac_optarg ;;
1343
1344   -psdir | --psdir | --psdi | --psd | --ps)
1345     ac_prev=psdir ;;
1346   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1347     psdir=$ac_optarg ;;
1348
1349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350   | -silent | --silent | --silen | --sile | --sil)
1351     silent=yes ;;
1352
1353   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1354     ac_prev=sbindir ;;
1355   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1356   | --sbi=* | --sb=*)
1357     sbindir=$ac_optarg ;;
1358
1359   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361   | --sharedst | --shareds | --shared | --share | --shar \
1362   | --sha | --sh)
1363     ac_prev=sharedstatedir ;;
1364   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1367   | --sha=* | --sh=*)
1368     sharedstatedir=$ac_optarg ;;
1369
1370   -site | --site | --sit)
1371     ac_prev=site ;;
1372   -site=* | --site=* | --sit=*)
1373     site=$ac_optarg ;;
1374
1375   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1376     ac_prev=srcdir ;;
1377   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378     srcdir=$ac_optarg ;;
1379
1380   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381   | --syscon | --sysco | --sysc | --sys | --sy)
1382     ac_prev=sysconfdir ;;
1383   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385     sysconfdir=$ac_optarg ;;
1386
1387   -target | --target | --targe | --targ | --tar | --ta | --t)
1388     ac_prev=target_alias ;;
1389   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390     target_alias=$ac_optarg ;;
1391
1392   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1393     verbose=yes ;;
1394
1395   -version | --version | --versio | --versi | --vers | -V)
1396     ac_init_version=: ;;
1397
1398   -with-* | --with-*)
1399     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400     # Reject names that are not valid shell variable names.
1401     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402       { echo "$as_me: error: invalid package name: $ac_package" >&2
1403    { (exit 1); exit 1; }; }
1404     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1405     eval with_$ac_package=\$ac_optarg ;;
1406
1407   -without-* | --without-*)
1408     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409     # Reject names that are not valid shell variable names.
1410     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411       { echo "$as_me: error: invalid package name: $ac_package" >&2
1412    { (exit 1); exit 1; }; }
1413     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1414     eval with_$ac_package=no ;;
1415
1416   --x)
1417     # Obsolete; use --with-x.
1418     with_x=yes ;;
1419
1420   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421   | --x-incl | --x-inc | --x-in | --x-i)
1422     ac_prev=x_includes ;;
1423   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425     x_includes=$ac_optarg ;;
1426
1427   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429     ac_prev=x_libraries ;;
1430   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432     x_libraries=$ac_optarg ;;
1433
1434   -*) { echo "$as_me: error: unrecognized option: $ac_option
1435 Try \`$0 --help' for more information." >&2
1436    { (exit 1); exit 1; }; }
1437     ;;
1438
1439   *=*)
1440     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441     # Reject names that are not valid shell variable names.
1442     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1443       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1444    { (exit 1); exit 1; }; }
1445     eval $ac_envvar=\$ac_optarg
1446     export $ac_envvar ;;
1447
1448   *)
1449     # FIXME: should be removed in autoconf 3.0.
1450     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1454     ;;
1455
1456   esac
1457 done
1458
1459 if test -n "$ac_prev"; then
1460   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461   { echo "$as_me: error: missing argument to $ac_option" >&2
1462    { (exit 1); exit 1; }; }
1463 fi
1464
1465 # Be sure to have absolute directory names.
1466 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467                 datadir sysconfdir sharedstatedir localstatedir includedir \
1468                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469                 libdir localedir mandir
1470 do
1471   eval ac_val=\$$ac_var
1472   case $ac_val in
1473     [\\/$]* | ?:[\\/]* )  continue;;
1474     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1475   esac
1476   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477    { (exit 1); exit 1; }; }
1478 done
1479
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1483 build=$build_alias
1484 host=$host_alias
1485 target=$target_alias
1486
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489   if test "x$build_alias" = x; then
1490     cross_compiling=maybe
1491     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492     If a cross compiler is detected then cross compile mode will be used." >&2
1493   elif test "x$build_alias" != "x$host_alias"; then
1494     cross_compiling=yes
1495   fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507   { echo "$as_me: error: Working directory cannot be determined" >&2
1508    { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510   { echo "$as_me: error: pwd does not report name of working directory" >&2
1511    { (exit 1); exit 1; }; }
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516   ac_srcdir_defaulted=yes
1517   # Try the directory containing this script, then the parent directory.
1518   ac_confdir=`$as_dirname -- "$0" ||
1519 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520          X"$0" : 'X\(//\)[^/]' \| \
1521          X"$0" : 'X\(//\)$' \| \
1522          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1523 echo X"$0" |
1524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)[^/].*/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\/\)$/{
1533             s//\1/
1534             q
1535           }
1536           /^X\(\/\).*/{
1537             s//\1/
1538             q
1539           }
1540           s/.*/./; q'`
1541   srcdir=$ac_confdir
1542   if test ! -r "$srcdir/$ac_unique_file"; then
1543     srcdir=..
1544   fi
1545 else
1546   ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1556    { (exit 1); exit 1; }; }
1557         pwd)`
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560   srcdir=.
1561 fi
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1565 case $srcdir in
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 esac
1568 for ac_var in $ac_precious_vars; do
1569   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_env_${ac_var}_value=\$${ac_var}
1571   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 done
1574
1575 #
1576 # Report the --help message.
1577 #
1578 if test "$ac_init_help" = "long"; then
1579   # Omit some internal or obsolete options to make the list less imposing.
1580   # This message is too long to be a string in the A/UX 3.1 sh.
1581   cat <<_ACEOF
1582 \`configure' configures this package to adapt to many kinds of systems.
1583
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1585
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE.  See below for descriptions of some of the useful variables.
1588
1589 Defaults for the options are specified in brackets.
1590
1591 Configuration:
1592   -h, --help              display this help and exit
1593       --help=short        display options specific to this package
1594       --help=recursive    display the short help of all the included packages
1595   -V, --version           display version information and exit
1596   -q, --quiet, --silent   do not print \`checking...' messages
1597       --cache-file=FILE   cache test results in FILE [disabled]
1598   -C, --config-cache      alias for \`--cache-file=config.cache'
1599   -n, --no-create         do not create output files
1600       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1601
1602 Installation directories:
1603   --prefix=PREFIX         install architecture-independent files in PREFIX
1604                           [$ac_default_prefix]
1605   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1606                           [PREFIX]
1607
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1612
1613 For better control, use the options below.
1614
1615 Fine tuning of the installation directories:
1616   --bindir=DIR           user executables [EPREFIX/bin]
1617   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1618   --libexecdir=DIR       program executables [EPREFIX/libexec]
1619   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1620   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1621   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1622   --libdir=DIR           object code libraries [EPREFIX/lib]
1623   --includedir=DIR       C header files [PREFIX/include]
1624   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1625   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1626   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1627   --infodir=DIR          info documentation [DATAROOTDIR/info]
1628   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1629   --mandir=DIR           man documentation [DATAROOTDIR/man]
1630   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1631   --htmldir=DIR          html documentation [DOCDIR]
1632   --dvidir=DIR           dvi documentation [DOCDIR]
1633   --pdfdir=DIR           pdf documentation [DOCDIR]
1634   --psdir=DIR            ps documentation [DOCDIR]
1635 _ACEOF
1636
1637   cat <<\_ACEOF
1638
1639 X features:
1640   --x-includes=DIR    X include files are in DIR
1641   --x-libraries=DIR   X library files are in DIR
1642
1643 System types:
1644   --build=BUILD     configure for building on BUILD [guessed]
1645   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646 _ACEOF
1647 fi
1648
1649 if test -n "$ac_init_help"; then
1650
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --enable-libtool        enable building using GNU libtool [default=yes]
1657   --enable-shared[=PKGS]  build shared libraries [default=yes]
1658   --enable-static[=PKGS]  build static libraries [default=no]
1659   --enable-fast-install[=PKGS]
1660                           optimize for fast installation [default=yes]
1661   --disable-libtool-lock  avoid locking (might break parallel builds)
1662   --enable-includes       enable installing of include files [default=no]
1663   --disable-nls           do not use Native Language Support
1664   --disable-rpath         do not hardcode runtime library paths
1665   --enable-gnome          enable build of bgnome-console GUI [default=no]
1666   --enable-bat            enable build of bat Qt4 GUI [default=no]
1667   --enable-bwx-console    enable build of wxWidgets console [default=no]
1668   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1669                           KDE [default=no]
1670   --enable-smartalloc     enable smartalloc debugging support [default=no]
1671   --enable-lockmgr        enable lock manager support [default=no]
1672   --enable-static-tools   enable static tape tools [default=no]
1673   --enable-static-fd      enable static File daemon [default=no]
1674   --enable-static-sd      enable static Storage daemon [default=no]
1675   --enable-static-dir     enable static Director [default=no]
1676   --enable-static-cons    enable static Console [default=no]
1677   --enable-client-only    build client (File daemon) only [default=no]
1678   --enable-build-dird     enable building of dird (Director) [default=yes]
1679   --enable-build-stored   enable building of stored (Storage daemon)
1680                           [default=yes]
1681   --disable-conio         disable conio support [default=no]
1682   --enable-ipv6           enable ipv6 support [default=yes]
1683   --disable-readline      disable readline support [default=yes]
1684   --enable-batch-insert   enable the DB batch insert code [default=no]
1685   --disable-largefile     omit support for large files
1686   --disable-acl           disable acl support [default=auto]
1687   --disable-xattr         disable xattr support [default=auto]
1688
1689 Optional Packages:
1690   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1692   --with-pic              try to use only PIC/non-PIC objects [default=use
1693                           both]
1694   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1695   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1696   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1697   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1698   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1699   --without-libintl-prefix     don't search for libintl in includedir and libdir
1700   --with-included-gettext use the GNU gettext library included here
1701   --with-readline[=DIR]   specify readline library directory
1702   --with-python[=DIR]     Include Python support. DIR is the Python base
1703                           install directory, default is to search through a
1704                           number of common places for the Python files.
1705   --with-tcp-wrappers[=DIR]
1706                           enable tcpwrappers support
1707   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1708   --with-working-dir=PATH specify path of Bacula working directory
1709   --with-archivedir=PATH  specify path of SD archive directory
1710   --with-basename=RESNAME specify base resource name for daemons
1711   --with-hostname=RESNAME specify host name for daemons
1712   --with-scriptdir=PATH   specify path of Bacula scripts directory
1713   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1714   --with-logdir=PATH      specify path of Bacula logs directory
1715   --with-plugindir=PATH   specify path of Bacula plugins directory
1716   --with-dump-email=EMAIL dump email address
1717   --with-job-email=EMAIL  job output email address
1718   --with-smtp-host=HOST   SMTP mail host address
1719   --with-pid-dir=PATH     specify location of Bacula pid files
1720   --with-subsys-dir=PATH  specify location of Bacula subsys file
1721   --with-baseport=PORT    specify base port address for daemons
1722   --with-dir-password=PASSWORD
1723                           specify Director's password
1724   --with-fd-password=PASSWORD
1725                           specify Client's password
1726   --with-sd-password=PASSWORD
1727                           specify Storage daemon's password
1728   --with-mon-dir-password=PASSWORD
1729                           specify Director's password used by the monitor
1730   --with-mon-fd-password=PASSWORD
1731                           specify Client's password used by the monitor
1732   --with-mon-sd-password=PASSWORD
1733                           specify Storage daemon's password used by the
1734                           monitor
1735   --with-db-name=DBNAME   specify database name [default=bacula]
1736   --with-db-user=UNAME    specify database user [default=bacula]
1737   --with-db-password=PWD  specify database password [default=*none*]
1738   --with-db-port=DBPORT   specify a database port [default=null]
1739   --with-dir-user=USER    specify user for Director daemon
1740   --with-dir-group=GROUP  specify group for Director daemon
1741   --with-sd-user=USER     specify user for Storage daemon
1742   --with-sd-group=GROUP   specify group for Storage daemon
1743   --with-fd-user=USER     specify user for File daemon
1744   --with-fd-group=GROUP   specify group for File daemon
1745   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1746   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1747                           base install directory, [default=/usr/local/pgsql]
1748   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1749                           directory, default is to search through a number of
1750                           common places for the MySQL files.
1751   --with-embedded-mysql[=DIR]
1752                           Include MySQL support. DIR is the MySQL base install
1753                           directory, default is to search through a number of
1754                           common places for the MySQL files.
1755   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1756                           install directory, default is to search through a
1757                           number of common places for the Ingres files.
1758   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1759                           install directory, default is to search through a
1760                           number of common places for the SQLite3 files.
1761   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1762                           directory, default is to search through a number of
1763                           common places for the DBI files.
1764   --with-dbi-driver[=DRIVER]
1765                           Suport for DBI driver. DRIVER is the one DBI driver
1766                           like Mysql, Postgresql, others. Default is to not
1767                           configure any driver.
1768   --with-x                use the X Window System
1769
1770 Some influential environment variables:
1771   CC          C compiler command
1772   CFLAGS      C compiler flags
1773   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1774               nonstandard directory <lib dir>
1775   LIBS        libraries to pass to the linker, e.g. -l<library>
1776   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777               you have headers in a nonstandard directory <include dir>
1778   CXX         C++ compiler command
1779   CXXFLAGS    C++ compiler flags
1780   CPP         C preprocessor
1781   WXCONFIG    wx-config command. On some systems, you must set it to
1782               wx-config-2.6 to use wxWidgets 2.6.
1783   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1784   CXXCPP      C++ preprocessor
1785   XMKMF       Path to xmkmf, Makefile generator for X Window System
1786
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1789
1790 _ACEOF
1791 ac_status=$?
1792 fi
1793
1794 if test "$ac_init_help" = "recursive"; then
1795   # If there are subdirs, report their specific --help.
1796   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797     test -d "$ac_dir" || continue
1798     ac_builddir=.
1799
1800 case "$ac_dir" in
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 *)
1803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1804   # A ".." for each directory in $ac_dir_suffix.
1805   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1806   case $ac_top_builddir_sub in
1807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1809   esac ;;
1810 esac
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1815
1816 case $srcdir in
1817   .)  # We are building in place.
1818     ac_srcdir=.
1819     ac_top_srcdir=$ac_top_builddir_sub
1820     ac_abs_top_srcdir=$ac_pwd ;;
1821   [\\/]* | ?:[\\/]* )  # Absolute name.
1822     ac_srcdir=$srcdir$ac_dir_suffix;
1823     ac_top_srcdir=$srcdir
1824     ac_abs_top_srcdir=$srcdir ;;
1825   *) # Relative name.
1826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827     ac_top_srcdir=$ac_top_build_prefix$srcdir
1828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 esac
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831
1832     cd "$ac_dir" || { ac_status=$?; continue; }
1833     # Check for guested configure.
1834     if test -f "$ac_srcdir/configure.gnu"; then
1835       echo &&
1836       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837     elif test -f "$ac_srcdir/configure"; then
1838       echo &&
1839       $SHELL "$ac_srcdir/configure" --help=recursive
1840     else
1841       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1842     fi || ac_status=$?
1843     cd "$ac_pwd" || { ac_status=$?; break; }
1844   done
1845 fi
1846
1847 test -n "$ac_init_help" && exit $ac_status
1848 if $ac_init_version; then
1849   cat <<\_ACEOF
1850 configure
1851 generated by GNU Autoconf 2.61
1852
1853 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1857 _ACEOF
1858   exit
1859 fi
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1863
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.61.  Invocation command line was
1866
1867   $ $0 $@
1868
1869 _ACEOF
1870 exec 5>>config.log
1871 {
1872 cat <<_ASUNAME
1873 ## --------- ##
1874 ## Platform. ##
1875 ## --------- ##
1876
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894 _ASUNAME
1895
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   echo "PATH: $as_dir"
1902 done
1903 IFS=$as_save_IFS
1904
1905 } >&5
1906
1907 cat >&5 <<_ACEOF
1908
1909
1910 ## ----------- ##
1911 ## Core tests. ##
1912 ## ----------- ##
1913
1914 _ACEOF
1915
1916
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1922 ac_configure_args=
1923 ac_configure_args0=
1924 ac_configure_args1=
1925 ac_must_keep_next=false
1926 for ac_pass in 1 2
1927 do
1928   for ac_arg
1929   do
1930     case $ac_arg in
1931     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933     | -silent | --silent | --silen | --sile | --sil)
1934       continue ;;
1935     *\'*)
1936       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937     esac
1938     case $ac_pass in
1939     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1940     2)
1941       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942       if test $ac_must_keep_next = true; then
1943         ac_must_keep_next=false # Got value, back to normal.
1944       else
1945         case $ac_arg in
1946           *=* | --config-cache | -C | -disable-* | --disable-* \
1947           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949           | -with-* | --with-* | -without-* | --without-* | --x)
1950             case "$ac_configure_args0 " in
1951               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952             esac
1953             ;;
1954           -* ) ac_must_keep_next=true ;;
1955         esac
1956       fi
1957       ac_configure_args="$ac_configure_args '$ac_arg'"
1958       ;;
1959     esac
1960   done
1961 done
1962 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1964
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log.  We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971   # Save into config.log some information that might help in debugging.
1972   {
1973     echo
1974
1975     cat <<\_ASBOX
1976 ## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##
1979 _ASBOX
1980     echo
1981     # The following way of writing the cache mishandles newlines in values,
1982 (
1983   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984     eval ac_val=\$$ac_var
1985     case $ac_val in #(
1986     *${as_nl}*)
1987       case $ac_var in #(
1988       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1990       esac
1991       case $ac_var in #(
1992       _ | IFS | as_nl) ;; #(
1993       *) $as_unset $ac_var ;;
1994       esac ;;
1995     esac
1996   done
1997   (set) 2>&1 |
1998     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999     *${as_nl}ac_space=\ *)
2000       sed -n \
2001         "s/'\''/'\''\\\\'\'''\''/g;
2002           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003       ;; #(
2004     *)
2005       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006       ;;
2007     esac |
2008     sort
2009 )
2010     echo
2011
2012     cat <<\_ASBOX
2013 ## ----------------- ##
2014 ## Output variables. ##
2015 ## ----------------- ##
2016 _ASBOX
2017     echo
2018     for ac_var in $ac_subst_vars
2019     do
2020       eval ac_val=\$$ac_var
2021       case $ac_val in
2022       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023       esac
2024       echo "$ac_var='\''$ac_val'\''"
2025     done | sort
2026     echo
2027
2028     if test -n "$ac_subst_files"; then
2029       cat <<\_ASBOX
2030 ## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##
2033 _ASBOX
2034       echo
2035       for ac_var in $ac_subst_files
2036       do
2037         eval ac_val=\$$ac_var
2038         case $ac_val in
2039         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040         esac
2041         echo "$ac_var='\''$ac_val'\''"
2042       done | sort
2043       echo
2044     fi
2045
2046     if test -s confdefs.h; then
2047       cat <<\_ASBOX
2048 ## ----------- ##
2049 ## confdefs.h. ##
2050 ## ----------- ##
2051 _ASBOX
2052       echo
2053       cat confdefs.h
2054       echo
2055     fi
2056     test "$ac_signal" != 0 &&
2057       echo "$as_me: caught signal $ac_signal"
2058     echo "$as_me: exit $exit_status"
2059   } >&5
2060   rm -f core *.core core.conftest.* &&
2061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062     exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 # Predefined preprocessor variables.
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 _ACEOF
2077
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 _ACEOF
2082
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2091 _ACEOF
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102   set x "$CONFIG_SITE"
2103 elif test "x$prefix" != xNONE; then
2104   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2105 else
2106   set x "$ac_default_prefix/share/config.site" \
2107         "$ac_default_prefix/etc/config.site"
2108 fi
2109 shift
2110 for ac_site_file
2111 do
2112   if test -r "$ac_site_file"; then
2113     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 echo "$as_me: loading site script $ac_site_file" >&6;}
2115     sed 's/^/| /' "$ac_site_file" >&5
2116     . "$ac_site_file"
2117   fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121   # Some versions of bash will fail to source /dev/null (special
2122   # files actually), so we avoid doing that.
2123   if test -f "$cache_file"; then
2124     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 echo "$as_me: loading cache $cache_file" >&6;}
2126     case $cache_file in
2127       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128       *)                      . "./$cache_file";;
2129     esac
2130   fi
2131 else
2132   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 echo "$as_me: creating cache $cache_file" >&6;}
2134   >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142   eval ac_new_set=\$ac_env_${ac_var}_set
2143   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144   eval ac_new_val=\$ac_env_${ac_var}_value
2145   case $ac_old_set,$ac_new_set in
2146     set,)
2147       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,set)
2151       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,);;
2155     *)
2156       if test "x$ac_old_val" != "x$ac_new_val"; then
2157         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2158 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2160 echo "$as_me:   former value:  $ac_old_val" >&2;}
2161         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2162 echo "$as_me:   current value: $ac_new_val" >&2;}
2163         ac_cache_corrupted=:
2164       fi;;
2165   esac
2166   # Pass precious variables to config.status.
2167   if test "$ac_new_set" = set; then
2168     case $ac_new_val in
2169     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170     *) ac_arg=$ac_var=$ac_new_val ;;
2171     esac
2172     case " $ac_configure_args " in
2173       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2174       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2175     esac
2176   fi
2177 done
2178 if $ac_cache_corrupted; then
2179   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209 BUILD_DIR=`pwd`
2210 cd ..
2211 TOP_DIR=`pwd`
2212 cd ${BUILD_DIR}
2213
2214
2215 ac_aux_dir=
2216 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2217   if test -f "$ac_dir/install-sh"; then
2218     ac_aux_dir=$ac_dir
2219     ac_install_sh="$ac_aux_dir/install-sh -c"
2220     break
2221   elif test -f "$ac_dir/install.sh"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/install.sh -c"
2224     break
2225   elif test -f "$ac_dir/shtool"; then
2226     ac_aux_dir=$ac_dir
2227     ac_install_sh="$ac_aux_dir/shtool install -c"
2228     break
2229   fi
2230 done
2231 if test -z "$ac_aux_dir"; then
2232   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2234    { (exit 1); exit 1; }; }
2235 fi
2236
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2244
2245
2246 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2247
2248
2249 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2250 WIN32MAINDIR=${BUILD_DIR}
2251 WIN32TOPDIR=${TOP_DIR}
2252
2253
2254
2255
2256 for ac_prog in true
2257 do
2258   # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   case $TRUEPRG in
2266   [\\/]* | ?:[\\/]*)
2267   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2268   ;;
2269   *)
2270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283 IFS=$as_save_IFS
2284
2285   ;;
2286 esac
2287 fi
2288 TRUEPRG=$ac_cv_path_TRUEPRG
2289 if test -n "$TRUEPRG"; then
2290   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2291 echo "${ECHO_T}$TRUEPRG" >&6; }
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297
2298   test -n "$TRUEPRG" && break
2299 done
2300 test -n "$TRUEPRG" || TRUEPRG=":"
2301
2302 for ac_prog in false
2303 do
2304   # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   case $FALSEPRG in
2312   [\\/]* | ?:[\\/]*)
2313   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2314   ;;
2315   *)
2316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331   ;;
2332 esac
2333 fi
2334 FALSEPRG=$ac_cv_path_FALSEPRG
2335 if test -n "$FALSEPRG"; then
2336   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2337 echo "${ECHO_T}$FALSEPRG" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344   test -n "$FALSEPRG" && break
2345 done
2346 test -n "$FALSEPRG" || FALSEPRG=":"
2347
2348
2349
2350 post_host=
2351 if test "x$BACULA" != x; then
2352    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2353 fi
2354 BACULA=${BACULA:-Bacula}
2355 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2356 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2358
2359 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2360 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2361 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2362 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2363 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2364 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368
2369
2370 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2371 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2373
2374 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2376 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377
2378 echo "configuring for ${BACULA} $VERSION ($DATE)"
2379
2380
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 if test -n "$ac_tool_prefix"; then
2388   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_CC+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CC"; then
2396   ac_cv_prog_CC="$CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417   { echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424
2425 fi
2426 if test -z "$ac_cv_prog_CC"; then
2427   ac_ct_CC=$CC
2428   # Extract the first word of "gcc", so it can be a program name with args.
2429 set dummy gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$ac_ct_CC"; then
2436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_ac_ct_CC="gcc"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2456 if test -n "$ac_ct_CC"; then
2457   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2458 echo "${ECHO_T}$ac_ct_CC" >&6; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464   if test "x$ac_ct_CC" = x; then
2465     CC=""
2466   else
2467     case $cross_compiling:$ac_tool_warned in
2468 yes:)
2469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet.  If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&5
2472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet.  If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477     CC=$ac_ct_CC
2478   fi
2479 else
2480   CC="$ac_cv_prog_CC"
2481 fi
2482
2483 if test -z "$CC"; then
2484           if test -n "$ac_tool_prefix"; then
2485     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$CC"; then
2493   ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_CC="${ac_tool_prefix}cc"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514   { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521
2522   fi
2523 fi
2524 if test -z "$CC"; then
2525   # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535   ac_prog_rejected=no
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544        ac_prog_rejected=yes
2545        continue
2546      fi
2547     ac_cv_prog_CC="cc"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 if test $ac_prog_rejected = yes; then
2556   # We found a bogon in the path, so make sure we never use it.
2557   set dummy $ac_cv_prog_CC
2558   shift
2559   if test $# != 0; then
2560     # We chose a different compiler from the bogus one.
2561     # However, it has the same basename, so the bogon will be chosen
2562     # first if we set CC to just the basename; use the full file name.
2563     shift
2564     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2565   fi
2566 fi
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571   { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574   { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$CC"; then
2581   if test -n "$ac_tool_prefix"; then
2582   for ac_prog in cl.exe
2583   do
2584     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621     test -n "$CC" && break
2622   done
2623 fi
2624 if test -z "$CC"; then
2625   ac_ct_CC=$CC
2626   for ac_prog in cl.exe
2627 do
2628   # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   if test -n "$ac_ct_CC"; then
2636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643   for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_ac_ct_CC="$ac_prog"
2646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658 echo "${ECHO_T}$ac_ct_CC" >&6; }
2659 else
2660   { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2662 fi
2663
2664
2665   test -n "$ac_ct_CC" && break
2666 done
2667
2668   if test "x$ac_ct_CC" = x; then
2669     CC=""
2670   else
2671     case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet.  If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet.  If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681     CC=$ac_ct_CC
2682   fi
2683 fi
2684
2685 fi
2686
2687
2688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&2;}
2692    { (exit 1); exit 1; }; }
2693
2694 # Provide some information about the compiler.
2695 echo "$as_me:$LINENO: checking for C compiler version" >&5
2696 ac_compiler=`set X $ac_compile; echo $2`
2697 { (ac_try="$ac_compiler --version >&5"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compiler --version >&5") 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }
2707 { (ac_try="$ac_compiler -v >&5"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compiler -v >&5") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }
2717 { (ac_try="$ac_compiler -V >&5"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compiler -V >&5") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }
2727
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734
2735 int
2736 main ()
2737 {
2738
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 ac_clean_files_save=$ac_clean_files
2744 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2745 # Try to create an executable without -o first, disregard a.out.
2746 # It will help us diagnose broken compilers, and finding out an intuition
2747 # of exeext.
2748 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2749 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2750 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2751 #
2752 # List of possible output files, starting from the most likely.
2753 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2754 # only as a last resort.  b.out is created by i960 compilers.
2755 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2756 #
2757 # The IRIX 6 linker writes into existing files which may not be
2758 # executable, retaining their permissions.  Remove them first so a
2759 # subsequent execution test works.
2760 ac_rmfiles=
2761 for ac_file in $ac_files
2762 do
2763   case $ac_file in
2764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2765     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2766   esac
2767 done
2768 rm -f $ac_rmfiles
2769
2770 if { (ac_try="$ac_link_default"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776   (eval "$ac_link_default") 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; then
2780   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2783 # so that the user can short-circuit this test for compilers unknown to
2784 # Autoconf.
2785 for ac_file in $ac_files ''
2786 do
2787   test -f "$ac_file" || continue
2788   case $ac_file in
2789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2790         ;;
2791     [ab].out )
2792         # We found the default executable, but exeext='' is most
2793         # certainly right.
2794         break;;
2795     *.* )
2796         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797         then :; else
2798            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799         fi
2800         # We set ac_cv_exeext here because the later test for it is not
2801         # safe: cross compilers may not add the suffix if given an `-o'
2802         # argument, so we may need to know it at that point already.
2803         # Even if this section looks crufty: it has the advantage of
2804         # actually working.
2805         break;;
2806     * )
2807         break;;
2808   esac
2809 done
2810 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811
2812 else
2813   ac_file=''
2814 fi
2815
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2818 if test -z "$ac_file"; then
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: C compiler cannot create executables
2825 See \`config.log' for more details." >&2;}
2826    { (exit 77); exit 77; }; }
2827 fi
2828
2829 ac_exeext=$ac_cv_exeext
2830
2831 # Check that the compiler produces executables we can run.  If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838   if { ac_try='./$ac_file'
2839   { (case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_try") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848     cross_compiling=no
2849   else
2850     if test "$cross_compiling" = maybe; then
2851         cross_compiling=yes
2852     else
2853         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860     fi
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2865
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run.  If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906 fi
2907
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   for ac_file in conftest.o conftest.obj conftest.*; do
2947   test -f "$ac_file" || continue;
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951        break;;
2952   esac
2953 done
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986 #ifndef __GNUC__
2987        choke me
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } && {
3008          test -z "$ac_c_werror_flag" ||
3009          test ! -s conftest.err
3010        } && test -s conftest.$ac_objext; then
3011   ac_compiler_gnu=yes
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016         ac_compiler_gnu=no
3017 fi
3018
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021
3022 fi
3023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3025 GCC=`test $ac_compiler_gnu = yes && echo yes`
3026 ac_test_CFLAGS=${CFLAGS+set}
3027 ac_save_CFLAGS=$CFLAGS
3028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_g+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   ac_save_c_werror_flag=$ac_c_werror_flag
3034    ac_c_werror_flag=yes
3035    ac_cv_prog_cc_g=no
3036    CFLAGS="-g"
3037    cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_compile") 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } && {
3066          test -z "$ac_c_werror_flag" ||
3067          test ! -s conftest.err
3068        } && test -s conftest.$ac_objext; then
3069   ac_cv_prog_cc_g=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         CFLAGS=""
3075       cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } && {
3104          test -z "$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        } && test -s conftest.$ac_objext; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112         ac_c_werror_flag=$ac_save_c_werror_flag
3113          CFLAGS="-g"
3114          cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } && {
3143          test -z "$ac_c_werror_flag" ||
3144          test ! -s conftest.err
3145        } && test -s conftest.$ac_objext; then
3146   ac_cv_prog_cc_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161    ac_c_werror_flag=$ac_save_c_werror_flag
3162 fi
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166   CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168   if test "$GCC" = yes; then
3169     CFLAGS="-g -O2"
3170   else
3171     CFLAGS="-g"
3172   fi
3173 else
3174   if test "$GCC" = yes; then
3175     CFLAGS="-O2"
3176   else
3177     CFLAGS=
3178   fi
3179 fi
3180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   ac_cv_prog_cc_c89=no
3186 ac_save_CC=$CC
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201      char **p;
3202      int i;
3203 {
3204   return p[i];
3205 }
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3207 {
3208   char *s;
3209   va_list v;
3210   va_start (v,p);
3211   s = g (p, va_arg (v,int));
3212   va_end (v);
3213   return s;
3214 }
3215
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3217    function prototypes and stuff, but not '\xHH' hex character constants.
3218    These don't provoke an error unfortunately, instead are silently treated
3219    as 'x'.  The following induces an error, until -std is added to get
3220    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3221    array size at least.  It's necessary to write '\x00'==0 to get something
3222    that's true only with -std.  */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3224
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226    inside strings and character constants.  */
3227 #define FOO(x) 'x'
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3229
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3236 int
3237 main ()
3238 {
3239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246 do
3247   CC="$ac_save_CC $ac_arg"
3248   rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compile") 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } && {
3262          test -z "$ac_c_werror_flag" ||
3263          test ! -s conftest.err
3264        } && test -s conftest.$ac_objext; then
3265   ac_cv_prog_cc_c89=$ac_arg
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext
3274   test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3278
3279 fi
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3282   x)
3283     { echo "$as_me:$LINENO: result: none needed" >&5
3284 echo "${ECHO_T}none needed" >&6; } ;;
3285   xno)
3286     { echo "$as_me:$LINENO: result: unsupported" >&5
3287 echo "${ECHO_T}unsupported" >&6; } ;;
3288   *)
3289     CC="$CC $ac_cv_prog_cc_c89"
3290     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301 ac_ext=cpp
3302 ac_cpp='$CXXCPP $CPPFLAGS'
3303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3306 if test -z "$CXX"; then
3307   if test -n "$CCC"; then
3308     CXX=$CCC
3309   else
3310     if test -n "$ac_tool_prefix"; then
3311   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3312   do
3313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_CXX+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   if test -n "$CXX"; then
3321   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CXX=$ac_cv_prog_CXX
3341 if test -n "$CXX"; then
3342   { echo "$as_me:$LINENO: result: $CXX" >&5
3343 echo "${ECHO_T}$CXX" >&6; }
3344 else
3345   { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 fi
3348
3349
3350     test -n "$CXX" && break
3351   done
3352 fi
3353 if test -z "$CXX"; then
3354   ac_ct_CXX=$CXX
3355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3356 do
3357   # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test -n "$ac_ct_CXX"; then
3365   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   for ac_exec_ext in '' $ac_executable_extensions; do
3373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374     ac_cv_prog_ac_ct_CXX="$ac_prog"
3375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3385 if test -n "$ac_ct_CXX"; then
3386   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3387 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3388 else
3389   { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3391 fi
3392
3393
3394   test -n "$ac_ct_CXX" && break
3395 done
3396
3397   if test "x$ac_ct_CXX" = x; then
3398     CXX="g++"
3399   else
3400     case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet.  If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&5
3405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3406 whose name does not start with the host triplet.  If you think this
3407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CXX=$ac_ct_CXX
3411   fi
3412 fi
3413
3414   fi
3415 fi
3416 # Provide some information about the compiler.
3417 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3418 ac_compiler=`set X $ac_compile; echo $2`
3419 { (ac_try="$ac_compiler --version >&5"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_compiler --version >&5") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }
3429 { (ac_try="$ac_compiler -v >&5"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_compiler -v >&5") 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }
3439 { (ac_try="$ac_compiler -V >&5"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compiler -V >&5") 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }
3449
3450 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465 #ifndef __GNUC__
3466        choke me
3467 #endif
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_cxx_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   ac_compiler_gnu=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         ac_compiler_gnu=no
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3503 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3504 GXX=`test $ac_compiler_gnu = yes && echo yes`
3505 ac_test_CXXFLAGS=${CXXFLAGS+set}
3506 ac_save_CXXFLAGS=$CXXFLAGS
3507 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3508 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cxx_g+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3513    ac_cxx_werror_flag=yes
3514    ac_cv_prog_cxx_g=no
3515    CXXFLAGS="-g"
3516    cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_compile") 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } && {
3545          test -z "$ac_cxx_werror_flag" ||
3546          test ! -s conftest.err
3547        } && test -s conftest.$ac_objext; then
3548   ac_cv_prog_cxx_g=yes
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553         CXXFLAGS=""
3554       cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576   (eval "$ac_compile") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } && {
3583          test -z "$ac_cxx_werror_flag" ||
3584          test ! -s conftest.err
3585        } && test -s conftest.$ac_objext; then
3586   :
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592          CXXFLAGS="-g"
3593          cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_cxx_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest.$ac_objext; then
3625   ac_cv_prog_cxx_g=yes
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3641 fi
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3644 if test "$ac_test_CXXFLAGS" = set; then
3645   CXXFLAGS=$ac_save_CXXFLAGS
3646 elif test $ac_cv_prog_cxx_g = yes; then
3647   if test "$GXX" = yes; then
3648     CXXFLAGS="-g -O2"
3649   else
3650     CXXFLAGS="-g"
3651   fi
3652 else
3653   if test "$GXX" = yes; then
3654     CXXFLAGS="-O2"
3655   else
3656     CXXFLAGS=
3657   fi
3658 fi
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665 if test "x$CC" != xcc; then
3666   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3667 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3668 else
3669   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3670 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3671 fi
3672 set dummy $CC; ac_cc=`echo $2 |
3673                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3674 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 # Make sure it works both with $CC and with simple cc.
3693 # We do the test twice because some compilers refuse to overwrite an
3694 # existing .o file with -o, though they will create one.
3695 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696 rm -f conftest2.*
3697 if { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); };
3715 then
3716   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3717   if test "x$CC" != xcc; then
3718     # Test first that cc exists at all.
3719     if { ac_try='cc -c conftest.$ac_ext >&5'
3720   { (case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_try") 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3730       rm -f conftest2.*
3731       if { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_try") 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); };
3749       then
3750         # cc works too.
3751         :
3752       else
3753         # cc exists but doesn't like -o.
3754         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3755       fi
3756     fi
3757   fi
3758 else
3759   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3760 fi
3761 rm -f core conftest*
3762
3763 fi
3764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3765   { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3767 else
3768   { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3770
3771 cat >>confdefs.h <<\_ACEOF
3772 #define NO_MINUS_C_MINUS_O 1
3773 _ACEOF
3774
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3783 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3784 # On Suns, sometimes $CPP names a directory.
3785 if test -n "$CPP" && test -d "$CPP"; then
3786   CPP=
3787 fi
3788 if test -z "$CPP"; then
3789   if test "${ac_cv_prog_CPP+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792       # Double quotes because CPP needs to be expanded
3793     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794     do
3795       ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3797 do
3798   # Use a header file that comes with gcc, so configuring glibc
3799   # with a fresh cross-compiler works.
3800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801   # <limits.h> exists even on freestanding compilers.
3802   # On the NeXT, cc -E runs the code through the compiler's parser,
3803   # not just through cpp. "Syntax error" is here to catch this case.
3804   cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h.  */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h.  */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815                      Syntax error
3816 _ACEOF
3817 if { (ac_try="$ac_cpp conftest.$ac_ext"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } >/dev/null && {
3830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831          test ! -s conftest.err
3832        }; then
3833   :
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838   # Broken: fails on valid input.
3839 continue
3840 fi
3841
3842 rm -f conftest.err conftest.$ac_ext
3843
3844   # OK, works on sane cases.  Now check whether nonexistent headers
3845   # can be detected and how.
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #include <ac_nonexistent.h>
3853 _ACEOF
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } >/dev/null && {
3867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868          test ! -s conftest.err
3869        }; then
3870   # Broken: success on invalid input.
3871 continue
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876   # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3879 fi
3880
3881 rm -f conftest.err conftest.$ac_ext
3882
3883 done
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then
3887   break
3888 fi
3889
3890     done
3891     ac_cv_prog_CPP=$CPP
3892
3893 fi
3894   CPP=$ac_cv_prog_CPP
3895 else
3896   ac_cv_prog_CPP=$CPP
3897 fi
3898 { echo "$as_me:$LINENO: result: $CPP" >&5
3899 echo "${ECHO_T}$CPP" >&6; }
3900 ac_preproc_ok=false
3901 for ac_c_preproc_warn_flag in '' yes
3902 do
3903   # Use a header file that comes with gcc, so configuring glibc
3904   # with a fresh cross-compiler works.
3905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906   # <limits.h> exists even on freestanding compilers.
3907   # On the NeXT, cc -E runs the code through the compiler's parser,
3908   # not just through cpp. "Syntax error" is here to catch this case.
3909   cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920                      Syntax error
3921 _ACEOF
3922 if { (ac_try="$ac_cpp conftest.$ac_ext"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } >/dev/null && {
3935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3936          test ! -s conftest.err
3937        }; then
3938   :
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943   # Broken: fails on valid input.
3944 continue
3945 fi
3946
3947 rm -f conftest.err conftest.$ac_ext
3948
3949   # OK, works on sane cases.  Now check whether nonexistent headers
3950   # can be detected and how.
3951   cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957 #include <ac_nonexistent.h>
3958 _ACEOF
3959 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } >/dev/null && {
3972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        }; then
3975   # Broken: success on invalid input.
3976 continue
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981   # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3984 fi
3985
3986 rm -f conftest.err conftest.$ac_ext
3987
3988 done
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then
3992   :
3993 else
3994   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995 See \`config.log' for more details." >&5
3996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&2;}
3998    { (exit 1); exit 1; }; }
3999 fi
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4009 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_GREP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   # Extract the first word of "grep ggrep" to use in msg output
4014 if test -z "$GREP"; then
4015 set dummy grep ggrep; ac_prog_name=$2
4016 if test "${ac_cv_path_GREP+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   ac_path_GREP_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_prog in grep ggrep; do
4027   for ac_exec_ext in '' $ac_executable_extensions; do
4028     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4029     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4030     # Check for GNU ac_path_GREP and select it if it is found.
4031   # Check for GNU $ac_path_GREP
4032 case `"$ac_path_GREP" --version 2>&1` in
4033 *GNU*)
4034   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4035 *)
4036   ac_count=0
4037   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4038   while :
4039   do
4040     cat "conftest.in" "conftest.in" >"conftest.tmp"
4041     mv "conftest.tmp" "conftest.in"
4042     cp "conftest.in" "conftest.nl"
4043     echo 'GREP' >> "conftest.nl"
4044     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046     ac_count=`expr $ac_count + 1`
4047     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4048       # Best one so far, save it but keep looking for a better one
4049       ac_cv_path_GREP="$ac_path_GREP"
4050       ac_path_GREP_max=$ac_count
4051     fi
4052     # 10*(2^10) chars as input seems more than enough
4053     test $ac_count -gt 10 && break
4054   done
4055   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 esac
4057
4058
4059     $ac_path_GREP_found && break 3
4060   done
4061 done
4062
4063 done
4064 IFS=$as_save_IFS
4065
4066
4067 fi
4068
4069 GREP="$ac_cv_path_GREP"
4070 if test -z "$GREP"; then
4071   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4072 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4073    { (exit 1); exit 1; }; }
4074 fi
4075
4076 else
4077   ac_cv_path_GREP=$GREP
4078 fi
4079
4080
4081 fi
4082 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4083 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4084  GREP="$ac_cv_path_GREP"
4085
4086
4087 { echo "$as_me:$LINENO: checking for egrep" >&5
4088 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_EGREP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093    then ac_cv_path_EGREP="$GREP -E"
4094    else
4095      # Extract the first word of "egrep" to use in msg output
4096 if test -z "$EGREP"; then
4097 set dummy egrep; ac_prog_name=$2
4098 if test "${ac_cv_path_EGREP+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_path_EGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108   for ac_prog in egrep; do
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4111     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4112     # Check for GNU ac_path_EGREP and select it if it is found.
4113   # Check for GNU $ac_path_EGREP
4114 case `"$ac_path_EGREP" --version 2>&1` in
4115 *GNU*)
4116   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4117 *)
4118   ac_count=0
4119   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4120   while :
4121   do
4122     cat "conftest.in" "conftest.in" >"conftest.tmp"
4123     mv "conftest.tmp" "conftest.in"
4124     cp "conftest.in" "conftest.nl"
4125     echo 'EGREP' >> "conftest.nl"
4126     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128     ac_count=`expr $ac_count + 1`
4129     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4130       # Best one so far, save it but keep looking for a better one
4131       ac_cv_path_EGREP="$ac_path_EGREP"
4132       ac_path_EGREP_max=$ac_count
4133     fi
4134     # 10*(2^10) chars as input seems more than enough
4135     test $ac_count -gt 10 && break
4136   done
4137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 esac
4139
4140
4141     $ac_path_EGREP_found && break 3
4142   done
4143 done
4144
4145 done
4146 IFS=$as_save_IFS
4147
4148
4149 fi
4150
4151 EGREP="$ac_cv_path_EGREP"
4152 if test -z "$EGREP"; then
4153   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4154 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4155    { (exit 1); exit 1; }; }
4156 fi
4157
4158 else
4159   ac_cv_path_EGREP=$EGREP
4160 fi
4161
4162
4163    fi
4164 fi
4165 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4166 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4167  EGREP="$ac_cv_path_EGREP"
4168
4169
4170 if test $ac_cv_c_compiler_gnu = yes; then
4171     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4172 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176     ac_pattern="Autoconf.*'x'"
4177   cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183 #include <sgtty.h>
4184 Autoconf TIOCGETP
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4188   ac_cv_prog_gcc_traditional=yes
4189 else
4190   ac_cv_prog_gcc_traditional=no
4191 fi
4192 rm -f conftest*
4193
4194
4195   if test $ac_cv_prog_gcc_traditional = no; then
4196     cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #include <termio.h>
4203 Autoconf TCGETA
4204 _ACEOF
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4207   ac_cv_prog_gcc_traditional=yes
4208 fi
4209 rm -f conftest*
4210
4211   fi
4212 fi
4213 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4214 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4215   if test $ac_cv_prog_gcc_traditional = yes; then
4216     CC="$CC -traditional"
4217   fi
4218 fi
4219
4220 BASECC=`basename $CC`
4221 have_gcc=no
4222 if test "x$BASECC" = xgcc; then
4223    cat >>confdefs.h <<\_ACEOF
4224 #define HAVE_GCC 1
4225 _ACEOF
4226
4227    have_gcc=yes
4228 fi
4229 # Extract the first word of "$CXX", so it can be a program name with args.
4230 set dummy $CXX; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_path_CXX+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   case $CXX in
4237   [\\/]* | ?:[\\/]*)
4238   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4239   ;;
4240   *)
4241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246   for ac_exec_ext in '' $ac_executable_extensions; do
4247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4257   ;;
4258 esac
4259 fi
4260 CXX=$ac_cv_path_CXX
4261 if test -n "$CXX"; then
4262   { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4264 else
4265   { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4267 fi
4268
4269
4270 if test ! -e $CXX; then
4271    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4272 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4273    { (exit 1); exit 1; }; }
4274 fi
4275
4276 # Find a good install program.  We prefer a C program (faster),
4277 # so one script is as good as another.  But avoid the broken or
4278 # incompatible versions:
4279 # SysV /etc/install, /usr/sbin/install
4280 # SunOS /usr/etc/install
4281 # IRIX /sbin/install
4282 # AIX /bin/install
4283 # AmigaOS /C/install, which installs bootblocks on floppy discs
4284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4287 # OS/2's system install, which has a completely different semantic
4288 # ./install, which can be erroneously created by make from ./install.sh.
4289 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4290 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4291 if test -z "$INSTALL"; then
4292 if test "${ac_cv_path_install+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   # Account for people who put trailing slashes in PATH elements.
4301 case $as_dir/ in
4302   ./ | .// | /cC/* | \
4303   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4304   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4305   /usr/ucb/* ) ;;
4306   *)
4307     # OSF1 and SCO ODT 3.0 have their own names for install.
4308     # Don't use installbsd from OSF since it installs stuff as root
4309     # by default.
4310     for ac_prog in ginstall scoinst install; do
4311       for ac_exec_ext in '' $ac_executable_extensions; do
4312         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4313           if test $ac_prog = install &&
4314             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4315             # AIX install.  It has an incompatible calling convention.
4316             :
4317           elif test $ac_prog = install &&
4318             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4319             # program-specific install script used by HP pwplus--don't use.
4320             :
4321           else
4322             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4323             break 3
4324           fi
4325         fi
4326       done
4327     done
4328     ;;
4329 esac
4330 done
4331 IFS=$as_save_IFS
4332
4333
4334 fi
4335   if test "${ac_cv_path_install+set}" = set; then
4336     INSTALL=$ac_cv_path_install
4337   else
4338     # As a last resort, use the slow shell script.  Don't cache a
4339     # value for INSTALL within a source directory, because that will
4340     # break other packages using the cache if that directory is
4341     # removed, or if the value is a relative name.
4342     INSTALL=$ac_install_sh
4343   fi
4344 fi
4345 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4346 echo "${ECHO_T}$INSTALL" >&6; }
4347
4348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4349 # It thinks the first close brace ends the variable substitution.
4350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4351
4352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4353
4354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4355
4356 # Extract the first word of "mv", so it can be a program name with args.
4357 set dummy mv; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_MV+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   case $MV in
4364   [\\/]* | ?:[\\/]*)
4365   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4366   ;;
4367   *)
4368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4384   ;;
4385 esac
4386 fi
4387 MV=$ac_cv_path_MV
4388 if test -n "$MV"; then
4389   { echo "$as_me:$LINENO: result: $MV" >&5
4390 echo "${ECHO_T}$MV" >&6; }
4391 else
4392   { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394 fi
4395
4396
4397 # Extract the first word of "rm", so it can be a program name with args.
4398 set dummy rm; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_path_REMOVE+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   case $REMOVE in
4405   [\\/]* | ?:[\\/]*)
4406   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4407   ;;
4408   *)
4409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414   for ac_exec_ext in '' $ac_executable_extensions; do
4415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4425   ;;
4426 esac
4427 fi
4428 REMOVE=$ac_cv_path_REMOVE
4429 if test -n "$REMOVE"; then
4430   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4431 echo "${ECHO_T}$REMOVE" >&6; }
4432 else
4433   { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4435 fi
4436
4437
4438 # Extract the first word of "cp", so it can be a program name with args.
4439 set dummy cp; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_path_CP+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   case $CP in
4446   [\\/]* | ?:[\\/]*)
4447   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4448   ;;
4449   *)
4450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   for ac_exec_ext in '' $ac_executable_extensions; do
4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4466   ;;
4467 esac
4468 fi
4469 CP=$ac_cv_path_CP
4470 if test -n "$CP"; then
4471   { echo "$as_me:$LINENO: result: $CP" >&5
4472 echo "${ECHO_T}$CP" >&6; }
4473 else
4474   { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4476 fi
4477
4478
4479 # Extract the first word of "sed", so it can be a program name with args.
4480 set dummy sed; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_path_SED+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   case $SED in
4487   [\\/]* | ?:[\\/]*)
4488   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4489   ;;
4490   *)
4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4507   ;;
4508 esac
4509 fi
4510 SED=$ac_cv_path_SED
4511 if test -n "$SED"; then
4512   { echo "$as_me:$LINENO: result: $SED" >&5
4513 echo "${ECHO_T}$SED" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520 # Extract the first word of "echo", so it can be a program name with args.
4521 set dummy echo; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_path_ECHO+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   case $ECHO in
4528   [\\/]* | ?:[\\/]*)
4529   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4530   ;;
4531   *)
4532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537   for ac_exec_ext in '' $ac_executable_extensions; do
4538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544 done
4545 IFS=$as_save_IFS
4546
4547   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4548   ;;
4549 esac
4550 fi
4551 ECHO=$ac_cv_path_ECHO
4552 if test -n "$ECHO"; then
4553   { echo "$as_me:$LINENO: result: $ECHO" >&5
4554 echo "${ECHO_T}$ECHO" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560
4561 # Extract the first word of "cmp", so it can be a program name with args.
4562 set dummy cmp; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_path_CMP+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   case $CMP in
4569   [\\/]* | ?:[\\/]*)
4570   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4571   ;;
4572   *)
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585 done
4586 IFS=$as_save_IFS
4587
4588   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4589   ;;
4590 esac
4591 fi
4592 CMP=$ac_cv_path_CMP
4593 if test -n "$CMP"; then
4594   { echo "$as_me:$LINENO: result: $CMP" >&5
4595 echo "${ECHO_T}$CMP" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602 # Extract the first word of "tbl", so it can be a program name with args.
4603 set dummy tbl; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_TBL+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   case $TBL in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4630   ;;
4631 esac
4632 fi
4633 TBL=$ac_cv_path_TBL
4634 if test -n "$TBL"; then
4635   { echo "$as_me:$LINENO: result: $TBL" >&5
4636 echo "${ECHO_T}$TBL" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643 # Extract the first word of "ar", so it can be a program name with args.
4644 set dummy ar; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_path_AR+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   case $AR in
4651   [\\/]* | ?:[\\/]*)
4652   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4653   ;;
4654   *)
4655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660   for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4671   ;;
4672 esac
4673 fi
4674 AR=$ac_cv_path_AR
4675 if test -n "$AR"; then
4676   { echo "$as_me:$LINENO: result: $AR" >&5
4677 echo "${ECHO_T}$AR" >&6; }
4678 else
4679   { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4681 fi
4682
4683
4684 # Extract the first word of "openssl", so it can be a program name with args.
4685 set dummy openssl; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_path_OPENSSL+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   case $OPENSSL in
4692   [\\/]* | ?:[\\/]*)
4693   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4694   ;;
4695   *)
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   for ac_exec_ext in '' $ac_executable_extensions; do
4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4712   ;;
4713 esac
4714 fi
4715 OPENSSL=$ac_cv_path_OPENSSL
4716 if test -n "$OPENSSL"; then
4717   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4718 echo "${ECHO_T}$OPENSSL" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725 # Extract the first word of "mtx", so it can be a program name with args.
4726 set dummy mtx; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_path_MTX+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   case $MTX in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4753   ;;
4754 esac
4755 fi
4756 MTX=$ac_cv_path_MTX
4757 if test -n "$MTX"; then
4758   { echo "$as_me:$LINENO: result: $MTX" >&5
4759 echo "${ECHO_T}$MTX" >&6; }
4760 else
4761   { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4763 fi
4764
4765
4766 # Extract the first word of "dd", so it can be a program name with args.
4767 set dummy dd; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_path_DD+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   case $DD in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4794   ;;
4795 esac
4796 fi
4797 DD=$ac_cv_path_DD
4798 if test -n "$DD"; then
4799   { echo "$as_me:$LINENO: result: $DD" >&5
4800 echo "${ECHO_T}$DD" >&6; }
4801 else
4802   { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4804 fi
4805
4806
4807 # Extract the first word of "mkisofs", so it can be a program name with args.
4808 set dummy mkisofs; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_path_MKISOFS+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   case $MKISOFS in
4815   [\\/]* | ?:[\\/]*)
4816   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4817   ;;
4818   *)
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4835   ;;
4836 esac
4837 fi
4838 MKISOFS=$ac_cv_path_MKISOFS
4839 if test -n "$MKISOFS"; then
4840   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4841 echo "${ECHO_T}$MKISOFS" >&6; }
4842 else
4843   { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4845 fi
4846
4847
4848 # Extract the first word of "python", so it can be a program name with args.
4849 set dummy python; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_path_PYTHON+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   case $PYTHON in
4856   [\\/]* | ?:[\\/]*)
4857   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4858   ;;
4859   *)
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4876   ;;
4877 esac
4878 fi
4879 PYTHON=$ac_cv_path_PYTHON
4880 if test -n "$PYTHON"; then
4881   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4882 echo "${ECHO_T}$PYTHON" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888
4889 # Extract the first word of "growisofs", so it can be a program name with args.
4890 set dummy growisofs; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $GROWISOFS in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4917   ;;
4918 esac
4919 fi
4920 GROWISOFS=$ac_cv_path_GROWISOFS
4921 if test -n "$GROWISOFS"; then
4922   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4923 echo "${ECHO_T}$GROWISOFS" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929
4930 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4931 set dummy dvd+rw-mediainfo; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   case $DVDRWMEDIAINFO in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4958   ;;
4959 esac
4960 fi
4961 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4962 if test -n "$DVDRWMEDIAINFO"; then
4963   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4964 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4965 else
4966   { echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6; }
4968 fi
4969
4970
4971 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4972 set dummy dvd+rw-format; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   case $DVDRWFORMAT in
4979   [\\/]* | ?:[\\/]*)
4980   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4981   ;;
4982   *)
4983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4999   ;;
5000 esac
5001 fi
5002 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5003 if test -n "$DVDRWFORMAT"; then
5004   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5005 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5006 else
5007   { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5009 fi
5010
5011
5012 # Extract the first word of "pkg-config", so it can be a program name with args.
5013 set dummy pkg-config; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   case $PKGCONFIG in
5020   [\\/]* | ?:[\\/]*)
5021   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5022   ;;
5023   *)
5024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5040   ;;
5041 esac
5042 fi
5043 PKGCONFIG=$ac_cv_path_PKGCONFIG
5044 if test -n "$PKGCONFIG"; then
5045   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5046 echo "${ECHO_T}$PKGCONFIG" >&6; }
5047 else
5048   { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5050 fi
5051
5052
5053 # Extract the first word of "qmake", so it can be a program name with args.
5054 set dummy qmake; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_path_QMAKE+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   case $QMAKE in
5061   [\\/]* | ?:[\\/]*)
5062   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5063   ;;
5064   *)
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070   for ac_exec_ext in '' $ac_executable_extensions; do
5071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5081   ;;
5082 esac
5083 fi
5084 QMAKE=$ac_cv_path_QMAKE
5085 if test -n "$QMAKE"; then
5086   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5087 echo "${ECHO_T}$QMAKE" >&6; }
5088 else
5089   { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5091 fi
5092
5093
5094 # Extract the first word of "gmake", so it can be a program name with args.
5095 set dummy gmake; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_GMAKE+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   case $GMAKE in
5102   [\\/]* | ?:[\\/]*)
5103   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5104   ;;
5105   *)
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111   for ac_exec_ext in '' $ac_executable_extensions; do
5112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5122   ;;
5123 esac
5124 fi
5125 GMAKE=$ac_cv_path_GMAKE
5126 if test -n "$GMAKE"; then
5127   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5128 echo "${ECHO_T}$GMAKE" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135
5136 if test "x$WXCONFIG" = x; then
5137    WXCONFIG=wx-config
5138 fi
5139 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5140 set dummy ${WXCONFIG}; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   case $WXCONFIG in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5159     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_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5167   ;;
5168 esac
5169 fi
5170 WXCONFIG=$ac_cv_path_WXCONFIG
5171 if test -n "$WXCONFIG"; then
5172   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5173 echo "${ECHO_T}$WXCONFIG" >&6; }
5174 else
5175   { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5177 fi
5178
5179
5180
5181 # Extract the first word of "cdrecord", so it can be a program name with args.
5182 set dummy cdrecord; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_CDRECORD+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $CDRECORD in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5209   ;;
5210 esac
5211 fi
5212 CDRECORD=$ac_cv_path_CDRECORD
5213 if test -n "$CDRECORD"; then
5214   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5215 echo "${ECHO_T}$CDRECORD" >&6; }
5216 else
5217   { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5219 fi
5220
5221
5222 # Extract the first word of "pidof", so it can be a program name with args.
5223 set dummy pidof; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_PIDOF+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   case $PIDOF in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5250   ;;
5251 esac
5252 fi
5253 PIDOF=$ac_cv_path_PIDOF
5254 if test -n "$PIDOF"; then
5255   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5256 echo "${ECHO_T}$PIDOF" >&6; }
5257 else
5258   { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 fi
5261
5262
5263 for ac_prog in gawk mawk nawk awk
5264 do
5265   # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_AWK+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   if test -n "$AWK"; then
5273   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280   for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_AWK="$ac_prog"
5283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 AWK=$ac_cv_prog_AWK
5293 if test -n "$AWK"; then
5294   { echo "$as_me:$LINENO: result: $AWK" >&5
5295 echo "${ECHO_T}$AWK" >&6; }
5296 else
5297   { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5299 fi
5300
5301
5302   test -n "$AWK" && break
5303 done
5304
5305 # Some AWK programs fail, so test it and warn the user
5306 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5307       { if ((prog == $2) || (("(" prog ")") == $2) ||
5308       (("" prog "") == $2) ||
5309       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5310 else
5311   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5312    The regex engine of $AWK is too broken to be used you
5313    might want to install GNU AWK.
5314    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5315 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5316    The regex engine of $AWK is too broken to be used you
5317    might want to install GNU AWK.
5318    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5319    { (exit 1); exit 1; }; }
5320 fi
5321 THE_AWK=$AWK
5322 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5323 set dummy $THE_AWK; ac_word=$2
5324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5326 if test "${ac_cv_path_AWK+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   case $AWK in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5350   ;;
5351 esac
5352 fi
5353 AWK=$ac_cv_path_AWK
5354 if test -n "$AWK"; then
5355   { echo "$as_me:$LINENO: result: $AWK" >&5
5356 echo "${ECHO_T}$AWK" >&6; }
5357 else
5358   { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5360 fi
5361
5362
5363
5364
5365 test -n "$ARFLAG" || ARFLAGS="cr"
5366
5367
5368 MAKE_SHELL=/bin/sh
5369
5370
5371
5372
5373
5374
5375
5376 use_libtool=yes
5377 # Check whether --enable-libtool was given.
5378 if test "${enable_libtool+set}" = set; then
5379   enableval=$enable_libtool;
5380        if test x$enableval = xno; then
5381           use_libtool=no
5382        fi
5383
5384
5385 fi
5386
5387 case `pwd` in
5388   *\ * | *\     *)
5389     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5390 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5391 esac
5392
5393
5394
5395 macro_version='2.2.6'
5396 macro_revision='1.3012'
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 ltmain="$ac_aux_dir/ltmain.sh"
5411
5412 # Make sure we can run config.sub.
5413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5414   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5415 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5416    { (exit 1); exit 1; }; }
5417
5418 { echo "$as_me:$LINENO: checking build system type" >&5
5419 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5420 if test "${ac_cv_build+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   ac_build_alias=$build_alias
5424 test "x$ac_build_alias" = x &&
5425   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5426 test "x$ac_build_alias" = x &&
5427   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5429    { (exit 1); exit 1; }; }
5430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5431   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5433    { (exit 1); exit 1; }; }
5434
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5437 echo "${ECHO_T}$ac_cv_build" >&6; }
5438 case $ac_cv_build in
5439 *-*-*) ;;
5440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5441 echo "$as_me: error: invalid value of canonical build" >&2;}
5442    { (exit 1); exit 1; }; };;
5443 esac
5444 build=$ac_cv_build
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_build
5447 shift
5448 build_cpu=$1
5449 build_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 build_os=$*
5454 IFS=$ac_save_IFS
5455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 { echo "$as_me:$LINENO: checking host system type" >&5
5459 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5460 if test "${ac_cv_host+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   if test "x$host_alias" = x; then
5464   ac_cv_host=$ac_cv_build
5465 else
5466   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5467     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5468 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5469    { (exit 1); exit 1; }; }
5470 fi
5471
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5474 echo "${ECHO_T}$ac_cv_host" >&6; }
5475 case $ac_cv_host in
5476 *-*-*) ;;
5477 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5478 echo "$as_me: error: invalid value of canonical host" >&2;}
5479    { (exit 1); exit 1; }; };;
5480 esac
5481 host=$ac_cv_host
5482 ac_save_IFS=$IFS; IFS='-'
5483 set x $ac_cv_host
5484 shift
5485 host_cpu=$1
5486 host_vendor=$2
5487 shift; shift
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5490 host_os=$*
5491 IFS=$ac_save_IFS
5492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5493
5494
5495 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_SED+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5501      for ac_i in 1 2 3 4 5 6 7; do
5502        ac_script="$ac_script$as_nl$ac_script"
5503      done
5504      echo "$ac_script" | sed 99q >conftest.sed
5505      $as_unset ac_script || ac_script=
5506      # Extract the first word of "sed gsed" to use in msg output
5507 if test -z "$SED"; then
5508 set dummy sed gsed; ac_prog_name=$2
5509 if test "${ac_cv_path_SED+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_path_SED_found=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_prog in sed gsed; do
5520   for ac_exec_ext in '' $ac_executable_extensions; do
5521     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5522     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5523     # Check for GNU ac_path_SED and select it if it is found.
5524   # Check for GNU $ac_path_SED
5525 case `"$ac_path_SED" --version 2>&1` in
5526 *GNU*)
5527   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5528 *)
5529   ac_count=0
5530   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5531   while :
5532   do
5533     cat "conftest.in" "conftest.in" >"conftest.tmp"
5534     mv "conftest.tmp" "conftest.in"
5535     cp "conftest.in" "conftest.nl"
5536     echo '' >> "conftest.nl"
5537     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539     ac_count=`expr $ac_count + 1`
5540     if test $ac_count -gt ${ac_path_SED_max-0}; then
5541       # Best one so far, save it but keep looking for a better one
5542       ac_cv_path_SED="$ac_path_SED"
5543       ac_path_SED_max=$ac_count
5544     fi
5545     # 10*(2^10) chars as input seems more than enough
5546     test $ac_count -gt 10 && break
5547   done
5548   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 esac
5550
5551
5552     $ac_path_SED_found && break 3
5553   done
5554 done
5555
5556 done
5557 IFS=$as_save_IFS
5558
5559
5560 fi
5561
5562 SED="$ac_cv_path_SED"
5563 if test -z "$SED"; then
5564   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5565 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5566    { (exit 1); exit 1; }; }
5567 fi
5568
5569 else
5570   ac_cv_path_SED=$SED
5571 fi
5572
5573 fi
5574 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5575 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5576  SED="$ac_cv_path_SED"
5577   rm -f conftest.sed
5578
5579 test -z "$SED" && SED=sed
5580 Xsed="$SED -e 1s/^X//"
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 { echo "$as_me:$LINENO: checking for fgrep" >&5
5593 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5594 if test "${ac_cv_path_FGREP+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5598    then ac_cv_path_FGREP="$GREP -F"
5599    else
5600      # Extract the first word of "fgrep" to use in msg output
5601 if test -z "$FGREP"; then
5602 set dummy fgrep; ac_prog_name=$2
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   ac_path_FGREP_found=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_prog in fgrep; do
5614   for ac_exec_ext in '' $ac_executable_extensions; do
5615     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5616     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5617     # Check for GNU ac_path_FGREP and select it if it is found.
5618   # Check for GNU $ac_path_FGREP
5619 case `"$ac_path_FGREP" --version 2>&1` in
5620 *GNU*)
5621   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5622 *)
5623   ac_count=0
5624   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5625   while :
5626   do
5627     cat "conftest.in" "conftest.in" >"conftest.tmp"
5628     mv "conftest.tmp" "conftest.in"
5629     cp "conftest.in" "conftest.nl"
5630     echo 'FGREP' >> "conftest.nl"
5631     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633     ac_count=`expr $ac_count + 1`
5634     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5635       # Best one so far, save it but keep looking for a better one
5636       ac_cv_path_FGREP="$ac_path_FGREP"
5637       ac_path_FGREP_max=$ac_count
5638     fi
5639     # 10*(2^10) chars as input seems more than enough
5640     test $ac_count -gt 10 && break
5641   done
5642   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643 esac
5644
5645
5646     $ac_path_FGREP_found && break 3
5647   done
5648 done
5649
5650 done
5651 IFS=$as_save_IFS
5652
5653
5654 fi
5655
5656 FGREP="$ac_cv_path_FGREP"
5657 if test -z "$FGREP"; then
5658   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5660    { (exit 1); exit 1; }; }
5661 fi
5662
5663 else
5664   ac_cv_path_FGREP=$FGREP
5665 fi
5666
5667
5668    fi
5669 fi
5670 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5671 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5672  FGREP="$ac_cv_path_FGREP"
5673
5674
5675 test -z "$GREP" && GREP=grep
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 # Check whether --with-gnu-ld was given.
5696 if test "${with_gnu_ld+set}" = set; then
5697   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5698 else
5699   with_gnu_ld=no
5700 fi
5701
5702 ac_prog=ld
5703 if test "$GCC" = yes; then
5704   # Check if gcc -print-prog-name=ld gives a path.
5705   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5706 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5707   case $host in
5708   *-*-mingw*)
5709     # gcc leaves a trailing carriage return which upsets mingw
5710     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5711   *)
5712     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5713   esac
5714   case $ac_prog in
5715     # Accept absolute paths.
5716     [\\/]* | ?:[\\/]*)
5717       re_direlt='/[^/][^/]*/\.\./'
5718       # Canonicalize the pathname of ld
5719       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5720       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5721         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5722       done
5723       test -z "$LD" && LD="$ac_prog"
5724       ;;
5725   "")
5726     # If it fails, then pretend we aren't using GCC.
5727     ac_prog=ld
5728     ;;
5729   *)
5730     # If it is relative, then search for the first ld in PATH.
5731     with_gnu_ld=unknown
5732     ;;
5733   esac
5734 elif test "$with_gnu_ld" = yes; then
5735   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5736 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5739 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5740 fi
5741 if test "${lt_cv_path_LD+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   if test -z "$LD"; then
5745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5746   for ac_dir in $PATH; do
5747     IFS="$lt_save_ifs"
5748     test -z "$ac_dir" && ac_dir=.
5749     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5750       lt_cv_path_LD="$ac_dir/$ac_prog"
5751       # Check to see if the program is GNU ld.  I'd rather use --version,
5752       # but apparently some variants of GNU ld only accept -v.
5753       # Break only if it was the GNU/non-GNU ld that we prefer.
5754       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5755       *GNU* | *'with BFD'*)
5756         test "$with_gnu_ld" != no && break
5757         ;;
5758       *)
5759         test "$with_gnu_ld" != yes && break
5760         ;;
5761       esac
5762     fi
5763   done
5764   IFS="$lt_save_ifs"
5765 else
5766   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5767 fi
5768 fi
5769
5770 LD="$lt_cv_path_LD"
5771 if test -n "$LD"; then
5772   { echo "$as_me:$LINENO: result: $LD" >&5
5773 echo "${ECHO_T}$LD" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5777 fi
5778 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5779 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5780    { (exit 1); exit 1; }; }
5781 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5782 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5783 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5787 case `$LD -v 2>&1 </dev/null` in
5788 *GNU* | *'with BFD'*)
5789   lt_cv_prog_gnu_ld=yes
5790   ;;
5791 *)
5792   lt_cv_prog_gnu_ld=no
5793   ;;
5794 esac
5795 fi
5796 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5797 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5798 with_gnu_ld=$lt_cv_prog_gnu_ld
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5809 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5810 if test "${lt_cv_path_NM+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$NM"; then
5814   # Let the user override the test.
5815   lt_cv_path_NM="$NM"
5816 else
5817   lt_nm_to_check="${ac_tool_prefix}nm"
5818   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5819     lt_nm_to_check="$lt_nm_to_check nm"
5820   fi
5821   for lt_tmp_nm in $lt_nm_to_check; do
5822     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5824       IFS="$lt_save_ifs"
5825       test -z "$ac_dir" && ac_dir=.
5826       tmp_nm="$ac_dir/$lt_tmp_nm"
5827       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5828         # Check to see if the nm accepts a BSD-compat flag.
5829         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5830         #   nm: unknown option "B" ignored
5831         # Tru64's nm complains that /dev/null is an invalid object file
5832         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5833         */dev/null* | *'Invalid file or object type'*)
5834           lt_cv_path_NM="$tmp_nm -B"
5835           break
5836           ;;
5837         *)
5838           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5839           */dev/null*)
5840             lt_cv_path_NM="$tmp_nm -p"
5841             break
5842             ;;
5843           *)
5844             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5845             continue # so that we can try to find one that supports BSD flags
5846             ;;
5847           esac
5848           ;;
5849         esac
5850       fi
5851     done
5852     IFS="$lt_save_ifs"
5853   done
5854   : ${lt_cv_path_NM=no}
5855 fi
5856 fi
5857 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5858 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5859 if test "$lt_cv_path_NM" != "no"; then
5860   NM="$lt_cv_path_NM"
5861 else
5862   # Didn't find any BSD compatible name lister, look for dumpbin.
5863   if test -n "$ac_tool_prefix"; then
5864   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5865   do
5866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$DUMPBIN"; then
5874   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 DUMPBIN=$ac_cv_prog_DUMPBIN
5894 if test -n "$DUMPBIN"; then
5895   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5896 echo "${ECHO_T}$DUMPBIN" >&6; }
5897 else
5898   { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5900 fi
5901
5902
5903     test -n "$DUMPBIN" && break
5904   done
5905 fi
5906 if test -z "$DUMPBIN"; then
5907   ac_ct_DUMPBIN=$DUMPBIN
5908   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5909 do
5910   # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   if test -n "$ac_ct_DUMPBIN"; then
5918   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5938 if test -n "$ac_ct_DUMPBIN"; then
5939   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5940 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5941 else
5942   { echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6; }
5944 fi
5945
5946
5947   test -n "$ac_ct_DUMPBIN" && break
5948 done
5949
5950   if test "x$ac_ct_DUMPBIN" = x; then
5951     DUMPBIN=":"
5952   else
5953     case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5956 whose name does not start with the host triplet.  If you think this
5957 configuration is useful to you, please write to autoconf@gnu.org." >&5
5958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet.  If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     DUMPBIN=$ac_ct_DUMPBIN
5964   fi
5965 fi
5966
5967
5968   if test "$DUMPBIN" != ":"; then
5969     NM="$DUMPBIN"
5970   fi
5971 fi
5972 test -z "$NM" && NM=nm
5973
5974
5975
5976
5977
5978
5979 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5980 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5981 if test "${lt_cv_nm_interface+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   lt_cv_nm_interface="BSD nm"
5985   echo "int some_variable = 0;" > conftest.$ac_ext
5986   (eval echo "\"\$as_me:5986: $ac_compile\"" >&5)
5987   (eval "$ac_compile" 2>conftest.err)
5988   cat conftest.err >&5
5989   (eval echo "\"\$as_me:5989: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5990   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5991   cat conftest.err >&5
5992   (eval echo "\"\$as_me:5992: output\"" >&5)
5993   cat conftest.out >&5
5994   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5995     lt_cv_nm_interface="MS dumpbin"
5996   fi
5997   rm -f conftest*
5998 fi
5999 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6000 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6001
6002 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6003 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6004 LN_S=$as_ln_s
6005 if test "$LN_S" = "ln -s"; then
6006   { echo "$as_me:$LINENO: result: yes" >&5
6007 echo "${ECHO_T}yes" >&6; }
6008 else
6009   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6010 echo "${ECHO_T}no, using $LN_S" >&6; }
6011 fi
6012
6013 # find the maximum length of command line arguments
6014 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6015 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6016 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019     i=0
6020   teststring="ABCD"
6021
6022   case $build_os in
6023   msdosdjgpp*)
6024     # On DJGPP, this test can blow up pretty badly due to problems in libc
6025     # (any single argument exceeding 2000 bytes causes a buffer overrun
6026     # during glob expansion).  Even if it were fixed, the result of this
6027     # check would be larger than it should be.
6028     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6029     ;;
6030
6031   gnu*)
6032     # Under GNU Hurd, this test is not required because there is
6033     # no limit to the length of command line arguments.
6034     # Libtool will interpret -1 as no limit whatsoever
6035     lt_cv_sys_max_cmd_len=-1;
6036     ;;
6037
6038   cygwin* | mingw* | cegcc*)
6039     # On Win9x/ME, this test blows up -- it succeeds, but takes
6040     # about 5 minutes as the teststring grows exponentially.
6041     # Worse, since 9x/ME are not pre-emptively multitasking,
6042     # you end up with a "frozen" computer, even though with patience
6043     # the test eventually succeeds (with a max line length of 256k).
6044     # Instead, let's just punt: use the minimum linelength reported by
6045     # all of the supported platforms: 8192 (on NT/2K/XP).
6046     lt_cv_sys_max_cmd_len=8192;
6047     ;;
6048
6049   amigaos*)
6050     # On AmigaOS with pdksh, this test takes hours, literally.
6051     # So we just punt and use a minimum line length of 8192.
6052     lt_cv_sys_max_cmd_len=8192;
6053     ;;
6054
6055   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6056     # This has been around since 386BSD, at least.  Likely further.
6057     if test -x /sbin/sysctl; then
6058       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6059     elif test -x /usr/sbin/sysctl; then
6060       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6061     else
6062       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6063     fi
6064     # And add a safety zone
6065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     ;;
6068
6069   interix*)
6070     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6071     lt_cv_sys_max_cmd_len=196608
6072     ;;
6073
6074   osf*)
6075     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6076     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6077     # nice to cause kernel panics so lets avoid the loop below.
6078     # First set a reasonable default.
6079     lt_cv_sys_max_cmd_len=16384
6080     #
6081     if test -x /sbin/sysconfig; then
6082       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6083         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6084       esac
6085     fi
6086     ;;
6087   sco3.2v5*)
6088     lt_cv_sys_max_cmd_len=102400
6089     ;;
6090   sysv5* | sco5v6* | sysv4.2uw2*)
6091     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6092     if test -n "$kargmax"; then
6093       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6094     else
6095       lt_cv_sys_max_cmd_len=32768
6096     fi
6097     ;;
6098   *)
6099     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6100     if test -n "$lt_cv_sys_max_cmd_len"; then
6101       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6103     else
6104       # Make teststring a little bigger before we do anything with it.
6105       # a 1K string should be a reasonable start.
6106       for i in 1 2 3 4 5 6 7 8 ; do
6107         teststring=$teststring$teststring
6108       done
6109       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6110       # If test is not a shell built-in, we'll probably end up computing a
6111       # maximum length that is only half of the actual maximum length, but
6112       # we can't tell.
6113       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6114                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6115               test $i != 17 # 1/2 MB should be enough
6116       do
6117         i=`expr $i + 1`
6118         teststring=$teststring$teststring
6119       done
6120       # Only check the string length outside the loop.
6121       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6122       teststring=
6123       # Add a significant safety factor because C++ compilers can tack on
6124       # massive amounts of additional arguments before passing them to the
6125       # linker.  It appears as though 1/2 is a usable value.
6126       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6127     fi
6128     ;;
6129   esac
6130
6131 fi
6132
6133 if test -n $lt_cv_sys_max_cmd_len ; then
6134   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6135 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: none" >&5
6138 echo "${ECHO_T}none" >&6; }
6139 fi
6140 max_cmd_len=$lt_cv_sys_max_cmd_len
6141
6142
6143
6144
6145
6146
6147 : ${CP="cp -f"}
6148 : ${MV="mv -f"}
6149 : ${RM="rm -f"}
6150
6151 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6152 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6153 # Try some XSI features
6154 xsi_shell=no
6155 ( _lt_dummy="a/b/c"
6156   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6157       = c,a/b,, \
6158     && eval 'test $(( 1 + 1 )) -eq 2 \
6159     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6160   && xsi_shell=yes
6161 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6162 echo "${ECHO_T}$xsi_shell" >&6; }
6163
6164
6165 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6166 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6167 lt_shell_append=no
6168 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6169     >/dev/null 2>&1 \
6170   && lt_shell_append=yes
6171 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6172 echo "${ECHO_T}$lt_shell_append" >&6; }
6173
6174
6175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6176   lt_unset=unset
6177 else
6178   lt_unset=false
6179 fi
6180
6181
6182
6183
6184
6185 # test EBCDIC or ASCII
6186 case `echo X|tr X '\101'` in
6187  A) # ASCII based system
6188     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6189   lt_SP2NL='tr \040 \012'
6190   lt_NL2SP='tr \015\012 \040\040'
6191   ;;
6192  *) # EBCDIC based system
6193   lt_SP2NL='tr \100 \n'
6194   lt_NL2SP='tr \r\n \100\100'
6195   ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6207 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6208 if test "${lt_cv_ld_reload_flag+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   lt_cv_ld_reload_flag='-r'
6212 fi
6213 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6214 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6215 reload_flag=$lt_cv_ld_reload_flag
6216 case $reload_flag in
6217 "" | " "*) ;;
6218 *) reload_flag=" $reload_flag" ;;
6219 esac
6220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221 case $host_os in
6222   darwin*)
6223     if test "$GCC" = yes; then
6224       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6225     else
6226       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6227     fi
6228     ;;
6229 esac
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239 if test -n "$ac_tool_prefix"; then
6240   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   if test -n "$OBJDUMP"; then
6248   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 OBJDUMP=$ac_cv_prog_OBJDUMP
6268 if test -n "$OBJDUMP"; then
6269   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6270 echo "${ECHO_T}$OBJDUMP" >&6; }
6271 else
6272   { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6274 fi
6275
6276
6277 fi
6278 if test -z "$ac_cv_prog_OBJDUMP"; then
6279   ac_ct_OBJDUMP=$OBJDUMP
6280   # Extract the first word of "objdump", so it can be a program name with args.
6281 set dummy objdump; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   if test -n "$ac_ct_OBJDUMP"; then
6288   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6308 if test -n "$ac_ct_OBJDUMP"; then
6309   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6310 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6311 else
6312   { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6314 fi
6315
6316   if test "x$ac_ct_OBJDUMP" = x; then
6317     OBJDUMP="false"
6318   else
6319     case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet.  If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&5
6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet.  If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329     OBJDUMP=$ac_ct_OBJDUMP
6330   fi
6331 else
6332   OBJDUMP="$ac_cv_prog_OBJDUMP"
6333 fi
6334
6335 test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6346 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6347 if test "${lt_cv_deplibs_check_method+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   lt_cv_file_magic_cmd='$MAGIC_CMD'
6351 lt_cv_file_magic_test_file=
6352 lt_cv_deplibs_check_method='unknown'
6353 # Need to set the preceding variable on all platforms that support
6354 # interlibrary dependencies.
6355 # 'none' -- dependencies not supported.
6356 # `unknown' -- same as none, but documents that we really don't know.
6357 # 'pass_all' -- all dependencies passed with no checks.
6358 # 'test_compile' -- check by making test program.
6359 # 'file_magic [[regex]]' -- check by looking for files in library path
6360 # which responds to the $file_magic_cmd with a given extended regex.
6361 # If you have `file' or equivalent on your system and you're not sure
6362 # whether `pass_all' will *always* work, you probably want this one.
6363
6364 case $host_os in
6365 aix[4-9]*)
6366   lt_cv_deplibs_check_method=pass_all
6367   ;;
6368
6369 beos*)
6370   lt_cv_deplibs_check_method=pass_all
6371   ;;
6372
6373 bsdi[45]*)
6374   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375   lt_cv_file_magic_cmd='/usr/bin/file -L'
6376   lt_cv_file_magic_test_file=/shlib/libc.so
6377   ;;
6378
6379 cygwin*)
6380   # func_win32_libid is a shell function defined in ltmain.sh
6381   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382   lt_cv_file_magic_cmd='func_win32_libid'
6383   ;;
6384
6385 mingw* | pw32*)
6386   # Base MSYS/MinGW do not provide the 'file' command needed by
6387   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388   # unless we find 'file', for example because we are cross-compiling.
6389   if ( file / ) >/dev/null 2>&1; then
6390     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391     lt_cv_file_magic_cmd='func_win32_libid'
6392   else
6393     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6394     lt_cv_file_magic_cmd='$OBJDUMP -f'
6395   fi
6396   ;;
6397
6398 cegcc)
6399   # use the weaker test based on 'objdump'. See mingw*.
6400   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401   lt_cv_file_magic_cmd='$OBJDUMP -f'
6402   ;;
6403
6404 darwin* | rhapsody*)
6405   lt_cv_deplibs_check_method=pass_all
6406   ;;
6407
6408 freebsd* | dragonfly*)
6409   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410     case $host_cpu in
6411     i*86 )
6412       # Not sure whether the presence of OpenBSD here was a mistake.
6413       # Let's accept both of them until this is cleared up.
6414       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415       lt_cv_file_magic_cmd=/usr/bin/file
6416       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417       ;;
6418     esac
6419   else
6420     lt_cv_deplibs_check_method=pass_all
6421   fi
6422   ;;
6423
6424 gnu*)
6425   lt_cv_deplibs_check_method=pass_all
6426   ;;
6427
6428 hpux10.20* | hpux11*)
6429   lt_cv_file_magic_cmd=/usr/bin/file
6430   case $host_cpu in
6431   ia64*)
6432     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6434     ;;
6435   hppa*64*)
6436     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]'
6437     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6438     ;;
6439   *)
6440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6441     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6442     ;;
6443   esac
6444   ;;
6445
6446 interix[3-9]*)
6447   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6449   ;;
6450
6451 irix5* | irix6* | nonstopux*)
6452   case $LD in
6453   *-32|*"-32 ") libmagic=32-bit;;
6454   *-n32|*"-n32 ") libmagic=N32;;
6455   *-64|*"-64 ") libmagic=64-bit;;
6456   *) libmagic=never-match;;
6457   esac
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 # This must be Linux ELF.
6462 linux* | k*bsd*-gnu)
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 netbsd*)
6467   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6469   else
6470     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6471   fi
6472   ;;
6473
6474 newos6*)
6475   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6476   lt_cv_file_magic_cmd=/usr/bin/file
6477   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478   ;;
6479
6480 *nto* | *qnx*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 openbsd*)
6485   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6486     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6487   else
6488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489   fi
6490   ;;
6491
6492 osf3* | osf4* | osf5*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 rdos*)
6497   lt_cv_deplibs_check_method=pass_all
6498   ;;
6499
6500 solaris*)
6501   lt_cv_deplibs_check_method=pass_all
6502   ;;
6503
6504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 sysv4 | sysv4.3*)
6509   case $host_vendor in
6510   motorola)
6511     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]'
6512     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6513     ;;
6514   ncr)
6515     lt_cv_deplibs_check_method=pass_all
6516     ;;
6517   sequent)
6518     lt_cv_file_magic_cmd='/bin/file'
6519     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6520     ;;
6521   sni)
6522     lt_cv_file_magic_cmd='/bin/file'
6523     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6524     lt_cv_file_magic_test_file=/lib/libc.so
6525     ;;
6526   siemens)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   pc)
6530     lt_cv_deplibs_check_method=pass_all
6531     ;;
6532   esac
6533   ;;
6534
6535 tpf*)
6536   lt_cv_deplibs_check_method=pass_all
6537   ;;
6538 esac
6539
6540 fi
6541 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6542 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ar; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_prog_AR+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   if test -n "$AR"; then
6567   ac_cv_prog_AR="$AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_prog_AR="${ac_tool_prefix}ar"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 AR=$ac_cv_prog_AR
6587 if test -n "$AR"; then
6588   { echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6; }
6590 else
6591   { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_AR"; then
6598   ac_ct_AR=$AR
6599   # Extract the first word of "ar", so it can be a program name with args.
6600 set dummy ar; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   if test -n "$ac_ct_AR"; then
6607   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614   for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_prog_ac_ct_AR="ar"
6617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6627 if test -n "$ac_ct_AR"; then
6628   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6629 echo "${ECHO_T}$ac_ct_AR" >&6; }
6630 else
6631   { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6633 fi
6634
6635   if test "x$ac_ct_AR" = x; then
6636     AR="false"
6637   else
6638     case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet.  If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&5
6643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet.  If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648     AR=$ac_ct_AR
6649   fi
6650 else
6651   AR="$ac_cv_prog_AR"
6652 fi
6653
6654 test -z "$AR" && AR=ar
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test -n "$ac_tool_prefix"; then
6668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test -n "$STRIP"; then
6676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697   { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_STRIP"; then
6707   ac_ct_STRIP=$STRIP
6708   # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   if test -n "$ac_ct_STRIP"; then
6716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_ac_ct_STRIP="strip"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744   if test "x$ac_ct_STRIP" = x; then
6745     STRIP=":"
6746   else
6747     case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet.  If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     STRIP=$ac_ct_STRIP
6758   fi
6759 else
6760   STRIP="$ac_cv_prog_STRIP"
6761 fi
6762
6763 test -z "$STRIP" && STRIP=:
6764
6765
6766
6767
6768
6769
6770 if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_RANLIB+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   if test -n "$RANLIB"; then
6779   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 RANLIB=$ac_cv_prog_RANLIB
6799 if test -n "$RANLIB"; then
6800   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6801 echo "${ECHO_T}$RANLIB" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_RANLIB"; then
6810   ac_ct_RANLIB=$RANLIB
6811   # Extract the first word of "ranlib", so it can be a program name with args.
6812 set dummy ranlib; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   if test -n "$ac_ct_RANLIB"; then
6819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_ac_ct_RANLIB="ranlib"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6839 if test -n "$ac_ct_RANLIB"; then
6840   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6841 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_RANLIB" = x; then
6848     RANLIB=":"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet.  If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     RANLIB=$ac_ct_RANLIB
6861   fi
6862 else
6863   RANLIB="$ac_cv_prog_RANLIB"
6864 fi
6865
6866 test -z "$RANLIB" && RANLIB=:
6867
6868
6869
6870
6871
6872
6873 # Determine commands to create old-style static archives.
6874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6875 old_postinstall_cmds='chmod 644 $oldlib'
6876 old_postuninstall_cmds=
6877
6878 if test -n "$RANLIB"; then
6879   case $host_os in
6880   openbsd*)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6882     ;;
6883   *)
6884     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6885     ;;
6886   esac
6887   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 # If no C compiler was specified, use CC.
6924 LTCC=${LTCC-"$CC"}
6925
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6928
6929 # Allow CC to be a program name with arguments.
6930 compiler=$CC
6931
6932
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6935 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6936 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952   symcode='[BCDT]'
6953   ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955   symcode='[ABCDGISTW]'
6956   ;;
6957 hpux*)
6958   if test "$host_cpu" = ia64; then
6959     symcode='[ABCDEGRST]'
6960   fi
6961   ;;
6962 irix* | nonstopux*)
6963   symcode='[BCDEGRST]'
6964   ;;
6965 osf*)
6966   symcode='[BCDEGQRST]'
6967   ;;
6968 solaris*)
6969   symcode='[BDRT]'
6970   ;;
6971 sco3.2v5*)
6972   symcode='[DT]'
6973   ;;
6974 sysv4.2uw2*)
6975   symcode='[DT]'
6976   ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978   symcode='[ABDT]'
6979   ;;
6980 sysv4)
6981   symcode='[DFNSTU]'
6982   ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988   symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 # Transform an extracted symbol line into a proper C declaration.
6992 # Some systems (esp. on ia64) link data and code symbols differently,
6993 # so use this general approach.
6994 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6995
6996 # Transform an extracted symbol line into symbol name and symbol address
6997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6998 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'"
6999
7000 # Handle CRLF in mingw tool chain
7001 opt_cr=
7002 case $build_os in
7003 mingw*)
7004   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7005   ;;
7006 esac
7007
7008 # Try without a prefix underscore, then with it.
7009 for ac_symprfx in "" "_"; do
7010
7011   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7012   symxfrm="\\1 $ac_symprfx\\2 \\2"
7013
7014   # Write the raw and C identifiers.
7015   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016     # Fake it for dumpbin and say T for any non-static function
7017     # and D for any global variable.
7018     # Also find C++ and __fastcall symbols from MSVC++,
7019     # which start with @ or ?.
7020     lt_cv_sys_global_symbol_pipe="$AWK '"\
7021 "     {last_section=section; section=\$ 3};"\
7022 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023 "     \$ 0!~/External *\|/{next};"\
7024 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025 "     {if(hide[section]) next};"\
7026 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030 "     ' prfx=^$ac_symprfx"
7031   else
7032     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033   fi
7034
7035   # Check to see that the pipe works correctly.
7036   pipe_works=no
7037
7038   rm -f conftest*
7039   cat > conftest.$ac_ext <<_LT_EOF
7040 #ifdef __cplusplus
7041 extern "C" {
7042 #endif
7043 char nm_test_var;
7044 void nm_test_func(void);
7045 void nm_test_func(void){}
7046 #ifdef __cplusplus
7047 }
7048 #endif
7049 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 _LT_EOF
7051
7052   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053   (eval $ac_compile) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; then
7057     # Now try to grab the symbols.
7058     nlist=conftest.nm
7059     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7060   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } && test -s "$nlist"; then
7064       # Try sorting and uniquifying the output.
7065       if sort "$nlist" | uniq > "$nlist"T; then
7066         mv -f "$nlist"T "$nlist"
7067       else
7068         rm -f "$nlist"T
7069       fi
7070
7071       # Make sure that we snagged all the symbols we need.
7072       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7073         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7074           cat <<_LT_EOF > conftest.$ac_ext
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078
7079 _LT_EOF
7080           # Now generate the symbol file.
7081           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7082
7083           cat <<_LT_EOF >> conftest.$ac_ext
7084
7085 /* The mapping between symbol names and symbols.  */
7086 const struct {
7087   const char *name;
7088   void       *address;
7089 }
7090 lt__PROGRAM__LTX_preloaded_symbols[] =
7091 {
7092   { "@PROGRAM@", (void *) 0 },
7093 _LT_EOF
7094           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7095           cat <<\_LT_EOF >> conftest.$ac_ext
7096   {0, (void *) 0}
7097 };
7098
7099 /* This works around a problem in FreeBSD linker */
7100 #ifdef FREEBSD_WORKAROUND
7101 static const void *lt_preloaded_setup() {
7102   return lt__PROGRAM__LTX_preloaded_symbols;
7103 }
7104 #endif
7105
7106 #ifdef __cplusplus
7107 }
7108 #endif
7109 _LT_EOF
7110           # Now try linking the two files.
7111           mv conftest.$ac_objext conftstm.$ac_objext
7112           lt_save_LIBS="$LIBS"
7113           lt_save_CFLAGS="$CFLAGS"
7114           LIBS="conftstm.$ac_objext"
7115           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7116           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117   (eval $ac_link) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7121             pipe_works=yes
7122           fi
7123           LIBS="$lt_save_LIBS"
7124           CFLAGS="$lt_save_CFLAGS"
7125         else
7126           echo "cannot find nm_test_func in $nlist" >&5
7127         fi
7128       else
7129         echo "cannot find nm_test_var in $nlist" >&5
7130       fi
7131     else
7132       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7133     fi
7134   else
7135     echo "$progname: failed program was:" >&5
7136     cat conftest.$ac_ext >&5
7137   fi
7138   rm -rf conftest* conftst*
7139
7140   # Do not use the global_symbol_pipe unless it works.
7141   if test "$pipe_works" = yes; then
7142     break
7143   else
7144     lt_cv_sys_global_symbol_pipe=
7145   fi
7146 done
7147
7148 fi
7149
7150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7151   lt_cv_sys_global_symbol_to_cdecl=
7152 fi
7153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7154   { echo "$as_me:$LINENO: result: failed" >&5
7155 echo "${ECHO_T}failed" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: ok" >&5
7158 echo "${ECHO_T}ok" >&6; }
7159 fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then
7184   enableval=$enable_libtool_lock;
7185 fi
7186
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188
7189 # Some flags need to be propagated to the compiler or linker for good
7190 # libtool support.
7191 case $host in
7192 ia64-*-hpux*)
7193   # Find out which ABI we are using.
7194   echo 'int i;' > conftest.$ac_ext
7195   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; then
7200     case `/usr/bin/file conftest.$ac_objext` in
7201       *ELF-32*)
7202         HPUX_IA64_MODE="32"
7203         ;;
7204       *ELF-64*)
7205         HPUX_IA64_MODE="64"
7206         ;;
7207     esac
7208   fi
7209   rm -rf conftest*
7210   ;;
7211 *-*-irix6*)
7212   # Find out which ABI we are using.
7213   echo '#line 7213 "configure"' > conftest.$ac_ext
7214   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }; then
7219     if test "$lt_cv_prog_gnu_ld" = yes; then
7220       case `/usr/bin/file conftest.$ac_objext` in
7221         *32-bit*)
7222           LD="${LD-ld} -melf32bsmip"
7223           ;;
7224         *N32*)
7225           LD="${LD-ld} -melf32bmipn32"
7226           ;;
7227         *64-bit*)
7228           LD="${LD-ld} -melf64bmip"
7229         ;;
7230       esac
7231     else
7232       case `/usr/bin/file conftest.$ac_objext` in
7233         *32-bit*)
7234           LD="${LD-ld} -32"
7235           ;;
7236         *N32*)
7237           LD="${LD-ld} -n32"
7238           ;;
7239         *64-bit*)
7240           LD="${LD-ld} -64"
7241           ;;
7242       esac
7243     fi
7244   fi
7245   rm -rf conftest*
7246   ;;
7247
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250   # Find out which ABI we are using.
7251   echo 'int i;' > conftest.$ac_ext
7252   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253   (eval $ac_compile) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; then
7257     case `/usr/bin/file conftest.o` in
7258       *32-bit*)
7259         case $host in
7260           x86_64-*kfreebsd*-gnu)
7261             LD="${LD-ld} -m elf_i386_fbsd"
7262             ;;
7263           x86_64-*linux*)
7264             LD="${LD-ld} -m elf_i386"
7265             ;;
7266           ppc64-*linux*|powerpc64-*linux*)
7267             LD="${LD-ld} -m elf32ppclinux"
7268             ;;
7269           s390x-*linux*)
7270             LD="${LD-ld} -m elf_s390"
7271             ;;
7272           sparc64-*linux*)
7273             LD="${LD-ld} -m elf32_sparc"
7274             ;;
7275         esac
7276         ;;
7277       *64-bit*)
7278         case $host in
7279           x86_64-*kfreebsd*-gnu)
7280             LD="${LD-ld} -m elf_x86_64_fbsd"
7281             ;;
7282           x86_64-*linux*)
7283             LD="${LD-ld} -m elf_x86_64"
7284             ;;
7285           ppc*-*linux*|powerpc*-*linux*)
7286             LD="${LD-ld} -m elf64ppc"
7287             ;;
7288           s390*-*linux*|s390*-*tpf*)
7289             LD="${LD-ld} -m elf64_s390"
7290             ;;
7291           sparc*-*linux*)
7292             LD="${LD-ld} -m elf64_sparc"
7293             ;;
7294         esac
7295         ;;
7296     esac
7297   fi
7298   rm -rf conftest*
7299   ;;
7300
7301 *-*-sco3.2v5*)
7302   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303   SAVE_CFLAGS="$CFLAGS"
7304   CFLAGS="$CFLAGS -belf"
7305   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7307 if test "${lt_cv_cc_needs_belf+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316      cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 int
7324 main ()
7325 {
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7333 case "(($ac_try" in
7334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335   *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338   (eval "$ac_link") 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } && {
7345          test -z "$ac_c_werror_flag" ||
7346          test ! -s conftest.err
7347        } && test -s conftest$ac_exeext &&
7348        $as_test_x conftest$ac_exeext; then
7349   lt_cv_cc_needs_belf=yes
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354         lt_cv_cc_needs_belf=no
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358       conftest$ac_exeext conftest.$ac_ext
7359      ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365 fi
7366 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7367 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7368   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7369     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7370     CFLAGS="$SAVE_CFLAGS"
7371   fi
7372   ;;
7373 sparc*-*solaris*)
7374   # Find out which ABI we are using.
7375   echo 'int i;' > conftest.$ac_ext
7376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>&5
7378   ac_status=$?
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; then
7381     case `/usr/bin/file conftest.o` in
7382     *64-bit*)
7383       case $lt_cv_prog_gnu_ld in
7384       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7385       *)
7386         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7387           LD="${LD-ld} -64"
7388         fi
7389         ;;
7390       esac
7391       ;;
7392     esac
7393   fi
7394   rm -rf conftest*
7395   ;;
7396 esac
7397
7398 need_locks="$enable_libtool_lock"
7399
7400
7401   case $host_os in
7402     rhapsody* | darwin*)
7403     if test -n "$ac_tool_prefix"; then
7404   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   if test -n "$DSYMUTIL"; then
7412   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419   for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7432 if test -n "$DSYMUTIL"; then
7433   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7434 echo "${ECHO_T}$DSYMUTIL" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_DSYMUTIL"; then
7443   ac_ct_DSYMUTIL=$DSYMUTIL
7444   # Extract the first word of "dsymutil", so it can be a program name with args.
7445 set dummy dsymutil; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   if test -n "$ac_ct_DSYMUTIL"; then
7452   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459   for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7472 if test -n "$ac_ct_DSYMUTIL"; then
7473   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7474 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480   if test "x$ac_ct_DSYMUTIL" = x; then
7481     DSYMUTIL=":"
7482   else
7483     case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7486 whose name does not start with the host triplet.  If you think this
7487 configuration is useful to you, please write to autoconf@gnu.org." >&5
7488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet.  If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493     DSYMUTIL=$ac_ct_DSYMUTIL
7494   fi
7495 else
7496   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7497 fi
7498
7499     if test -n "$ac_tool_prefix"; then
7500   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   if test -n "$NMEDIT"; then
7508   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 NMEDIT=$ac_cv_prog_NMEDIT
7528 if test -n "$NMEDIT"; then
7529   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7530 echo "${ECHO_T}$NMEDIT" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536
7537 fi
7538 if test -z "$ac_cv_prog_NMEDIT"; then
7539   ac_ct_NMEDIT=$NMEDIT
7540   # Extract the first word of "nmedit", so it can be a program name with args.
7541 set dummy nmedit; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   if test -n "$ac_ct_NMEDIT"; then
7548   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7568 if test -n "$ac_ct_NMEDIT"; then
7569   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7570 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576   if test "x$ac_ct_NMEDIT" = x; then
7577     NMEDIT=":"
7578   else
7579     case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7582 whose name does not start with the host triplet.  If you think this
7583 configuration is useful to you, please write to autoconf@gnu.org." >&5
7584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7585 whose name does not start with the host triplet.  If you think this
7586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589     NMEDIT=$ac_ct_NMEDIT
7590   fi
7591 else
7592   NMEDIT="$ac_cv_prog_NMEDIT"
7593 fi
7594
7595     if test -n "$ac_tool_prefix"; then
7596   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_prog_LIPO+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   if test -n "$LIPO"; then
7604   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611   for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 LIPO=$ac_cv_prog_LIPO
7624 if test -n "$LIPO"; then
7625   { echo "$as_me:$LINENO: result: $LIPO" >&5
7626 echo "${ECHO_T}$LIPO" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_LIPO"; then
7635   ac_ct_LIPO=$LIPO
7636   # Extract the first word of "lipo", so it can be a program name with args.
7637 set dummy lipo; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   if test -n "$ac_ct_LIPO"; then
7644   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_ac_ct_LIPO="lipo"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7664 if test -n "$ac_ct_LIPO"; then
7665   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7666 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672   if test "x$ac_ct_LIPO" = x; then
7673     LIPO=":"
7674   else
7675     case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7678 whose name does not start with the host triplet.  If you think this
7679 configuration is useful to you, please write to autoconf@gnu.org." >&5
7680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7681 whose name does not start with the host triplet.  If you think this
7682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685     LIPO=$ac_ct_LIPO
7686   fi
7687 else
7688   LIPO="$ac_cv_prog_LIPO"
7689 fi
7690
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_OTOOL+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   if test -n "$OTOOL"; then
7700   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 OTOOL=$ac_cv_prog_OTOOL
7720 if test -n "$OTOOL"; then
7721   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7722 echo "${ECHO_T}$OTOOL" >&6; }
7723 else
7724   { echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_OTOOL"; then
7731   ac_ct_OTOOL=$OTOOL
7732   # Extract the first word of "otool", so it can be a program name with args.
7733 set dummy otool; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   if test -n "$ac_ct_OTOOL"; then
7740   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747   for ac_exec_ext in '' $ac_executable_extensions; do
7748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749     ac_cv_prog_ac_ct_OTOOL="otool"
7750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7760 if test -n "$ac_ct_OTOOL"; then
7761   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7762 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7763 else
7764   { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_OTOOL" = x; then
7769     OTOOL=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7774 whose name does not start with the host triplet.  If you think this
7775 configuration is useful to you, please write to autoconf@gnu.org." >&5
7776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7777 whose name does not start with the host triplet.  If you think this
7778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781     OTOOL=$ac_ct_OTOOL
7782   fi
7783 else
7784   OTOOL="$ac_cv_prog_OTOOL"
7785 fi
7786
7787     if test -n "$ac_tool_prefix"; then
7788   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7792 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   if test -n "$OTOOL64"; then
7796   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7818 echo "${ECHO_T}$OTOOL64" >&6; }
7819 else
7820   { echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827   ac_ct_OTOOL64=$OTOOL64
7828   # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   if test -n "$ac_ct_OTOOL64"; then
7836   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843   for ac_exec_ext in '' $ac_executable_extensions; do
7844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845     ac_cv_prog_ac_ct_OTOOL64="otool64"
7846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7858 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7859 else
7860   { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7862 fi
7863
7864   if test "x$ac_ct_OTOOL64" = x; then
7865     OTOOL64=":"
7866   else
7867     case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7870 whose name does not start with the host triplet.  If you think this
7871 configuration is useful to you, please write to autoconf@gnu.org." >&5
7872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7873 whose name does not start with the host triplet.  If you think this
7874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877     OTOOL64=$ac_ct_OTOOL64
7878   fi
7879 else
7880   OTOOL64="$ac_cv_prog_OTOOL64"
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7910 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7911 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   lt_cv_apple_cc_single_mod=no
7915       if test -z "${LT_MULTI_MODULE}"; then
7916         # By default we will add the -single_module flag. You can override
7917         # by either setting the environment variable LT_MULTI_MODULE
7918         # non-empty at configure time, or by adding -multi_module to the
7919         # link flags.
7920         rm -rf libconftest.dylib*
7921         echo "int foo(void){return 1;}" > conftest.c
7922         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923 -dynamiclib -Wl,-single_module conftest.c" >&5
7924         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7926         _lt_result=$?
7927         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7928           lt_cv_apple_cc_single_mod=yes
7929         else
7930           cat conftest.err >&5
7931         fi
7932         rm -rf libconftest.dylib*
7933         rm -f conftest.*
7934       fi
7935 fi
7936 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7937 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7938     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7939 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7940 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   lt_cv_ld_exported_symbols_list=no
7944       save_LDFLAGS=$LDFLAGS
7945       echo "_main" > conftest.sym
7946       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7947       cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953
7954 int
7955 main ()
7956 {
7957
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (ac_try="$ac_link"
7964 case "(($ac_try" in
7965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966   *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969   (eval "$ac_link") 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } && {
7976          test -z "$ac_c_werror_flag" ||
7977          test ! -s conftest.err
7978        } && test -s conftest$ac_exeext &&
7979        $as_test_x conftest$ac_exeext; then
7980   lt_cv_ld_exported_symbols_list=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985         lt_cv_ld_exported_symbols_list=no
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7989       conftest$ac_exeext conftest.$ac_ext
7990         LDFLAGS="$save_LDFLAGS"
7991
7992 fi
7993 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7994 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7995     case $host_os in
7996     rhapsody* | darwin1.[012])
7997       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7998     darwin1.*)
7999       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8000     darwin*) # darwin 5.x on
8001       # if running on 10.5 or later, the deployment target defaults
8002       # to the OS version, if on x86, and 10.4, the deployment
8003       # target defaults to 10.4. Don't you love it?
8004       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8005         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8006           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8007         10.[012]*)
8008           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009         10.*)
8010           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011       esac
8012     ;;
8013   esac
8014     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8015       _lt_dar_single_mod='$single_module'
8016     fi
8017     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8018       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8019     else
8020       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8021     fi
8022     if test "$DSYMUTIL" != ":"; then
8023       _lt_dsymutil='~$DSYMUTIL $lib || :'
8024     else
8025       _lt_dsymutil=
8026     fi
8027     ;;
8028   esac
8029
8030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8032 if test "${ac_cv_header_stdc+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <stdlib.h>
8042 #include <stdarg.h>
8043 #include <string.h>
8044 #include <float.h>
8045
8046 int
8047 main ()
8048 {
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest.$ac_objext; then
8071   ac_cv_header_stdc=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076         ac_cv_header_stdc=no
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080
8081 if test $ac_cv_header_stdc = yes; then
8082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089 #include <string.h>
8090
8091 _ACEOF
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093   $EGREP "memchr" >/dev/null 2>&1; then
8094   :
8095 else
8096   ac_cv_header_stdc=no
8097 fi
8098 rm -f conftest*
8099
8100 fi
8101
8102 if test $ac_cv_header_stdc = yes; then
8103   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <stdlib.h>
8111
8112 _ACEOF
8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8114   $EGREP "free" >/dev/null 2>&1; then
8115   :
8116 else
8117   ac_cv_header_stdc=no
8118 fi
8119 rm -f conftest*
8120
8121 fi
8122
8123 if test $ac_cv_header_stdc = yes; then
8124   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8125   if test "$cross_compiling" = yes; then
8126   :
8127 else
8128   cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 #include <ctype.h>
8135 #include <stdlib.h>
8136 #if ((' ' & 0x0FF) == 0x020)
8137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8139 #else
8140 # define ISLOWER(c) \
8141                    (('a' <= (c) && (c) <= 'i') \
8142                      || ('j' <= (c) && (c) <= 'r') \
8143                      || ('s' <= (c) && (c) <= 'z'))
8144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8145 #endif
8146
8147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8148 int
8149 main ()
8150 {
8151   int i;
8152   for (i = 0; i < 256; i++)
8153     if (XOR (islower (i), ISLOWER (i))
8154         || toupper (i) != TOUPPER (i))
8155       return 2;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_link") 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   :
8180 else
8181   echo "$as_me: program exited with status $ac_status" >&5
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ( exit $ac_status )
8186 ac_cv_header_stdc=no
8187 fi
8188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8189 fi
8190
8191
8192 fi
8193 fi
8194 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8195 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8196 if test $ac_cv_header_stdc = yes; then
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define STDC_HEADERS 1
8200 _ACEOF
8201
8202 fi
8203
8204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8215                   inttypes.h stdint.h unistd.h
8216 do
8217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229 $ac_includes_default
8230
8231 #include <$ac_header>
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_compile") 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } && {
8247          test -z "$ac_c_werror_flag" ||
8248          test ! -s conftest.err
8249        } && test -s conftest.$ac_objext; then
8250   eval "$as_ac_Header=yes"
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255         eval "$as_ac_Header=no"
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 ac_res=`eval echo '${'$as_ac_Header'}'`
8261                { echo "$as_me:$LINENO: result: $ac_res" >&5
8262 echo "${ECHO_T}$ac_res" >&6; }
8263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264   cat >>confdefs.h <<_ACEOF
8265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266 _ACEOF
8267
8268 fi
8269
8270 done
8271
8272
8273
8274 for ac_header in dlfcn.h
8275 do
8276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288 $ac_includes_default
8289
8290 #include <$ac_header>
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_compile") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && {
8306          test -z "$ac_c_werror_flag" ||
8307          test ! -s conftest.err
8308        } && test -s conftest.$ac_objext; then
8309   eval "$as_ac_Header=yes"
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         eval "$as_ac_Header=no"
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320                { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323   cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 _ACEOF
8326
8327 fi
8328
8329 done
8330
8331
8332
8333 ac_ext=cpp
8334 ac_cpp='$CXXCPP $CPPFLAGS'
8335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8338 if test -z "$CXX"; then
8339   if test -n "$CCC"; then
8340     CXX=$CCC
8341   else
8342     if test -n "$ac_tool_prefix"; then
8343   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8344   do
8345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349 if test "${ac_cv_prog_CXX+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   if test -n "$CXX"; then
8353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360   for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 CXX=$ac_cv_prog_CXX
8373 if test -n "$CXX"; then
8374   { echo "$as_me:$LINENO: result: $CXX" >&5
8375 echo "${ECHO_T}$CXX" >&6; }
8376 else
8377   { echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6; }
8379 fi
8380
8381
8382     test -n "$CXX" && break
8383   done
8384 fi
8385 if test -z "$CXX"; then
8386   ac_ct_CXX=$CXX
8387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8388 do
8389   # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy $ac_prog; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   if test -n "$ac_ct_CXX"; then
8397   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404   for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_prog_ac_ct_CXX="$ac_prog"
8407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8417 if test -n "$ac_ct_CXX"; then
8418   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8419 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8420 else
8421   { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8423 fi
8424
8425
8426   test -n "$ac_ct_CXX" && break
8427 done
8428
8429   if test "x$ac_ct_CXX" = x; then
8430     CXX="g++"
8431   else
8432     case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8435 whose name does not start with the host triplet.  If you think this
8436 configuration is useful to you, please write to autoconf@gnu.org." >&5
8437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet.  If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8440 ac_tool_warned=yes ;;
8441 esac
8442     CXX=$ac_ct_CXX
8443   fi
8444 fi
8445
8446   fi
8447 fi
8448 # Provide some information about the compiler.
8449 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8450 ac_compiler=`set X $ac_compile; echo $2`
8451 { (ac_try="$ac_compiler --version >&5"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_compiler --version >&5") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }
8461 { (ac_try="$ac_compiler -v >&5"
8462 case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_compiler -v >&5") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }
8471 { (ac_try="$ac_compiler -V >&5"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_compiler -V >&5") 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }
8481
8482 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8483 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497 #ifndef __GNUC__
8498        choke me
8499 #endif
8500
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_compile") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && {
8519          test -z "$ac_cxx_werror_flag" ||
8520          test ! -s conftest.err
8521        } && test -s conftest.$ac_objext; then
8522   ac_compiler_gnu=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_compiler_gnu=no
8528 fi
8529
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8532
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8535 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8536 GXX=`test $ac_compiler_gnu = yes && echo yes`
8537 ac_test_CXXFLAGS=${CXXFLAGS+set}
8538 ac_save_CXXFLAGS=$CXXFLAGS
8539 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8540 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8541 if test "${ac_cv_prog_cxx_g+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8545    ac_cxx_werror_flag=yes
8546    ac_cv_prog_cxx_g=no
8547    CXXFLAGS="-g"
8548    cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_compile") 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && {
8577          test -z "$ac_cxx_werror_flag" ||
8578          test ! -s conftest.err
8579        } && test -s conftest.$ac_objext; then
8580   ac_cv_prog_cxx_g=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585         CXXFLAGS=""
8586       cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592
8593 int
8594 main ()
8595 {
8596
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } && {
8615          test -z "$ac_cxx_werror_flag" ||
8616          test ! -s conftest.err
8617        } && test -s conftest.$ac_objext; then
8618   :
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8624          CXXFLAGS="-g"
8625          cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 int
8633 main ()
8634 {
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_compile") 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } && {
8654          test -z "$ac_cxx_werror_flag" ||
8655          test ! -s conftest.err
8656        } && test -s conftest.$ac_objext; then
8657   ac_cv_prog_cxx_g=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8673 fi
8674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8675 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8676 if test "$ac_test_CXXFLAGS" = set; then
8677   CXXFLAGS=$ac_save_CXXFLAGS
8678 elif test $ac_cv_prog_cxx_g = yes; then
8679   if test "$GXX" = yes; then
8680     CXXFLAGS="-g -O2"
8681   else
8682     CXXFLAGS="-g"
8683   fi
8684 else
8685   if test "$GXX" = yes; then
8686     CXXFLAGS="-O2"
8687   else
8688     CXXFLAGS=
8689   fi
8690 fi
8691 ac_ext=c
8692 ac_cpp='$CPP $CPPFLAGS'
8693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8698     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8699     (test "X$CXX" != "Xg++"))) ; then
8700   ac_ext=cpp
8701 ac_cpp='$CXXCPP $CPPFLAGS'
8702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8705 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8706 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8707 if test -z "$CXXCPP"; then
8708   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711       # Double quotes because CXXCPP needs to be expanded
8712     for CXXCPP in "$CXX -E" "/lib/cpp"
8713     do
8714       ac_preproc_ok=false
8715 for ac_cxx_preproc_warn_flag in '' yes
8716 do
8717   # Use a header file that comes with gcc, so configuring glibc
8718   # with a fresh cross-compiler works.
8719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720   # <limits.h> exists even on freestanding compilers.
8721   # On the NeXT, cc -E runs the code through the compiler's parser,
8722   # not just through cpp. "Syntax error" is here to catch this case.
8723   cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729 #ifdef __STDC__
8730 # include <limits.h>
8731 #else
8732 # include <assert.h>
8733 #endif
8734                      Syntax error
8735 _ACEOF
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } >/dev/null && {
8749          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8750          test ! -s conftest.err
8751        }; then
8752   :
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757   # Broken: fails on valid input.
8758 continue
8759 fi
8760
8761 rm -f conftest.err conftest.$ac_ext
8762
8763   # OK, works on sane cases.  Now check whether nonexistent headers
8764   # can be detected and how.
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 #include <ac_nonexistent.h>
8772 _ACEOF
8773 if { (ac_try="$ac_cpp conftest.$ac_ext"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } >/dev/null && {
8786          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8787          test ! -s conftest.err
8788        }; then
8789   # Broken: success on invalid input.
8790 continue
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795   # Passes both tests.
8796 ac_preproc_ok=:
8797 break
8798 fi
8799
8800 rm -f conftest.err conftest.$ac_ext
8801
8802 done
8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8804 rm -f conftest.err conftest.$ac_ext
8805 if $ac_preproc_ok; then
8806   break
8807 fi
8808
8809     done
8810     ac_cv_prog_CXXCPP=$CXXCPP
8811
8812 fi
8813   CXXCPP=$ac_cv_prog_CXXCPP
8814 else
8815   ac_cv_prog_CXXCPP=$CXXCPP
8816 fi
8817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8818 echo "${ECHO_T}$CXXCPP" >&6; }
8819 ac_preproc_ok=false
8820 for ac_cxx_preproc_warn_flag in '' yes
8821 do
8822   # Use a header file that comes with gcc, so configuring glibc
8823   # with a fresh cross-compiler works.
8824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8825   # <limits.h> exists even on freestanding compilers.
8826   # On the NeXT, cc -E runs the code through the compiler's parser,
8827   # not just through cpp. "Syntax error" is here to catch this case.
8828   cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834 #ifdef __STDC__
8835 # include <limits.h>
8836 #else
8837 # include <assert.h>
8838 #endif
8839                      Syntax error
8840 _ACEOF
8841 if { (ac_try="$ac_cpp conftest.$ac_ext"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } >/dev/null && {
8854          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8855          test ! -s conftest.err
8856        }; then
8857   :
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862   # Broken: fails on valid input.
8863 continue
8864 fi
8865
8866 rm -f conftest.err conftest.$ac_ext
8867
8868   # OK, works on sane cases.  Now check whether nonexistent headers
8869   # can be detected and how.
8870   cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 #include <ac_nonexistent.h>
8877 _ACEOF
8878 if { (ac_try="$ac_cpp conftest.$ac_ext"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } >/dev/null && {
8891          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8892          test ! -s conftest.err
8893        }; then
8894   # Broken: success on invalid input.
8895 continue
8896 else
8897   echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900   # Passes both tests.
8901 ac_preproc_ok=:
8902 break
8903 fi
8904
8905 rm -f conftest.err conftest.$ac_ext
8906
8907 done
8908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8909 rm -f conftest.err conftest.$ac_ext
8910 if $ac_preproc_ok; then
8911   :
8912 else
8913   _lt_caught_CXX_error=yes
8914 fi
8915
8916 ac_ext=c
8917 ac_cpp='$CPP $CPPFLAGS'
8918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921
8922 else
8923   _lt_caught_CXX_error=yes
8924 fi
8925
8926
8927
8928
8929
8930 # Set options
8931 # Check whether --enable-shared was given.
8932 if test "${enable_shared+set}" = set; then
8933   enableval=$enable_shared; p=${PACKAGE-default}
8934     case $enableval in
8935     yes) enable_shared=yes ;;
8936     no) enable_shared=no ;;
8937     *)
8938       enable_shared=no
8939       # Look at the argument we got.  We use all the common list separators.
8940       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8941       for pkg in $enableval; do
8942         IFS="$lt_save_ifs"
8943         if test "X$pkg" = "X$p"; then
8944           enable_shared=yes
8945         fi
8946       done
8947       IFS="$lt_save_ifs"
8948       ;;
8949     esac
8950 else
8951   enable_shared=yes
8952 fi
8953
8954
8955
8956
8957
8958
8959
8960 # Check whether --enable-static was given.
8961 if test "${enable_static+set}" = set; then
8962   enableval=$enable_static; p=${PACKAGE-default}
8963     case $enableval in
8964     yes) enable_static=yes ;;
8965     no) enable_static=no ;;
8966     *)
8967      enable_static=no
8968       # Look at the argument we got.  We use all the common list separators.
8969       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970       for pkg in $enableval; do
8971         IFS="$lt_save_ifs"
8972         if test "X$pkg" = "X$p"; then
8973           enable_static=yes
8974         fi
8975       done
8976       IFS="$lt_save_ifs"
8977       ;;
8978     esac
8979 else
8980   enable_static=no
8981 fi
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992         enable_dlopen=no
8993
8994
8995   enable_win32_dll=no
8996
8997
8998
8999
9000
9001 # Check whether --with-pic was given.
9002 if test "${with_pic+set}" = set; then
9003   withval=$with_pic; pic_mode="$withval"
9004 else
9005   pic_mode=default
9006 fi
9007
9008
9009 test -z "$pic_mode" && pic_mode=default
9010
9011
9012
9013
9014
9015
9016
9017   # Check whether --enable-fast-install was given.
9018 if test "${enable_fast_install+set}" = set; then
9019   enableval=$enable_fast_install; p=${PACKAGE-default}
9020     case $enableval in
9021     yes) enable_fast_install=yes ;;
9022     no) enable_fast_install=no ;;
9023     *)
9024       enable_fast_install=no
9025       # Look at the argument we got.  We use all the common list separators.
9026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027       for pkg in $enableval; do
9028         IFS="$lt_save_ifs"
9029         if test "X$pkg" = "X$p"; then
9030           enable_fast_install=yes
9031         fi
9032       done
9033       IFS="$lt_save_ifs"
9034       ;;
9035     esac
9036 else
9037   enable_fast_install=yes
9038 fi
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 # This can be used to rebuild libtool when needed
9051 LIBTOOL_DEPS="$ltmain"
9052
9053 # Always use our own libtool.
9054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080 test -z "$LN_S" && LN_S="ln -s"
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 if test -n "${ZSH_VERSION+set}" ; then
9096    setopt NO_GLOB_SUBST
9097 fi
9098
9099 { echo "$as_me:$LINENO: checking for objdir" >&5
9100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9101 if test "${lt_cv_objdir+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   rm -f .libs 2>/dev/null
9105 mkdir .libs 2>/dev/null
9106 if test -d .libs; then
9107   lt_cv_objdir=.libs
9108 else
9109   # MS-DOS does not allow filenames that begin with a dot.
9110   lt_cv_objdir=_libs
9111 fi
9112 rmdir .libs 2>/dev/null
9113 fi
9114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9116 objdir=$lt_cv_objdir
9117
9118
9119
9120
9121
9122 cat >>confdefs.h <<_ACEOF
9123 #define LT_OBJDIR "$lt_cv_objdir/"
9124 _ACEOF
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 case $host_os in
9143 aix3*)
9144   # AIX sometimes has problems with the GCC collect2 program.  For some
9145   # reason, if we set the COLLECT_NAMES environment variable, the problems
9146   # vanish in a puff of smoke.
9147   if test "X${COLLECT_NAMES+set}" != Xset; then
9148     COLLECT_NAMES=
9149     export COLLECT_NAMES
9150   fi
9151   ;;
9152 esac
9153
9154 # Sed substitution that helps us do robust quoting.  It backslashifies
9155 # metacharacters that are still active within double-quoted strings.
9156 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9157
9158 # Same as above, but do not quote variable references.
9159 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9160
9161 # Sed substitution to delay expansion of an escaped shell variable in a
9162 # double_quote_subst'ed string.
9163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9164
9165 # Sed substitution to delay expansion of an escaped single quote.
9166 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9167
9168 # Sed substitution to avoid accidental globbing in evaled expressions
9169 no_glob_subst='s/\*/\\\*/g'
9170
9171 # Global variables:
9172 ofile=libtool
9173 can_build_shared=yes
9174
9175 # All known linkers require a `.a' archive for static linking (except MSVC,
9176 # which needs '.lib').
9177 libext=a
9178
9179 with_gnu_ld="$lt_cv_prog_gnu_ld"
9180
9181 old_CC="$CC"
9182 old_CFLAGS="$CFLAGS"
9183
9184 # Set sane defaults for various variables
9185 test -z "$CC" && CC=cc
9186 test -z "$LTCC" && LTCC=$CC
9187 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9188 test -z "$LD" && LD=ld
9189 test -z "$ac_objext" && ac_objext=o
9190
9191 for cc_temp in $compiler""; do
9192   case $cc_temp in
9193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9195     \-*) ;;
9196     *) break;;
9197   esac
9198 done
9199 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9200
9201
9202 # Only perform the check for file, if the check method requires it
9203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9204 case $deplibs_check_method in
9205 file_magic*)
9206   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9207     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9208 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   case $MAGIC_CMD in
9213 [\\/*] |  ?:[\\/]*)
9214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9215   ;;
9216 *)
9217   lt_save_MAGIC_CMD="$MAGIC_CMD"
9218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9219   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9220   for ac_dir in $ac_dummy; do
9221     IFS="$lt_save_ifs"
9222     test -z "$ac_dir" && ac_dir=.
9223     if test -f $ac_dir/${ac_tool_prefix}file; then
9224       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9225       if test -n "$file_magic_test_file"; then
9226         case $deplibs_check_method in
9227         "file_magic "*)
9228           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9231             $EGREP "$file_magic_regex" > /dev/null; then
9232             :
9233           else
9234             cat <<_LT_EOF 1>&2
9235
9236 *** Warning: the command libtool uses to detect shared libraries,
9237 *** $file_magic_cmd, produces output that libtool cannot recognize.
9238 *** The result is that libtool may fail to recognize shared libraries
9239 *** as such.  This will affect the creation of libtool libraries that
9240 *** depend on shared libraries, but programs linked with such libtool
9241 *** libraries will work regardless of this problem.  Nevertheless, you
9242 *** may want to report the problem to your system manager and/or to
9243 *** bug-libtool@gnu.org
9244
9245 _LT_EOF
9246           fi ;;
9247         esac
9248       fi
9249       break
9250     fi
9251   done
9252   IFS="$lt_save_ifs"
9253   MAGIC_CMD="$lt_save_MAGIC_CMD"
9254   ;;
9255 esac
9256 fi
9257
9258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9259 if test -n "$MAGIC_CMD"; then
9260   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9262 else
9263   { echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6; }
9265 fi
9266
9267
9268
9269
9270
9271 if test -z "$lt_cv_path_MAGIC_CMD"; then
9272   if test -n "$ac_tool_prefix"; then
9273     { echo "$as_me:$LINENO: checking for file" >&5
9274 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   case $MAGIC_CMD in
9279 [\\/*] |  ?:[\\/]*)
9280   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9281   ;;
9282 *)
9283   lt_save_MAGIC_CMD="$MAGIC_CMD"
9284   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9285   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9286   for ac_dir in $ac_dummy; do
9287     IFS="$lt_save_ifs"
9288     test -z "$ac_dir" && ac_dir=.
9289     if test -f $ac_dir/file; then
9290       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9291       if test -n "$file_magic_test_file"; then
9292         case $deplibs_check_method in
9293         "file_magic "*)
9294           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9295           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9296           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9297             $EGREP "$file_magic_regex" > /dev/null; then
9298             :
9299           else
9300             cat <<_LT_EOF 1>&2
9301
9302 *** Warning: the command libtool uses to detect shared libraries,
9303 *** $file_magic_cmd, produces output that libtool cannot recognize.
9304 *** The result is that libtool may fail to recognize shared libraries
9305 *** as such.  This will affect the creation of libtool libraries that
9306 *** depend on shared libraries, but programs linked with such libtool
9307 *** libraries will work regardless of this problem.  Nevertheless, you
9308 *** may want to report the problem to your system manager and/or to
9309 *** bug-libtool@gnu.org
9310
9311 _LT_EOF
9312           fi ;;
9313         esac
9314       fi
9315       break
9316     fi
9317   done
9318   IFS="$lt_save_ifs"
9319   MAGIC_CMD="$lt_save_MAGIC_CMD"
9320   ;;
9321 esac
9322 fi
9323
9324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9325 if test -n "$MAGIC_CMD"; then
9326   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9327 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9328 else
9329   { echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6; }
9331 fi
9332
9333
9334   else
9335     MAGIC_CMD=:
9336   fi
9337 fi
9338
9339   fi
9340   ;;
9341 esac
9342
9343 # Use C for the default configuration in the libtool script
9344
9345 lt_save_CC="$CC"
9346 ac_ext=c
9347 ac_cpp='$CPP $CPPFLAGS'
9348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9351
9352
9353 # Source file extension for C test sources.
9354 ac_ext=c
9355
9356 # Object file extension for compiled C test sources.
9357 objext=o
9358 objext=$objext
9359
9360 # Code to be used in simple compile tests
9361 lt_simple_compile_test_code="int some_variable = 0;"
9362
9363 # Code to be used in simple link tests
9364 lt_simple_link_test_code='int main(){return(0);}'
9365
9366
9367
9368
9369
9370
9371
9372 # If no C compiler was specified, use CC.
9373 LTCC=${LTCC-"$CC"}
9374
9375 # If no C compiler flags were specified, use CFLAGS.
9376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9377
9378 # Allow CC to be a program name with arguments.
9379 compiler=$CC
9380
9381 # Save the default compiler, since it gets overwritten when the other
9382 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9383 compiler_DEFAULT=$CC
9384
9385 # save warnings/boilerplate of simple test code
9386 ac_outfile=conftest.$ac_objext
9387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9389 _lt_compiler_boilerplate=`cat conftest.err`
9390 $RM conftest*
9391
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_linker_boilerplate=`cat conftest.err`
9396 $RM -r conftest*
9397
9398
9399 ## CAVEAT EMPTOR:
9400 ## There is no encapsulation within the following macros, do not change
9401 ## the running order or otherwise move them around unless you know exactly
9402 ## what you are doing...
9403 if test -n "$compiler"; then
9404
9405 lt_prog_compiler_no_builtin_flag=
9406
9407 if test "$GCC" = yes; then
9408   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9409
9410   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   lt_cv_prog_compiler_rtti_exceptions=no
9416    ac_outfile=conftest.$ac_objext
9417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418    lt_compiler_flag="-fno-rtti -fno-exceptions"
9419    # Insert the option either (1) after the last *FLAGS variable, or
9420    # (2) before a word containing "conftest.", or (3) at the end.
9421    # Note that $ac_compile itself does not contain backslashes and begins
9422    # with a dollar sign (not a hyphen), so the echo should work correctly.
9423    # The option is referenced via a variable to avoid confusing sed.
9424    lt_compile=`echo "$ac_compile" | $SED \
9425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427    -e 's:$: $lt_compiler_flag:'`
9428    (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
9429    (eval "$lt_compile" 2>conftest.err)
9430    ac_status=$?
9431    cat conftest.err >&5
9432    echo "$as_me:9432: \$? = $ac_status" >&5
9433    if (exit $ac_status) && test -s "$ac_outfile"; then
9434      # The compiler can only warn and ignore the option if not recognized
9435      # So say no if there are warnings other than the usual output.
9436      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439        lt_cv_prog_compiler_rtti_exceptions=yes
9440      fi
9441    fi
9442    $RM conftest*
9443
9444 fi
9445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9447
9448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9449     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9450 else
9451     :
9452 fi
9453
9454 fi
9455
9456
9457
9458
9459
9460
9461   lt_prog_compiler_wl=
9462 lt_prog_compiler_pic=
9463 lt_prog_compiler_static=
9464
9465 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9467
9468   if test "$GCC" = yes; then
9469     lt_prog_compiler_wl='-Wl,'
9470     lt_prog_compiler_static='-static'
9471
9472     case $host_os in
9473       aix*)
9474       # All AIX code is PIC.
9475       if test "$host_cpu" = ia64; then
9476         # AIX 5 now supports IA64 processor
9477         lt_prog_compiler_static='-Bstatic'
9478       fi
9479       ;;
9480
9481     amigaos*)
9482       case $host_cpu in
9483       powerpc)
9484             # see comment about AmigaOS4 .so support
9485             lt_prog_compiler_pic='-fPIC'
9486         ;;
9487       m68k)
9488             # FIXME: we need at least 68020 code to build shared libraries, but
9489             # adding the `-m68020' flag to GCC prevents building anything better,
9490             # like `-m68040'.
9491             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9492         ;;
9493       esac
9494       ;;
9495
9496     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497       # PIC is the default for these OSes.
9498       ;;
9499
9500     mingw* | cygwin* | pw32* | os2* | cegcc*)
9501       # This hack is so that the source file can tell whether it is being
9502       # built for inclusion in a dll (and should export symbols for example).
9503       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9504       # (--disable-auto-import) libraries
9505       lt_prog_compiler_pic='-DDLL_EXPORT'
9506       ;;
9507
9508     darwin* | rhapsody*)
9509       # PIC is the default on this platform
9510       # Common symbols not allowed in MH_DYLIB files
9511       lt_prog_compiler_pic='-fno-common'
9512       ;;
9513
9514     hpux*)
9515       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9516       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9517       # sets the default TLS model and affects inlining.
9518       case $host_cpu in
9519       hppa*64*)
9520         # +Z the default
9521         ;;
9522       *)
9523         lt_prog_compiler_pic='-fPIC'
9524         ;;
9525       esac
9526       ;;
9527
9528     interix[3-9]*)
9529       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9530       # Instead, we relocate shared libraries at runtime.
9531       ;;
9532
9533     msdosdjgpp*)
9534       # Just because we use GCC doesn't mean we suddenly get shared libraries
9535       # on systems that don't support them.
9536       lt_prog_compiler_can_build_shared=no
9537       enable_shared=no
9538       ;;
9539
9540     *nto* | *qnx*)
9541       # QNX uses GNU C++, but need to define -shared option too, otherwise
9542       # it will coredump.
9543       lt_prog_compiler_pic='-fPIC -shared'
9544       ;;
9545
9546     sysv4*MP*)
9547       if test -d /usr/nec; then
9548         lt_prog_compiler_pic=-Kconform_pic
9549       fi
9550       ;;
9551
9552     *)
9553       lt_prog_compiler_pic='-fPIC'
9554       ;;
9555     esac
9556   else
9557     # PORTME Check for flag to pass linker flags through the system compiler.
9558     case $host_os in
9559     aix*)
9560       lt_prog_compiler_wl='-Wl,'
9561       if test "$host_cpu" = ia64; then
9562         # AIX 5 now supports IA64 processor
9563         lt_prog_compiler_static='-Bstatic'
9564       else
9565         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9566       fi
9567       ;;
9568
9569     mingw* | cygwin* | pw32* | os2* | cegcc*)
9570       # This hack is so that the source file can tell whether it is being
9571       # built for inclusion in a dll (and should export symbols for example).
9572       lt_prog_compiler_pic='-DDLL_EXPORT'
9573       ;;
9574
9575     hpux9* | hpux10* | hpux11*)
9576       lt_prog_compiler_wl='-Wl,'
9577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9578       # not for PA HP-UX.
9579       case $host_cpu in
9580       hppa*64*|ia64*)
9581         # +Z the default
9582         ;;
9583       *)
9584         lt_prog_compiler_pic='+Z'
9585         ;;
9586       esac
9587       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9588       lt_prog_compiler_static='${wl}-a ${wl}archive'
9589       ;;
9590
9591     irix5* | irix6* | nonstopux*)
9592       lt_prog_compiler_wl='-Wl,'
9593       # PIC (with -KPIC) is the default.
9594       lt_prog_compiler_static='-non_shared'
9595       ;;
9596
9597     linux* | k*bsd*-gnu)
9598       case $cc_basename in
9599       # old Intel for x86_64 which still supported -KPIC.
9600       ecc*)
9601         lt_prog_compiler_wl='-Wl,'
9602         lt_prog_compiler_pic='-KPIC'
9603         lt_prog_compiler_static='-static'
9604         ;;
9605       # icc used to be incompatible with GCC.
9606       # ICC 10 doesn't accept -KPIC any more.
9607       icc* | ifort*)
9608         lt_prog_compiler_wl='-Wl,'
9609         lt_prog_compiler_pic='-fPIC'
9610         lt_prog_compiler_static='-static'
9611         ;;
9612       # Lahey Fortran 8.1.
9613       lf95*)
9614         lt_prog_compiler_wl='-Wl,'
9615         lt_prog_compiler_pic='--shared'
9616         lt_prog_compiler_static='--static'
9617         ;;
9618       pgcc* | pgf77* | pgf90* | pgf95*)
9619         # Portland Group compilers (*not* the Pentium gcc compiler,
9620         # which looks to be a dead project)
9621         lt_prog_compiler_wl='-Wl,'
9622         lt_prog_compiler_pic='-fpic'
9623         lt_prog_compiler_static='-Bstatic'
9624         ;;
9625       ccc*)
9626         lt_prog_compiler_wl='-Wl,'
9627         # All Alpha code is PIC.
9628         lt_prog_compiler_static='-non_shared'
9629         ;;
9630       xl*)
9631         # IBM XL C 8.0/Fortran 10.1 on PPC
9632         lt_prog_compiler_wl='-Wl,'
9633         lt_prog_compiler_pic='-qpic'
9634         lt_prog_compiler_static='-qstaticlink'
9635         ;;
9636       *)
9637         case `$CC -V 2>&1 | sed 5q` in
9638         *Sun\ C*)
9639           # Sun C 5.9
9640           lt_prog_compiler_pic='-KPIC'
9641           lt_prog_compiler_static='-Bstatic'
9642           lt_prog_compiler_wl='-Wl,'
9643           ;;
9644         *Sun\ F*)
9645           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9646           lt_prog_compiler_pic='-KPIC'
9647           lt_prog_compiler_static='-Bstatic'
9648           lt_prog_compiler_wl=''
9649           ;;
9650         esac
9651         ;;
9652       esac
9653       ;;
9654
9655     newsos6)
9656       lt_prog_compiler_pic='-KPIC'
9657       lt_prog_compiler_static='-Bstatic'
9658       ;;
9659
9660     *nto* | *qnx*)
9661       # QNX uses GNU C++, but need to define -shared option too, otherwise
9662       # it will coredump.
9663       lt_prog_compiler_pic='-fPIC -shared'
9664       ;;
9665
9666     osf3* | osf4* | osf5*)
9667       lt_prog_compiler_wl='-Wl,'
9668       # All OSF/1 code is PIC.
9669       lt_prog_compiler_static='-non_shared'
9670       ;;
9671
9672     rdos*)
9673       lt_prog_compiler_static='-non_shared'
9674       ;;
9675
9676     solaris*)
9677       lt_prog_compiler_pic='-KPIC'
9678       lt_prog_compiler_static='-Bstatic'
9679       case $cc_basename in
9680       f77* | f90* | f95*)
9681         lt_prog_compiler_wl='-Qoption ld ';;
9682       *)
9683         lt_prog_compiler_wl='-Wl,';;
9684       esac
9685       ;;
9686
9687     sunos4*)
9688       lt_prog_compiler_wl='-Qoption ld '
9689       lt_prog_compiler_pic='-PIC'
9690       lt_prog_compiler_static='-Bstatic'
9691       ;;
9692
9693     sysv4 | sysv4.2uw2* | sysv4.3*)
9694       lt_prog_compiler_wl='-Wl,'
9695       lt_prog_compiler_pic='-KPIC'
9696       lt_prog_compiler_static='-Bstatic'
9697       ;;
9698
9699     sysv4*MP*)
9700       if test -d /usr/nec ;then
9701         lt_prog_compiler_pic='-Kconform_pic'
9702         lt_prog_compiler_static='-Bstatic'
9703       fi
9704       ;;
9705
9706     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707       lt_prog_compiler_wl='-Wl,'
9708       lt_prog_compiler_pic='-KPIC'
9709       lt_prog_compiler_static='-Bstatic'
9710       ;;
9711
9712     unicos*)
9713       lt_prog_compiler_wl='-Wl,'
9714       lt_prog_compiler_can_build_shared=no
9715       ;;
9716
9717     uts4*)
9718       lt_prog_compiler_pic='-pic'
9719       lt_prog_compiler_static='-Bstatic'
9720       ;;
9721
9722     *)
9723       lt_prog_compiler_can_build_shared=no
9724       ;;
9725     esac
9726   fi
9727
9728 case $host_os in
9729   # For platforms which do not support PIC, -DPIC is meaningless:
9730   *djgpp*)
9731     lt_prog_compiler_pic=
9732     ;;
9733   *)
9734     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9735     ;;
9736 esac
9737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9738 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9739
9740
9741
9742
9743
9744
9745 #
9746 # Check to make sure the PIC flag actually works.
9747 #
9748 if test -n "$lt_prog_compiler_pic"; then
9749   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9750 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9751 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   lt_cv_prog_compiler_pic_works=no
9755    ac_outfile=conftest.$ac_objext
9756    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9758    # Insert the option either (1) after the last *FLAGS variable, or
9759    # (2) before a word containing "conftest.", or (3) at the end.
9760    # Note that $ac_compile itself does not contain backslashes and begins
9761    # with a dollar sign (not a hyphen), so the echo should work correctly.
9762    # The option is referenced via a variable to avoid confusing sed.
9763    lt_compile=`echo "$ac_compile" | $SED \
9764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766    -e 's:$: $lt_compiler_flag:'`
9767    (eval echo "\"\$as_me:9767: $lt_compile\"" >&5)
9768    (eval "$lt_compile" 2>conftest.err)
9769    ac_status=$?
9770    cat conftest.err >&5
9771    echo "$as_me:9771: \$? = $ac_status" >&5
9772    if (exit $ac_status) && test -s "$ac_outfile"; then
9773      # The compiler can only warn and ignore the option if not recognized
9774      # So say no if there are warnings other than the usual output.
9775      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9776      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9778        lt_cv_prog_compiler_pic_works=yes
9779      fi
9780    fi
9781    $RM conftest*
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9786
9787 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9788     case $lt_prog_compiler_pic in
9789      "" | " "*) ;;
9790      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9791      esac
9792 else
9793     lt_prog_compiler_pic=
9794      lt_prog_compiler_can_build_shared=no
9795 fi
9796
9797 fi
9798
9799
9800
9801
9802
9803
9804 #
9805 # Check to make sure the static flag actually works.
9806 #
9807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9808 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9809 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9810 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   lt_cv_prog_compiler_static_works=no
9814    save_LDFLAGS="$LDFLAGS"
9815    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9816    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9817    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9818      # The linker can only warn and ignore the option if not recognized
9819      # So say no if there are warnings
9820      if test -s conftest.err; then
9821        # Append any errors to the config.log.
9822        cat conftest.err 1>&5
9823        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9824        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825        if diff conftest.exp conftest.er2 >/dev/null; then
9826          lt_cv_prog_compiler_static_works=yes
9827        fi
9828      else
9829        lt_cv_prog_compiler_static_works=yes
9830      fi
9831    fi
9832    $RM -r conftest*
9833    LDFLAGS="$save_LDFLAGS"
9834
9835 fi
9836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9837 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9838
9839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9840     :
9841 else
9842     lt_prog_compiler_static=
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   lt_cv_prog_compiler_c_o=no
9857    $RM -r conftest 2>/dev/null
9858    mkdir conftest
9859    cd conftest
9860    mkdir out
9861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9862
9863    lt_compiler_flag="-o out/conftest2.$ac_objext"
9864    # Insert the option either (1) after the last *FLAGS variable, or
9865    # (2) before a word containing "conftest.", or (3) at the end.
9866    # Note that $ac_compile itself does not contain backslashes and begins
9867    # with a dollar sign (not a hyphen), so the echo should work correctly.
9868    lt_compile=`echo "$ac_compile" | $SED \
9869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9871    -e 's:$: $lt_compiler_flag:'`
9872    (eval echo "\"\$as_me:9872: $lt_compile\"" >&5)
9873    (eval "$lt_compile" 2>out/conftest.err)
9874    ac_status=$?
9875    cat out/conftest.err >&5
9876    echo "$as_me:9876: \$? = $ac_status" >&5
9877    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9878    then
9879      # The compiler can only warn and ignore the option if not recognized
9880      # So say no if there are warnings
9881      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9882      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9883      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9884        lt_cv_prog_compiler_c_o=yes
9885      fi
9886    fi
9887    chmod u+w . 2>&5
9888    $RM conftest*
9889    # SGI C++ compiler will create directory out/ii_files/ for
9890    # template instantiation
9891    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9892    $RM out/* && rmdir out
9893    cd ..
9894    $RM -r conftest
9895    $RM conftest*
9896
9897 fi
9898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9900
9901
9902
9903
9904
9905
9906   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   lt_cv_prog_compiler_c_o=no
9912    $RM -r conftest 2>/dev/null
9913    mkdir conftest
9914    cd conftest
9915    mkdir out
9916    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918    lt_compiler_flag="-o out/conftest2.$ac_objext"
9919    # Insert the option either (1) after the last *FLAGS variable, or
9920    # (2) before a word containing "conftest.", or (3) at the end.
9921    # Note that $ac_compile itself does not contain backslashes and begins
9922    # with a dollar sign (not a hyphen), so the echo should work correctly.
9923    lt_compile=`echo "$ac_compile" | $SED \
9924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9926    -e 's:$: $lt_compiler_flag:'`
9927    (eval echo "\"\$as_me:9927: $lt_compile\"" >&5)
9928    (eval "$lt_compile" 2>out/conftest.err)
9929    ac_status=$?
9930    cat out/conftest.err >&5
9931    echo "$as_me:9931: \$? = $ac_status" >&5
9932    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9933    then
9934      # The compiler can only warn and ignore the option if not recognized
9935      # So say no if there are warnings
9936      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9937      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9938      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9939        lt_cv_prog_compiler_c_o=yes
9940      fi
9941    fi
9942    chmod u+w . 2>&5
9943    $RM conftest*
9944    # SGI C++ compiler will create directory out/ii_files/ for
9945    # template instantiation
9946    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9947    $RM out/* && rmdir out
9948    cd ..
9949    $RM -r conftest
9950    $RM conftest*
9951
9952 fi
9953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9955
9956
9957
9958
9959 hard_links="nottested"
9960 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9961   # do not overwrite the value of need_locks provided by the user
9962   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9963 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9964   hard_links=yes
9965   $RM conftest*
9966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967   touch conftest.a
9968   ln conftest.a conftest.b 2>&5 || hard_links=no
9969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9970   { echo "$as_me:$LINENO: result: $hard_links" >&5
9971 echo "${ECHO_T}$hard_links" >&6; }
9972   if test "$hard_links" = no; then
9973     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9974 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9975     need_locks=warn
9976   fi
9977 else
9978   need_locks=no
9979 fi
9980
9981
9982
9983
9984
9985
9986   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9988
9989   runpath_var=
9990   allow_undefined_flag=
9991   always_export_symbols=no
9992   archive_cmds=
9993   archive_expsym_cmds=
9994   compiler_needs_object=no
9995   enable_shared_with_static_runtimes=no
9996   export_dynamic_flag_spec=
9997   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9998   hardcode_automatic=no
9999   hardcode_direct=no
10000   hardcode_direct_absolute=no
10001   hardcode_libdir_flag_spec=
10002   hardcode_libdir_flag_spec_ld=
10003   hardcode_libdir_separator=
10004   hardcode_minus_L=no
10005   hardcode_shlibpath_var=unsupported
10006   inherit_rpath=no
10007   link_all_deplibs=unknown
10008   module_cmds=
10009   module_expsym_cmds=
10010   old_archive_from_new_cmds=
10011   old_archive_from_expsyms_cmds=
10012   thread_safe_flag_spec=
10013   whole_archive_flag_spec=
10014   # include_expsyms should be a list of space-separated symbols to be *always*
10015   # included in the symbol list
10016   include_expsyms=
10017   # exclude_expsyms can be an extended regexp of symbols to exclude
10018   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10019   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10020   # as well as any symbol that contains `d'.
10021   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10022   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10023   # platforms (ab)use it in PIC code, but their linkers get confused if
10024   # the symbol is explicitly referenced.  Since portable code cannot
10025   # rely on this symbol name, it's probably fine to never include it in
10026   # preloaded symbol tables.
10027   # Exclude shared library initialization/finalization symbols.
10028   extract_expsyms_cmds=
10029
10030   case $host_os in
10031   cygwin* | mingw* | pw32* | cegcc*)
10032     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10033     # When not using gcc, we currently assume that we are using
10034     # Microsoft Visual C++.
10035     if test "$GCC" != yes; then
10036       with_gnu_ld=no
10037     fi
10038     ;;
10039   interix*)
10040     # we just hope/assume this is gcc and not c89 (= MSVC++)
10041     with_gnu_ld=yes
10042     ;;
10043   openbsd*)
10044     with_gnu_ld=no
10045     ;;
10046   esac
10047
10048   ld_shlibs=yes
10049   if test "$with_gnu_ld" = yes; then
10050     # If archive_cmds runs LD, not CC, wlarc should be empty
10051     wlarc='${wl}'
10052
10053     # Set some defaults for GNU ld with shared library support. These
10054     # are reset later if shared libraries are not supported. Putting them
10055     # here allows them to be overridden if necessary.
10056     runpath_var=LD_RUN_PATH
10057     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058     export_dynamic_flag_spec='${wl}--export-dynamic'
10059     # ancient GNU ld didn't support --whole-archive et. al.
10060     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10062     else
10063       whole_archive_flag_spec=
10064     fi
10065     supports_anon_versioning=no
10066     case `$LD -v 2>&1` in
10067       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10070       *\ 2.11.*) ;; # other 2.11 versions
10071       *) supports_anon_versioning=yes ;;
10072     esac
10073
10074     # See if GNU ld supports shared libraries.
10075     case $host_os in
10076     aix[3-9]*)
10077       # On AIX/PPC, the GNU linker is very broken
10078       if test "$host_cpu" != ia64; then
10079         ld_shlibs=no
10080         cat <<_LT_EOF 1>&2
10081
10082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10083 *** to be unable to reliably create shared libraries on AIX.
10084 *** Therefore, libtool is disabling shared libraries support.  If you
10085 *** really care for shared libraries, you may want to modify your PATH
10086 *** so that a non-GNU linker is found, and then restart.
10087
10088 _LT_EOF
10089       fi
10090       ;;
10091
10092     amigaos*)
10093       case $host_cpu in
10094       powerpc)
10095             # see comment about AmigaOS4 .so support
10096             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097             archive_expsym_cmds=''
10098         ;;
10099       m68k)
10100             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)'
10101             hardcode_libdir_flag_spec='-L$libdir'
10102             hardcode_minus_L=yes
10103         ;;
10104       esac
10105       ;;
10106
10107     beos*)
10108       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109         allow_undefined_flag=unsupported
10110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111         # support --undefined.  This deserves some investigation.  FIXME
10112         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113       else
10114         ld_shlibs=no
10115       fi
10116       ;;
10117
10118     cygwin* | mingw* | pw32* | cegcc*)
10119       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120       # as there is no search path for DLLs.
10121       hardcode_libdir_flag_spec='-L$libdir'
10122       allow_undefined_flag=unsupported
10123       always_export_symbols=no
10124       enable_shared_with_static_runtimes=yes
10125       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10126
10127       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10128         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129         # If the export-symbols file already is a .def file (1st line
10130         # is EXPORTS), use it as is; otherwise, prepend...
10131         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132           cp $export_symbols $output_objdir/$soname.def;
10133         else
10134           echo EXPORTS > $output_objdir/$soname.def;
10135           cat $export_symbols >> $output_objdir/$soname.def;
10136         fi~
10137         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138       else
10139         ld_shlibs=no
10140       fi
10141       ;;
10142
10143     interix[3-9]*)
10144       hardcode_direct=no
10145       hardcode_shlibpath_var=no
10146       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147       export_dynamic_flag_spec='${wl}-E'
10148       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10149       # Instead, shared libraries are loaded at an image base (0x10000000 by
10150       # default) and relocated if they conflict, which is a slow very memory
10151       # consuming and fragmenting process.  To avoid this, we pick a random,
10152       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10153       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10154       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10155       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'
10156       ;;
10157
10158     gnu* | linux* | tpf* | k*bsd*-gnu)
10159       tmp_diet=no
10160       if test "$host_os" = linux-dietlibc; then
10161         case $cc_basename in
10162           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10163         esac
10164       fi
10165       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10166          && test "$tmp_diet" = no
10167       then
10168         tmp_addflag=
10169         tmp_sharedflag='-shared'
10170         case $cc_basename,$host_cpu in
10171         pgcc*)                          # Portland Group C compiler
10172           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'
10173           tmp_addflag=' $pic_flag'
10174           ;;
10175         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10176           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'
10177           tmp_addflag=' $pic_flag -Mnomain' ;;
10178         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10179           tmp_addflag=' -i_dynamic' ;;
10180         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10181           tmp_addflag=' -i_dynamic -nofor_main' ;;
10182         ifc* | ifort*)                  # Intel Fortran compiler
10183           tmp_addflag=' -nofor_main' ;;
10184         lf95*)                          # Lahey Fortran 8.1
10185           whole_archive_flag_spec=
10186           tmp_sharedflag='--shared' ;;
10187         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10188           tmp_sharedflag='-qmkshrobj'
10189           tmp_addflag= ;;
10190         esac
10191         case `$CC -V 2>&1 | sed 5q` in
10192         *Sun\ C*)                       # Sun C 5.9
10193           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'
10194           compiler_needs_object=yes
10195           tmp_sharedflag='-G' ;;
10196         *Sun\ F*)                       # Sun Fortran 8.3
10197           tmp_sharedflag='-G' ;;
10198         esac
10199         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200
10201         if test "x$supports_anon_versioning" = xyes; then
10202           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204             echo "local: *; };" >> $output_objdir/$libname.ver~
10205             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10206         fi
10207
10208         case $cc_basename in
10209         xlf*)
10210           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10211           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10212           hardcode_libdir_flag_spec=
10213           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10214           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10215           if test "x$supports_anon_versioning" = xyes; then
10216             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10217               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10218               echo "local: *; };" >> $output_objdir/$libname.ver~
10219               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10220           fi
10221           ;;
10222         esac
10223       else
10224         ld_shlibs=no
10225       fi
10226       ;;
10227
10228     netbsd*)
10229       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10231         wlarc=
10232       else
10233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235       fi
10236       ;;
10237
10238     solaris*)
10239       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10240         ld_shlibs=no
10241         cat <<_LT_EOF 1>&2
10242
10243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10244 *** create shared libraries on Solaris systems.  Therefore, libtool
10245 *** is disabling shared libraries support.  We urge you to upgrade GNU
10246 *** binutils to release 2.9.1 or newer.  Another option is to modify
10247 *** your PATH or compiler configuration so that the native linker is
10248 *** used, and then restart.
10249
10250 _LT_EOF
10251       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254       else
10255         ld_shlibs=no
10256       fi
10257       ;;
10258
10259     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10260       case `$LD -v 2>&1` in
10261         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10262         ld_shlibs=no
10263         cat <<_LT_EOF 1>&2
10264
10265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10266 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10267 *** is disabling shared libraries support.  We urge you to upgrade GNU
10268 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10269 *** your PATH or compiler configuration so that the native linker is
10270 *** used, and then restart.
10271
10272 _LT_EOF
10273         ;;
10274         *)
10275           # For security reasons, it is highly recommended that you always
10276           # use absolute paths for naming shared libraries, and exclude the
10277           # DT_RUNPATH tag from executables and libraries.  But doing so
10278           # requires that you compile everything twice, which is a pain.
10279           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10280             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10283           else
10284             ld_shlibs=no
10285           fi
10286         ;;
10287       esac
10288       ;;
10289
10290     sunos4*)
10291       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10292       wlarc=
10293       hardcode_direct=yes
10294       hardcode_shlibpath_var=no
10295       ;;
10296
10297     *)
10298       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10299         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10301       else
10302         ld_shlibs=no
10303       fi
10304       ;;
10305     esac
10306
10307     if test "$ld_shlibs" = no; then
10308       runpath_var=
10309       hardcode_libdir_flag_spec=
10310       export_dynamic_flag_spec=
10311       whole_archive_flag_spec=
10312     fi
10313   else
10314     # PORTME fill in a description of your system's linker (not GNU ld)
10315     case $host_os in
10316     aix3*)
10317       allow_undefined_flag=unsupported
10318       always_export_symbols=yes
10319       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'
10320       # Note: this linker hardcodes the directories in LIBPATH if there
10321       # are no directories specified by -L.
10322       hardcode_minus_L=yes
10323       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10324         # Neither direct hardcoding nor static linking is supported with a
10325         # broken collect2.
10326         hardcode_direct=unsupported
10327       fi
10328       ;;
10329
10330     aix[4-9]*)
10331       if test "$host_cpu" = ia64; then
10332         # On IA64, the linker does run time linking by default, so we don't
10333         # have to do anything special.
10334         aix_use_runtimelinking=no
10335         exp_sym_flag='-Bexport'
10336         no_entry_flag=""
10337       else
10338         # If we're using GNU nm, then we don't want the "-C" option.
10339         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10340         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341           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'
10342         else
10343           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'
10344         fi
10345         aix_use_runtimelinking=no
10346
10347         # Test if we are trying to use run time linking or normal
10348         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349         # need to do runtime linking.
10350         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351           for ld_flag in $LDFLAGS; do
10352           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353             aix_use_runtimelinking=yes
10354             break
10355           fi
10356           done
10357           ;;
10358         esac
10359
10360         exp_sym_flag='-bexport'
10361         no_entry_flag='-bnoentry'
10362       fi
10363
10364       # When large executables or shared objects are built, AIX ld can
10365       # have problems creating the table of contents.  If linking a library
10366       # or program results in "error TOC overflow" add -mminimal-toc to
10367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10369
10370       archive_cmds=''
10371       hardcode_direct=yes
10372       hardcode_direct_absolute=yes
10373       hardcode_libdir_separator=':'
10374       link_all_deplibs=yes
10375       file_list_spec='${wl}-f,'
10376
10377       if test "$GCC" = yes; then
10378         case $host_os in aix4.[012]|aix4.[012].*)
10379         # We only want to do this on AIX 4.2 and lower, the check
10380         # below for broken collect2 doesn't work under 4.3+
10381           collect2name=`${CC} -print-prog-name=collect2`
10382           if test -f "$collect2name" &&
10383            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10384           then
10385           # We have reworked collect2
10386           :
10387           else
10388           # We have old collect2
10389           hardcode_direct=unsupported
10390           # It fails to find uninstalled libraries when the uninstalled
10391           # path is not listed in the libpath.  Setting hardcode_minus_L
10392           # to unsupported forces relinking
10393           hardcode_minus_L=yes
10394           hardcode_libdir_flag_spec='-L$libdir'
10395           hardcode_libdir_separator=
10396           fi
10397           ;;
10398         esac
10399         shared_flag='-shared'
10400         if test "$aix_use_runtimelinking" = yes; then
10401           shared_flag="$shared_flag "'${wl}-G'
10402         fi
10403       else
10404         # not using gcc
10405         if test "$host_cpu" = ia64; then
10406         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10407         # chokes on -Wl,-G. The following line is correct:
10408           shared_flag='-G'
10409         else
10410           if test "$aix_use_runtimelinking" = yes; then
10411             shared_flag='${wl}-G'
10412           else
10413             shared_flag='${wl}-bM:SRE'
10414           fi
10415         fi
10416       fi
10417
10418       export_dynamic_flag_spec='${wl}-bexpall'
10419       # It seems that -bexpall does not export symbols beginning with
10420       # underscore (_), so it is better to generate a list of symbols to export.
10421       always_export_symbols=yes
10422       if test "$aix_use_runtimelinking" = yes; then
10423         # Warning - without using the other runtime loading flags (-brtl),
10424         # -berok will link without error, but may produce a broken library.
10425         allow_undefined_flag='-berok'
10426         # Determine the default libpath from the value encoded in an
10427         # empty executable.
10428         cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h.  */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h.  */
10434
10435 int
10436 main ()
10437 {
10438
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_link") 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && {
10457          test -z "$ac_c_werror_flag" ||
10458          test ! -s conftest.err
10459        } && test -s conftest$ac_exeext &&
10460        $as_test_x conftest$ac_exeext; then
10461
10462 lt_aix_libpath_sed='
10463     /Import File Strings/,/^$/ {
10464         /^0/ {
10465             s/^0  *\(.*\)$/\1/
10466             p
10467         }
10468     }'
10469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10470 # Check for a 64-bit object if we didn't find anything.
10471 if test -z "$aix_libpath"; then
10472   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10473 fi
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482       conftest$ac_exeext conftest.$ac_ext
10483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10484
10485         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10486         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"
10487       else
10488         if test "$host_cpu" = ia64; then
10489           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10490           allow_undefined_flag="-z nodefs"
10491           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"
10492         else
10493          # Determine the default libpath from the value encoded in an
10494          # empty executable.
10495          cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501
10502 int
10503 main ()
10504 {
10505
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } && {
10524          test -z "$ac_c_werror_flag" ||
10525          test ! -s conftest.err
10526        } && test -s conftest$ac_exeext &&
10527        $as_test_x conftest$ac_exeext; then
10528
10529 lt_aix_libpath_sed='
10530     /Import File Strings/,/^$/ {
10531         /^0/ {
10532             s/^0  *\(.*\)$/\1/
10533             p
10534         }
10535     }'
10536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 # Check for a 64-bit object if we didn't find anything.
10538 if test -z "$aix_libpath"; then
10539   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 fi
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545
10546 fi
10547
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549       conftest$ac_exeext conftest.$ac_ext
10550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10551
10552          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10553           # Warning - without using the other run time loading flags,
10554           # -berok will link without error, but may produce a broken library.
10555           no_undefined_flag=' ${wl}-bernotok'
10556           allow_undefined_flag=' ${wl}-berok'
10557           # Exported symbols can be pulled into shared objects from archives
10558           whole_archive_flag_spec='$convenience'
10559           archive_cmds_need_lc=yes
10560           # This is similar to how AIX traditionally builds its shared libraries.
10561           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'
10562         fi
10563       fi
10564       ;;
10565
10566     amigaos*)
10567       case $host_cpu in
10568       powerpc)
10569             # see comment about AmigaOS4 .so support
10570             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571             archive_expsym_cmds=''
10572         ;;
10573       m68k)
10574             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)'
10575             hardcode_libdir_flag_spec='-L$libdir'
10576             hardcode_minus_L=yes
10577         ;;
10578       esac
10579       ;;
10580
10581     bsdi[45]*)
10582       export_dynamic_flag_spec=-rdynamic
10583       ;;
10584
10585     cygwin* | mingw* | pw32* | cegcc*)
10586       # When not using gcc, we currently assume that we are using
10587       # Microsoft Visual C++.
10588       # hardcode_libdir_flag_spec is actually meaningless, as there is
10589       # no search path for DLLs.
10590       hardcode_libdir_flag_spec=' '
10591       allow_undefined_flag=unsupported
10592       # Tell ltmain to make .lib files, not .a files.
10593       libext=lib
10594       # Tell ltmain to make .dll files, not .so files.
10595       shrext_cmds=".dll"
10596       # FIXME: Setting linknames here is a bad hack.
10597       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10598       # The linker will automatically build a .lib file if we build a DLL.
10599       old_archive_from_new_cmds='true'
10600       # FIXME: Should let the user specify the lib program.
10601       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10602       fix_srcfile_path='`cygpath -w "$srcfile"`'
10603       enable_shared_with_static_runtimes=yes
10604       ;;
10605
10606     darwin* | rhapsody*)
10607
10608
10609   archive_cmds_need_lc=no
10610   hardcode_direct=no
10611   hardcode_automatic=yes
10612   hardcode_shlibpath_var=unsupported
10613   whole_archive_flag_spec=''
10614   link_all_deplibs=yes
10615   allow_undefined_flag="$_lt_dar_allow_undefined"
10616   case $cc_basename in
10617      ifort*) _lt_dar_can_shared=yes ;;
10618      *) _lt_dar_can_shared=$GCC ;;
10619   esac
10620   if test "$_lt_dar_can_shared" = "yes"; then
10621     output_verbose_link_cmd=echo
10622     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10623     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10624     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}"
10625     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}"
10626
10627   else
10628   ld_shlibs=no
10629   fi
10630
10631       ;;
10632
10633     dgux*)
10634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635       hardcode_libdir_flag_spec='-L$libdir'
10636       hardcode_shlibpath_var=no
10637       ;;
10638
10639     freebsd1*)
10640       ld_shlibs=no
10641       ;;
10642
10643     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10644     # support.  Future versions do this automatically, but an explicit c++rt0.o
10645     # does not break anything, and helps significantly (at the cost of a little
10646     # extra space).
10647     freebsd2.2*)
10648       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10649       hardcode_libdir_flag_spec='-R$libdir'
10650       hardcode_direct=yes
10651       hardcode_shlibpath_var=no
10652       ;;
10653
10654     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10655     freebsd2*)
10656       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10657       hardcode_direct=yes
10658       hardcode_minus_L=yes
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10663     freebsd* | dragonfly*)
10664       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10665       hardcode_libdir_flag_spec='-R$libdir'
10666       hardcode_direct=yes
10667       hardcode_shlibpath_var=no
10668       ;;
10669
10670     hpux9*)
10671       if test "$GCC" = yes; then
10672         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'
10673       else
10674         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'
10675       fi
10676       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677       hardcode_libdir_separator=:
10678       hardcode_direct=yes
10679
10680       # hardcode_minus_L: Not really in the search PATH,
10681       # but as the default location of the library.
10682       hardcode_minus_L=yes
10683       export_dynamic_flag_spec='${wl}-E'
10684       ;;
10685
10686     hpux10*)
10687       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10688         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10689       else
10690         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10691       fi
10692       if test "$with_gnu_ld" = no; then
10693         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10694         hardcode_libdir_flag_spec_ld='+b $libdir'
10695         hardcode_libdir_separator=:
10696         hardcode_direct=yes
10697         hardcode_direct_absolute=yes
10698         export_dynamic_flag_spec='${wl}-E'
10699         # hardcode_minus_L: Not really in the search PATH,
10700         # but as the default location of the library.
10701         hardcode_minus_L=yes
10702       fi
10703       ;;
10704
10705     hpux11*)
10706       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10707         case $host_cpu in
10708         hppa*64*)
10709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710           ;;
10711         ia64*)
10712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713           ;;
10714         *)
10715           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716           ;;
10717         esac
10718       else
10719         case $host_cpu in
10720         hppa*64*)
10721           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         ia64*)
10724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         *)
10727           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         esac
10730       fi
10731       if test "$with_gnu_ld" = no; then
10732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733         hardcode_libdir_separator=:
10734
10735         case $host_cpu in
10736         hppa*64*|ia64*)
10737           hardcode_direct=no
10738           hardcode_shlibpath_var=no
10739           ;;
10740         *)
10741           hardcode_direct=yes
10742           hardcode_direct_absolute=yes
10743           export_dynamic_flag_spec='${wl}-E'
10744
10745           # hardcode_minus_L: Not really in the search PATH,
10746           # but as the default location of the library.
10747           hardcode_minus_L=yes
10748           ;;
10749         esac
10750       fi
10751       ;;
10752
10753     irix5* | irix6* | nonstopux*)
10754       if test "$GCC" = yes; then
10755         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'
10756         # Try to use the -exported_symbol ld option, if it does not
10757         # work, assume that -exports_file does not work either and
10758         # implicitly export all symbols.
10759         save_LDFLAGS="$LDFLAGS"
10760         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10761         cat >conftest.$ac_ext <<_ACEOF
10762 int foo(void) {}
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_link") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } && {
10778          test -z "$ac_c_werror_flag" ||
10779          test ! -s conftest.err
10780        } && test -s conftest$ac_exeext &&
10781        $as_test_x conftest$ac_exeext; then
10782   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'
10783
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788
10789 fi
10790
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792       conftest$ac_exeext conftest.$ac_ext
10793         LDFLAGS="$save_LDFLAGS"
10794       else
10795         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'
10796         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'
10797       fi
10798       archive_cmds_need_lc='no'
10799       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10800       hardcode_libdir_separator=:
10801       inherit_rpath=yes
10802       link_all_deplibs=yes
10803       ;;
10804
10805     netbsd*)
10806       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10807         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10808       else
10809         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10810       fi
10811       hardcode_libdir_flag_spec='-R$libdir'
10812       hardcode_direct=yes
10813       hardcode_shlibpath_var=no
10814       ;;
10815
10816     newsos6)
10817       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818       hardcode_direct=yes
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     *nto* | *qnx*)
10825       ;;
10826
10827     openbsd*)
10828       if test -f /usr/libexec/ld.so; then
10829         hardcode_direct=yes
10830         hardcode_shlibpath_var=no
10831         hardcode_direct_absolute=yes
10832         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10834           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10835           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10836           export_dynamic_flag_spec='${wl}-E'
10837         else
10838           case $host_os in
10839            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10840              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10841              hardcode_libdir_flag_spec='-R$libdir'
10842              ;;
10843            *)
10844              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10846              ;;
10847           esac
10848         fi
10849       else
10850         ld_shlibs=no
10851       fi
10852       ;;
10853
10854     os2*)
10855       hardcode_libdir_flag_spec='-L$libdir'
10856       hardcode_minus_L=yes
10857       allow_undefined_flag=unsupported
10858       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'
10859       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10860       ;;
10861
10862     osf3*)
10863       if test "$GCC" = yes; then
10864         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10865         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'
10866       else
10867         allow_undefined_flag=' -expect_unresolved \*'
10868         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'
10869       fi
10870       archive_cmds_need_lc='no'
10871       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10872       hardcode_libdir_separator=:
10873       ;;
10874
10875     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10876       if test "$GCC" = yes; then
10877         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10878         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'
10879         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880       else
10881         allow_undefined_flag=' -expect_unresolved \*'
10882         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'
10883         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~
10884         $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'
10885
10886         # Both c and cxx compiler support -rpath directly
10887         hardcode_libdir_flag_spec='-rpath $libdir'
10888       fi
10889       archive_cmds_need_lc='no'
10890       hardcode_libdir_separator=:
10891       ;;
10892
10893     solaris*)
10894       no_undefined_flag=' -z defs'
10895       if test "$GCC" = yes; then
10896         wlarc='${wl}'
10897         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10898         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10899           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10900       else
10901         case `$CC -V 2>&1` in
10902         *"Compilers 5.0"*)
10903           wlarc=''
10904           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10907           ;;
10908         *)
10909           wlarc='${wl}'
10910           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10911           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913           ;;
10914         esac
10915       fi
10916       hardcode_libdir_flag_spec='-R$libdir'
10917       hardcode_shlibpath_var=no
10918       case $host_os in
10919       solaris2.[0-5] | solaris2.[0-5].*) ;;
10920       *)
10921         # The compiler driver will combine and reorder linker options,
10922         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10923         # but is careful enough not to reorder.
10924         # Supported since Solaris 2.6 (maybe 2.5.1?)
10925         if test "$GCC" = yes; then
10926           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10927         else
10928           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10929         fi
10930         ;;
10931       esac
10932       link_all_deplibs=yes
10933       ;;
10934
10935     sunos4*)
10936       if test "x$host_vendor" = xsequent; then
10937         # Use $CC to link under sequent, because it throws in some extra .o
10938         # files that make .init and .fini sections work.
10939         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10940       else
10941         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10942       fi
10943       hardcode_libdir_flag_spec='-L$libdir'
10944       hardcode_direct=yes
10945       hardcode_minus_L=yes
10946       hardcode_shlibpath_var=no
10947       ;;
10948
10949     sysv4)
10950       case $host_vendor in
10951         sni)
10952           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953           hardcode_direct=yes # is this really true???
10954         ;;
10955         siemens)
10956           ## LD is ld it makes a PLAMLIB
10957           ## CC just makes a GrossModule.
10958           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10959           reload_cmds='$CC -r -o $output$reload_objs'
10960           hardcode_direct=no
10961         ;;
10962         motorola)
10963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10965         ;;
10966       esac
10967       runpath_var='LD_RUN_PATH'
10968       hardcode_shlibpath_var=no
10969       ;;
10970
10971     sysv4.3*)
10972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973       hardcode_shlibpath_var=no
10974       export_dynamic_flag_spec='-Bexport'
10975       ;;
10976
10977     sysv4*MP*)
10978       if test -d /usr/nec; then
10979         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980         hardcode_shlibpath_var=no
10981         runpath_var=LD_RUN_PATH
10982         hardcode_runpath_var=yes
10983         ld_shlibs=yes
10984       fi
10985       ;;
10986
10987     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10988       no_undefined_flag='${wl}-z,text'
10989       archive_cmds_need_lc=no
10990       hardcode_shlibpath_var=no
10991       runpath_var='LD_RUN_PATH'
10992
10993       if test "$GCC" = yes; then
10994         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996       else
10997         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999       fi
11000       ;;
11001
11002     sysv5* | sco3.2v5* | sco5v6*)
11003       # Note: We can NOT use -z defs as we might desire, because we do not
11004       # link with -lc, and that would cause any symbols used from libc to
11005       # always be unresolved, which means just about no library would
11006       # ever link correctly.  If we're not using GNU ld we use -z text
11007       # though, which does catch some bad symbols but isn't as heavy-handed
11008       # as -z defs.
11009       no_undefined_flag='${wl}-z,text'
11010       allow_undefined_flag='${wl}-z,nodefs'
11011       archive_cmds_need_lc=no
11012       hardcode_shlibpath_var=no
11013       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11014       hardcode_libdir_separator=':'
11015       link_all_deplibs=yes
11016       export_dynamic_flag_spec='${wl}-Bexport'
11017       runpath_var='LD_RUN_PATH'
11018
11019       if test "$GCC" = yes; then
11020         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       else
11023         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025       fi
11026       ;;
11027
11028     uts4*)
11029       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11030       hardcode_libdir_flag_spec='-L$libdir'
11031       hardcode_shlibpath_var=no
11032       ;;
11033
11034     *)
11035       ld_shlibs=no
11036       ;;
11037     esac
11038
11039     if test x$host_vendor = xsni; then
11040       case $host in
11041       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11042         export_dynamic_flag_spec='${wl}-Blargedynsym'
11043         ;;
11044       esac
11045     fi
11046   fi
11047
11048 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11049 echo "${ECHO_T}$ld_shlibs" >&6; }
11050 test "$ld_shlibs" = no && can_build_shared=no
11051
11052 with_gnu_ld=$with_gnu_ld
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068 #
11069 # Do we need to explicitly link libc?
11070 #
11071 case "x$archive_cmds_need_lc" in
11072 x|xyes)
11073   # Assume -lc should be added
11074   archive_cmds_need_lc=yes
11075
11076   if test "$enable_shared" = yes && test "$GCC" = yes; then
11077     case $archive_cmds in
11078     *'~'*)
11079       # FIXME: we may have to deal with multi-command sequences.
11080       ;;
11081     '$CC '*)
11082       # Test whether the compiler implicitly links with -lc since on some
11083       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11084       # to ld, don't add -lc before -lgcc.
11085       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11086 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11087       $RM conftest*
11088       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11089
11090       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } 2>conftest.err; then
11095         soname=conftest
11096         lib=conftest
11097         libobjs=conftest.$ac_objext
11098         deplibs=
11099         wl=$lt_prog_compiler_wl
11100         pic_flag=$lt_prog_compiler_pic
11101         compiler_flags=-v
11102         linker_flags=-v
11103         verstring=
11104         output_objdir=.
11105         libname=conftest
11106         lt_save_allow_undefined_flag=$allow_undefined_flag
11107         allow_undefined_flag=
11108         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11109   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }
11113         then
11114           archive_cmds_need_lc=no
11115         else
11116           archive_cmds_need_lc=yes
11117         fi
11118         allow_undefined_flag=$lt_save_allow_undefined_flag
11119       else
11120         cat conftest.err 1>&5
11121       fi
11122       $RM conftest*
11123       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11124 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11125       ;;
11126     esac
11127   fi
11128   ;;
11129 esac
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11289
11290 if test "$GCC" = yes; then
11291   case $host_os in
11292     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11293     *) lt_awk_arg="/^libraries:/" ;;
11294   esac
11295   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11296   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11297     # if the path contains ";" then we assume it to be the separator
11298     # otherwise default to the standard path separator (i.e. ":") - it is
11299     # assumed that no part of a normal pathname contains ";" but that should
11300     # okay in the real world where ";" in dirpaths is itself problematic.
11301     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11302   else
11303     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11304   fi
11305   # Ok, now we have the path, separated by spaces, we can step through it
11306   # and add multilib dir if necessary.
11307   lt_tmp_lt_search_path_spec=
11308   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11309   for lt_sys_path in $lt_search_path_spec; do
11310     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11311       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11312     else
11313       test -d "$lt_sys_path" && \
11314         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11315     fi
11316   done
11317   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11318 BEGIN {RS=" "; FS="/|\n";} {
11319   lt_foo="";
11320   lt_count=0;
11321   for (lt_i = NF; lt_i > 0; lt_i--) {
11322     if ($lt_i != "" && $lt_i != ".") {
11323       if ($lt_i == "..") {
11324         lt_count++;
11325       } else {
11326         if (lt_count == 0) {
11327           lt_foo="/" $lt_i lt_foo;
11328         } else {
11329           lt_count--;
11330         }
11331       }
11332     }
11333   }
11334   if (lt_foo != "") { lt_freq[lt_foo]++; }
11335   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11336 }'`
11337   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11338 else
11339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11340 fi
11341 library_names_spec=
11342 libname_spec='lib$name'
11343 soname_spec=
11344 shrext_cmds=".so"
11345 postinstall_cmds=
11346 postuninstall_cmds=
11347 finish_cmds=
11348 finish_eval=
11349 shlibpath_var=
11350 shlibpath_overrides_runpath=unknown
11351 version_type=none
11352 dynamic_linker="$host_os ld.so"
11353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11354 need_lib_prefix=unknown
11355 hardcode_into_libs=no
11356
11357 # when you set need_version to no, make sure it does not cause -set_version
11358 # flags to be left without arguments
11359 need_version=unknown
11360
11361 case $host_os in
11362 aix3*)
11363   version_type=linux
11364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11365   shlibpath_var=LIBPATH
11366
11367   # AIX 3 has no versioning support, so we append a major version to the name.
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   ;;
11370
11371 aix[4-9]*)
11372   version_type=linux
11373   need_lib_prefix=no
11374   need_version=no
11375   hardcode_into_libs=yes
11376   if test "$host_cpu" = ia64; then
11377     # AIX 5 supports IA64
11378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11379     shlibpath_var=LD_LIBRARY_PATH
11380   else
11381     # With GCC up to 2.95.x, collect2 would create an import file
11382     # for dependence libraries.  The import file would start with
11383     # the line `#! .'.  This would cause the generated library to
11384     # depend on `.', always an invalid library.  This was fixed in
11385     # development snapshots of GCC prior to 3.0.
11386     case $host_os in
11387       aix4 | aix4.[01] | aix4.[01].*)
11388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11389            echo ' yes '
11390            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11391         :
11392       else
11393         can_build_shared=no
11394       fi
11395       ;;
11396     esac
11397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11398     # soname into executable. Probably we can add versioning support to
11399     # collect2, so additional links can be useful in future.
11400     if test "$aix_use_runtimelinking" = yes; then
11401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11402       # instead of lib<name>.a to let people know that these are not
11403       # typical AIX shared libraries.
11404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405     else
11406       # We preserve .a as extension for shared libraries through AIX4.2
11407       # and later when we are not doing run time linking.
11408       library_names_spec='${libname}${release}.a $libname.a'
11409       soname_spec='${libname}${release}${shared_ext}$major'
11410     fi
11411     shlibpath_var=LIBPATH
11412   fi
11413   ;;
11414
11415 amigaos*)
11416   case $host_cpu in
11417   powerpc)
11418     # Since July 2007 AmigaOS4 officially supports .so libraries.
11419     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421     ;;
11422   m68k)
11423     library_names_spec='$libname.ixlibrary $libname.a'
11424     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11425     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'
11426     ;;
11427   esac
11428   ;;
11429
11430 beos*)
11431   library_names_spec='${libname}${shared_ext}'
11432   dynamic_linker="$host_os ld.so"
11433   shlibpath_var=LIBRARY_PATH
11434   ;;
11435
11436 bsdi[45]*)
11437   version_type=linux
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442   shlibpath_var=LD_LIBRARY_PATH
11443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445   # the default ld.so.conf also contains /usr/contrib/lib and
11446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447   # libtool to hard-code these into programs
11448   ;;
11449
11450 cygwin* | mingw* | pw32* | cegcc*)
11451   version_type=windows
11452   shrext_cmds=".dll"
11453   need_version=no
11454   need_lib_prefix=no
11455
11456   case $GCC,$host_os in
11457   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11458     library_names_spec='$libname.dll.a'
11459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460     postinstall_cmds='base_file=`basename \${file}`~
11461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11462       dldir=$destdir/`dirname \$dlpath`~
11463       test -d \$dldir || mkdir -p \$dldir~
11464       $install_prog $dir/$dlname \$dldir/$dlname~
11465       chmod a+x \$dldir/$dlname~
11466       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11468       fi'
11469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470       dlpath=$dir/\$dldll~
11471        $RM \$dlpath'
11472     shlibpath_overrides_runpath=yes
11473
11474     case $host_os in
11475     cygwin*)
11476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11479       ;;
11480     mingw* | cegcc*)
11481       # MinGW DLLs use traditional 'lib' prefix
11482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11485         # It is most probably a Windows format PATH printed by
11486         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11487         # path with ; separators, and with drive letters. We can handle the
11488         # drive letters (cygwin fileutils understands them), so leave them,
11489         # especially as we might pass files found there to a mingw objdump,
11490         # which wouldn't understand a cygwinified path. Ahh.
11491         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11492       else
11493         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11494       fi
11495       ;;
11496     pw32*)
11497       # pw32 DLLs use 'pw' prefix rather than 'lib'
11498       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11499       ;;
11500     esac
11501     ;;
11502
11503   *)
11504     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11505     ;;
11506   esac
11507   dynamic_linker='Win32 ld.exe'
11508   # FIXME: first we should search . and the directory the executable is in
11509   shlibpath_var=PATH
11510   ;;
11511
11512 darwin* | rhapsody*)
11513   dynamic_linker="$host_os dyld"
11514   version_type=darwin
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11518   soname_spec='${libname}${release}${major}$shared_ext'
11519   shlibpath_overrides_runpath=yes
11520   shlibpath_var=DYLD_LIBRARY_PATH
11521   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11522
11523   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11524   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11525   ;;
11526
11527 dgux*)
11528   version_type=linux
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   ;;
11535
11536 freebsd1*)
11537   dynamic_linker=no
11538   ;;
11539
11540 freebsd* | dragonfly*)
11541   # DragonFly does not have aout.  When/if they implement a new
11542   # versioning mechanism, adjust this.
11543   if test -x /usr/bin/objformat; then
11544     objformat=`/usr/bin/objformat`
11545   else
11546     case $host_os in
11547     freebsd[123]*) objformat=aout ;;
11548     *) objformat=elf ;;
11549     esac
11550   fi
11551   version_type=freebsd-$objformat
11552   case $version_type in
11553     freebsd-elf*)
11554       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555       need_version=no
11556       need_lib_prefix=no
11557       ;;
11558     freebsd-*)
11559       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11560       need_version=yes
11561       ;;
11562   esac
11563   shlibpath_var=LD_LIBRARY_PATH
11564   case $host_os in
11565   freebsd2*)
11566     shlibpath_overrides_runpath=yes
11567     ;;
11568   freebsd3.[01]* | freebsdelf3.[01]*)
11569     shlibpath_overrides_runpath=yes
11570     hardcode_into_libs=yes
11571     ;;
11572   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11573   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11574     shlibpath_overrides_runpath=no
11575     hardcode_into_libs=yes
11576     ;;
11577   *) # from 4.6 on, and DragonFly
11578     shlibpath_overrides_runpath=yes
11579     hardcode_into_libs=yes
11580     ;;
11581   esac
11582   ;;
11583
11584 gnu*)
11585   version_type=linux
11586   need_lib_prefix=no
11587   need_version=no
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11589   soname_spec='${libname}${release}${shared_ext}$major'
11590   shlibpath_var=LD_LIBRARY_PATH
11591   hardcode_into_libs=yes
11592   ;;
11593
11594 hpux9* | hpux10* | hpux11*)
11595   # Give a soname corresponding to the major version so that dld.sl refuses to
11596   # link against other versions.
11597   version_type=sunos
11598   need_lib_prefix=no
11599   need_version=no
11600   case $host_cpu in
11601   ia64*)
11602     shrext_cmds='.so'
11603     hardcode_into_libs=yes
11604     dynamic_linker="$host_os dld.so"
11605     shlibpath_var=LD_LIBRARY_PATH
11606     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608     soname_spec='${libname}${release}${shared_ext}$major'
11609     if test "X$HPUX_IA64_MODE" = X32; then
11610       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11611     else
11612       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11613     fi
11614     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615     ;;
11616   hppa*64*)
11617     shrext_cmds='.sl'
11618     hardcode_into_libs=yes
11619     dynamic_linker="$host_os dld.sl"
11620     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623     soname_spec='${libname}${release}${shared_ext}$major'
11624     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626     ;;
11627   *)
11628     shrext_cmds='.sl'
11629     dynamic_linker="$host_os dld.sl"
11630     shlibpath_var=SHLIB_PATH
11631     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633     soname_spec='${libname}${release}${shared_ext}$major'
11634     ;;
11635   esac
11636   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11637   postinstall_cmds='chmod 555 $lib'
11638   ;;
11639
11640 interix[3-9]*)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   shlibpath_overrides_runpath=no
11649   hardcode_into_libs=yes
11650   ;;
11651
11652 irix5* | irix6* | nonstopux*)
11653   case $host_os in
11654     nonstopux*) version_type=nonstopux ;;
11655     *)
11656         if test "$lt_cv_prog_gnu_ld" = yes; then
11657                 version_type=linux
11658         else
11659                 version_type=irix
11660         fi ;;
11661   esac
11662   need_lib_prefix=no
11663   need_version=no
11664   soname_spec='${libname}${release}${shared_ext}$major'
11665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11666   case $host_os in
11667   irix5* | nonstopux*)
11668     libsuff= shlibsuff=
11669     ;;
11670   *)
11671     case $LD in # libtool.m4 will add one of these switches to LD
11672     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673       libsuff= shlibsuff= libmagic=32-bit;;
11674     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675       libsuff=32 shlibsuff=N32 libmagic=N32;;
11676     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678     *) libsuff= shlibsuff= libmagic=never-match;;
11679     esac
11680     ;;
11681   esac
11682   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683   shlibpath_overrides_runpath=no
11684   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11685   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11686   hardcode_into_libs=yes
11687   ;;
11688
11689 # No shared lib support for Linux oldld, aout, or coff.
11690 linux*oldld* | linux*aout* | linux*coff*)
11691   dynamic_linker=no
11692   ;;
11693
11694 # This must be Linux ELF.
11695 linux* | k*bsd*-gnu)
11696   version_type=linux
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   shlibpath_overrides_runpath=no
11704   # Some binutils ld are patched to set DT_RUNPATH
11705   save_LDFLAGS=$LDFLAGS
11706   save_libdir=$libdir
11707   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11708        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11709   cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715
11716 int
11717 main ()
11718 {
11719
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728   *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731   (eval "$ac_link") 2>conftest.er1
11732   ac_status=$?
11733   grep -v '^ *+' conftest.er1 >conftest.err
11734   rm -f conftest.er1
11735   cat conftest.err >&5
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } && {
11738          test -z "$ac_c_werror_flag" ||
11739          test ! -s conftest.err
11740        } && test -s conftest$ac_exeext &&
11741        $as_test_x conftest$ac_exeext; then
11742   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11743   shlibpath_overrides_runpath=yes
11744 fi
11745
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750
11751 fi
11752
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754       conftest$ac_exeext conftest.$ac_ext
11755   LDFLAGS=$save_LDFLAGS
11756   libdir=$save_libdir
11757
11758   # This implies no fast_install, which is unacceptable.
11759   # Some rework will be needed to allow for fast_install
11760   # before this can be enabled.
11761   hardcode_into_libs=yes
11762
11763   # Append ld.so.conf contents to the search path
11764   if test -f /etc/ld.so.conf; then
11765     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' ' '`
11766     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11767   fi
11768
11769   # We used to test for /lib/ld.so.1 and disable shared libraries on
11770   # powerpc, because MkLinux only supported shared libraries with the
11771   # GNU dynamic linker.  Since this was broken with cross compilers,
11772   # most powerpc-linux boxes support dynamic linking these days and
11773   # people can always --disable-shared, the test was removed, and we
11774   # assume the GNU/Linux dynamic linker is in use.
11775   dynamic_linker='GNU/Linux ld.so'
11776   ;;
11777
11778 netbsd*)
11779   version_type=sunos
11780   need_lib_prefix=no
11781   need_version=no
11782   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785     dynamic_linker='NetBSD (a.out) ld.so'
11786   else
11787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11788     soname_spec='${libname}${release}${shared_ext}$major'
11789     dynamic_linker='NetBSD ld.elf_so'
11790   fi
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=yes
11793   hardcode_into_libs=yes
11794   ;;
11795
11796 newsos6)
11797   version_type=linux
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799   shlibpath_var=LD_LIBRARY_PATH
11800   shlibpath_overrides_runpath=yes
11801   ;;
11802
11803 *nto* | *qnx*)
11804   version_type=qnx
11805   need_lib_prefix=no
11806   need_version=no
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   soname_spec='${libname}${release}${shared_ext}$major'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=no
11811   hardcode_into_libs=yes
11812   dynamic_linker='ldqnx.so'
11813   ;;
11814
11815 openbsd*)
11816   version_type=sunos
11817   sys_lib_dlsearch_path_spec="/usr/lib"
11818   need_lib_prefix=no
11819   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11820   case $host_os in
11821     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11822     *)                          need_version=no  ;;
11823   esac
11824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11826   shlibpath_var=LD_LIBRARY_PATH
11827   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11828     case $host_os in
11829       openbsd2.[89] | openbsd2.[89].*)
11830         shlibpath_overrides_runpath=no
11831         ;;
11832       *)
11833         shlibpath_overrides_runpath=yes
11834         ;;
11835       esac
11836   else
11837     shlibpath_overrides_runpath=yes
11838   fi
11839   ;;
11840
11841 os2*)
11842   libname_spec='$name'
11843   shrext_cmds=".dll"
11844   need_lib_prefix=no
11845   library_names_spec='$libname${shared_ext} $libname.a'
11846   dynamic_linker='OS/2 ld.exe'
11847   shlibpath_var=LIBPATH
11848   ;;
11849
11850 osf3* | osf4* | osf5*)
11851   version_type=osf
11852   need_lib_prefix=no
11853   need_version=no
11854   soname_spec='${libname}${release}${shared_ext}$major'
11855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856   shlibpath_var=LD_LIBRARY_PATH
11857   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11858   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11859   ;;
11860
11861 rdos*)
11862   dynamic_linker=no
11863   ;;
11864
11865 solaris*)
11866   version_type=linux
11867   need_lib_prefix=no
11868   need_version=no
11869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870   soname_spec='${libname}${release}${shared_ext}$major'
11871   shlibpath_var=LD_LIBRARY_PATH
11872   shlibpath_overrides_runpath=yes
11873   hardcode_into_libs=yes
11874   # ldd complains unless libraries are executable
11875   postinstall_cmds='chmod +x $lib'
11876   ;;
11877
11878 sunos4*)
11879   version_type=sunos
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   if test "$with_gnu_ld" = yes; then
11885     need_lib_prefix=no
11886   fi
11887   need_version=yes
11888   ;;
11889
11890 sysv4 | sysv4.3*)
11891   version_type=linux
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893   soname_spec='${libname}${release}${shared_ext}$major'
11894   shlibpath_var=LD_LIBRARY_PATH
11895   case $host_vendor in
11896     sni)
11897       shlibpath_overrides_runpath=no
11898       need_lib_prefix=no
11899       runpath_var=LD_RUN_PATH
11900       ;;
11901     siemens)
11902       need_lib_prefix=no
11903       ;;
11904     motorola)
11905       need_lib_prefix=no
11906       need_version=no
11907       shlibpath_overrides_runpath=no
11908       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11909       ;;
11910   esac
11911   ;;
11912
11913 sysv4*MP*)
11914   if test -d /usr/nec ;then
11915     version_type=linux
11916     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11917     soname_spec='$libname${shared_ext}.$major'
11918     shlibpath_var=LD_LIBRARY_PATH
11919   fi
11920   ;;
11921
11922 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11923   version_type=freebsd-elf
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   shlibpath_var=LD_LIBRARY_PATH
11929   shlibpath_overrides_runpath=yes
11930   hardcode_into_libs=yes
11931   if test "$with_gnu_ld" = yes; then
11932     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11933   else
11934     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11935     case $host_os in
11936       sco3.2v5*)
11937         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11938         ;;
11939     esac
11940   fi
11941   sys_lib_dlsearch_path_spec='/usr/lib'
11942   ;;
11943
11944 tpf*)
11945   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11946   version_type=linux
11947   need_lib_prefix=no
11948   need_version=no
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   shlibpath_overrides_runpath=no
11952   hardcode_into_libs=yes
11953   ;;
11954
11955 uts4*)
11956   version_type=linux
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   ;;
11961
11962 *)
11963   dynamic_linker=no
11964   ;;
11965 esac
11966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11967 echo "${ECHO_T}$dynamic_linker" >&6; }
11968 test "$dynamic_linker" = no && can_build_shared=no
11969
11970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11971 if test "$GCC" = yes; then
11972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11973 fi
11974
11975 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11976   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11977 fi
11978 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11979   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11980 fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12070 hardcode_action=
12071 if test -n "$hardcode_libdir_flag_spec" ||
12072    test -n "$runpath_var" ||
12073    test "X$hardcode_automatic" = "Xyes" ; then
12074
12075   # We can hardcode non-existent directories.
12076   if test "$hardcode_direct" != no &&
12077      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12078      # have to relink, otherwise we might link with an installed library
12079      # when we should be linking with a yet-to-be-installed one
12080      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12081      test "$hardcode_minus_L" != no; then
12082     # Linking always hardcodes the temporary library directory.
12083     hardcode_action=relink
12084   else
12085     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12086     hardcode_action=immediate
12087   fi
12088 else
12089   # We cannot hardcode anything, or else we can only hardcode existing
12090   # directories.
12091   hardcode_action=unsupported
12092 fi
12093 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12094 echo "${ECHO_T}$hardcode_action" >&6; }
12095
12096 if test "$hardcode_action" = relink ||
12097    test "$inherit_rpath" = yes; then
12098   # Fast installation is not supported
12099   enable_fast_install=no
12100 elif test "$shlibpath_overrides_runpath" = yes ||
12101      test "$enable_shared" = no; then
12102   # Fast installation is not necessary
12103   enable_fast_install=needless
12104 fi
12105
12106
12107
12108
12109
12110
12111   if test "x$enable_dlopen" != xyes; then
12112   enable_dlopen=unknown
12113   enable_dlopen_self=unknown
12114   enable_dlopen_self_static=unknown
12115 else
12116   lt_cv_dlopen=no
12117   lt_cv_dlopen_libs=
12118
12119   case $host_os in
12120   beos*)
12121     lt_cv_dlopen="load_add_on"
12122     lt_cv_dlopen_libs=
12123     lt_cv_dlopen_self=yes
12124     ;;
12125
12126   mingw* | pw32* | cegcc*)
12127     lt_cv_dlopen="LoadLibrary"
12128     lt_cv_dlopen_libs=
12129     ;;
12130
12131   cygwin*)
12132     lt_cv_dlopen="dlopen"
12133     lt_cv_dlopen_libs=
12134     ;;
12135
12136   darwin*)
12137   # if libdl is installed we need to link against it
12138     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-ldl  $LIBS"
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151
12152 /* Override any GCC internal prototype to avoid an error.
12153    Use char because int might match the return type of a GCC
12154    builtin and then its argument prototype would still apply.  */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char dlopen ();
12159 int
12160 main ()
12161 {
12162 return dlopen ();
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (ac_try="$ac_link"
12169 case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_link") 2>conftest.er1
12175   ac_status=$?
12176   grep -v '^ *+' conftest.er1 >conftest.err
12177   rm -f conftest.er1
12178   cat conftest.err >&5
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } && {
12181          test -z "$ac_c_werror_flag" ||
12182          test ! -s conftest.err
12183        } && test -s conftest$ac_exeext &&
12184        $as_test_x conftest$ac_exeext; then
12185   ac_cv_lib_dl_dlopen=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_cv_lib_dl_dlopen=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194       conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12199 if test $ac_cv_lib_dl_dlopen = yes; then
12200   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12201 else
12202
12203     lt_cv_dlopen="dyld"
12204     lt_cv_dlopen_libs=
12205     lt_cv_dlopen_self=yes
12206
12207 fi
12208
12209     ;;
12210
12211   *)
12212     { echo "$as_me:$LINENO: checking for shl_load" >&5
12213 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12214 if test "${ac_cv_func_shl_load+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12225 #define shl_load innocuous_shl_load
12226
12227 /* System header to define __stub macros and hopefully few prototypes,
12228     which can conflict with char shl_load (); below.
12229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230     <limits.h> exists even on freestanding compilers.  */
12231
12232 #ifdef __STDC__
12233 # include <limits.h>
12234 #else
12235 # include <assert.h>
12236 #endif
12237
12238 #undef shl_load
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241    Use char because int might match the return type of a GCC
12242    builtin and then its argument prototype would still apply.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char shl_load ();
12247 /* The GNU C library defines this for functions which it implements
12248     to always fail with ENOSYS.  Some functions are actually named
12249     something starting with __ and the normal name is an alias.  */
12250 #if defined __stub_shl_load || defined __stub___shl_load
12251 choke me
12252 #endif
12253
12254 int
12255 main ()
12256 {
12257 return shl_load ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && {
12276          test -z "$ac_c_werror_flag" ||
12277          test ! -s conftest.err
12278        } && test -s conftest$ac_exeext &&
12279        $as_test_x conftest$ac_exeext; then
12280   ac_cv_func_shl_load=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285         ac_cv_func_shl_load=no
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289       conftest$ac_exeext conftest.$ac_ext
12290 fi
12291 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12292 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12293 if test $ac_cv_func_shl_load = yes; then
12294   lt_cv_dlopen="shl_load"
12295 else
12296   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12297 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12298 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-ldld  $LIBS"
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h.  */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h.  */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311    Use char because int might match the return type of a GCC
12312    builtin and then its argument prototype would still apply.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char shl_load ();
12317 int
12318 main ()
12319 {
12320 return shl_load ();
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329   *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332   (eval "$ac_link") 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } && {
12339          test -z "$ac_c_werror_flag" ||
12340          test ! -s conftest.err
12341        } && test -s conftest$ac_exeext &&
12342        $as_test_x conftest$ac_exeext; then
12343   ac_cv_lib_dld_shl_load=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348         ac_cv_lib_dld_shl_load=no
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352       conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12356 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12357 if test $ac_cv_lib_dld_shl_load = yes; then
12358   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12359 else
12360   { echo "$as_me:$LINENO: checking for dlopen" >&5
12361 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12362 if test "${ac_cv_func_dlopen+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12373 #define dlopen innocuous_dlopen
12374
12375 /* System header to define __stub macros and hopefully few prototypes,
12376     which can conflict with char dlopen (); below.
12377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12378     <limits.h> exists even on freestanding compilers.  */
12379
12380 #ifdef __STDC__
12381 # include <limits.h>
12382 #else
12383 # include <assert.h>
12384 #endif
12385
12386 #undef dlopen
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389    Use char because int might match the return type of a GCC
12390    builtin and then its argument prototype would still apply.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char dlopen ();
12395 /* The GNU C library defines this for functions which it implements
12396     to always fail with ENOSYS.  Some functions are actually named
12397     something starting with __ and the normal name is an alias.  */
12398 #if defined __stub_dlopen || defined __stub___dlopen
12399 choke me
12400 #endif
12401
12402 int
12403 main ()
12404 {
12405 return dlopen ();
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_link") 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } && {
12424          test -z "$ac_c_werror_flag" ||
12425          test ! -s conftest.err
12426        } && test -s conftest$ac_exeext &&
12427        $as_test_x conftest$ac_exeext; then
12428   ac_cv_func_dlopen=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433         ac_cv_func_dlopen=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437       conftest$ac_exeext conftest.$ac_ext
12438 fi
12439 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12440 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12441 if test $ac_cv_func_dlopen = yes; then
12442   lt_cv_dlopen="dlopen"
12443 else
12444   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-ldl  $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char dlopen ();
12465 int
12466 main ()
12467 {
12468 return dlopen ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_link") 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } && {
12487          test -z "$ac_c_werror_flag" ||
12488          test ! -s conftest.err
12489        } && test -s conftest$ac_exeext &&
12490        $as_test_x conftest$ac_exeext; then
12491   ac_cv_lib_dl_dlopen=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496         ac_cv_lib_dl_dlopen=no
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500       conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12502 fi
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12505 if test $ac_cv_lib_dl_dlopen = yes; then
12506   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12507 else
12508   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12509 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lsvld  $LIBS"
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 /* Override any GCC internal prototype to avoid an error.
12523    Use char because int might match the return type of a GCC
12524    builtin and then its argument prototype would still apply.  */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char dlopen ();
12529 int
12530 main ()
12531 {
12532 return dlopen ();
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_link") 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } && {
12551          test -z "$ac_c_werror_flag" ||
12552          test ! -s conftest.err
12553        } && test -s conftest$ac_exeext &&
12554        $as_test_x conftest$ac_exeext; then
12555   ac_cv_lib_svld_dlopen=yes
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560         ac_cv_lib_svld_dlopen=no
12561 fi
12562
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564       conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12569 if test $ac_cv_lib_svld_dlopen = yes; then
12570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12571 else
12572   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-ldld  $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585
12586 /* Override any GCC internal prototype to avoid an error.
12587    Use char because int might match the return type of a GCC
12588    builtin and then its argument prototype would still apply.  */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char dld_link ();
12593 int
12594 main ()
12595 {
12596 return dld_link ();
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_link") 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } && {
12615          test -z "$ac_c_werror_flag" ||
12616          test ! -s conftest.err
12617        } && test -s conftest$ac_exeext &&
12618        $as_test_x conftest$ac_exeext; then
12619   ac_cv_lib_dld_dld_link=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_cv_lib_dld_dld_link=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628       conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12633 if test $ac_cv_lib_dld_dld_link = yes; then
12634   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12635 fi
12636
12637
12638 fi
12639
12640
12641 fi
12642
12643
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652     ;;
12653   esac
12654
12655   if test "x$lt_cv_dlopen" != xno; then
12656     enable_dlopen=yes
12657   else
12658     enable_dlopen=no
12659   fi
12660
12661   case $lt_cv_dlopen in
12662   dlopen)
12663     save_CPPFLAGS="$CPPFLAGS"
12664     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12665
12666     save_LDFLAGS="$LDFLAGS"
12667     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12668
12669     save_LIBS="$LIBS"
12670     LIBS="$lt_cv_dlopen_libs $LIBS"
12671
12672     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12674 if test "${lt_cv_dlopen_self+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677           if test "$cross_compiling" = yes; then :
12678   lt_cv_dlopen_self=cross
12679 else
12680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12681   lt_status=$lt_dlunknown
12682   cat > conftest.$ac_ext <<_LT_EOF
12683 #line 12683 "configure"
12684 #include "confdefs.h"
12685
12686 #if HAVE_DLFCN_H
12687 #include <dlfcn.h>
12688 #endif
12689
12690 #include <stdio.h>
12691
12692 #ifdef RTLD_GLOBAL
12693 #  define LT_DLGLOBAL           RTLD_GLOBAL
12694 #else
12695 #  ifdef DL_GLOBAL
12696 #    define LT_DLGLOBAL         DL_GLOBAL
12697 #  else
12698 #    define LT_DLGLOBAL         0
12699 #  endif
12700 #endif
12701
12702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12703    find out it does not work in some platform. */
12704 #ifndef LT_DLLAZY_OR_NOW
12705 #  ifdef RTLD_LAZY
12706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12707 #  else
12708 #    ifdef DL_LAZY
12709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12710 #    else
12711 #      ifdef RTLD_NOW
12712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12713 #      else
12714 #        ifdef DL_NOW
12715 #          define LT_DLLAZY_OR_NOW      DL_NOW
12716 #        else
12717 #          define LT_DLLAZY_OR_NOW      0
12718 #        endif
12719 #      endif
12720 #    endif
12721 #  endif
12722 #endif
12723
12724 void fnord() { int i=42;}
12725 int main ()
12726 {
12727   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12728   int status = $lt_dlunknown;
12729
12730   if (self)
12731     {
12732       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12733       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12734       /* dlclose (self); */
12735     }
12736   else
12737     puts (dlerror ());
12738
12739   return status;
12740 }
12741 _LT_EOF
12742   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743   (eval $ac_link) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12747     (./conftest; exit; ) >&5 2>/dev/null
12748     lt_status=$?
12749     case x$lt_status in
12750       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12751       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12752       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12753     esac
12754   else :
12755     # compilation failed
12756     lt_cv_dlopen_self=no
12757   fi
12758 fi
12759 rm -fr conftest*
12760
12761
12762 fi
12763 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12764 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12765
12766     if test "x$lt_cv_dlopen_self" = xyes; then
12767       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12768       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12769 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12770 if test "${lt_cv_dlopen_self_static+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773           if test "$cross_compiling" = yes; then :
12774   lt_cv_dlopen_self_static=cross
12775 else
12776   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12777   lt_status=$lt_dlunknown
12778   cat > conftest.$ac_ext <<_LT_EOF
12779 #line 12779 "configure"
12780 #include "confdefs.h"
12781
12782 #if HAVE_DLFCN_H
12783 #include <dlfcn.h>
12784 #endif
12785
12786 #include <stdio.h>
12787
12788 #ifdef RTLD_GLOBAL
12789 #  define LT_DLGLOBAL           RTLD_GLOBAL
12790 #else
12791 #  ifdef DL_GLOBAL
12792 #    define LT_DLGLOBAL         DL_GLOBAL
12793 #  else
12794 #    define LT_DLGLOBAL         0
12795 #  endif
12796 #endif
12797
12798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12799    find out it does not work in some platform. */
12800 #ifndef LT_DLLAZY_OR_NOW
12801 #  ifdef RTLD_LAZY
12802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12803 #  else
12804 #    ifdef DL_LAZY
12805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12806 #    else
12807 #      ifdef RTLD_NOW
12808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12809 #      else
12810 #        ifdef DL_NOW
12811 #          define LT_DLLAZY_OR_NOW      DL_NOW
12812 #        else
12813 #          define LT_DLLAZY_OR_NOW      0
12814 #        endif
12815 #      endif
12816 #    endif
12817 #  endif
12818 #endif
12819
12820 void fnord() { int i=42;}
12821 int main ()
12822 {
12823   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12824   int status = $lt_dlunknown;
12825
12826   if (self)
12827     {
12828       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12829       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12830       /* dlclose (self); */
12831     }
12832   else
12833     puts (dlerror ());
12834
12835   return status;
12836 }
12837 _LT_EOF
12838   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12843     (./conftest; exit; ) >&5 2>/dev/null
12844     lt_status=$?
12845     case x$lt_status in
12846       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12847       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12848       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12849     esac
12850   else :
12851     # compilation failed
12852     lt_cv_dlopen_self_static=no
12853   fi
12854 fi
12855 rm -fr conftest*
12856
12857
12858 fi
12859 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12861     fi
12862
12863     CPPFLAGS="$save_CPPFLAGS"
12864     LDFLAGS="$save_LDFLAGS"
12865     LIBS="$save_LIBS"
12866     ;;
12867   esac
12868
12869   case $lt_cv_dlopen_self in
12870   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12871   *) enable_dlopen_self=unknown ;;
12872   esac
12873
12874   case $lt_cv_dlopen_self_static in
12875   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12876   *) enable_dlopen_self_static=unknown ;;
12877   esac
12878 fi
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896 striplib=
12897 old_striplib=
12898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12900 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12901   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12902   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12903   { echo "$as_me:$LINENO: result: yes" >&5
12904 echo "${ECHO_T}yes" >&6; }
12905 else
12906 # FIXME - insert some real tests, host_os isn't really good enough
12907   case $host_os in
12908   darwin*)
12909     if test -n "$STRIP" ; then
12910       striplib="$STRIP -x"
12911       old_striplib="$STRIP -S"
12912       { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12914     else
12915       { echo "$as_me:$LINENO: result: no" >&5
12916 echo "${ECHO_T}no" >&6; }
12917     fi
12918     ;;
12919   *)
12920     { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922     ;;
12923   esac
12924 fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937   # Report which library types will actually be built
12938   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12939 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12940   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12941 echo "${ECHO_T}$can_build_shared" >&6; }
12942
12943   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12944 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12945   test "$can_build_shared" = "no" && enable_shared=no
12946
12947   # On AIX, shared libraries and static libraries use the same namespace, and
12948   # are all built from PIC.
12949   case $host_os in
12950   aix3*)
12951     test "$enable_shared" = yes && enable_static=no
12952     if test -n "$RANLIB"; then
12953       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12954       postinstall_cmds='$RANLIB $lib'
12955     fi
12956     ;;
12957
12958   aix[4-9]*)
12959     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12960       test "$enable_shared" = yes && enable_static=no
12961     fi
12962     ;;
12963   esac
12964   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12965 echo "${ECHO_T}$enable_shared" >&6; }
12966
12967   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12968 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12969   # Make sure either enable_shared or enable_static is yes.
12970   test "$enable_shared" = yes || enable_static=yes
12971   { echo "$as_me:$LINENO: result: $enable_static" >&5
12972 echo "${ECHO_T}$enable_static" >&6; }
12973
12974
12975
12976
12977 fi
12978 ac_ext=c
12979 ac_cpp='$CPP $CPPFLAGS'
12980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12983
12984 CC="$lt_save_CC"
12985
12986
12987 ac_ext=cpp
12988 ac_cpp='$CXXCPP $CPPFLAGS'
12989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12992
12993 archive_cmds_need_lc_CXX=no
12994 allow_undefined_flag_CXX=
12995 always_export_symbols_CXX=no
12996 archive_expsym_cmds_CXX=
12997 compiler_needs_object_CXX=no
12998 export_dynamic_flag_spec_CXX=
12999 hardcode_direct_CXX=no
13000 hardcode_direct_absolute_CXX=no
13001 hardcode_libdir_flag_spec_CXX=
13002 hardcode_libdir_flag_spec_ld_CXX=
13003 hardcode_libdir_separator_CXX=
13004 hardcode_minus_L_CXX=no
13005 hardcode_shlibpath_var_CXX=unsupported
13006 hardcode_automatic_CXX=no
13007 inherit_rpath_CXX=no
13008 module_cmds_CXX=
13009 module_expsym_cmds_CXX=
13010 link_all_deplibs_CXX=unknown
13011 old_archive_cmds_CXX=$old_archive_cmds
13012 no_undefined_flag_CXX=
13013 whole_archive_flag_spec_CXX=
13014 enable_shared_with_static_runtimes_CXX=no
13015
13016 # Source file extension for C++ test sources.
13017 ac_ext=cpp
13018
13019 # Object file extension for compiled C++ test sources.
13020 objext=o
13021 objext_CXX=$objext
13022
13023 # No sense in running all these tests if we already determined that
13024 # the CXX compiler isn't working.  Some variables (like enable_shared)
13025 # are currently assumed to apply to all compilers on this platform,
13026 # and will be corrupted by setting them based on a non-working compiler.
13027 if test "$_lt_caught_CXX_error" != yes; then
13028   # Code to be used in simple compile tests
13029   lt_simple_compile_test_code="int some_variable = 0;"
13030
13031   # Code to be used in simple link tests
13032   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13033
13034   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13035
13036
13037
13038
13039
13040
13041 # If no C compiler was specified, use CC.
13042 LTCC=${LTCC-"$CC"}
13043
13044 # If no C compiler flags were specified, use CFLAGS.
13045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13046
13047 # Allow CC to be a program name with arguments.
13048 compiler=$CC
13049
13050
13051   # save warnings/boilerplate of simple test code
13052   ac_outfile=conftest.$ac_objext
13053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055 _lt_compiler_boilerplate=`cat conftest.err`
13056 $RM conftest*
13057
13058   ac_outfile=conftest.$ac_objext
13059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061 _lt_linker_boilerplate=`cat conftest.err`
13062 $RM -r conftest*
13063
13064
13065   # Allow CC to be a program name with arguments.
13066   lt_save_CC=$CC
13067   lt_save_LD=$LD
13068   lt_save_GCC=$GCC
13069   GCC=$GXX
13070   lt_save_with_gnu_ld=$with_gnu_ld
13071   lt_save_path_LD=$lt_cv_path_LD
13072   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13073     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13074   else
13075     $as_unset lt_cv_prog_gnu_ld
13076   fi
13077   if test -n "${lt_cv_path_LDCXX+set}"; then
13078     lt_cv_path_LD=$lt_cv_path_LDCXX
13079   else
13080     $as_unset lt_cv_path_LD
13081   fi
13082   test -z "${LDCXX+set}" || LD=$LDCXX
13083   CC=${CXX-"c++"}
13084   compiler=$CC
13085   compiler_CXX=$CC
13086   for cc_temp in $compiler""; do
13087   case $cc_temp in
13088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13090     \-*) ;;
13091     *) break;;
13092   esac
13093 done
13094 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13095
13096
13097   if test -n "$compiler"; then
13098     # We don't want -fno-exception when compiling C++ code, so set the
13099     # no_builtin_flag separately
13100     if test "$GXX" = yes; then
13101       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13102     else
13103       lt_prog_compiler_no_builtin_flag_CXX=
13104     fi
13105
13106     if test "$GXX" = yes; then
13107       # Set up default GNU C++ configuration
13108
13109
13110
13111 # Check whether --with-gnu-ld was given.
13112 if test "${with_gnu_ld+set}" = set; then
13113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13114 else
13115   with_gnu_ld=no
13116 fi
13117
13118 ac_prog=ld
13119 if test "$GCC" = yes; then
13120   # Check if gcc -print-prog-name=ld gives a path.
13121   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13123   case $host in
13124   *-*-mingw*)
13125     # gcc leaves a trailing carriage return which upsets mingw
13126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13127   *)
13128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13129   esac
13130   case $ac_prog in
13131     # Accept absolute paths.
13132     [\\/]* | ?:[\\/]*)
13133       re_direlt='/[^/][^/]*/\.\./'
13134       # Canonicalize the pathname of ld
13135       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13136       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13137         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13138       done
13139       test -z "$LD" && LD="$ac_prog"
13140       ;;
13141   "")
13142     # If it fails, then pretend we aren't using GCC.
13143     ac_prog=ld
13144     ;;
13145   *)
13146     # If it is relative, then search for the first ld in PATH.
13147     with_gnu_ld=unknown
13148     ;;
13149   esac
13150 elif test "$with_gnu_ld" = yes; then
13151   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13153 else
13154   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13156 fi
13157 if test "${lt_cv_path_LD+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   if test -z "$LD"; then
13161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13162   for ac_dir in $PATH; do
13163     IFS="$lt_save_ifs"
13164     test -z "$ac_dir" && ac_dir=.
13165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13166       lt_cv_path_LD="$ac_dir/$ac_prog"
13167       # Check to see if the program is GNU ld.  I'd rather use --version,
13168       # but apparently some variants of GNU ld only accept -v.
13169       # Break only if it was the GNU/non-GNU ld that we prefer.
13170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13171       *GNU* | *'with BFD'*)
13172         test "$with_gnu_ld" != no && break
13173         ;;
13174       *)
13175         test "$with_gnu_ld" != yes && break
13176         ;;
13177       esac
13178     fi
13179   done
13180   IFS="$lt_save_ifs"
13181 else
13182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13183 fi
13184 fi
13185
13186 LD="$lt_cv_path_LD"
13187 if test -n "$LD"; then
13188   { echo "$as_me:$LINENO: result: $LD" >&5
13189 echo "${ECHO_T}$LD" >&6; }
13190 else
13191   { echo "$as_me:$LINENO: result: no" >&5
13192 echo "${ECHO_T}no" >&6; }
13193 fi
13194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13196    { (exit 1); exit 1; }; }
13197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13203 case `$LD -v 2>&1 </dev/null` in
13204 *GNU* | *'with BFD'*)
13205   lt_cv_prog_gnu_ld=yes
13206   ;;
13207 *)
13208   lt_cv_prog_gnu_ld=no
13209   ;;
13210 esac
13211 fi
13212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13214 with_gnu_ld=$lt_cv_prog_gnu_ld
13215
13216
13217
13218
13219
13220
13221
13222       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13223       # archiving commands below assume that GNU ld is being used.
13224       if test "$with_gnu_ld" = yes; then
13225         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226         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'
13227
13228         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13229         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13230
13231         # If archive_cmds runs LD, not CC, wlarc should be empty
13232         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13233         #     investigate it a little bit more. (MM)
13234         wlarc='${wl}'
13235
13236         # ancient GNU ld didn't support --whole-archive et. al.
13237         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13238           $GREP 'no-whole-archive' > /dev/null; then
13239           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13240         else
13241           whole_archive_flag_spec_CXX=
13242         fi
13243       else
13244         with_gnu_ld=no
13245         wlarc=
13246
13247         # A generic and very simple default shared library creation
13248         # command for GNU C++ for the case where it uses the native
13249         # linker, instead of GNU ld.  If possible, this setting should
13250         # overridden to take advantage of the native linker features on
13251         # the platform it is being used on.
13252         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13253       fi
13254
13255       # Commands to make compiler produce verbose output that lists
13256       # what "hidden" libraries, object files and flags are used when
13257       # linking a shared library.
13258       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13259
13260     else
13261       GXX=no
13262       with_gnu_ld=no
13263       wlarc=
13264     fi
13265
13266     # PORTME: fill in a description of your system's C++ link characteristics
13267     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13268 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13269     ld_shlibs_CXX=yes
13270     case $host_os in
13271       aix3*)
13272         # FIXME: insert proper C++ library support
13273         ld_shlibs_CXX=no
13274         ;;
13275       aix[4-9]*)
13276         if test "$host_cpu" = ia64; then
13277           # On IA64, the linker does run time linking by default, so we don't
13278           # have to do anything special.
13279           aix_use_runtimelinking=no
13280           exp_sym_flag='-Bexport'
13281           no_entry_flag=""
13282         else
13283           aix_use_runtimelinking=no
13284
13285           # Test if we are trying to use run time linking or normal
13286           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13287           # need to do runtime linking.
13288           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13289             for ld_flag in $LDFLAGS; do
13290               case $ld_flag in
13291               *-brtl*)
13292                 aix_use_runtimelinking=yes
13293                 break
13294                 ;;
13295               esac
13296             done
13297             ;;
13298           esac
13299
13300           exp_sym_flag='-bexport'
13301           no_entry_flag='-bnoentry'
13302         fi
13303
13304         # When large executables or shared objects are built, AIX ld can
13305         # have problems creating the table of contents.  If linking a library
13306         # or program results in "error TOC overflow" add -mminimal-toc to
13307         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13308         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13309
13310         archive_cmds_CXX=''
13311         hardcode_direct_CXX=yes
13312         hardcode_direct_absolute_CXX=yes
13313         hardcode_libdir_separator_CXX=':'
13314         link_all_deplibs_CXX=yes
13315         file_list_spec_CXX='${wl}-f,'
13316
13317         if test "$GXX" = yes; then
13318           case $host_os in aix4.[012]|aix4.[012].*)
13319           # We only want to do this on AIX 4.2 and lower, the check
13320           # below for broken collect2 doesn't work under 4.3+
13321           collect2name=`${CC} -print-prog-name=collect2`
13322           if test -f "$collect2name" &&
13323              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13324           then
13325             # We have reworked collect2
13326             :
13327           else
13328             # We have old collect2
13329             hardcode_direct_CXX=unsupported
13330             # It fails to find uninstalled libraries when the uninstalled
13331             # path is not listed in the libpath.  Setting hardcode_minus_L
13332             # to unsupported forces relinking
13333             hardcode_minus_L_CXX=yes
13334             hardcode_libdir_flag_spec_CXX='-L$libdir'
13335             hardcode_libdir_separator_CXX=
13336           fi
13337           esac
13338           shared_flag='-shared'
13339           if test "$aix_use_runtimelinking" = yes; then
13340             shared_flag="$shared_flag "'${wl}-G'
13341           fi
13342         else
13343           # not using gcc
13344           if test "$host_cpu" = ia64; then
13345           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13346           # chokes on -Wl,-G. The following line is correct:
13347           shared_flag='-G'
13348           else
13349             if test "$aix_use_runtimelinking" = yes; then
13350               shared_flag='${wl}-G'
13351             else
13352               shared_flag='${wl}-bM:SRE'
13353             fi
13354           fi
13355         fi
13356
13357         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13358         # It seems that -bexpall does not export symbols beginning with
13359         # underscore (_), so it is better to generate a list of symbols to
13360         # export.
13361         always_export_symbols_CXX=yes
13362         if test "$aix_use_runtimelinking" = yes; then
13363           # Warning - without using the other runtime loading flags (-brtl),
13364           # -berok will link without error, but may produce a broken library.
13365           allow_undefined_flag_CXX='-berok'
13366           # Determine the default libpath from the value encoded in an empty
13367           # executable.
13368           cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374
13375 int
13376 main ()
13377 {
13378
13379   ;
13380   return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_link") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } && {
13397          test -z "$ac_cxx_werror_flag" ||
13398          test ! -s conftest.err
13399        } && test -s conftest$ac_exeext &&
13400        $as_test_x conftest$ac_exeext; then
13401
13402 lt_aix_libpath_sed='
13403     /Import File Strings/,/^$/ {
13404         /^0/ {
13405             s/^0  *\(.*\)$/\1/
13406             p
13407         }
13408     }'
13409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 # Check for a 64-bit object if we didn't find anything.
13411 if test -z "$aix_libpath"; then
13412   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413 fi
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13422       conftest$ac_exeext conftest.$ac_ext
13423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13424
13425           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426
13427           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"
13428         else
13429           if test "$host_cpu" = ia64; then
13430             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13431             allow_undefined_flag_CXX="-z nodefs"
13432             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"
13433           else
13434             # Determine the default libpath from the value encoded in an
13435             # empty executable.
13436             cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 int
13444 main ()
13445 {
13446
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455   *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458   (eval "$ac_link") 2>conftest.er1
13459   ac_status=$?
13460   grep -v '^ *+' conftest.er1 >conftest.err
13461   rm -f conftest.er1
13462   cat conftest.err >&5
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); } && {
13465          test -z "$ac_cxx_werror_flag" ||
13466          test ! -s conftest.err
13467        } && test -s conftest$ac_exeext &&
13468        $as_test_x conftest$ac_exeext; then
13469
13470 lt_aix_libpath_sed='
13471     /Import File Strings/,/^$/ {
13472         /^0/ {
13473             s/^0  *\(.*\)$/\1/
13474             p
13475         }
13476     }'
13477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 # Check for a 64-bit object if we didn't find anything.
13479 if test -z "$aix_libpath"; then
13480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13481 fi
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486
13487 fi
13488
13489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13490       conftest$ac_exeext conftest.$ac_ext
13491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13492
13493             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13494             # Warning - without using the other run time loading flags,
13495             # -berok will link without error, but may produce a broken library.
13496             no_undefined_flag_CXX=' ${wl}-bernotok'
13497             allow_undefined_flag_CXX=' ${wl}-berok'
13498             # Exported symbols can be pulled into shared objects from archives
13499             whole_archive_flag_spec_CXX='$convenience'
13500             archive_cmds_need_lc_CXX=yes
13501             # This is similar to how AIX traditionally builds its shared
13502             # libraries.
13503             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'
13504           fi
13505         fi
13506         ;;
13507
13508       beos*)
13509         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13510           allow_undefined_flag_CXX=unsupported
13511           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13512           # support --undefined.  This deserves some investigation.  FIXME
13513           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514         else
13515           ld_shlibs_CXX=no
13516         fi
13517         ;;
13518
13519       chorus*)
13520         case $cc_basename in
13521           *)
13522           # FIXME: insert proper C++ library support
13523           ld_shlibs_CXX=no
13524           ;;
13525         esac
13526         ;;
13527
13528       cygwin* | mingw* | pw32* | cegcc*)
13529         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13530         # as there is no search path for DLLs.
13531         hardcode_libdir_flag_spec_CXX='-L$libdir'
13532         allow_undefined_flag_CXX=unsupported
13533         always_export_symbols_CXX=no
13534         enable_shared_with_static_runtimes_CXX=yes
13535
13536         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13537           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'
13538           # If the export-symbols file already is a .def file (1st line
13539           # is EXPORTS), use it as is; otherwise, prepend...
13540           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13541             cp $export_symbols $output_objdir/$soname.def;
13542           else
13543             echo EXPORTS > $output_objdir/$soname.def;
13544             cat $export_symbols >> $output_objdir/$soname.def;
13545           fi~
13546           $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'
13547         else
13548           ld_shlibs_CXX=no
13549         fi
13550         ;;
13551       darwin* | rhapsody*)
13552
13553
13554   archive_cmds_need_lc_CXX=no
13555   hardcode_direct_CXX=no
13556   hardcode_automatic_CXX=yes
13557   hardcode_shlibpath_var_CXX=unsupported
13558   whole_archive_flag_spec_CXX=''
13559   link_all_deplibs_CXX=yes
13560   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13561   case $cc_basename in
13562      ifort*) _lt_dar_can_shared=yes ;;
13563      *) _lt_dar_can_shared=$GCC ;;
13564   esac
13565   if test "$_lt_dar_can_shared" = "yes"; then
13566     output_verbose_link_cmd=echo
13567     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}"
13568     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13569     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}"
13570     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}"
13571        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13572       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}"
13573       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}"
13574     fi
13575
13576   else
13577   ld_shlibs_CXX=no
13578   fi
13579
13580         ;;
13581
13582       dgux*)
13583         case $cc_basename in
13584           ec++*)
13585             # FIXME: insert proper C++ library support
13586             ld_shlibs_CXX=no
13587             ;;
13588           ghcx*)
13589             # Green Hills C++ Compiler
13590             # FIXME: insert proper C++ library support
13591             ld_shlibs_CXX=no
13592             ;;
13593           *)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597         esac
13598         ;;
13599
13600       freebsd[12]*)
13601         # C++ shared libraries reported to be fairly broken before
13602         # switch to ELF
13603         ld_shlibs_CXX=no
13604         ;;
13605
13606       freebsd-elf*)
13607         archive_cmds_need_lc_CXX=no
13608         ;;
13609
13610       freebsd* | dragonfly*)
13611         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13612         # conventions
13613         ld_shlibs_CXX=yes
13614         ;;
13615
13616       gnu*)
13617         ;;
13618
13619       hpux9*)
13620         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13621         hardcode_libdir_separator_CXX=:
13622         export_dynamic_flag_spec_CXX='${wl}-E'
13623         hardcode_direct_CXX=yes
13624         hardcode_minus_L_CXX=yes # Not in the search PATH,
13625                                              # but as the default
13626                                              # location of the library.
13627
13628         case $cc_basename in
13629           CC*)
13630             # FIXME: insert proper C++ library support
13631             ld_shlibs_CXX=no
13632             ;;
13633           aCC*)
13634             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'
13635             # Commands to make compiler produce verbose output that lists
13636             # what "hidden" libraries, object files and flags are used when
13637             # linking a shared library.
13638             #
13639             # There doesn't appear to be a way to prevent this compiler from
13640             # explicitly linking system object files so we need to strip them
13641             # from the output so that they don't get included in the library
13642             # dependencies.
13643             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'
13644             ;;
13645           *)
13646             if test "$GXX" = yes; then
13647               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'
13648             else
13649               # FIXME: insert proper C++ library support
13650               ld_shlibs_CXX=no
13651             fi
13652             ;;
13653         esac
13654         ;;
13655
13656       hpux10*|hpux11*)
13657         if test $with_gnu_ld = no; then
13658           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13659           hardcode_libdir_separator_CXX=:
13660
13661           case $host_cpu in
13662             hppa*64*|ia64*)
13663               ;;
13664             *)
13665               export_dynamic_flag_spec_CXX='${wl}-E'
13666               ;;
13667           esac
13668         fi
13669         case $host_cpu in
13670           hppa*64*|ia64*)
13671             hardcode_direct_CXX=no
13672             hardcode_shlibpath_var_CXX=no
13673             ;;
13674           *)
13675             hardcode_direct_CXX=yes
13676             hardcode_direct_absolute_CXX=yes
13677             hardcode_minus_L_CXX=yes # Not in the search PATH,
13678                                                  # but as the default
13679                                                  # location of the library.
13680             ;;
13681         esac
13682
13683         case $cc_basename in
13684           CC*)
13685             # FIXME: insert proper C++ library support
13686             ld_shlibs_CXX=no
13687             ;;
13688           aCC*)
13689             case $host_cpu in
13690               hppa*64*)
13691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692                 ;;
13693               ia64*)
13694                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13695                 ;;
13696               *)
13697                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13698                 ;;
13699             esac
13700             # Commands to make compiler produce verbose output that lists
13701             # what "hidden" libraries, object files and flags are used when
13702             # linking a shared library.
13703             #
13704             # There doesn't appear to be a way to prevent this compiler from
13705             # explicitly linking system object files so we need to strip them
13706             # from the output so that they don't get included in the library
13707             # dependencies.
13708             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'
13709             ;;
13710           *)
13711             if test "$GXX" = yes; then
13712               if test $with_gnu_ld = no; then
13713                 case $host_cpu in
13714                   hppa*64*)
13715                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716                     ;;
13717                   ia64*)
13718                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719                     ;;
13720                   *)
13721                     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'
13722                     ;;
13723                 esac
13724               fi
13725             else
13726               # FIXME: insert proper C++ library support
13727               ld_shlibs_CXX=no
13728             fi
13729             ;;
13730         esac
13731         ;;
13732
13733       interix[3-9]*)
13734         hardcode_direct_CXX=no
13735         hardcode_shlibpath_var_CXX=no
13736         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737         export_dynamic_flag_spec_CXX='${wl}-E'
13738         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13739         # Instead, shared libraries are loaded at an image base (0x10000000 by
13740         # default) and relocated if they conflict, which is a slow very memory
13741         # consuming and fragmenting process.  To avoid this, we pick a random,
13742         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13743         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13744         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'
13745         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'
13746         ;;
13747       irix5* | irix6*)
13748         case $cc_basename in
13749           CC*)
13750             # SGI C++
13751             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'
13752
13753             # Archives containing C++ object files must be created using
13754             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13755             # necessary to make sure instantiated templates are included
13756             # in the archive.
13757             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13758             ;;
13759           *)
13760             if test "$GXX" = yes; then
13761               if test "$with_gnu_ld" = no; then
13762                 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'
13763               else
13764                 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'
13765               fi
13766             fi
13767             link_all_deplibs_CXX=yes
13768             ;;
13769         esac
13770         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13771         hardcode_libdir_separator_CXX=:
13772         inherit_rpath_CXX=yes
13773         ;;
13774
13775       linux* | k*bsd*-gnu)
13776         case $cc_basename in
13777           KCC*)
13778             # Kuck and Associates, Inc. (KAI) C++ Compiler
13779
13780             # KCC will only create a shared library if the output file
13781             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13782             # to its proper name (with version) after linking.
13783             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'
13784             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'
13785             # Commands to make compiler produce verbose output that lists
13786             # what "hidden" libraries, object files and flags are used when
13787             # linking a shared library.
13788             #
13789             # There doesn't appear to be a way to prevent this compiler from
13790             # explicitly linking system object files so we need to strip them
13791             # from the output so that they don't get included in the library
13792             # dependencies.
13793             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'
13794
13795             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13796             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13797
13798             # Archives containing C++ object files must be created using
13799             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13800             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13801             ;;
13802           icpc* | ecpc* )
13803             # Intel C++
13804             with_gnu_ld=yes
13805             # version 8.0 and above of icpc choke on multiply defined symbols
13806             # if we add $predep_objects and $postdep_objects, however 7.1 and
13807             # earlier do not add the objects themselves.
13808             case `$CC -V 2>&1` in
13809               *"Version 7."*)
13810                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811                 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'
13812                 ;;
13813               *)  # Version 8.0 or newer
13814                 tmp_idyn=
13815                 case $host_cpu in
13816                   ia64*) tmp_idyn=' -i_dynamic';;
13817                 esac
13818                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819                 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'
13820                 ;;
13821             esac
13822             archive_cmds_need_lc_CXX=no
13823             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13824             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13825             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13826             ;;
13827           pgCC* | pgcpp*)
13828             # Portland Group C++ compiler
13829             case `$CC -V` in
13830             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13831               prelink_cmds_CXX='tpldir=Template.dir~
13832                 rm -rf $tpldir~
13833                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13834                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13835               old_archive_cmds_CXX='tpldir=Template.dir~
13836                 rm -rf $tpldir~
13837                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13838                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13839                 $RANLIB $oldlib'
13840               archive_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13843                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13844               archive_expsym_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13847                 $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'
13848               ;;
13849             *) # Version 6 will use weak symbols
13850               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13851               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'
13852               ;;
13853             esac
13854
13855             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13856             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13857             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'
13858             ;;
13859           cxx*)
13860             # Compaq C++
13861             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862             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'
13863
13864             runpath_var=LD_RUN_PATH
13865             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13866             hardcode_libdir_separator_CXX=:
13867
13868             # Commands to make compiler produce verbose output that lists
13869             # what "hidden" libraries, object files and flags are used when
13870             # linking a shared library.
13871             #
13872             # There doesn't appear to be a way to prevent this compiler from
13873             # explicitly linking system object files so we need to strip them
13874             # from the output so that they don't get included in the library
13875             # dependencies.
13876             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'
13877             ;;
13878           xl*)
13879             # IBM XL 8.0 on PPC, with GNU ld
13880             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13881             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13882             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883             if test "x$supports_anon_versioning" = xyes; then
13884               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13885                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886                 echo "local: *; };" >> $output_objdir/$libname.ver~
13887                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888             fi
13889             ;;
13890           *)
13891             case `$CC -V 2>&1 | sed 5q` in
13892             *Sun\ C*)
13893               # Sun C++ 5.9
13894               no_undefined_flag_CXX=' -zdefs'
13895               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13896               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'
13897               hardcode_libdir_flag_spec_CXX='-R$libdir'
13898               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'
13899               compiler_needs_object_CXX=yes
13900
13901               # Not sure whether something based on
13902               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13903               # would be better.
13904               output_verbose_link_cmd='echo'
13905
13906               # Archives containing C++ object files must be created using
13907               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13908               # necessary to make sure instantiated templates are included
13909               # in the archive.
13910               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13911               ;;
13912             esac
13913             ;;
13914         esac
13915         ;;
13916
13917       lynxos*)
13918         # FIXME: insert proper C++ library support
13919         ld_shlibs_CXX=no
13920         ;;
13921
13922       m88k*)
13923         # FIXME: insert proper C++ library support
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       mvs*)
13928         case $cc_basename in
13929           cxx*)
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933           *)
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937         esac
13938         ;;
13939
13940       netbsd*)
13941         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13942           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13943           wlarc=
13944           hardcode_libdir_flag_spec_CXX='-R$libdir'
13945           hardcode_direct_CXX=yes
13946           hardcode_shlibpath_var_CXX=no
13947         fi
13948         # Workaround some broken pre-1.5 toolchains
13949         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13950         ;;
13951
13952       *nto* | *qnx*)
13953         ld_shlibs_CXX=yes
13954         ;;
13955
13956       openbsd2*)
13957         # C++ shared libraries are fairly broken
13958         ld_shlibs_CXX=no
13959         ;;
13960
13961       openbsd*)
13962         if test -f /usr/libexec/ld.so; then
13963           hardcode_direct_CXX=yes
13964           hardcode_shlibpath_var_CXX=no
13965           hardcode_direct_absolute_CXX=yes
13966           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13967           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13968           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13969             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13970             export_dynamic_flag_spec_CXX='${wl}-E'
13971             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13972           fi
13973           output_verbose_link_cmd=echo
13974         else
13975           ld_shlibs_CXX=no
13976         fi
13977         ;;
13978
13979       osf3* | osf4* | osf5*)
13980         case $cc_basename in
13981           KCC*)
13982             # Kuck and Associates, Inc. (KAI) C++ Compiler
13983
13984             # KCC will only create a shared library if the output file
13985             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13986             # to its proper name (with version) after linking.
13987             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13988
13989             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13990             hardcode_libdir_separator_CXX=:
13991
13992             # Archives containing C++ object files must be created using
13993             # the KAI C++ compiler.
13994             case $host in
13995               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13996               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13997             esac
13998             ;;
13999           RCC*)
14000             # Rational C++ 2.4.1
14001             # FIXME: insert proper C++ library support
14002             ld_shlibs_CXX=no
14003             ;;
14004           cxx*)
14005             case $host in
14006               osf3*)
14007                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14008                 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'
14009                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010                 ;;
14011               *)
14012                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14013                 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'
14014                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14015                   echo "-hidden">> $lib.exp~
14016                   $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~
14017                   $RM $lib.exp'
14018                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14019                 ;;
14020             esac
14021
14022             hardcode_libdir_separator_CXX=:
14023
14024             # Commands to make compiler produce verbose output that lists
14025             # what "hidden" libraries, object files and flags are used when
14026             # linking a shared library.
14027             #
14028             # There doesn't appear to be a way to prevent this compiler from
14029             # explicitly linking system object files so we need to strip them
14030             # from the output so that they don't get included in the library
14031             # dependencies.
14032             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'
14033             ;;
14034           *)
14035             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14036               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14037               case $host in
14038                 osf3*)
14039                   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'
14040                   ;;
14041                 *)
14042                   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'
14043                   ;;
14044               esac
14045
14046               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14047               hardcode_libdir_separator_CXX=:
14048
14049               # Commands to make compiler produce verbose output that lists
14050               # what "hidden" libraries, object files and flags are used when
14051               # linking a shared library.
14052               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14053
14054             else
14055               # FIXME: insert proper C++ library support
14056               ld_shlibs_CXX=no
14057             fi
14058             ;;
14059         esac
14060         ;;
14061
14062       psos*)
14063         # FIXME: insert proper C++ library support
14064         ld_shlibs_CXX=no
14065         ;;
14066
14067       sunos4*)
14068         case $cc_basename in
14069           CC*)
14070             # Sun C++ 4.x
14071             # FIXME: insert proper C++ library support
14072             ld_shlibs_CXX=no
14073             ;;
14074           lcc*)
14075             # Lucid
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079           *)
14080             # FIXME: insert proper C++ library support
14081             ld_shlibs_CXX=no
14082             ;;
14083         esac
14084         ;;
14085
14086       solaris*)
14087         case $cc_basename in
14088           CC*)
14089             # Sun C++ 4.2, 5.x and Centerline C++
14090             archive_cmds_need_lc_CXX=yes
14091             no_undefined_flag_CXX=' -zdefs'
14092             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14093             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094               $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'
14095
14096             hardcode_libdir_flag_spec_CXX='-R$libdir'
14097             hardcode_shlibpath_var_CXX=no
14098             case $host_os in
14099               solaris2.[0-5] | solaris2.[0-5].*) ;;
14100               *)
14101                 # The compiler driver will combine and reorder linker options,
14102                 # but understands `-z linker_flag'.
14103                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14104                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14105                 ;;
14106             esac
14107             link_all_deplibs_CXX=yes
14108
14109             output_verbose_link_cmd='echo'
14110
14111             # Archives containing C++ object files must be created using
14112             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14113             # necessary to make sure instantiated templates are included
14114             # in the archive.
14115             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14116             ;;
14117           gcx*)
14118             # Green Hills C++ Compiler
14119             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14120
14121             # The C++ compiler must be used to create the archive.
14122             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14123             ;;
14124           *)
14125             # GNU C++ compiler with Solaris linker
14126             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14127               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14128               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14129                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14131                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14132
14133                 # Commands to make compiler produce verbose output that lists
14134                 # what "hidden" libraries, object files and flags are used when
14135                 # linking a shared library.
14136                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14137               else
14138                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14139                 # platform.
14140                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14143
14144                 # Commands to make compiler produce verbose output that lists
14145                 # what "hidden" libraries, object files and flags are used when
14146                 # linking a shared library.
14147                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14148               fi
14149
14150               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14151               case $host_os in
14152                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14153                 *)
14154                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14155                   ;;
14156               esac
14157             fi
14158             ;;
14159         esac
14160         ;;
14161
14162     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14163       no_undefined_flag_CXX='${wl}-z,text'
14164       archive_cmds_need_lc_CXX=no
14165       hardcode_shlibpath_var_CXX=no
14166       runpath_var='LD_RUN_PATH'
14167
14168       case $cc_basename in
14169         CC*)
14170           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172           ;;
14173         *)
14174           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176           ;;
14177       esac
14178       ;;
14179
14180       sysv5* | sco3.2v5* | sco5v6*)
14181         # Note: We can NOT use -z defs as we might desire, because we do not
14182         # link with -lc, and that would cause any symbols used from libc to
14183         # always be unresolved, which means just about no library would
14184         # ever link correctly.  If we're not using GNU ld we use -z text
14185         # though, which does catch some bad symbols but isn't as heavy-handed
14186         # as -z defs.
14187         no_undefined_flag_CXX='${wl}-z,text'
14188         allow_undefined_flag_CXX='${wl}-z,nodefs'
14189         archive_cmds_need_lc_CXX=no
14190         hardcode_shlibpath_var_CXX=no
14191         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14192         hardcode_libdir_separator_CXX=':'
14193         link_all_deplibs_CXX=yes
14194         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14195         runpath_var='LD_RUN_PATH'
14196
14197         case $cc_basename in
14198           CC*)
14199             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201             ;;
14202           *)
14203             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             ;;
14206         esac
14207       ;;
14208
14209       tandem*)
14210         case $cc_basename in
14211           NCC*)
14212             # NonStop-UX NCC 3.20
14213             # FIXME: insert proper C++ library support
14214             ld_shlibs_CXX=no
14215             ;;
14216           *)
14217             # FIXME: insert proper C++ library support
14218             ld_shlibs_CXX=no
14219             ;;
14220         esac
14221         ;;
14222
14223       vxworks*)
14224         # FIXME: insert proper C++ library support
14225         ld_shlibs_CXX=no
14226         ;;
14227
14228       *)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232     esac
14233
14234     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14235 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14236     test "$ld_shlibs_CXX" = no && can_build_shared=no
14237
14238     GCC_CXX="$GXX"
14239     LD_CXX="$LD"
14240
14241     ## CAVEAT EMPTOR:
14242     ## There is no encapsulation within the following macros, do not change
14243     ## the running order or otherwise move them around unless you know exactly
14244     ## what you are doing...
14245     # Dependencies to place before and after the object being linked:
14246 predep_objects_CXX=
14247 postdep_objects_CXX=
14248 predeps_CXX=
14249 postdeps_CXX=
14250 compiler_lib_search_path_CXX=
14251
14252 cat > conftest.$ac_ext <<_LT_EOF
14253 class Foo
14254 {
14255 public:
14256   Foo (void) { a = 0; }
14257 private:
14258   int a;
14259 };
14260 _LT_EOF
14261
14262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263   (eval $ac_compile) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; then
14267   # Parse the compiler output and extract the necessary
14268   # objects, libraries and library flags.
14269
14270   # Sentinel used to keep track of whether or not we are before
14271   # the conftest object file.
14272   pre_test_object_deps_done=no
14273
14274   for p in `eval "$output_verbose_link_cmd"`; do
14275     case $p in
14276
14277     -L* | -R* | -l*)
14278        # Some compilers place space between "-{L,R}" and the path.
14279        # Remove the space.
14280        if test $p = "-L" ||
14281           test $p = "-R"; then
14282          prev=$p
14283          continue
14284        else
14285          prev=
14286        fi
14287
14288        if test "$pre_test_object_deps_done" = no; then
14289          case $p in
14290          -L* | -R*)
14291            # Internal compiler library paths should come after those
14292            # provided the user.  The postdeps already come after the
14293            # user supplied libs so there is no need to process them.
14294            if test -z "$compiler_lib_search_path_CXX"; then
14295              compiler_lib_search_path_CXX="${prev}${p}"
14296            else
14297              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14298            fi
14299            ;;
14300          # The "-l" case would never come before the object being
14301          # linked, so don't bother handling this case.
14302          esac
14303        else
14304          if test -z "$postdeps_CXX"; then
14305            postdeps_CXX="${prev}${p}"
14306          else
14307            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14308          fi
14309        fi
14310        ;;
14311
14312     *.$objext)
14313        # This assumes that the test object file only shows up
14314        # once in the compiler output.
14315        if test "$p" = "conftest.$objext"; then
14316          pre_test_object_deps_done=yes
14317          continue
14318        fi
14319
14320        if test "$pre_test_object_deps_done" = no; then
14321          if test -z "$predep_objects_CXX"; then
14322            predep_objects_CXX="$p"
14323          else
14324            predep_objects_CXX="$predep_objects_CXX $p"
14325          fi
14326        else
14327          if test -z "$postdep_objects_CXX"; then
14328            postdep_objects_CXX="$p"
14329          else
14330            postdep_objects_CXX="$postdep_objects_CXX $p"
14331          fi
14332        fi
14333        ;;
14334
14335     *) ;; # Ignore the rest.
14336
14337     esac
14338   done
14339
14340   # Clean up.
14341   rm -f a.out a.exe
14342 else
14343   echo "libtool.m4: error: problem compiling CXX test program"
14344 fi
14345
14346 $RM -f confest.$objext
14347
14348 # PORTME: override above test on systems where it is broken
14349 case $host_os in
14350 interix[3-9]*)
14351   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14352   # hack all around it, let's just trust "g++" to DTRT.
14353   predep_objects_CXX=
14354   postdep_objects_CXX=
14355   postdeps_CXX=
14356   ;;
14357
14358 linux*)
14359   case `$CC -V 2>&1 | sed 5q` in
14360   *Sun\ C*)
14361     # Sun C++ 5.9
14362
14363     # The more standards-conforming stlport4 library is
14364     # incompatible with the Cstd library. Avoid specifying
14365     # it if it's in CXXFLAGS. Ignore libCrun as
14366     # -library=stlport4 depends on it.
14367     case " $CXX $CXXFLAGS " in
14368     *" -library=stlport4 "*)
14369       solaris_use_stlport4=yes
14370       ;;
14371     esac
14372
14373     if test "$solaris_use_stlport4" != yes; then
14374       postdeps_CXX='-library=Cstd -library=Crun'
14375     fi
14376     ;;
14377   esac
14378   ;;
14379
14380 solaris*)
14381   case $cc_basename in
14382   CC*)
14383     # The more standards-conforming stlport4 library is
14384     # incompatible with the Cstd library. Avoid specifying
14385     # it if it's in CXXFLAGS. Ignore libCrun as
14386     # -library=stlport4 depends on it.
14387     case " $CXX $CXXFLAGS " in
14388     *" -library=stlport4 "*)
14389       solaris_use_stlport4=yes
14390       ;;
14391     esac
14392
14393     # Adding this requires a known-good setup of shared libraries for
14394     # Sun compiler versions before 5.6, else PIC objects from an old
14395     # archive will be linked into the output, leading to subtle bugs.
14396     if test "$solaris_use_stlport4" != yes; then
14397       postdeps_CXX='-library=Cstd -library=Crun'
14398     fi
14399     ;;
14400   esac
14401   ;;
14402 esac
14403
14404
14405 case " $postdeps_CXX " in
14406 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14407 esac
14408  compiler_lib_search_dirs_CXX=
14409 if test -n "${compiler_lib_search_path_CXX}"; then
14410  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14411 fi
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443     lt_prog_compiler_wl_CXX=
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_static_CXX=
14446
14447 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14449
14450   # C++ specific cases for pic, static, wl, etc.
14451   if test "$GXX" = yes; then
14452     lt_prog_compiler_wl_CXX='-Wl,'
14453     lt_prog_compiler_static_CXX='-static'
14454
14455     case $host_os in
14456     aix*)
14457       # All AIX code is PIC.
14458       if test "$host_cpu" = ia64; then
14459         # AIX 5 now supports IA64 processor
14460         lt_prog_compiler_static_CXX='-Bstatic'
14461       fi
14462       ;;
14463
14464     amigaos*)
14465       case $host_cpu in
14466       powerpc)
14467             # see comment about AmigaOS4 .so support
14468             lt_prog_compiler_pic_CXX='-fPIC'
14469         ;;
14470       m68k)
14471             # FIXME: we need at least 68020 code to build shared libraries, but
14472             # adding the `-m68020' flag to GCC prevents building anything better,
14473             # like `-m68040'.
14474             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14475         ;;
14476       esac
14477       ;;
14478
14479     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14480       # PIC is the default for these OSes.
14481       ;;
14482     mingw* | cygwin* | os2* | pw32* | cegcc*)
14483       # This hack is so that the source file can tell whether it is being
14484       # built for inclusion in a dll (and should export symbols for example).
14485       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14486       # (--disable-auto-import) libraries
14487       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14488       ;;
14489     darwin* | rhapsody*)
14490       # PIC is the default on this platform
14491       # Common symbols not allowed in MH_DYLIB files
14492       lt_prog_compiler_pic_CXX='-fno-common'
14493       ;;
14494     *djgpp*)
14495       # DJGPP does not support shared libraries at all
14496       lt_prog_compiler_pic_CXX=
14497       ;;
14498     interix[3-9]*)
14499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14500       # Instead, we relocate shared libraries at runtime.
14501       ;;
14502     sysv4*MP*)
14503       if test -d /usr/nec; then
14504         lt_prog_compiler_pic_CXX=-Kconform_pic
14505       fi
14506       ;;
14507     hpux*)
14508       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14509       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14510       # sets the default TLS model and affects inlining.
14511       case $host_cpu in
14512       hppa*64*)
14513         ;;
14514       *)
14515         lt_prog_compiler_pic_CXX='-fPIC'
14516         ;;
14517       esac
14518       ;;
14519     *qnx* | *nto*)
14520       # QNX uses GNU C++, but need to define -shared option too, otherwise
14521       # it will coredump.
14522       lt_prog_compiler_pic_CXX='-fPIC -shared'
14523       ;;
14524     *)
14525       lt_prog_compiler_pic_CXX='-fPIC'
14526       ;;
14527     esac
14528   else
14529     case $host_os in
14530       aix[4-9]*)
14531         # All AIX code is PIC.
14532         if test "$host_cpu" = ia64; then
14533           # AIX 5 now supports IA64 processor
14534           lt_prog_compiler_static_CXX='-Bstatic'
14535         else
14536           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14537         fi
14538         ;;
14539       chorus*)
14540         case $cc_basename in
14541         cxch68*)
14542           # Green Hills C++ Compiler
14543           # _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"
14544           ;;
14545         esac
14546         ;;
14547       dgux*)
14548         case $cc_basename in
14549           ec++*)
14550             lt_prog_compiler_pic_CXX='-KPIC'
14551             ;;
14552           ghcx*)
14553             # Green Hills C++ Compiler
14554             lt_prog_compiler_pic_CXX='-pic'
14555             ;;
14556           *)
14557             ;;
14558         esac
14559         ;;
14560       freebsd* | dragonfly*)
14561         # FreeBSD uses GNU C++
14562         ;;
14563       hpux9* | hpux10* | hpux11*)
14564         case $cc_basename in
14565           CC*)
14566             lt_prog_compiler_wl_CXX='-Wl,'
14567             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14568             if test "$host_cpu" != ia64; then
14569               lt_prog_compiler_pic_CXX='+Z'
14570             fi
14571             ;;
14572           aCC*)
14573             lt_prog_compiler_wl_CXX='-Wl,'
14574             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14575             case $host_cpu in
14576             hppa*64*|ia64*)
14577               # +Z the default
14578               ;;
14579             *)
14580               lt_prog_compiler_pic_CXX='+Z'
14581               ;;
14582             esac
14583             ;;
14584           *)
14585             ;;
14586         esac
14587         ;;
14588       interix*)
14589         # This is c89, which is MS Visual C++ (no shared libs)
14590         # Anyone wants to do a port?
14591         ;;
14592       irix5* | irix6* | nonstopux*)
14593         case $cc_basename in
14594           CC*)
14595             lt_prog_compiler_wl_CXX='-Wl,'
14596             lt_prog_compiler_static_CXX='-non_shared'
14597             # CC pic flag -KPIC is the default.
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       linux* | k*bsd*-gnu)
14604         case $cc_basename in
14605           KCC*)
14606             # KAI C++ Compiler
14607             lt_prog_compiler_wl_CXX='--backend -Wl,'
14608             lt_prog_compiler_pic_CXX='-fPIC'
14609             ;;
14610           ecpc* )
14611             # old Intel C++ for x86_64 which still supported -KPIC.
14612             lt_prog_compiler_wl_CXX='-Wl,'
14613             lt_prog_compiler_pic_CXX='-KPIC'
14614             lt_prog_compiler_static_CXX='-static'
14615             ;;
14616           icpc* )
14617             # Intel C++, used to be incompatible with GCC.
14618             # ICC 10 doesn't accept -KPIC any more.
14619             lt_prog_compiler_wl_CXX='-Wl,'
14620             lt_prog_compiler_pic_CXX='-fPIC'
14621             lt_prog_compiler_static_CXX='-static'
14622             ;;
14623           pgCC* | pgcpp*)
14624             # Portland Group C++ compiler
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             lt_prog_compiler_pic_CXX='-fpic'
14627             lt_prog_compiler_static_CXX='-Bstatic'
14628             ;;
14629           cxx*)
14630             # Compaq C++
14631             # Make sure the PIC flag is empty.  It appears that all Alpha
14632             # Linux and Compaq Tru64 Unix objects are PIC.
14633             lt_prog_compiler_pic_CXX=
14634             lt_prog_compiler_static_CXX='-non_shared'
14635             ;;
14636           xlc* | xlC*)
14637             # IBM XL 8.0 on PPC
14638             lt_prog_compiler_wl_CXX='-Wl,'
14639             lt_prog_compiler_pic_CXX='-qpic'
14640             lt_prog_compiler_static_CXX='-qstaticlink'
14641             ;;
14642           *)
14643             case `$CC -V 2>&1 | sed 5q` in
14644             *Sun\ C*)
14645               # Sun C++ 5.9
14646               lt_prog_compiler_pic_CXX='-KPIC'
14647               lt_prog_compiler_static_CXX='-Bstatic'
14648               lt_prog_compiler_wl_CXX='-Qoption ld '
14649               ;;
14650             esac
14651             ;;
14652         esac
14653         ;;
14654       lynxos*)
14655         ;;
14656       m88k*)
14657         ;;
14658       mvs*)
14659         case $cc_basename in
14660           cxx*)
14661             lt_prog_compiler_pic_CXX='-W c,exportall'
14662             ;;
14663           *)
14664             ;;
14665         esac
14666         ;;
14667       netbsd*)
14668         ;;
14669       *qnx* | *nto*)
14670         # QNX uses GNU C++, but need to define -shared option too, otherwise
14671         # it will coredump.
14672         lt_prog_compiler_pic_CXX='-fPIC -shared'
14673         ;;
14674       osf3* | osf4* | osf5*)
14675         case $cc_basename in
14676           KCC*)
14677             lt_prog_compiler_wl_CXX='--backend -Wl,'
14678             ;;
14679           RCC*)
14680             # Rational C++ 2.4.1
14681             lt_prog_compiler_pic_CXX='-pic'
14682             ;;
14683           cxx*)
14684             # Digital/Compaq C++
14685             lt_prog_compiler_wl_CXX='-Wl,'
14686             # Make sure the PIC flag is empty.  It appears that all Alpha
14687             # Linux and Compaq Tru64 Unix objects are PIC.
14688             lt_prog_compiler_pic_CXX=
14689             lt_prog_compiler_static_CXX='-non_shared'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       psos*)
14696         ;;
14697       solaris*)
14698         case $cc_basename in
14699           CC*)
14700             # Sun C++ 4.2, 5.x and Centerline C++
14701             lt_prog_compiler_pic_CXX='-KPIC'
14702             lt_prog_compiler_static_CXX='-Bstatic'
14703             lt_prog_compiler_wl_CXX='-Qoption ld '
14704             ;;
14705           gcx*)
14706             # Green Hills C++ Compiler
14707             lt_prog_compiler_pic_CXX='-PIC'
14708             ;;
14709           *)
14710             ;;
14711         esac
14712         ;;
14713       sunos4*)
14714         case $cc_basename in
14715           CC*)
14716             # Sun C++ 4.x
14717             lt_prog_compiler_pic_CXX='-pic'
14718             lt_prog_compiler_static_CXX='-Bstatic'
14719             ;;
14720           lcc*)
14721             # Lucid
14722             lt_prog_compiler_pic_CXX='-pic'
14723             ;;
14724           *)
14725             ;;
14726         esac
14727         ;;
14728       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14729         case $cc_basename in
14730           CC*)
14731             lt_prog_compiler_wl_CXX='-Wl,'
14732             lt_prog_compiler_pic_CXX='-KPIC'
14733             lt_prog_compiler_static_CXX='-Bstatic'
14734             ;;
14735         esac
14736         ;;
14737       tandem*)
14738         case $cc_basename in
14739           NCC*)
14740             # NonStop-UX NCC 3.20
14741             lt_prog_compiler_pic_CXX='-KPIC'
14742             ;;
14743           *)
14744             ;;
14745         esac
14746         ;;
14747       vxworks*)
14748         ;;
14749       *)
14750         lt_prog_compiler_can_build_shared_CXX=no
14751         ;;
14752     esac
14753   fi
14754
14755 case $host_os in
14756   # For platforms which do not support PIC, -DPIC is meaningless:
14757   *djgpp*)
14758     lt_prog_compiler_pic_CXX=
14759     ;;
14760   *)
14761     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14762     ;;
14763 esac
14764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14766
14767
14768
14769 #
14770 # Check to make sure the PIC flag actually works.
14771 #
14772 if test -n "$lt_prog_compiler_pic_CXX"; then
14773   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14775 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   lt_cv_prog_compiler_pic_works_CXX=no
14779    ac_outfile=conftest.$ac_objext
14780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14782    # Insert the option either (1) after the last *FLAGS variable, or
14783    # (2) before a word containing "conftest.", or (3) at the end.
14784    # Note that $ac_compile itself does not contain backslashes and begins
14785    # with a dollar sign (not a hyphen), so the echo should work correctly.
14786    # The option is referenced via a variable to avoid confusing sed.
14787    lt_compile=`echo "$ac_compile" | $SED \
14788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14790    -e 's:$: $lt_compiler_flag:'`
14791    (eval echo "\"\$as_me:14791: $lt_compile\"" >&5)
14792    (eval "$lt_compile" 2>conftest.err)
14793    ac_status=$?
14794    cat conftest.err >&5
14795    echo "$as_me:14795: \$? = $ac_status" >&5
14796    if (exit $ac_status) && test -s "$ac_outfile"; then
14797      # The compiler can only warn and ignore the option if not recognized
14798      # So say no if there are warnings other than the usual output.
14799      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14800      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14801      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14802        lt_cv_prog_compiler_pic_works_CXX=yes
14803      fi
14804    fi
14805    $RM conftest*
14806
14807 fi
14808 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14809 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14810
14811 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14812     case $lt_prog_compiler_pic_CXX in
14813      "" | " "*) ;;
14814      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14815      esac
14816 else
14817     lt_prog_compiler_pic_CXX=
14818      lt_prog_compiler_can_build_shared_CXX=no
14819 fi
14820
14821 fi
14822
14823
14824
14825 #
14826 # Check to make sure the static flag actually works.
14827 #
14828 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14829 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14831 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14832   echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834   lt_cv_prog_compiler_static_works_CXX=no
14835    save_LDFLAGS="$LDFLAGS"
14836    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839      # The linker can only warn and ignore the option if not recognized
14840      # So say no if there are warnings
14841      if test -s conftest.err; then
14842        # Append any errors to the config.log.
14843        cat conftest.err 1>&5
14844        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846        if diff conftest.exp conftest.er2 >/dev/null; then
14847          lt_cv_prog_compiler_static_works_CXX=yes
14848        fi
14849      else
14850        lt_cv_prog_compiler_static_works_CXX=yes
14851      fi
14852    fi
14853    $RM -r conftest*
14854    LDFLAGS="$save_LDFLAGS"
14855
14856 fi
14857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14858 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14859
14860 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14861     :
14862 else
14863     lt_prog_compiler_static_CXX=
14864 fi
14865
14866
14867
14868
14869     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   lt_cv_prog_compiler_c_o_CXX=no
14875    $RM -r conftest 2>/dev/null
14876    mkdir conftest
14877    cd conftest
14878    mkdir out
14879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881    lt_compiler_flag="-o out/conftest2.$ac_objext"
14882    # Insert the option either (1) after the last *FLAGS variable, or
14883    # (2) before a word containing "conftest.", or (3) at the end.
14884    # Note that $ac_compile itself does not contain backslashes and begins
14885    # with a dollar sign (not a hyphen), so the echo should work correctly.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>out/conftest.err)
14892    ac_status=$?
14893    cat out/conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896    then
14897      # The compiler can only warn and ignore the option if not recognized
14898      # So say no if there are warnings
14899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902        lt_cv_prog_compiler_c_o_CXX=yes
14903      fi
14904    fi
14905    chmod u+w . 2>&5
14906    $RM conftest*
14907    # SGI C++ compiler will create directory out/ii_files/ for
14908    # template instantiation
14909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910    $RM out/* && rmdir out
14911    cd ..
14912    $RM -r conftest
14913    $RM conftest*
14914
14915 fi
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918
14919
14920
14921     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14923 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   lt_cv_prog_compiler_c_o_CXX=no
14927    $RM -r conftest 2>/dev/null
14928    mkdir conftest
14929    cd conftest
14930    mkdir out
14931    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14932
14933    lt_compiler_flag="-o out/conftest2.$ac_objext"
14934    # Insert the option either (1) after the last *FLAGS variable, or
14935    # (2) before a word containing "conftest.", or (3) at the end.
14936    # Note that $ac_compile itself does not contain backslashes and begins
14937    # with a dollar sign (not a hyphen), so the echo should work correctly.
14938    lt_compile=`echo "$ac_compile" | $SED \
14939    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14941    -e 's:$: $lt_compiler_flag:'`
14942    (eval echo "\"\$as_me:14942: $lt_compile\"" >&5)
14943    (eval "$lt_compile" 2>out/conftest.err)
14944    ac_status=$?
14945    cat out/conftest.err >&5
14946    echo "$as_me:14946: \$? = $ac_status" >&5
14947    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14948    then
14949      # The compiler can only warn and ignore the option if not recognized
14950      # So say no if there are warnings
14951      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14952      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14953      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14954        lt_cv_prog_compiler_c_o_CXX=yes
14955      fi
14956    fi
14957    chmod u+w . 2>&5
14958    $RM conftest*
14959    # SGI C++ compiler will create directory out/ii_files/ for
14960    # template instantiation
14961    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14962    $RM out/* && rmdir out
14963    cd ..
14964    $RM -r conftest
14965    $RM conftest*
14966
14967 fi
14968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14970
14971
14972
14973
14974 hard_links="nottested"
14975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14976   # do not overwrite the value of need_locks provided by the user
14977   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14979   hard_links=yes
14980   $RM conftest*
14981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14982   touch conftest.a
14983   ln conftest.a conftest.b 2>&5 || hard_links=no
14984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14985   { echo "$as_me:$LINENO: result: $hard_links" >&5
14986 echo "${ECHO_T}$hard_links" >&6; }
14987   if test "$hard_links" = no; then
14988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14990     need_locks=warn
14991   fi
14992 else
14993   need_locks=no
14994 fi
14995
14996
14997
14998     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15000
15001   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15002   case $host_os in
15003   aix[4-9]*)
15004     # If we're using GNU nm, then we don't want the "-C" option.
15005     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15006     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15007       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'
15008     else
15009       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'
15010     fi
15011     ;;
15012   pw32*)
15013     export_symbols_cmds_CXX="$ltdll_cmds"
15014   ;;
15015   cygwin* | mingw* | cegcc*)
15016     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'
15017   ;;
15018   *)
15019     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15020   ;;
15021   esac
15022   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15023
15024 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15025 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15026 test "$ld_shlibs_CXX" = no && can_build_shared=no
15027
15028 with_gnu_ld_CXX=$with_gnu_ld
15029
15030
15031
15032
15033
15034
15035 #
15036 # Do we need to explicitly link libc?
15037 #
15038 case "x$archive_cmds_need_lc_CXX" in
15039 x|xyes)
15040   # Assume -lc should be added
15041   archive_cmds_need_lc_CXX=yes
15042
15043   if test "$enable_shared" = yes && test "$GCC" = yes; then
15044     case $archive_cmds_CXX in
15045     *'~'*)
15046       # FIXME: we may have to deal with multi-command sequences.
15047       ;;
15048     '$CC '*)
15049       # Test whether the compiler implicitly links with -lc since on some
15050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15051       # to ld, don't add -lc before -lgcc.
15052       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15054       $RM conftest*
15055       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15056
15057       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } 2>conftest.err; then
15062         soname=conftest
15063         lib=conftest
15064         libobjs=conftest.$ac_objext
15065         deplibs=
15066         wl=$lt_prog_compiler_wl_CXX
15067         pic_flag=$lt_prog_compiler_pic_CXX
15068         compiler_flags=-v
15069         linker_flags=-v
15070         verstring=
15071         output_objdir=.
15072         libname=conftest
15073         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15074         allow_undefined_flag_CXX=
15075         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15076   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); }
15080         then
15081           archive_cmds_need_lc_CXX=no
15082         else
15083           archive_cmds_need_lc_CXX=yes
15084         fi
15085         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15086       else
15087         cat conftest.err 1>&5
15088       fi
15089       $RM conftest*
15090       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15091 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15092       ;;
15093     esac
15094   fi
15095   ;;
15096 esac
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163
15164 library_names_spec=
15165 libname_spec='lib$name'
15166 soname_spec=
15167 shrext_cmds=".so"
15168 postinstall_cmds=
15169 postuninstall_cmds=
15170 finish_cmds=
15171 finish_eval=
15172 shlibpath_var=
15173 shlibpath_overrides_runpath=unknown
15174 version_type=none
15175 dynamic_linker="$host_os ld.so"
15176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15177 need_lib_prefix=unknown
15178 hardcode_into_libs=no
15179
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version=unknown
15183
15184 case $host_os in
15185 aix3*)
15186   version_type=linux
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15188   shlibpath_var=LIBPATH
15189
15190   # AIX 3 has no versioning support, so we append a major version to the name.
15191   soname_spec='${libname}${release}${shared_ext}$major'
15192   ;;
15193
15194 aix[4-9]*)
15195   version_type=linux
15196   need_lib_prefix=no
15197   need_version=no
15198   hardcode_into_libs=yes
15199   if test "$host_cpu" = ia64; then
15200     # AIX 5 supports IA64
15201     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202     shlibpath_var=LD_LIBRARY_PATH
15203   else
15204     # With GCC up to 2.95.x, collect2 would create an import file
15205     # for dependence libraries.  The import file would start with
15206     # the line `#! .'.  This would cause the generated library to
15207     # depend on `.', always an invalid library.  This was fixed in
15208     # development snapshots of GCC prior to 3.0.
15209     case $host_os in
15210       aix4 | aix4.[01] | aix4.[01].*)
15211       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15212            echo ' yes '
15213            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15214         :
15215       else
15216         can_build_shared=no
15217       fi
15218       ;;
15219     esac
15220     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221     # soname into executable. Probably we can add versioning support to
15222     # collect2, so additional links can be useful in future.
15223     if test "$aix_use_runtimelinking" = yes; then
15224       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225       # instead of lib<name>.a to let people know that these are not
15226       # typical AIX shared libraries.
15227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228     else
15229       # We preserve .a as extension for shared libraries through AIX4.2
15230       # and later when we are not doing run time linking.
15231       library_names_spec='${libname}${release}.a $libname.a'
15232       soname_spec='${libname}${release}${shared_ext}$major'
15233     fi
15234     shlibpath_var=LIBPATH
15235   fi
15236   ;;
15237
15238 amigaos*)
15239   case $host_cpu in
15240   powerpc)
15241     # Since July 2007 AmigaOS4 officially supports .so libraries.
15242     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244     ;;
15245   m68k)
15246     library_names_spec='$libname.ixlibrary $libname.a'
15247     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15248     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'
15249     ;;
15250   esac
15251   ;;
15252
15253 beos*)
15254   library_names_spec='${libname}${shared_ext}'
15255   dynamic_linker="$host_os ld.so"
15256   shlibpath_var=LIBRARY_PATH
15257   ;;
15258
15259 bsdi[45]*)
15260   version_type=linux
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15267   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15268   # the default ld.so.conf also contains /usr/contrib/lib and
15269   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15270   # libtool to hard-code these into programs
15271   ;;
15272
15273 cygwin* | mingw* | pw32* | cegcc*)
15274   version_type=windows
15275   shrext_cmds=".dll"
15276   need_version=no
15277   need_lib_prefix=no
15278
15279   case $GCC,$host_os in
15280   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15281     library_names_spec='$libname.dll.a'
15282     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15283     postinstall_cmds='base_file=`basename \${file}`~
15284       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15285       dldir=$destdir/`dirname \$dlpath`~
15286       test -d \$dldir || mkdir -p \$dldir~
15287       $install_prog $dir/$dlname \$dldir/$dlname~
15288       chmod a+x \$dldir/$dlname~
15289       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15290         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15291       fi'
15292     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293       dlpath=$dir/\$dldll~
15294        $RM \$dlpath'
15295     shlibpath_overrides_runpath=yes
15296
15297     case $host_os in
15298     cygwin*)
15299       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15300       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15301       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15302       ;;
15303     mingw* | cegcc*)
15304       # MinGW DLLs use traditional 'lib' prefix
15305       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15307       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15308         # It is most probably a Windows format PATH printed by
15309         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15310         # path with ; separators, and with drive letters. We can handle the
15311         # drive letters (cygwin fileutils understands them), so leave them,
15312         # especially as we might pass files found there to a mingw objdump,
15313         # which wouldn't understand a cygwinified path. Ahh.
15314         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15315       else
15316         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15317       fi
15318       ;;
15319     pw32*)
15320       # pw32 DLLs use 'pw' prefix rather than 'lib'
15321       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15322       ;;
15323     esac
15324     ;;
15325
15326   *)
15327     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15328     ;;
15329   esac
15330   dynamic_linker='Win32 ld.exe'
15331   # FIXME: first we should search . and the directory the executable is in
15332   shlibpath_var=PATH
15333   ;;
15334
15335 darwin* | rhapsody*)
15336   dynamic_linker="$host_os dyld"
15337   version_type=darwin
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15341   soname_spec='${libname}${release}${major}$shared_ext'
15342   shlibpath_overrides_runpath=yes
15343   shlibpath_var=DYLD_LIBRARY_PATH
15344   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15345
15346   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15347   ;;
15348
15349 dgux*)
15350   version_type=linux
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   ;;
15357
15358 freebsd1*)
15359   dynamic_linker=no
15360   ;;
15361
15362 freebsd* | dragonfly*)
15363   # DragonFly does not have aout.  When/if they implement a new
15364   # versioning mechanism, adjust this.
15365   if test -x /usr/bin/objformat; then
15366     objformat=`/usr/bin/objformat`
15367   else
15368     case $host_os in
15369     freebsd[123]*) objformat=aout ;;
15370     *) objformat=elf ;;
15371     esac
15372   fi
15373   version_type=freebsd-$objformat
15374   case $version_type in
15375     freebsd-elf*)
15376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15377       need_version=no
15378       need_lib_prefix=no
15379       ;;
15380     freebsd-*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15382       need_version=yes
15383       ;;
15384   esac
15385   shlibpath_var=LD_LIBRARY_PATH
15386   case $host_os in
15387   freebsd2*)
15388     shlibpath_overrides_runpath=yes
15389     ;;
15390   freebsd3.[01]* | freebsdelf3.[01]*)
15391     shlibpath_overrides_runpath=yes
15392     hardcode_into_libs=yes
15393     ;;
15394   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15395   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15396     shlibpath_overrides_runpath=no
15397     hardcode_into_libs=yes
15398     ;;
15399   *) # from 4.6 on, and DragonFly
15400     shlibpath_overrides_runpath=yes
15401     hardcode_into_libs=yes
15402     ;;
15403   esac
15404   ;;
15405
15406 gnu*)
15407   version_type=linux
15408   need_lib_prefix=no
15409   need_version=no
15410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15411   soname_spec='${libname}${release}${shared_ext}$major'
15412   shlibpath_var=LD_LIBRARY_PATH
15413   hardcode_into_libs=yes
15414   ;;
15415
15416 hpux9* | hpux10* | hpux11*)
15417   # Give a soname corresponding to the major version so that dld.sl refuses to
15418   # link against other versions.
15419   version_type=sunos
15420   need_lib_prefix=no
15421   need_version=no
15422   case $host_cpu in
15423   ia64*)
15424     shrext_cmds='.so'
15425     hardcode_into_libs=yes
15426     dynamic_linker="$host_os dld.so"
15427     shlibpath_var=LD_LIBRARY_PATH
15428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430     soname_spec='${libname}${release}${shared_ext}$major'
15431     if test "X$HPUX_IA64_MODE" = X32; then
15432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15433     else
15434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15435     fi
15436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15437     ;;
15438   hppa*64*)
15439     shrext_cmds='.sl'
15440     hardcode_into_libs=yes
15441     dynamic_linker="$host_os dld.sl"
15442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445     soname_spec='${libname}${release}${shared_ext}$major'
15446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448     ;;
15449   *)
15450     shrext_cmds='.sl'
15451     dynamic_linker="$host_os dld.sl"
15452     shlibpath_var=SHLIB_PATH
15453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455     soname_spec='${libname}${release}${shared_ext}$major'
15456     ;;
15457   esac
15458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15459   postinstall_cmds='chmod 555 $lib'
15460   ;;
15461
15462 interix[3-9]*)
15463   version_type=linux
15464   need_lib_prefix=no
15465   need_version=no
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467   soname_spec='${libname}${release}${shared_ext}$major'
15468   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   shlibpath_overrides_runpath=no
15471   hardcode_into_libs=yes
15472   ;;
15473
15474 irix5* | irix6* | nonstopux*)
15475   case $host_os in
15476     nonstopux*) version_type=nonstopux ;;
15477     *)
15478         if test "$lt_cv_prog_gnu_ld" = yes; then
15479                 version_type=linux
15480         else
15481                 version_type=irix
15482         fi ;;
15483   esac
15484   need_lib_prefix=no
15485   need_version=no
15486   soname_spec='${libname}${release}${shared_ext}$major'
15487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15488   case $host_os in
15489   irix5* | nonstopux*)
15490     libsuff= shlibsuff=
15491     ;;
15492   *)
15493     case $LD in # libtool.m4 will add one of these switches to LD
15494     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15495       libsuff= shlibsuff= libmagic=32-bit;;
15496     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15497       libsuff=32 shlibsuff=N32 libmagic=N32;;
15498     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15499       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15500     *) libsuff= shlibsuff= libmagic=never-match;;
15501     esac
15502     ;;
15503   esac
15504   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15505   shlibpath_overrides_runpath=no
15506   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15507   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15508   hardcode_into_libs=yes
15509   ;;
15510
15511 # No shared lib support for Linux oldld, aout, or coff.
15512 linux*oldld* | linux*aout* | linux*coff*)
15513   dynamic_linker=no
15514   ;;
15515
15516 # This must be Linux ELF.
15517 linux* | k*bsd*-gnu)
15518   version_type=linux
15519   need_lib_prefix=no
15520   need_version=no
15521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522   soname_spec='${libname}${release}${shared_ext}$major'
15523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15524   shlibpath_var=LD_LIBRARY_PATH
15525   shlibpath_overrides_runpath=no
15526   # Some binutils ld are patched to set DT_RUNPATH
15527   save_LDFLAGS=$LDFLAGS
15528   save_libdir=$libdir
15529   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15530        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537
15538 int
15539 main ()
15540 {
15541
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (ac_try="$ac_link"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_link") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } && {
15560          test -z "$ac_cxx_werror_flag" ||
15561          test ! -s conftest.err
15562        } && test -s conftest$ac_exeext &&
15563        $as_test_x conftest$ac_exeext; then
15564   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15565   shlibpath_overrides_runpath=yes
15566 fi
15567
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576       conftest$ac_exeext conftest.$ac_ext
15577   LDFLAGS=$save_LDFLAGS
15578   libdir=$save_libdir
15579
15580   # This implies no fast_install, which is unacceptable.
15581   # Some rework will be needed to allow for fast_install
15582   # before this can be enabled.
15583   hardcode_into_libs=yes
15584
15585   # Append ld.so.conf contents to the search path
15586   if test -f /etc/ld.so.conf; then
15587     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' ' '`
15588     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15589   fi
15590
15591   # We used to test for /lib/ld.so.1 and disable shared libraries on
15592   # powerpc, because MkLinux only supported shared libraries with the
15593   # GNU dynamic linker.  Since this was broken with cross compilers,
15594   # most powerpc-linux boxes support dynamic linking these days and
15595   # people can always --disable-shared, the test was removed, and we
15596   # assume the GNU/Linux dynamic linker is in use.
15597   dynamic_linker='GNU/Linux ld.so'
15598   ;;
15599
15600 netbsd*)
15601   version_type=sunos
15602   need_lib_prefix=no
15603   need_version=no
15604   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15606     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15607     dynamic_linker='NetBSD (a.out) ld.so'
15608   else
15609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15610     soname_spec='${libname}${release}${shared_ext}$major'
15611     dynamic_linker='NetBSD ld.elf_so'
15612   fi
15613   shlibpath_var=LD_LIBRARY_PATH
15614   shlibpath_overrides_runpath=yes
15615   hardcode_into_libs=yes
15616   ;;
15617
15618 newsos6)
15619   version_type=linux
15620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=yes
15623   ;;
15624
15625 *nto* | *qnx*)
15626   version_type=qnx
15627   need_lib_prefix=no
15628   need_version=no
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   soname_spec='${libname}${release}${shared_ext}$major'
15631   shlibpath_var=LD_LIBRARY_PATH
15632   shlibpath_overrides_runpath=no
15633   hardcode_into_libs=yes
15634   dynamic_linker='ldqnx.so'
15635   ;;
15636
15637 openbsd*)
15638   version_type=sunos
15639   sys_lib_dlsearch_path_spec="/usr/lib"
15640   need_lib_prefix=no
15641   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15642   case $host_os in
15643     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15644     *)                          need_version=no  ;;
15645   esac
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15650     case $host_os in
15651       openbsd2.[89] | openbsd2.[89].*)
15652         shlibpath_overrides_runpath=no
15653         ;;
15654       *)
15655         shlibpath_overrides_runpath=yes
15656         ;;
15657       esac
15658   else
15659     shlibpath_overrides_runpath=yes
15660   fi
15661   ;;
15662
15663 os2*)
15664   libname_spec='$name'
15665   shrext_cmds=".dll"
15666   need_lib_prefix=no
15667   library_names_spec='$libname${shared_ext} $libname.a'
15668   dynamic_linker='OS/2 ld.exe'
15669   shlibpath_var=LIBPATH
15670   ;;
15671
15672 osf3* | osf4* | osf5*)
15673   version_type=osf
15674   need_lib_prefix=no
15675   need_version=no
15676   soname_spec='${libname}${release}${shared_ext}$major'
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678   shlibpath_var=LD_LIBRARY_PATH
15679   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15680   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15681   ;;
15682
15683 rdos*)
15684   dynamic_linker=no
15685   ;;
15686
15687 solaris*)
15688   version_type=linux
15689   need_lib_prefix=no
15690   need_version=no
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692   soname_spec='${libname}${release}${shared_ext}$major'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   shlibpath_overrides_runpath=yes
15695   hardcode_into_libs=yes
15696   # ldd complains unless libraries are executable
15697   postinstall_cmds='chmod +x $lib'
15698   ;;
15699
15700 sunos4*)
15701   version_type=sunos
15702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=yes
15706   if test "$with_gnu_ld" = yes; then
15707     need_lib_prefix=no
15708   fi
15709   need_version=yes
15710   ;;
15711
15712 sysv4 | sysv4.3*)
15713   version_type=linux
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715   soname_spec='${libname}${release}${shared_ext}$major'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   case $host_vendor in
15718     sni)
15719       shlibpath_overrides_runpath=no
15720       need_lib_prefix=no
15721       runpath_var=LD_RUN_PATH
15722       ;;
15723     siemens)
15724       need_lib_prefix=no
15725       ;;
15726     motorola)
15727       need_lib_prefix=no
15728       need_version=no
15729       shlibpath_overrides_runpath=no
15730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15731       ;;
15732   esac
15733   ;;
15734
15735 sysv4*MP*)
15736   if test -d /usr/nec ;then
15737     version_type=linux
15738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15739     soname_spec='$libname${shared_ext}.$major'
15740     shlibpath_var=LD_LIBRARY_PATH
15741   fi
15742   ;;
15743
15744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15745   version_type=freebsd-elf
15746   need_lib_prefix=no
15747   need_version=no
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   shlibpath_overrides_runpath=yes
15752   hardcode_into_libs=yes
15753   if test "$with_gnu_ld" = yes; then
15754     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15755   else
15756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15757     case $host_os in
15758       sco3.2v5*)
15759         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15760         ;;
15761     esac
15762   fi
15763   sys_lib_dlsearch_path_spec='/usr/lib'
15764   ;;
15765
15766 tpf*)
15767   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15768   version_type=linux
15769   need_lib_prefix=no
15770   need_version=no
15771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   shlibpath_overrides_runpath=no
15774   hardcode_into_libs=yes
15775   ;;
15776
15777 uts4*)
15778   version_type=linux
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   ;;
15783
15784 *)
15785   dynamic_linker=no
15786   ;;
15787 esac
15788 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15789 echo "${ECHO_T}$dynamic_linker" >&6; }
15790 test "$dynamic_linker" = no && can_build_shared=no
15791
15792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15793 if test "$GCC" = yes; then
15794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15795 fi
15796
15797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15798   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15799 fi
15800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15801   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15802 fi
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15840 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15841 hardcode_action_CXX=
15842 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15843    test -n "$runpath_var_CXX" ||
15844    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15845
15846   # We can hardcode non-existent directories.
15847   if test "$hardcode_direct_CXX" != no &&
15848      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15849      # have to relink, otherwise we might link with an installed library
15850      # when we should be linking with a yet-to-be-installed one
15851      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15852      test "$hardcode_minus_L_CXX" != no; then
15853     # Linking always hardcodes the temporary library directory.
15854     hardcode_action_CXX=relink
15855   else
15856     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15857     hardcode_action_CXX=immediate
15858   fi
15859 else
15860   # We cannot hardcode anything, or else we can only hardcode existing
15861   # directories.
15862   hardcode_action_CXX=unsupported
15863 fi
15864 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15865 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15866
15867 if test "$hardcode_action_CXX" = relink ||
15868    test "$inherit_rpath_CXX" = yes; then
15869   # Fast installation is not supported
15870   enable_fast_install=no
15871 elif test "$shlibpath_overrides_runpath" = yes ||
15872      test "$enable_shared" = no; then
15873   # Fast installation is not necessary
15874   enable_fast_install=needless
15875 fi
15876
15877
15878
15879
15880
15881
15882
15883   fi # test -n "$compiler"
15884
15885   CC=$lt_save_CC
15886   LDCXX=$LD
15887   LD=$lt_save_LD
15888   GCC=$lt_save_GCC
15889   with_gnu_ld=$lt_save_with_gnu_ld
15890   lt_cv_path_LDCXX=$lt_cv_path_LD
15891   lt_cv_path_LD=$lt_save_path_LD
15892   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15893   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15894 fi # test "$_lt_caught_CXX_error" != yes
15895
15896 ac_ext=c
15897 ac_cpp='$CPP $CPPFLAGS'
15898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914         ac_config_commands="$ac_config_commands libtool"
15915
15916
15917
15918
15919 # Only expand once:
15920
15921
15922
15923
15924 if test x$use_libtool != xno; then
15925    DEFAULT_OBJECT_TYPE=".lo"
15926    DEFAULT_ARCHIVE_TYPE=".la"
15927    DEFAULT_SHARED_OBJECT_TYPE=".la"
15928    LIBTOOL="\$(LIBTOOL)"
15929    LIBTOOL_INSTALL_TARGET="libtool-install"
15930    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15931    LIBTOOL_CLEAN_TARGET="libtool-clean"
15932    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15933    FD_PLUGIN_DIR="src/plugins/fd"
15934    have_plugins=yes
15935 else
15936    DEFAULT_OBJECT_TYPE=".o"
15937    DEFAULT_ARCHIVE_TYPE=".a"
15938    DEFAULT_SHARED_OBJECT_TYPE=".so"
15939    LIBTOOL="# \$(LIBTOOL)"
15940    LIBTOOL_INSTALL_TARGET=""
15941    LIBTOOL_UNINSTALL_TARGET=""
15942    LIBTOOL_CLEAN_TARGET=""
15943    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15944    FD_PLUGIN_DIR=""
15945    have_plugins=no
15946 fi
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960   enableval=$enable_includes;
15961        if test x$enableval = xyes; then
15962           install_includes=yes
15963        fi
15964
15965
15966 fi
15967
15968
15969
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971    INCLUDE_INSTALL_TARGET="install-includes"
15972    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15973 else
15974    INCLUDE_INSTALL_TARGET=""
15975    INCLUDE_UNINSTALL_TARGET=""
15976 fi
15977
15978
15979
15980
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   if test "x$host_alias" = x; then
15987   ac_cv_host=$ac_cv_build
15988 else
15989   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992    { (exit 1); exit 1; }; }
15993 fi
15994
15995 fi
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
15999 *-*-*) ;;
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002    { (exit 1); exit 1; }; };;
16003 esac
16004 host=$ac_cv_host
16005 ac_save_IFS=$IFS; IFS='-'
16006 set x $ac_cv_host
16007 shift
16008 host_cpu=$1
16009 host_vendor=$2
16010 shift; shift
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16013 host_os=$*
16014 IFS=$ac_save_IFS
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16016
16017
16018 case $host_os in
16019   *cygwin* ) CYGWIN=yes;;
16020          * ) CYGWIN=no;;
16021 esac
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_SUN_OS_TRUE=
16029   HAVE_SUN_OS_FALSE='#'
16030 else
16031   HAVE_SUN_OS_TRUE='#'
16032   HAVE_SUN_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_SUN_OS_TRUE=
16043   HAVE_SUN_OS_FALSE='#'
16044 else
16045   HAVE_SUN_OS_TRUE='#'
16046   HAVE_SUN_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_OSF1_OS_TRUE=
16056   HAVE_OSF1_OS_FALSE='#'
16057 else
16058   HAVE_OSF1_OS_TRUE='#'
16059   HAVE_OSF1_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_OSF1_OS_TRUE=
16070   HAVE_OSF1_OS_FALSE='#'
16071 else
16072   HAVE_OSF1_OS_TRUE='#'
16073   HAVE_OSF1_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_AIX_OS_TRUE=
16083   HAVE_AIX_OS_FALSE='#'
16084 else
16085   HAVE_AIX_OS_TRUE='#'
16086   HAVE_AIX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_AIX_OS_TRUE=
16097   HAVE_AIX_OS_FALSE='#'
16098 else
16099   HAVE_AIX_OS_TRUE='#'
16100   HAVE_AIX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_HPUX_OS_TRUE=
16110   HAVE_HPUX_OS_FALSE='#'
16111 else
16112   HAVE_HPUX_OS_TRUE='#'
16113   HAVE_HPUX_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_HPUX_OS_TRUE=
16124   HAVE_HPUX_OS_FALSE='#'
16125 else
16126   HAVE_HPUX_OS_TRUE='#'
16127   HAVE_HPUX_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_LINUX_OS_TRUE=
16137   HAVE_LINUX_OS_FALSE='#'
16138 else
16139   HAVE_LINUX_OS_TRUE='#'
16140   HAVE_LINUX_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_LINUX_OS_TRUE=
16151   HAVE_LINUX_OS_FALSE='#'
16152 else
16153   HAVE_LINUX_OS_TRUE='#'
16154   HAVE_LINUX_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_FREEBSD_OS_TRUE=
16164   HAVE_FREEBSD_OS_FALSE='#'
16165 else
16166   HAVE_FREEBSD_OS_TRUE='#'
16167   HAVE_FREEBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_FREEBSD_OS_TRUE=
16178   HAVE_FREEBSD_OS_FALSE='#'
16179 else
16180   HAVE_FREEBSD_OS_TRUE='#'
16181   HAVE_FREEBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_NETBSD_OS_TRUE=
16191   HAVE_NETBSD_OS_FALSE='#'
16192 else
16193   HAVE_NETBSD_OS_TRUE='#'
16194   HAVE_NETBSD_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_NETBSD_OS_TRUE=
16205   HAVE_NETBSD_OS_FALSE='#'
16206 else
16207   HAVE_NETBSD_OS_TRUE='#'
16208   HAVE_NETBSD_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_OPENBSD_OS_TRUE=
16218   HAVE_OPENBSD_OS_FALSE='#'
16219 else
16220   HAVE_OPENBSD_OS_TRUE='#'
16221   HAVE_OPENBSD_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_OPENBSD_OS_TRUE=
16232   HAVE_OPENBSD_OS_FALSE='#'
16233 else
16234   HAVE_OPENBSD_OS_TRUE='#'
16235   HAVE_OPENBSD_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_BSDI_OS_TRUE=
16245   HAVE_BSDI_OS_FALSE='#'
16246 else
16247   HAVE_BSDI_OS_TRUE='#'
16248   HAVE_BSDI_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_BSDI_OS_TRUE=
16259   HAVE_BSDI_OS_FALSE='#'
16260 else
16261   HAVE_BSDI_OS_TRUE='#'
16262   HAVE_BSDI_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_SGI_OS_TRUE=
16272   HAVE_SGI_OS_FALSE='#'
16273 else
16274   HAVE_SGI_OS_TRUE='#'
16275   HAVE_SGI_OS_FALSE=
16276 fi
16277         cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_SGI_OS_TRUE=
16286   HAVE_SGI_OS_FALSE='#'
16287 else
16288   HAVE_SGI_OS_TRUE='#'
16289   HAVE_SGI_OS_FALSE=
16290 fi
16291 fi
16292
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16294 then
16295
16296
16297 if $TRUEPRG; then
16298   HAVE_IRIX_OS_TRUE=
16299   HAVE_IRIX_OS_FALSE='#'
16300 else
16301   HAVE_IRIX_OS_TRUE='#'
16302   HAVE_IRIX_OS_FALSE=
16303 fi
16304         cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16306 _ACEOF
16307
16308 else
16309
16310
16311 if $FALSEPRG; then
16312   HAVE_IRIX_OS_TRUE=
16313   HAVE_IRIX_OS_FALSE='#'
16314 else
16315   HAVE_IRIX_OS_TRUE='#'
16316   HAVE_IRIX_OS_FALSE=
16317 fi
16318 fi
16319
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16321 then
16322
16323
16324 if $TRUEPRG; then
16325   HAVE_DARWIN_OS_TRUE=
16326   HAVE_DARWIN_OS_FALSE='#'
16327 else
16328   HAVE_DARWIN_OS_TRUE='#'
16329   HAVE_DARWIN_OS_FALSE=
16330 fi
16331     cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16333 _ACEOF
16334
16335 else
16336
16337
16338 if $FALSEPRG; then
16339   HAVE_DARWIN_OS_TRUE=
16340   HAVE_DARWIN_OS_FALSE='#'
16341 else
16342   HAVE_DARWIN_OS_TRUE='#'
16343   HAVE_DARWIN_OS_FALSE=
16344 fi
16345 fi
16346
16347
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16351 then
16352         echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16354 then
16355         DISTNAME=alpha
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16357 then
16358         DISTNAME=aix
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16360 then
16361         DISTNAME=hpux
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16363 then
16364         DISTNAME=solaris
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16366 then
16367         DISTNAME=freebsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16369 then
16370         DISTNAME=netbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16372 then
16373         DISTNAME=openbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16375 then
16376         DISTNAME=irix
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16378 then
16379         DISTNAME=bsdi
16380 elif test -f /etc/SuSE-release
16381 then
16382         DISTNAME=suse
16383 elif test -d /etc/SuSEconfig
16384 then
16385         DISTNAME=suse5
16386 elif test -f /etc/mandrake-release
16387 then
16388         DISTNAME=mandrake
16389 elif test -f /etc/whitebox-release
16390 then
16391        DISTNAME=redhat
16392 elif test -f /etc/redhat-release
16393 then
16394         DISTNAME=redhat
16395 elif test -f /etc/gentoo-release
16396 then
16397         DISTNAME=gentoo
16398 elif test -f /etc/debian_version
16399 then
16400         DISTNAME=debian
16401 elif test -f /etc/slackware-version
16402 then
16403         DISTNAME=slackware
16404 elif test x$host_vendor = xapple
16405 then
16406     DISTNAME=osx
16407 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16408 then
16409     DISTNAME=darwin
16410 elif test -f /etc/engarde-version
16411 then
16412         DISTNAME=engarde
16413 elif test "$CYGWIN" = yes
16414 then
16415         DISTNAME=cygwin
16416         cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_CYGWIN 1
16418 _ACEOF
16419
16420 else
16421         DISTNAME=unknown
16422 fi
16423 { echo "$as_me:$LINENO: result: done" >&5
16424 echo "${ECHO_T}done" >&6; }
16425
16426
16427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16431   echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433   cat >conftest.make <<\_ACEOF
16434 SHELL = /bin/sh
16435 all:
16436         @echo '@@@%%%=$(MAKE)=@@@%%%'
16437 _ACEOF
16438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16440   *@@@%%%=?*=@@@%%%*)
16441     eval ac_cv_prog_make_${ac_make}_set=yes;;
16442   *)
16443     eval ac_cv_prog_make_${ac_make}_set=no;;
16444 esac
16445 rm -f conftest.make
16446 fi
16447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16448   { echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6; }
16450   SET_MAKE=
16451 else
16452   { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454   SET_MAKE="MAKE=${MAKE-make}"
16455 fi
16456
16457
16458
16459         MKINSTALLDIRS=
16460   if test -n "$ac_aux_dir"; then
16461     case "$ac_aux_dir" in
16462       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16463       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16464     esac
16465   fi
16466   if test -z "$MKINSTALLDIRS"; then
16467     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16468   fi
16469
16470
16471
16472   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16474     # Check whether --enable-nls was given.
16475 if test "${enable_nls+set}" = set; then
16476   enableval=$enable_nls; USE_NLS=$enableval
16477 else
16478   USE_NLS=yes
16479 fi
16480
16481   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16482 echo "${ECHO_T}$USE_NLS" >&6; }
16483
16484
16485
16486
16487
16488
16489 # Prepare PATH_SEPARATOR.
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492   echo "#! /bin/sh" >conf$$.sh
16493   echo  "exit 0"   >>conf$$.sh
16494   chmod +x conf$$.sh
16495   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16496     PATH_SEPARATOR=';'
16497   else
16498     PATH_SEPARATOR=:
16499   fi
16500   rm -f conf$$.sh
16501 fi
16502
16503 # Find out how to test for executable files. Don't use a zero-byte file,
16504 # as systems may use methods other than mode bits to determine executability.
16505 cat >conf$$.file <<_ASEOF
16506 #! /bin/sh
16507 exit 0
16508 _ASEOF
16509 chmod +x conf$$.file
16510 if test -x conf$$.file >/dev/null 2>&1; then
16511   ac_executable_p="test -x"
16512 else
16513   ac_executable_p="test -f"
16514 fi
16515 rm -f conf$$.file
16516
16517 # Extract the first word of "msgfmt", so it can be a program name with args.
16518 set dummy msgfmt; ac_word=$2
16519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16521 if test "${ac_cv_path_MSGFMT+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   case "$MSGFMT" in
16525   [\\/]* | ?:[\\/]*)
16526     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16527     ;;
16528   *)
16529     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16530     for ac_dir in $PATH; do
16531       IFS="$ac_save_IFS"
16532       test -z "$ac_dir" && ac_dir=.
16533       for ac_exec_ext in '' $ac_executable_extensions; do
16534         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16535           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16536           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16537      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16538             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16539             break 2
16540           fi
16541         fi
16542       done
16543     done
16544     IFS="$ac_save_IFS"
16545   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16546     ;;
16547 esac
16548 fi
16549 MSGFMT="$ac_cv_path_MSGFMT"
16550 if test "$MSGFMT" != ":"; then
16551   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16552 echo "${ECHO_T}$MSGFMT" >&6; }
16553 else
16554   { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16556 fi
16557
16558   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16559 set dummy gmsgfmt; ac_word=$2
16560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   case $GMSGFMT in
16566   [\\/]* | ?:[\\/]*)
16567   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16568   ;;
16569   *)
16570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573   IFS=$as_save_IFS
16574   test -z "$as_dir" && as_dir=.
16575   for ac_exec_ext in '' $ac_executable_extensions; do
16576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16579     break 2
16580   fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16586   ;;
16587 esac
16588 fi
16589 GMSGFMT=$ac_cv_path_GMSGFMT
16590 if test -n "$GMSGFMT"; then
16591   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16592 echo "${ECHO_T}$GMSGFMT" >&6; }
16593 else
16594   { echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6; }
16596 fi
16597
16598
16599
16600
16601 # Prepare PATH_SEPARATOR.
16602 # The user is always right.
16603 if test "${PATH_SEPARATOR+set}" != set; then
16604   echo "#! /bin/sh" >conf$$.sh
16605   echo  "exit 0"   >>conf$$.sh
16606   chmod +x conf$$.sh
16607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16608     PATH_SEPARATOR=';'
16609   else
16610     PATH_SEPARATOR=:
16611   fi
16612   rm -f conf$$.sh
16613 fi
16614
16615 # Find out how to test for executable files. Don't use a zero-byte file,
16616 # as systems may use methods other than mode bits to determine executability.
16617 cat >conf$$.file <<_ASEOF
16618 #! /bin/sh
16619 exit 0
16620 _ASEOF
16621 chmod +x conf$$.file
16622 if test -x conf$$.file >/dev/null 2>&1; then
16623   ac_executable_p="test -x"
16624 else
16625   ac_executable_p="test -f"
16626 fi
16627 rm -f conf$$.file
16628
16629 # Extract the first word of "xgettext", so it can be a program name with args.
16630 set dummy xgettext; ac_word=$2
16631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16633 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16634   echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636   case "$XGETTEXT" in
16637   [\\/]* | ?:[\\/]*)
16638     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16639     ;;
16640   *)
16641     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16642     for ac_dir in $PATH; do
16643       IFS="$ac_save_IFS"
16644       test -z "$ac_dir" && ac_dir=.
16645       for ac_exec_ext in '' $ac_executable_extensions; do
16646         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16647           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16648           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16649      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16650             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16651             break 2
16652           fi
16653         fi
16654       done
16655     done
16656     IFS="$ac_save_IFS"
16657   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16658     ;;
16659 esac
16660 fi
16661 XGETTEXT="$ac_cv_path_XGETTEXT"
16662 if test "$XGETTEXT" != ":"; then
16663   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16664 echo "${ECHO_T}$XGETTEXT" >&6; }
16665 else
16666   { echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6; }
16668 fi
16669
16670     rm -f messages.po
16671
16672
16673 # Prepare PATH_SEPARATOR.
16674 # The user is always right.
16675 if test "${PATH_SEPARATOR+set}" != set; then
16676   echo "#! /bin/sh" >conf$$.sh
16677   echo  "exit 0"   >>conf$$.sh
16678   chmod +x conf$$.sh
16679   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16680     PATH_SEPARATOR=';'
16681   else
16682     PATH_SEPARATOR=:
16683   fi
16684   rm -f conf$$.sh
16685 fi
16686
16687 # Find out how to test for executable files. Don't use a zero-byte file,
16688 # as systems may use methods other than mode bits to determine executability.
16689 cat >conf$$.file <<_ASEOF
16690 #! /bin/sh
16691 exit 0
16692 _ASEOF
16693 chmod +x conf$$.file
16694 if test -x conf$$.file >/dev/null 2>&1; then
16695   ac_executable_p="test -x"
16696 else
16697   ac_executable_p="test -f"
16698 fi
16699 rm -f conf$$.file
16700
16701 # Extract the first word of "msgmerge", so it can be a program name with args.
16702 set dummy msgmerge; ac_word=$2
16703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   case "$MSGMERGE" in
16709   [\\/]* | ?:[\\/]*)
16710     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16711     ;;
16712   *)
16713     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16714     for ac_dir in $PATH; do
16715       IFS="$ac_save_IFS"
16716       test -z "$ac_dir" && ac_dir=.
16717       for ac_exec_ext in '' $ac_executable_extensions; do
16718         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16719           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16720           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16721             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16722             break 2
16723           fi
16724         fi
16725       done
16726     done
16727     IFS="$ac_save_IFS"
16728   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16729     ;;
16730 esac
16731 fi
16732 MSGMERGE="$ac_cv_path_MSGMERGE"
16733 if test "$MSGMERGE" != ":"; then
16734   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16735 echo "${ECHO_T}$MSGMERGE" >&6; }
16736 else
16737   { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16739 fi
16740
16741
16742       if test "$GMSGFMT" != ":"; then
16743             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16744        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16745       : ;
16746     else
16747       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16748       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16749 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16750       GMSGFMT=":"
16751     fi
16752   fi
16753
16754       if test "$XGETTEXT" != ":"; then
16755             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16756        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16757       : ;
16758     else
16759       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16760 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16761       XGETTEXT=":"
16762     fi
16763         rm -f messages.po
16764   fi
16765
16766   ac_config_commands="$ac_config_commands default-1"
16767
16768
16769
16770       if test "X$prefix" = "XNONE"; then
16771     acl_final_prefix="$ac_default_prefix"
16772   else
16773     acl_final_prefix="$prefix"
16774   fi
16775   if test "X$exec_prefix" = "XNONE"; then
16776     acl_final_exec_prefix='${prefix}'
16777   else
16778     acl_final_exec_prefix="$exec_prefix"
16779   fi
16780   acl_save_prefix="$prefix"
16781   prefix="$acl_final_prefix"
16782   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16783   prefix="$acl_save_prefix"
16784
16785
16786 # Check whether --with-gnu-ld was given.
16787 if test "${with_gnu_ld+set}" = set; then
16788   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16789 else
16790   with_gnu_ld=no
16791 fi
16792
16793 # Prepare PATH_SEPARATOR.
16794 # The user is always right.
16795 if test "${PATH_SEPARATOR+set}" != set; then
16796   echo "#! /bin/sh" >conf$$.sh
16797   echo  "exit 0"   >>conf$$.sh
16798   chmod +x conf$$.sh
16799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16800     PATH_SEPARATOR=';'
16801   else
16802     PATH_SEPARATOR=:
16803   fi
16804   rm -f conf$$.sh
16805 fi
16806 ac_prog=ld
16807 if test "$GCC" = yes; then
16808   # Check if gcc -print-prog-name=ld gives a path.
16809   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16810 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16811   case $host in
16812   *-*-mingw*)
16813     # gcc leaves a trailing carriage return which upsets mingw
16814     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16815   *)
16816     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16817   esac
16818   case $ac_prog in
16819     # Accept absolute paths.
16820     [\\/]* | [A-Za-z]:[\\/]*)
16821       re_direlt='/[^/][^/]*/\.\./'
16822       # Canonicalize the path of ld
16823       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16824       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16825         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16826       done
16827       test -z "$LD" && LD="$ac_prog"
16828       ;;
16829   "")
16830     # If it fails, then pretend we aren't using GCC.
16831     ac_prog=ld
16832     ;;
16833   *)
16834     # If it is relative, then search for the first ld in PATH.
16835     with_gnu_ld=unknown
16836     ;;
16837   esac
16838 elif test "$with_gnu_ld" = yes; then
16839   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16841 else
16842   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16844 fi
16845 if test "${acl_cv_path_LD+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   if test -z "$LD"; then
16849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16850   for ac_dir in $PATH; do
16851     test -z "$ac_dir" && ac_dir=.
16852     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853       acl_cv_path_LD="$ac_dir/$ac_prog"
16854       # Check to see if the program is GNU ld.  I'd rather use --version,
16855       # but apparently some GNU ld's only accept -v.
16856       # Break only if it was the GNU/non-GNU ld that we prefer.
16857       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16858       *GNU* | *'with BFD'*)
16859         test "$with_gnu_ld" != no && break ;;
16860       *)
16861         test "$with_gnu_ld" != yes && break ;;
16862       esac
16863     fi
16864   done
16865   IFS="$ac_save_ifs"
16866 else
16867   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16868 fi
16869 fi
16870
16871 LD="$acl_cv_path_LD"
16872 if test -n "$LD"; then
16873   { echo "$as_me:$LINENO: result: $LD" >&5
16874 echo "${ECHO_T}$LD" >&6; }
16875 else
16876   { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16878 fi
16879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16881    { (exit 1); exit 1; }; }
16882 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16883 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16884 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890   acl_cv_prog_gnu_ld=yes ;;
16891 *)
16892   acl_cv_prog_gnu_ld=no ;;
16893 esac
16894 fi
16895 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16896 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16897 with_gnu_ld=$acl_cv_prog_gnu_ld
16898
16899
16900
16901
16902                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16903 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16904 if test "${acl_cv_rpath+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907
16908     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16909     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16910     . ./conftest.sh
16911     rm -f ./conftest.sh
16912     acl_cv_rpath=done
16913
16914 fi
16915 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16916 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16917   wl="$acl_cv_wl"
16918   libext="$acl_cv_libext"
16919   shlibext="$acl_cv_shlibext"
16920   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16921   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16922   hardcode_direct="$acl_cv_hardcode_direct"
16923   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16924     # Check whether --enable-rpath was given.
16925 if test "${enable_rpath+set}" = set; then
16926   enableval=$enable_rpath; :
16927 else
16928   enable_rpath=yes
16929 fi
16930
16931
16932
16933
16934
16935
16936
16937
16938     use_additional=yes
16939
16940   acl_save_prefix="$prefix"
16941   prefix="$acl_final_prefix"
16942   acl_save_exec_prefix="$exec_prefix"
16943   exec_prefix="$acl_final_exec_prefix"
16944
16945     eval additional_includedir=\"$includedir\"
16946     eval additional_libdir=\"$libdir\"
16947
16948   exec_prefix="$acl_save_exec_prefix"
16949   prefix="$acl_save_prefix"
16950
16951
16952 # Check whether --with-libiconv-prefix was given.
16953 if test "${with_libiconv_prefix+set}" = set; then
16954   withval=$with_libiconv_prefix;
16955     if test "X$withval" = "Xno"; then
16956       use_additional=no
16957     else
16958       if test "X$withval" = "X"; then
16959
16960   acl_save_prefix="$prefix"
16961   prefix="$acl_final_prefix"
16962   acl_save_exec_prefix="$exec_prefix"
16963   exec_prefix="$acl_final_exec_prefix"
16964
16965           eval additional_includedir=\"$includedir\"
16966           eval additional_libdir=\"$libdir\"
16967
16968   exec_prefix="$acl_save_exec_prefix"
16969   prefix="$acl_save_prefix"
16970
16971       else
16972         additional_includedir="$withval/include"
16973         additional_libdir="$withval/lib"
16974       fi
16975     fi
16976
16977 fi
16978
16979       LIBICONV=
16980   LTLIBICONV=
16981   INCICONV=
16982   rpathdirs=
16983   ltrpathdirs=
16984   names_already_handled=
16985   names_next_round='iconv '
16986   while test -n "$names_next_round"; do
16987     names_this_round="$names_next_round"
16988     names_next_round=
16989     for name in $names_this_round; do
16990       already_handled=
16991       for n in $names_already_handled; do
16992         if test "$n" = "$name"; then
16993           already_handled=yes
16994           break
16995         fi
16996       done
16997       if test -z "$already_handled"; then
16998         names_already_handled="$names_already_handled $name"
16999                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17000         eval value=\"\$HAVE_LIB$uppername\"
17001         if test -n "$value"; then
17002           if test "$value" = yes; then
17003             eval value=\"\$LIB$uppername\"
17004             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17005             eval value=\"\$LTLIB$uppername\"
17006             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17007           else
17008                                     :
17009           fi
17010         else
17011                               found_dir=
17012           found_la=
17013           found_so=
17014           found_a=
17015           if test $use_additional = yes; then
17016             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17017               found_dir="$additional_libdir"
17018               found_so="$additional_libdir/lib$name.$shlibext"
17019               if test -f "$additional_libdir/lib$name.la"; then
17020                 found_la="$additional_libdir/lib$name.la"
17021               fi
17022             else
17023               if test -f "$additional_libdir/lib$name.$libext"; then
17024                 found_dir="$additional_libdir"
17025                 found_a="$additional_libdir/lib$name.$libext"
17026                 if test -f "$additional_libdir/lib$name.la"; then
17027                   found_la="$additional_libdir/lib$name.la"
17028                 fi
17029               fi
17030             fi
17031           fi
17032           if test "X$found_dir" = "X"; then
17033             for x in $LDFLAGS $LTLIBICONV; do
17034
17035   acl_save_prefix="$prefix"
17036   prefix="$acl_final_prefix"
17037   acl_save_exec_prefix="$exec_prefix"
17038   exec_prefix="$acl_final_exec_prefix"
17039   eval x=\"$x\"
17040   exec_prefix="$acl_save_exec_prefix"
17041   prefix="$acl_save_prefix"
17042
17043               case "$x" in
17044                 -L*)
17045                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17046                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17047                     found_dir="$dir"
17048                     found_so="$dir/lib$name.$shlibext"
17049                     if test -f "$dir/lib$name.la"; then
17050                       found_la="$dir/lib$name.la"
17051                     fi
17052                   else
17053                     if test -f "$dir/lib$name.$libext"; then
17054                       found_dir="$dir"
17055                       found_a="$dir/lib$name.$libext"
17056                       if test -f "$dir/lib$name.la"; then
17057                         found_la="$dir/lib$name.la"
17058                       fi
17059                     fi
17060                   fi
17061                   ;;
17062               esac
17063               if test "X$found_dir" != "X"; then
17064                 break
17065               fi
17066             done
17067           fi
17068           if test "X$found_dir" != "X"; then
17069                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17070             if test "X$found_so" != "X"; then
17071                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17072                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17073               else
17074                                                                                 haveit=
17075                 for x in $ltrpathdirs; do
17076                   if test "X$x" = "X$found_dir"; then
17077                     haveit=yes
17078                     break
17079                   fi
17080                 done
17081                 if test -z "$haveit"; then
17082                   ltrpathdirs="$ltrpathdirs $found_dir"
17083                 fi
17084                                 if test "$hardcode_direct" = yes; then
17085                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                 else
17087                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17088                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                                                             haveit=
17090                     for x in $rpathdirs; do
17091                       if test "X$x" = "X$found_dir"; then
17092                         haveit=yes
17093                         break
17094                       fi
17095                     done
17096                     if test -z "$haveit"; then
17097                       rpathdirs="$rpathdirs $found_dir"
17098                     fi
17099                   else
17100                                                                                 haveit=
17101                     for x in $LDFLAGS $LIBICONV; do
17102
17103   acl_save_prefix="$prefix"
17104   prefix="$acl_final_prefix"
17105   acl_save_exec_prefix="$exec_prefix"
17106   exec_prefix="$acl_final_exec_prefix"
17107   eval x=\"$x\"
17108   exec_prefix="$acl_save_exec_prefix"
17109   prefix="$acl_save_prefix"
17110
17111                       if test "X$x" = "X-L$found_dir"; then
17112                         haveit=yes
17113                         break
17114                       fi
17115                     done
17116                     if test -z "$haveit"; then
17117                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17118                     fi
17119                     if test "$hardcode_minus_L" != no; then
17120                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17121                     else
17122                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17123                     fi
17124                   fi
17125                 fi
17126               fi
17127             else
17128               if test "X$found_a" != "X"; then
17129                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17130               else
17131                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17132               fi
17133             fi
17134                         additional_includedir=
17135             case "$found_dir" in
17136               */lib | */lib/)
17137                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17138                 additional_includedir="$basedir/include"
17139                 ;;
17140             esac
17141             if test "X$additional_includedir" != "X"; then
17142                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17143                 haveit=
17144                 if test "X$additional_includedir" = "X/usr/local/include"; then
17145                   if test -n "$GCC"; then
17146                     case $host_os in
17147                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17148                     esac
17149                   fi
17150                 fi
17151                 if test -z "$haveit"; then
17152                   for x in $CPPFLAGS $INCICONV; do
17153
17154   acl_save_prefix="$prefix"
17155   prefix="$acl_final_prefix"
17156   acl_save_exec_prefix="$exec_prefix"
17157   exec_prefix="$acl_final_exec_prefix"
17158   eval x=\"$x\"
17159   exec_prefix="$acl_save_exec_prefix"
17160   prefix="$acl_save_prefix"
17161
17162                     if test "X$x" = "X-I$additional_includedir"; then
17163                       haveit=yes
17164                       break
17165                     fi
17166                   done
17167                   if test -z "$haveit"; then
17168                     if test -d "$additional_includedir"; then
17169                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17170                     fi
17171                   fi
17172                 fi
17173               fi
17174             fi
17175                         if test -n "$found_la"; then
17176                                                         save_libdir="$libdir"
17177               case "$found_la" in
17178                 */* | *\\*) . "$found_la" ;;
17179                 *) . "./$found_la" ;;
17180               esac
17181               libdir="$save_libdir"
17182                             for dep in $dependency_libs; do
17183                 case "$dep" in
17184                   -L*)
17185                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17186                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17187                       haveit=
17188                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17189                         if test -n "$GCC"; then
17190                           case $host_os in
17191                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17192                           esac
17193                         fi
17194                       fi
17195                       if test -z "$haveit"; then
17196                         haveit=
17197                         for x in $LDFLAGS $LIBICONV; do
17198
17199   acl_save_prefix="$prefix"
17200   prefix="$acl_final_prefix"
17201   acl_save_exec_prefix="$exec_prefix"
17202   exec_prefix="$acl_final_exec_prefix"
17203   eval x=\"$x\"
17204   exec_prefix="$acl_save_exec_prefix"
17205   prefix="$acl_save_prefix"
17206
17207                           if test "X$x" = "X-L$additional_libdir"; then
17208                             haveit=yes
17209                             break
17210                           fi
17211                         done
17212                         if test -z "$haveit"; then
17213                           if test -d "$additional_libdir"; then
17214                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17215                           fi
17216                         fi
17217                         haveit=
17218                         for x in $LDFLAGS $LTLIBICONV; do
17219
17220   acl_save_prefix="$prefix"
17221   prefix="$acl_final_prefix"
17222   acl_save_exec_prefix="$exec_prefix"
17223   exec_prefix="$acl_final_exec_prefix"
17224   eval x=\"$x\"
17225   exec_prefix="$acl_save_exec_prefix"
17226   prefix="$acl_save_prefix"
17227
17228                           if test "X$x" = "X-L$additional_libdir"; then
17229                             haveit=yes
17230                             break
17231                           fi
17232                         done
17233                         if test -z "$haveit"; then
17234                           if test -d "$additional_libdir"; then
17235                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17236                           fi
17237                         fi
17238                       fi
17239                     fi
17240                     ;;
17241                   -R*)
17242                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17243                     if test "$enable_rpath" != no; then
17244                                                                   haveit=
17245                       for x in $rpathdirs; do
17246                         if test "X$x" = "X$dir"; then
17247                           haveit=yes
17248                           break
17249                         fi
17250                       done
17251                       if test -z "$haveit"; then
17252                         rpathdirs="$rpathdirs $dir"
17253                       fi
17254                                                                   haveit=
17255                       for x in $ltrpathdirs; do
17256                         if test "X$x" = "X$dir"; then
17257                           haveit=yes
17258                           break
17259                         fi
17260                       done
17261                       if test -z "$haveit"; then
17262                         ltrpathdirs="$ltrpathdirs $dir"
17263                       fi
17264                     fi
17265                     ;;
17266                   -l*)
17267                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17268                     ;;
17269                   *.la)
17270                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17271                     ;;
17272                   *)
17273                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17274                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17275                     ;;
17276                 esac
17277               done
17278             fi
17279           else
17280                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17281             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17282           fi
17283         fi
17284       fi
17285     done
17286   done
17287   if test "X$rpathdirs" != "X"; then
17288     if test -n "$hardcode_libdir_separator"; then
17289                         alldirs=
17290       for found_dir in $rpathdirs; do
17291         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17292       done
17293             acl_save_libdir="$libdir"
17294       libdir="$alldirs"
17295       eval flag=\"$hardcode_libdir_flag_spec\"
17296       libdir="$acl_save_libdir"
17297       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17298     else
17299             for found_dir in $rpathdirs; do
17300         acl_save_libdir="$libdir"
17301         libdir="$found_dir"
17302         eval flag=\"$hardcode_libdir_flag_spec\"
17303         libdir="$acl_save_libdir"
17304         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17305       done
17306     fi
17307   fi
17308   if test "X$ltrpathdirs" != "X"; then
17309             for found_dir in $ltrpathdirs; do
17310       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17311     done
17312   fi
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17332 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17333 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   gt_save_CPPFLAGS="$CPPFLAGS"
17337      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17338      gt_save_LIBS="$LIBS"
17339      LIBS="$LIBS -framework CoreFoundation"
17340      cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <CFPreferences.h>
17347 int
17348 main ()
17349 {
17350 CFPreferencesCopyAppValue(NULL, NULL)
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_link") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest$ac_exeext &&
17372        $as_test_x conftest$ac_exeext; then
17373   gt_cv_func_CFPreferencesCopyAppValue=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         gt_cv_func_CFPreferencesCopyAppValue=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382       conftest$ac_exeext conftest.$ac_ext
17383      CPPFLAGS="$gt_save_CPPFLAGS"
17384      LIBS="$gt_save_LIBS"
17385 fi
17386 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17387 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17388   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17389
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17392 _ACEOF
17393
17394   fi
17395     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17396 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   gt_save_CPPFLAGS="$CPPFLAGS"
17401      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17402      gt_save_LIBS="$LIBS"
17403      LIBS="$LIBS -framework CoreFoundation"
17404      cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #include <CFLocale.h>
17411 int
17412 main ()
17413 {
17414 CFLocaleCopyCurrent();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426   (eval "$ac_link") 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } && {
17433          test -z "$ac_c_werror_flag" ||
17434          test ! -s conftest.err
17435        } && test -s conftest$ac_exeext &&
17436        $as_test_x conftest$ac_exeext; then
17437   gt_cv_func_CFLocaleCopyCurrent=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         gt_cv_func_CFLocaleCopyCurrent=no
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446       conftest$ac_exeext conftest.$ac_ext
17447      CPPFLAGS="$gt_save_CPPFLAGS"
17448      LIBS="$gt_save_LIBS"
17449 fi
17450 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17451 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17452   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17453
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CFLOCALECOPYCURRENT 1
17456 _ACEOF
17457
17458   fi
17459   INTL_MACOSX_LIBS=
17460   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17462   fi
17463
17464
17465
17466
17467   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17468 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17469     # Check whether --enable-nls was given.
17470 if test "${enable_nls+set}" = set; then
17471   enableval=$enable_nls; USE_NLS=$enableval
17472 else
17473   USE_NLS=yes
17474 fi
17475
17476   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17477 echo "${ECHO_T}$USE_NLS" >&6; }
17478
17479
17480
17481
17482   LIBINTL=
17483   LTLIBINTL=
17484   POSUB=
17485
17486     if test "$USE_NLS" = "yes"; then
17487     gt_use_preinstalled_gnugettext=no
17488
17489
17490
17491
17492
17493
17494         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17495 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17496 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 #include <libintl.h>
17506 extern int _nl_msg_cat_cntr;
17507 extern int *_nl_domain_bindings;
17508 int
17509 main ()
17510 {
17511 bindtextdomain ("", "");
17512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_link") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && {
17531          test -z "$ac_c_werror_flag" ||
17532          test ! -s conftest.err
17533        } && test -s conftest$ac_exeext &&
17534        $as_test_x conftest$ac_exeext; then
17535   gt_cv_func_gnugettext1_libc=yes
17536 else
17537   echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540         gt_cv_func_gnugettext1_libc=no
17541 fi
17542
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17547 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17548
17549         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17550
17551
17552
17553
17554
17555           am_save_CPPFLAGS="$CPPFLAGS"
17556
17557   for element in $INCICONV; do
17558     haveit=
17559     for x in $CPPFLAGS; do
17560
17561   acl_save_prefix="$prefix"
17562   prefix="$acl_final_prefix"
17563   acl_save_exec_prefix="$exec_prefix"
17564   exec_prefix="$acl_final_exec_prefix"
17565   eval x=\"$x\"
17566   exec_prefix="$acl_save_exec_prefix"
17567   prefix="$acl_save_prefix"
17568
17569       if test "X$x" = "X$element"; then
17570         haveit=yes
17571         break
17572       fi
17573     done
17574     if test -z "$haveit"; then
17575       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17576     fi
17577   done
17578
17579
17580   { echo "$as_me:$LINENO: checking for iconv" >&5
17581 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17582 if test "${am_cv_func_iconv+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585
17586     am_cv_func_iconv="no, consider installing GNU libiconv"
17587     am_cv_lib_iconv=no
17588     cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 #include <stdlib.h>
17595 #include <iconv.h>
17596 int
17597 main ()
17598 {
17599 iconv_t cd = iconv_open("","");
17600        iconv(cd,NULL,NULL,NULL,NULL);
17601        iconv_close(cd);
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest$ac_exeext &&
17623        $as_test_x conftest$ac_exeext; then
17624   am_cv_func_iconv=yes
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633       conftest$ac_exeext conftest.$ac_ext
17634     if test "$am_cv_func_iconv" != yes; then
17635       am_save_LIBS="$LIBS"
17636       LIBS="$LIBS $LIBICONV"
17637       cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 #include <stdlib.h>
17644 #include <iconv.h>
17645 int
17646 main ()
17647 {
17648 iconv_t cd = iconv_open("","");
17649          iconv(cd,NULL,NULL,NULL,NULL);
17650          iconv_close(cd);
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_link") 2>conftest.er1
17663   ac_status=$?
17664   grep -v '^ *+' conftest.er1 >conftest.err
17665   rm -f conftest.er1
17666   cat conftest.err >&5
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } && {
17669          test -z "$ac_c_werror_flag" ||
17670          test ! -s conftest.err
17671        } && test -s conftest$ac_exeext &&
17672        $as_test_x conftest$ac_exeext; then
17673   am_cv_lib_iconv=yes
17674         am_cv_func_iconv=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679
17680 fi
17681
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683       conftest$ac_exeext conftest.$ac_ext
17684       LIBS="$am_save_LIBS"
17685     fi
17686
17687 fi
17688 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17689 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17690   if test "$am_cv_func_iconv" = yes; then
17691
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_ICONV 1
17694 _ACEOF
17695
17696   fi
17697   if test "$am_cv_lib_iconv" = yes; then
17698     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17699 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17700     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17701 echo "${ECHO_T}$LIBICONV" >&6; }
17702   else
17703             CPPFLAGS="$am_save_CPPFLAGS"
17704     LIBICONV=
17705     LTLIBICONV=
17706   fi
17707
17708
17709
17710
17711
17712
17713     use_additional=yes
17714
17715   acl_save_prefix="$prefix"
17716   prefix="$acl_final_prefix"
17717   acl_save_exec_prefix="$exec_prefix"
17718   exec_prefix="$acl_final_exec_prefix"
17719
17720     eval additional_includedir=\"$includedir\"
17721     eval additional_libdir=\"$libdir\"
17722
17723   exec_prefix="$acl_save_exec_prefix"
17724   prefix="$acl_save_prefix"
17725
17726
17727 # Check whether --with-libintl-prefix was given.
17728 if test "${with_libintl_prefix+set}" = set; then
17729   withval=$with_libintl_prefix;
17730     if test "X$withval" = "Xno"; then
17731       use_additional=no
17732     else
17733       if test "X$withval" = "X"; then
17734
17735   acl_save_prefix="$prefix"
17736   prefix="$acl_final_prefix"
17737   acl_save_exec_prefix="$exec_prefix"
17738   exec_prefix="$acl_final_exec_prefix"
17739
17740           eval additional_includedir=\"$includedir\"
17741           eval additional_libdir=\"$libdir\"
17742
17743   exec_prefix="$acl_save_exec_prefix"
17744   prefix="$acl_save_prefix"
17745
17746       else
17747         additional_includedir="$withval/include"
17748         additional_libdir="$withval/lib"
17749       fi
17750     fi
17751
17752 fi
17753
17754       LIBINTL=
17755   LTLIBINTL=
17756   INCINTL=
17757   rpathdirs=
17758   ltrpathdirs=
17759   names_already_handled=
17760   names_next_round='intl '
17761   while test -n "$names_next_round"; do
17762     names_this_round="$names_next_round"
17763     names_next_round=
17764     for name in $names_this_round; do
17765       already_handled=
17766       for n in $names_already_handled; do
17767         if test "$n" = "$name"; then
17768           already_handled=yes
17769           break
17770         fi
17771       done
17772       if test -z "$already_handled"; then
17773         names_already_handled="$names_already_handled $name"
17774                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17775         eval value=\"\$HAVE_LIB$uppername\"
17776         if test -n "$value"; then
17777           if test "$value" = yes; then
17778             eval value=\"\$LIB$uppername\"
17779             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17780             eval value=\"\$LTLIB$uppername\"
17781             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17782           else
17783                                     :
17784           fi
17785         else
17786                               found_dir=
17787           found_la=
17788           found_so=
17789           found_a=
17790           if test $use_additional = yes; then
17791             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17792               found_dir="$additional_libdir"
17793               found_so="$additional_libdir/lib$name.$shlibext"
17794               if test -f "$additional_libdir/lib$name.la"; then
17795                 found_la="$additional_libdir/lib$name.la"
17796               fi
17797             else
17798               if test -f "$additional_libdir/lib$name.$libext"; then
17799                 found_dir="$additional_libdir"
17800                 found_a="$additional_libdir/lib$name.$libext"
17801                 if test -f "$additional_libdir/lib$name.la"; then
17802                   found_la="$additional_libdir/lib$name.la"
17803                 fi
17804               fi
17805             fi
17806           fi
17807           if test "X$found_dir" = "X"; then
17808             for x in $LDFLAGS $LTLIBINTL; do
17809
17810   acl_save_prefix="$prefix"
17811   prefix="$acl_final_prefix"
17812   acl_save_exec_prefix="$exec_prefix"
17813   exec_prefix="$acl_final_exec_prefix"
17814   eval x=\"$x\"
17815   exec_prefix="$acl_save_exec_prefix"
17816   prefix="$acl_save_prefix"
17817
17818               case "$x" in
17819                 -L*)
17820                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17821                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17822                     found_dir="$dir"
17823                     found_so="$dir/lib$name.$shlibext"
17824                     if test -f "$dir/lib$name.la"; then
17825                       found_la="$dir/lib$name.la"
17826                     fi
17827                   else
17828                     if test -f "$dir/lib$name.$libext"; then
17829                       found_dir="$dir"
17830                       found_a="$dir/lib$name.$libext"
17831                       if test -f "$dir/lib$name.la"; then
17832                         found_la="$dir/lib$name.la"
17833                       fi
17834                     fi
17835                   fi
17836                   ;;
17837               esac
17838               if test "X$found_dir" != "X"; then
17839                 break
17840               fi
17841             done
17842           fi
17843           if test "X$found_dir" != "X"; then
17844                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17845             if test "X$found_so" != "X"; then
17846                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17848               else
17849                                                                                 haveit=
17850                 for x in $ltrpathdirs; do
17851                   if test "X$x" = "X$found_dir"; then
17852                     haveit=yes
17853                     break
17854                   fi
17855                 done
17856                 if test -z "$haveit"; then
17857                   ltrpathdirs="$ltrpathdirs $found_dir"
17858                 fi
17859                                 if test "$hardcode_direct" = yes; then
17860                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                 else
17862                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17863                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                                                             haveit=
17865                     for x in $rpathdirs; do
17866                       if test "X$x" = "X$found_dir"; then
17867                         haveit=yes
17868                         break
17869                       fi
17870                     done
17871                     if test -z "$haveit"; then
17872                       rpathdirs="$rpathdirs $found_dir"
17873                     fi
17874                   else
17875                                                                                 haveit=
17876                     for x in $LDFLAGS $LIBINTL; do
17877
17878   acl_save_prefix="$prefix"
17879   prefix="$acl_final_prefix"
17880   acl_save_exec_prefix="$exec_prefix"
17881   exec_prefix="$acl_final_exec_prefix"
17882   eval x=\"$x\"
17883   exec_prefix="$acl_save_exec_prefix"
17884   prefix="$acl_save_prefix"
17885
17886                       if test "X$x" = "X-L$found_dir"; then
17887                         haveit=yes
17888                         break
17889                       fi
17890                     done
17891                     if test -z "$haveit"; then
17892                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17893                     fi
17894                     if test "$hardcode_minus_L" != no; then
17895                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17896                     else
17897                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17898                     fi
17899                   fi
17900                 fi
17901               fi
17902             else
17903               if test "X$found_a" != "X"; then
17904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17905               else
17906                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17907               fi
17908             fi
17909                         additional_includedir=
17910             case "$found_dir" in
17911               */lib | */lib/)
17912                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17913                 additional_includedir="$basedir/include"
17914                 ;;
17915             esac
17916             if test "X$additional_includedir" != "X"; then
17917                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17918                 haveit=
17919                 if test "X$additional_includedir" = "X/usr/local/include"; then
17920                   if test -n "$GCC"; then
17921                     case $host_os in
17922                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17923                     esac
17924                   fi
17925                 fi
17926                 if test -z "$haveit"; then
17927                   for x in $CPPFLAGS $INCINTL; do
17928
17929   acl_save_prefix="$prefix"
17930   prefix="$acl_final_prefix"
17931   acl_save_exec_prefix="$exec_prefix"
17932   exec_prefix="$acl_final_exec_prefix"
17933   eval x=\"$x\"
17934   exec_prefix="$acl_save_exec_prefix"
17935   prefix="$acl_save_prefix"
17936
17937                     if test "X$x" = "X-I$additional_includedir"; then
17938                       haveit=yes
17939                       break
17940                     fi
17941                   done
17942                   if test -z "$haveit"; then
17943                     if test -d "$additional_includedir"; then
17944                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17945                     fi
17946                   fi
17947                 fi
17948               fi
17949             fi
17950                         if test -n "$found_la"; then
17951                                                         save_libdir="$libdir"
17952               case "$found_la" in
17953                 */* | *\\*) . "$found_la" ;;
17954                 *) . "./$found_la" ;;
17955               esac
17956               libdir="$save_libdir"
17957                             for dep in $dependency_libs; do
17958                 case "$dep" in
17959                   -L*)
17960                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17961                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17962                       haveit=
17963                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17964                         if test -n "$GCC"; then
17965                           case $host_os in
17966                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17967                           esac
17968                         fi
17969                       fi
17970                       if test -z "$haveit"; then
17971                         haveit=
17972                         for x in $LDFLAGS $LIBINTL; do
17973
17974   acl_save_prefix="$prefix"
17975   prefix="$acl_final_prefix"
17976   acl_save_exec_prefix="$exec_prefix"
17977   exec_prefix="$acl_final_exec_prefix"
17978   eval x=\"$x\"
17979   exec_prefix="$acl_save_exec_prefix"
17980   prefix="$acl_save_prefix"
17981
17982                           if test "X$x" = "X-L$additional_libdir"; then
17983                             haveit=yes
17984                             break
17985                           fi
17986                         done
17987                         if test -z "$haveit"; then
17988                           if test -d "$additional_libdir"; then
17989                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17990                           fi
17991                         fi
17992                         haveit=
17993                         for x in $LDFLAGS $LTLIBINTL; do
17994
17995   acl_save_prefix="$prefix"
17996   prefix="$acl_final_prefix"
17997   acl_save_exec_prefix="$exec_prefix"
17998   exec_prefix="$acl_final_exec_prefix"
17999   eval x=\"$x\"
18000   exec_prefix="$acl_save_exec_prefix"
18001   prefix="$acl_save_prefix"
18002
18003                           if test "X$x" = "X-L$additional_libdir"; then
18004                             haveit=yes
18005                             break
18006                           fi
18007                         done
18008                         if test -z "$haveit"; then
18009                           if test -d "$additional_libdir"; then
18010                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18011                           fi
18012                         fi
18013                       fi
18014                     fi
18015                     ;;
18016                   -R*)
18017                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18018                     if test "$enable_rpath" != no; then
18019                                                                   haveit=
18020                       for x in $rpathdirs; do
18021                         if test "X$x" = "X$dir"; then
18022                           haveit=yes
18023                           break
18024                         fi
18025                       done
18026                       if test -z "$haveit"; then
18027                         rpathdirs="$rpathdirs $dir"
18028                       fi
18029                                                                   haveit=
18030                       for x in $ltrpathdirs; do
18031                         if test "X$x" = "X$dir"; then
18032                           haveit=yes
18033                           break
18034                         fi
18035                       done
18036                       if test -z "$haveit"; then
18037                         ltrpathdirs="$ltrpathdirs $dir"
18038                       fi
18039                     fi
18040                     ;;
18041                   -l*)
18042                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18043                     ;;
18044                   *.la)
18045                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18046                     ;;
18047                   *)
18048                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18049                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18050                     ;;
18051                 esac
18052               done
18053             fi
18054           else
18055                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18056             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18057           fi
18058         fi
18059       fi
18060     done
18061   done
18062   if test "X$rpathdirs" != "X"; then
18063     if test -n "$hardcode_libdir_separator"; then
18064                         alldirs=
18065       for found_dir in $rpathdirs; do
18066         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18067       done
18068             acl_save_libdir="$libdir"
18069       libdir="$alldirs"
18070       eval flag=\"$hardcode_libdir_flag_spec\"
18071       libdir="$acl_save_libdir"
18072       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18073     else
18074             for found_dir in $rpathdirs; do
18075         acl_save_libdir="$libdir"
18076         libdir="$found_dir"
18077         eval flag=\"$hardcode_libdir_flag_spec\"
18078         libdir="$acl_save_libdir"
18079         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18080       done
18081     fi
18082   fi
18083   if test "X$ltrpathdirs" != "X"; then
18084             for found_dir in $ltrpathdirs; do
18085       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18086     done
18087   fi
18088
18089           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18090 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18091 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   gt_save_CPPFLAGS="$CPPFLAGS"
18095             CPPFLAGS="$CPPFLAGS $INCINTL"
18096             gt_save_LIBS="$LIBS"
18097             LIBS="$LIBS $LIBINTL"
18098                         cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 #include <libintl.h>
18105 extern int _nl_msg_cat_cntr;
18106 extern
18107 #ifdef __cplusplus
18108 "C"
18109 #endif
18110 const char *_nl_expand_alias (const char *);
18111 int
18112 main ()
18113 {
18114 bindtextdomain ("", "");
18115 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest$ac_exeext &&
18137        $as_test_x conftest$ac_exeext; then
18138   gt_cv_func_gnugettext1_libintl=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         gt_cv_func_gnugettext1_libintl=no
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147       conftest$ac_exeext conftest.$ac_ext
18148                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18149               LIBS="$LIBS $LIBICONV"
18150               cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 #include <libintl.h>
18157 extern int _nl_msg_cat_cntr;
18158 extern
18159 #ifdef __cplusplus
18160 "C"
18161 #endif
18162 const char *_nl_expand_alias (const char *);
18163 int
18164 main ()
18165 {
18166 bindtextdomain ("", "");
18167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } && {
18186          test -z "$ac_c_werror_flag" ||
18187          test ! -s conftest.err
18188        } && test -s conftest$ac_exeext &&
18189        $as_test_x conftest$ac_exeext; then
18190   LIBINTL="$LIBINTL $LIBICONV"
18191                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18192                 gt_cv_func_gnugettext1_libintl=yes
18193
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202       conftest$ac_exeext conftest.$ac_ext
18203             fi
18204             CPPFLAGS="$gt_save_CPPFLAGS"
18205             LIBS="$gt_save_LIBS"
18206 fi
18207 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18208 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18209         fi
18210
18211                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18212            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18213                 && test "$PACKAGE" != gettext-runtime \
18214                 && test "$PACKAGE" != gettext-tools; }; then
18215           gt_use_preinstalled_gnugettext=yes
18216         else
18217                     LIBINTL=
18218           LTLIBINTL=
18219           INCINTL=
18220         fi
18221
18222
18223
18224     if test -n "$INTL_MACOSX_LIBS"; then
18225       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18226          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18227                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18228         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18229       fi
18230     fi
18231
18232     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define ENABLE_NLS 1
18237 _ACEOF
18238
18239     else
18240       USE_NLS=no
18241     fi
18242   fi
18243
18244   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18245 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18247 echo "${ECHO_T}$USE_NLS" >&6; }
18248   if test "$USE_NLS" = "yes"; then
18249     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18250 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18251     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18252       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18253         gt_source="external libintl"
18254       else
18255         gt_source="libc"
18256       fi
18257     else
18258       gt_source="included intl directory"
18259     fi
18260     { echo "$as_me:$LINENO: result: $gt_source" >&5
18261 echo "${ECHO_T}$gt_source" >&6; }
18262   fi
18263
18264   if test "$USE_NLS" = "yes"; then
18265
18266     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18269 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18270         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18271 echo "${ECHO_T}$LIBINTL" >&6; }
18272
18273   for element in $INCINTL; do
18274     haveit=
18275     for x in $CPPFLAGS; do
18276
18277   acl_save_prefix="$prefix"
18278   prefix="$acl_final_prefix"
18279   acl_save_exec_prefix="$exec_prefix"
18280   exec_prefix="$acl_final_exec_prefix"
18281   eval x=\"$x\"
18282   exec_prefix="$acl_save_exec_prefix"
18283   prefix="$acl_save_prefix"
18284
18285       if test "X$x" = "X$element"; then
18286         haveit=yes
18287         break
18288       fi
18289     done
18290     if test -z "$haveit"; then
18291       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18292     fi
18293   done
18294
18295       fi
18296
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_GETTEXT 1
18300 _ACEOF
18301
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_DCGETTEXT 1
18305 _ACEOF
18306
18307     fi
18308
18309         POSUB=po
18310   fi
18311
18312
18313
18314     INTLLIBS="$LIBINTL"
18315
18316
18317
18318
18319
18320
18321
18322 os_name=`uname -s 2>/dev/null`
18323 if test x${prefix} = xNONE ; then
18324    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325       sysconfdir=/etc/bacula
18326    fi
18327
18328    if test `eval echo ${libdir}` = NONE/lib ; then
18329       case ${os_name} in
18330       Linux)
18331          os_processor=`uname -p 2>/dev/null`
18332          case ${os_processor} in
18333          x86_64)
18334             libdir=/usr/lib64
18335             ;;
18336          *)
18337             libdir=/usr/lib
18338             ;;
18339          esac
18340          ;;
18341       *)
18342          libdir=/usr/lib
18343          ;;
18344       esac
18345    fi
18346
18347    if test `eval echo ${includedir}` = NONE/include ; then
18348       includedir=/usr/include
18349    fi
18350
18351    if test `eval echo ${datarootdir}` = NONE/share ; then
18352       datarootdir=/usr/share
18353    fi
18354    prefix=
18355 fi
18356
18357 if test x${exec_prefix} = xNONE ; then
18358    exec_prefix=${prefix}
18359 fi
18360
18361 sysconfdir=`eval echo ${sysconfdir}`
18362 datarootdir=`eval echo ${datarootdir}`
18363 docdir=`eval echo ${docdir}`
18364 htmldir=`eval echo ${htmldir}`
18365 libdir=`eval echo ${libdir}`
18366 includedir=`eval echo ${includedir}`
18367 localedir=`eval echo ${datarootdir}/locale`
18368 cat >>confdefs.h <<_ACEOF
18369 #define SYSCONFDIR "$sysconfdir"
18370 _ACEOF
18371
18372 cat >>confdefs.h <<_ACEOF
18373 #define LOCALEDIR "$localedir"
18374 _ACEOF
18375
18376
18377 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18378    sbindir=${exec_prefix}/sbin
18379 fi
18380 sbindir=`eval echo ${sbindir}`
18381
18382 if test x$mandir = x'${prefix}/man' ; then
18383    mandir=/usr/share/man
18384 fi
18385
18386 if test x$htmldir = x${docdir} ; then
18387    htmldir=`eval echo ${docdir}bacula/html`
18388 fi
18389
18390 if test x$docdir = x'/usr/share/doc/' ; then
18391    docdir=`eval echo ${docdir}bacula`
18392 fi
18393
18394
18395 for ac_prog in msgfmt
18396 do
18397   # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18401 if test "${ac_cv_path_MSGFMT+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   case $MSGFMT in
18405   [\\/]* | ?:[\\/]*)
18406   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18407   ;;
18408   *)
18409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18411 do
18412   IFS=$as_save_IFS
18413   test -z "$as_dir" && as_dir=.
18414   for ac_exec_ext in '' $ac_executable_extensions; do
18415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18418     break 2
18419   fi
18420 done
18421 done
18422 IFS=$as_save_IFS
18423
18424   ;;
18425 esac
18426 fi
18427 MSGFMT=$ac_cv_path_MSGFMT
18428 if test -n "$MSGFMT"; then
18429   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18430 echo "${ECHO_T}$MSGFMT" >&6; }
18431 else
18432   { echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6; }
18434 fi
18435
18436
18437   test -n "$MSGFMT" && break
18438 done
18439 test -n "$MSGFMT" || MSGFMT="no"
18440
18441 if test "$MSGFMT" = "no"
18442 then
18443    echo 'msgfmt program not found, disabling NLS !'
18444    USE_NLS=no
18445    USE_INCLUDED_LIBINTL=no
18446 #else
18447
18448     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18449 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18450 if test "${ac_cv_gnu_library_2+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459
18460 #include <features.h>
18461 #ifdef __GNU_LIBRARY__
18462  #if (__GLIBC__ >= 2)
18463   Lucky GNU user
18464  #endif
18465 #endif
18466
18467 _ACEOF
18468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18469   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18470   ac_cv_gnu_library_2=yes
18471 else
18472   ac_cv_gnu_library_2=no
18473 fi
18474 rm -f conftest*
18475
18476
18477
18478 fi
18479 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18480 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18481
18482     GLIBC2="$ac_cv_gnu_library_2"
18483
18484
18485 if test -n "$ac_tool_prefix"; then
18486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18490 if test "${ac_cv_prog_RANLIB+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   if test -n "$RANLIB"; then
18494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18495 else
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501   for ac_exec_ext in '' $ac_executable_extensions; do
18502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508 done
18509 IFS=$as_save_IFS
18510
18511 fi
18512 fi
18513 RANLIB=$ac_cv_prog_RANLIB
18514 if test -n "$RANLIB"; then
18515   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18516 echo "${ECHO_T}$RANLIB" >&6; }
18517 else
18518   { echo "$as_me:$LINENO: result: no" >&5
18519 echo "${ECHO_T}no" >&6; }
18520 fi
18521
18522
18523 fi
18524 if test -z "$ac_cv_prog_RANLIB"; then
18525   ac_ct_RANLIB=$RANLIB
18526   # Extract the first word of "ranlib", so it can be a program name with args.
18527 set dummy ranlib; ac_word=$2
18528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   if test -n "$ac_ct_RANLIB"; then
18534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18535 else
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539   IFS=$as_save_IFS
18540   test -z "$as_dir" && as_dir=.
18541   for ac_exec_ext in '' $ac_executable_extensions; do
18542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543     ac_cv_prog_ac_ct_RANLIB="ranlib"
18544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545     break 2
18546   fi
18547 done
18548 done
18549 IFS=$as_save_IFS
18550
18551 fi
18552 fi
18553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18554 if test -n "$ac_ct_RANLIB"; then
18555   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18557 else
18558   { echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6; }
18560 fi
18561
18562   if test "x$ac_ct_RANLIB" = x; then
18563     RANLIB=":"
18564   else
18565     case $cross_compiling:$ac_tool_warned in
18566 yes:)
18567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18568 whose name does not start with the host triplet.  If you think this
18569 configuration is useful to you, please write to autoconf@gnu.org." >&5
18570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet.  If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18573 ac_tool_warned=yes ;;
18574 esac
18575     RANLIB=$ac_ct_RANLIB
18576   fi
18577 else
18578   RANLIB="$ac_cv_prog_RANLIB"
18579 fi
18580
18581
18582         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18583 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18584 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lcposix  $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 /* Override any GCC internal prototype to avoid an error.
18597    Use char because int might match the return type of a GCC
18598    builtin and then its argument prototype would still apply.  */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 char strerror ();
18603 int
18604 main ()
18605 {
18606 return strerror ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_link") 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } && {
18625          test -z "$ac_c_werror_flag" ||
18626          test ! -s conftest.err
18627        } && test -s conftest$ac_exeext &&
18628        $as_test_x conftest$ac_exeext; then
18629   ac_cv_lib_cposix_strerror=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         ac_cv_lib_cposix_strerror=no
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638       conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18640 fi
18641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18642 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18643 if test $ac_cv_lib_cposix_strerror = yes; then
18644   LIBS="$LIBS -lcposix"
18645 fi
18646
18647
18648
18649 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18651 if test "${ac_cv_c_const+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660
18661 int
18662 main ()
18663 {
18664 /* FIXME: Include the comments suggested by Paul. */
18665 #ifndef __cplusplus
18666   /* Ultrix mips cc rejects this.  */
18667   typedef int charset[2];
18668   const charset cs;
18669   /* SunOS 4.1.1 cc rejects this.  */
18670   char const *const *pcpcc;
18671   char **ppc;
18672   /* NEC SVR4.0.2 mips cc rejects this.  */
18673   struct point {int x, y;};
18674   static struct point const zero = {0,0};
18675   /* AIX XL C 1.02.0.0 rejects this.
18676      It does not let you subtract one const X* pointer from another in
18677      an arm of an if-expression whose if-part is not a constant
18678      expression */
18679   const char *g = "string";
18680   pcpcc = &g + (g ? g-g : 0);
18681   /* HPUX 7.0 cc rejects these. */
18682   ++pcpcc;
18683   ppc = (char**) pcpcc;
18684   pcpcc = (char const *const *) ppc;
18685   { /* SCO 3.2v4 cc rejects this.  */
18686     char *t;
18687     char const *s = 0 ? (char *) 0 : (char const *) 0;
18688
18689     *t++ = 0;
18690     if (s) return 0;
18691   }
18692   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18693     int x[] = {25, 17};
18694     const int *foo = &x[0];
18695     ++foo;
18696   }
18697   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18698     typedef const int *iptr;
18699     iptr p = 0;
18700     ++p;
18701   }
18702   { /* AIX XL C 1.02.0.0 rejects this saying
18703        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18704     struct s { int j; const int *ap[3]; };
18705     struct s *b; b->j = 5;
18706   }
18707   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18708     const int foo = 10;
18709     if (!foo) return 0;
18710   }
18711   return !cs[0] && !zero.x;
18712 #endif
18713
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_compile") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && {
18732          test -z "$ac_c_werror_flag" ||
18733          test ! -s conftest.err
18734        } && test -s conftest.$ac_objext; then
18735   ac_cv_c_const=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_cv_c_const=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18746 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18747 if test $ac_cv_c_const = no; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define const
18751 _ACEOF
18752
18753 fi
18754
18755
18756   { echo "$as_me:$LINENO: checking for signed" >&5
18757 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18758 if test "${bh_cv_c_signed+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767
18768 int
18769 main ()
18770 {
18771 signed char x;
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext
18777 if { (ac_try="$ac_compile"
18778 case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_compile") 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } && {
18790          test -z "$ac_c_werror_flag" ||
18791          test ! -s conftest.err
18792        } && test -s conftest.$ac_objext; then
18793   bh_cv_c_signed=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         bh_cv_c_signed=no
18799 fi
18800
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802 fi
18803 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18804 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18805   if test $bh_cv_c_signed = no; then
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define signed
18809 _ACEOF
18810
18811   fi
18812
18813 { echo "$as_me:$LINENO: checking for inline" >&5
18814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18815 if test "${ac_cv_c_inline+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   ac_cv_c_inline=no
18819 for ac_kw in inline __inline__ __inline; do
18820   cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 #ifndef __cplusplus
18827 typedef int foo_t;
18828 static $ac_kw foo_t static_foo () {return 0; }
18829 $ac_kw foo_t foo () {return 0; }
18830 #endif
18831
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_compile") 2>conftest.er1
18841   ac_status=$?
18842   grep -v '^ *+' conftest.er1 >conftest.err
18843   rm -f conftest.er1
18844   cat conftest.err >&5
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } && {
18847          test -z "$ac_c_werror_flag" ||
18848          test ! -s conftest.err
18849        } && test -s conftest.$ac_objext; then
18850   ac_cv_c_inline=$ac_kw
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859   test "$ac_cv_c_inline" != no && break
18860 done
18861
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18865
18866
18867 case $ac_cv_c_inline in
18868   inline | yes) ;;
18869   *)
18870     case $ac_cv_c_inline in
18871       no) ac_val=;;
18872       *) ac_val=$ac_cv_c_inline;;
18873     esac
18874     cat >>confdefs.h <<_ACEOF
18875 #ifndef __cplusplus
18876 #define inline $ac_val
18877 #endif
18878 _ACEOF
18879     ;;
18880 esac
18881
18882 { echo "$as_me:$LINENO: checking for off_t" >&5
18883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18884 if test "${ac_cv_type_off_t+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h.  */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h.  */
18893 $ac_includes_default
18894 typedef off_t ac__type_new_;
18895 int
18896 main ()
18897 {
18898 if ((ac__type_new_ *) 0)
18899   return 0;
18900 if (sizeof (ac__type_new_))
18901   return 0;
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_compile") 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } && {
18920          test -z "$ac_c_werror_flag" ||
18921          test ! -s conftest.err
18922        } && test -s conftest.$ac_objext; then
18923   ac_cv_type_off_t=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_type_off_t=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18934 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18935 if test $ac_cv_type_off_t = yes; then
18936   :
18937 else
18938
18939 cat >>confdefs.h <<_ACEOF
18940 #define off_t long int
18941 _ACEOF
18942
18943 fi
18944
18945 { echo "$as_me:$LINENO: checking for size_t" >&5
18946 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_size_t+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 $ac_includes_default
18957 typedef size_t ac__type_new_;
18958 int
18959 main ()
18960 {
18961 if ((ac__type_new_ *) 0)
18962   return 0;
18963 if (sizeof (ac__type_new_))
18964   return 0;
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext
18970 if { (ac_try="$ac_compile"
18971 case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_compile") 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } && {
18983          test -z "$ac_c_werror_flag" ||
18984          test ! -s conftest.err
18985        } && test -s conftest.$ac_objext; then
18986   ac_cv_type_size_t=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991         ac_cv_type_size_t=no
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 fi
18996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18998 if test $ac_cv_type_size_t = yes; then
18999   :
19000 else
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define size_t unsigned int
19004 _ACEOF
19005
19006 fi
19007
19008
19009   { echo "$as_me:$LINENO: checking for long long" >&5
19010 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19011 if test "${ac_cv_type_long_long+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 long long ll = 1LL; int i = 63;
19021 int
19022 main ()
19023 {
19024 long long llmax = (long long) -1;
19025      return ll << i | ll >> i | llmax / ll | llmax % ll;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } && {
19044          test -z "$ac_c_werror_flag" ||
19045          test ! -s conftest.err
19046        } && test -s conftest$ac_exeext &&
19047        $as_test_x conftest$ac_exeext; then
19048   ac_cv_type_long_long=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053         ac_cv_type_long_long=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057       conftest$ac_exeext conftest.$ac_ext
19058 fi
19059 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19060 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19061   if test $ac_cv_type_long_long = yes; then
19062
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_LONG_LONG 1
19065 _ACEOF
19066
19067   fi
19068
19069
19070   { echo "$as_me:$LINENO: checking for long double" >&5
19071 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19072 if test "${gt_cv_c_long_double+set}" = set; then
19073   echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075   if test "$GCC" = yes; then
19076        gt_cv_c_long_double=yes
19077      else
19078        cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084
19085          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19086          long double foo = 0.0;
19087          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19088          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19089
19090 int
19091 main ()
19092 {
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_compile") 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } && {
19112          test -z "$ac_c_werror_flag" ||
19113          test ! -s conftest.err
19114        } && test -s conftest.$ac_objext; then
19115   gt_cv_c_long_double=yes
19116 else
19117   echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120         gt_cv_c_long_double=no
19121 fi
19122
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124      fi
19125 fi
19126 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19127 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19128   if test $gt_cv_c_long_double = yes; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_LONG_DOUBLE 1
19132 _ACEOF
19133
19134   fi
19135
19136
19137   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19138 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19139 if test "${gt_cv_c_wchar_t+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 #include <stddef.h>
19149        wchar_t foo = (wchar_t)'\0';
19150 int
19151 main ()
19152 {
19153
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_compile") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } && {
19172          test -z "$ac_c_werror_flag" ||
19173          test ! -s conftest.err
19174        } && test -s conftest.$ac_objext; then
19175   gt_cv_c_wchar_t=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         gt_cv_c_wchar_t=no
19181 fi
19182
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 fi
19185 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19186 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19187   if test $gt_cv_c_wchar_t = yes; then
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_WCHAR_T 1
19191 _ACEOF
19192
19193   fi
19194
19195
19196   { echo "$as_me:$LINENO: checking for wint_t" >&5
19197 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19198 if test "${gt_cv_c_wint_t+set}" = set; then
19199   echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201   cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207 #include <wchar.h>
19208        wint_t foo = (wchar_t)'\0';
19209 int
19210 main ()
19211 {
19212
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (ac_try="$ac_compile"
19219 case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_compile") 2>conftest.er1
19225   ac_status=$?
19226   grep -v '^ *+' conftest.er1 >conftest.err
19227   rm -f conftest.er1
19228   cat conftest.err >&5
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } && {
19231          test -z "$ac_c_werror_flag" ||
19232          test ! -s conftest.err
19233        } && test -s conftest.$ac_objext; then
19234   gt_cv_c_wint_t=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239         gt_cv_c_wint_t=no
19240 fi
19241
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19245 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19246   if test $gt_cv_c_wint_t = yes; then
19247
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_WINT_T 1
19250 _ACEOF
19251
19252   fi
19253
19254
19255   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19256 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19257 if test "${gl_cv_header_inttypes_h+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 #include <sys/types.h>
19267 #include <inttypes.h>
19268 int
19269 main ()
19270 {
19271 uintmax_t i = (uintmax_t) -1;
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } && {
19290          test -z "$ac_c_werror_flag" ||
19291          test ! -s conftest.err
19292        } && test -s conftest.$ac_objext; then
19293   gl_cv_header_inttypes_h=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         gl_cv_header_inttypes_h=no
19299 fi
19300
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 fi
19303 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19304 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19305   if test $gl_cv_header_inttypes_h = yes; then
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19309 _ACEOF
19310
19311   fi
19312
19313
19314   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19315 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19316 if test "${gl_cv_header_stdint_h+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 #include <sys/types.h>
19326 #include <stdint.h>
19327 int
19328 main ()
19329 {
19330 uintmax_t i = (uintmax_t) -1;
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342   (eval "$ac_compile") 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } && {
19349          test -z "$ac_c_werror_flag" ||
19350          test ! -s conftest.err
19351        } && test -s conftest.$ac_objext; then
19352   gl_cv_header_stdint_h=yes
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357         gl_cv_header_stdint_h=no
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361 fi
19362 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19363 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19364   if test $gl_cv_header_stdint_h = yes; then
19365
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_STDINT_H_WITH_UINTMAX 1
19368 _ACEOF
19369
19370   fi
19371
19372
19373
19374
19375   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19376 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19377 if test "${gt_cv_c_intmax_t+set}" = set; then
19378   echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380   cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386
19387 #include <stddef.h>
19388 #include <stdlib.h>
19389 #if HAVE_STDINT_H_WITH_UINTMAX
19390 #include <stdint.h>
19391 #endif
19392 #if HAVE_INTTYPES_H_WITH_UINTMAX
19393 #include <inttypes.h>
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 intmax_t x = -1;
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_compile") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && {
19418          test -z "$ac_c_werror_flag" ||
19419          test ! -s conftest.err
19420        } && test -s conftest.$ac_objext; then
19421   gt_cv_c_intmax_t=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         gt_cv_c_intmax_t=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19432 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19433   if test $gt_cv_c_intmax_t = yes; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_INTMAX_T 1
19437 _ACEOF
19438
19439   fi
19440
19441
19442
19443   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19444 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19445 if test "${gt_cv_func_printf_posix+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448
19449       if test "$cross_compiling" = yes; then
19450
19451         cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457
19458 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19459   notposix
19460 #endif
19461
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464   $EGREP "notposix" >/dev/null 2>&1; then
19465   gt_cv_func_printf_posix="guessing no"
19466 else
19467   gt_cv_func_printf_posix="guessing yes"
19468 fi
19469 rm -f conftest*
19470
19471
19472 else
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479
19480 #include <stdio.h>
19481 #include <string.h>
19482 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19483    dollar expansion (possibly an autoconf bug).  */
19484 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19485 static char buf[100];
19486 int main ()
19487 {
19488   sprintf (buf, format, 33, 55);
19489   return (strcmp (buf, "55 33") != 0);
19490 }
19491 _ACEOF
19492 rm -f conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   gt_cv_func_printf_posix=yes
19513 else
19514   echo "$as_me: program exited with status $ac_status" >&5
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ( exit $ac_status )
19519 gt_cv_func_printf_posix=no
19520 fi
19521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19522 fi
19523
19524
19525
19526 fi
19527 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19528 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19529   case $gt_cv_func_printf_posix in
19530     *yes)
19531
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_POSIX_PRINTF 1
19534 _ACEOF
19535
19536       ;;
19537   esac
19538
19539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19540 # for constant arguments.  Useless!
19541 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19542 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19543 if test "${ac_cv_working_alloca_h+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <alloca.h>
19553 int
19554 main ()
19555 {
19556 char *p = (char *) alloca (2 * sizeof (int));
19557                           if (p) return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_link") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } && {
19576          test -z "$ac_c_werror_flag" ||
19577          test ! -s conftest.err
19578        } && test -s conftest$ac_exeext &&
19579        $as_test_x conftest$ac_exeext; then
19580   ac_cv_working_alloca_h=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585         ac_cv_working_alloca_h=no
19586 fi
19587
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589       conftest$ac_exeext conftest.$ac_ext
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19593 if test $ac_cv_working_alloca_h = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA_H 1
19597 _ACEOF
19598
19599 fi
19600
19601 { echo "$as_me:$LINENO: checking for alloca" >&5
19602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_alloca_works+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #ifdef __GNUC__
19613 # define alloca __builtin_alloca
19614 #else
19615 # ifdef _MSC_VER
19616 #  include <malloc.h>
19617 #  define alloca _alloca
19618 # else
19619 #  ifdef HAVE_ALLOCA_H
19620 #   include <alloca.h>
19621 #  else
19622 #   ifdef _AIX
19623  #pragma alloca
19624 #   else
19625 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19626 char *alloca ();
19627 #    endif
19628 #   endif
19629 #  endif
19630 # endif
19631 #endif
19632
19633 int
19634 main ()
19635 {
19636 char *p = (char *) alloca (1);
19637                                     if (p) return 0;
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_link") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } && {
19656          test -z "$ac_c_werror_flag" ||
19657          test ! -s conftest.err
19658        } && test -s conftest$ac_exeext &&
19659        $as_test_x conftest$ac_exeext; then
19660   ac_cv_func_alloca_works=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_func_alloca_works=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669       conftest$ac_exeext conftest.$ac_ext
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19673
19674 if test $ac_cv_func_alloca_works = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19678 _ACEOF
19679
19680 else
19681   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble.  Some versions do not even contain alloca or
19683 # contain a buggy version.  If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19685
19686 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define C_ALLOCA 1
19690 _ACEOF
19691
19692
19693 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19695 if test "${ac_cv_os_cray+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #if defined CRAY && ! defined CRAY2
19705 webecray
19706 #else
19707 wenotbecray
19708 #endif
19709
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712   $EGREP "webecray" >/dev/null 2>&1; then
19713   ac_cv_os_cray=yes
19714 else
19715   ac_cv_os_cray=no
19716 fi
19717 rm -f conftest*
19718
19719 fi
19720 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723   for ac_func in _getb67 GETB67 getb67; do
19724     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19738 #define $ac_func innocuous_$ac_func
19739
19740 /* System header to define __stub macros and hopefully few prototypes,
19741     which can conflict with char $ac_func (); below.
19742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743     <limits.h> exists even on freestanding compilers.  */
19744
19745 #ifdef __STDC__
19746 # include <limits.h>
19747 #else
19748 # include <assert.h>
19749 #endif
19750
19751 #undef $ac_func
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754    Use char because int might match the return type of a GCC
19755    builtin and then its argument prototype would still apply.  */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 char $ac_func ();
19760 /* The GNU C library defines this for functions which it implements
19761     to always fail with ENOSYS.  Some functions are actually named
19762     something starting with __ and the normal name is an alias.  */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19764 choke me
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 return $ac_func ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_link") 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } && {
19789          test -z "$ac_c_werror_flag" ||
19790          test ! -s conftest.err
19791        } && test -s conftest$ac_exeext &&
19792        $as_test_x conftest$ac_exeext; then
19793   eval "$as_ac_var=yes"
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798         eval "$as_ac_var=no"
19799 fi
19800
19801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19802       conftest$ac_exeext conftest.$ac_ext
19803 fi
19804 ac_res=`eval echo '${'$as_ac_var'}'`
19805                { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_var'}'` = yes; then
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define CRAY_STACKSEG_END $ac_func
19811 _ACEOF
19812
19813     break
19814 fi
19815
19816   done
19817 fi
19818
19819 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19821 if test "${ac_cv_c_stack_direction+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   if test "$cross_compiling" = yes; then
19825   ac_cv_c_stack_direction=0
19826 else
19827   cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h.  */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h.  */
19833 $ac_includes_default
19834 int
19835 find_stack_direction ()
19836 {
19837   static char *addr = 0;
19838   auto char dummy;
19839   if (addr == 0)
19840     {
19841       addr = &dummy;
19842       return find_stack_direction ();
19843     }
19844   else
19845     return (&dummy > addr) ? 1 : -1;
19846 }
19847
19848 int
19849 main ()
19850 {
19851   return find_stack_direction () < 0;
19852 }
19853 _ACEOF
19854 rm -f conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_link") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_try") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_c_stack_direction=1
19875 else
19876   echo "$as_me: program exited with status $ac_status" >&5
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19879
19880 ( exit $ac_status )
19881 ac_cv_c_stack_direction=-1
19882 fi
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 fi
19885
19886
19887 fi
19888 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19889 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19890
19891 cat >>confdefs.h <<_ACEOF
19892 #define STACK_DIRECTION $ac_cv_c_stack_direction
19893 _ACEOF
19894
19895
19896 fi
19897
19898
19899
19900 for ac_header in stdlib.h unistd.h
19901 do
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 fi
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910                { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 else
19913   # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 $ac_includes_default
19923 #include <$ac_header>
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_compile") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && {
19939          test -z "$ac_c_werror_flag" ||
19940          test ! -s conftest.err
19941        } && test -s conftest.$ac_objext; then
19942   ac_header_compiler=yes
19943 else
19944   echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947         ac_header_compiler=no
19948 fi
19949
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6; }
19953
19954 # Is the header present?
19955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <$ac_header>
19964 _ACEOF
19965 if { (ac_try="$ac_cpp conftest.$ac_ext"
19966 case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19972   ac_status=$?
19973   grep -v '^ *+' conftest.er1 >conftest.err
19974   rm -f conftest.er1
19975   cat conftest.err >&5
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); } >/dev/null && {
19978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19979          test ! -s conftest.err
19980        }; then
19981   ac_header_preproc=yes
19982 else
19983   echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986   ac_header_preproc=no
19987 fi
19988
19989 rm -f conftest.err conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6; }
19992
19993 # So?  What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19995   yes:no: )
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000     ac_header_preproc=yes
20001     ;;
20002   no:yes:* )
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20015
20016     ;;
20017 esac
20018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20021   echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023   eval "$as_ac_Header=\$ac_header_preproc"
20024 fi
20025 ac_res=`eval echo '${'$as_ac_Header'}'`
20026                { echo "$as_me:$LINENO: result: $ac_res" >&5
20027 echo "${ECHO_T}$ac_res" >&6; }
20028
20029 fi
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031   cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033 _ACEOF
20034
20035 fi
20036
20037 done
20038
20039
20040 for ac_func in getpagesize
20041 do
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20056 #define $ac_func innocuous_$ac_func
20057
20058 /* System header to define __stub macros and hopefully few prototypes,
20059     which can conflict with char $ac_func (); below.
20060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061     <limits.h> exists even on freestanding compilers.  */
20062
20063 #ifdef __STDC__
20064 # include <limits.h>
20065 #else
20066 # include <assert.h>
20067 #endif
20068
20069 #undef $ac_func
20070
20071 /* Override any GCC internal prototype to avoid an error.
20072    Use char because int might match the return type of a GCC
20073    builtin and then its argument prototype would still apply.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char $ac_func ();
20078 /* The GNU C library defines this for functions which it implements
20079     to always fail with ENOSYS.  Some functions are actually named
20080     something starting with __ and the normal name is an alias.  */
20081 #if defined __stub_$ac_func || defined __stub___$ac_func
20082 choke me
20083 #endif
20084
20085 int
20086 main ()
20087 {
20088 return $ac_func ();
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_link") 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && {
20107          test -z "$ac_c_werror_flag" ||
20108          test ! -s conftest.err
20109        } && test -s conftest$ac_exeext &&
20110        $as_test_x conftest$ac_exeext; then
20111   eval "$as_ac_var=yes"
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116         eval "$as_ac_var=no"
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120       conftest$ac_exeext conftest.$ac_ext
20121 fi
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123                { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126   cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 _ACEOF
20129
20130 fi
20131 done
20132
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   if test "$cross_compiling" = yes; then
20139   ac_cv_func_mmap_fixed_mapped=no
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20149 #undef malloc
20150
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152    Here is a matrix of mmap possibilities:
20153         mmap private not fixed
20154         mmap private fixed at somewhere currently unmapped
20155         mmap private fixed at somewhere already mapped
20156         mmap shared not fixed
20157         mmap shared fixed at somewhere currently unmapped
20158         mmap shared fixed at somewhere already mapped
20159    For private mappings, we should verify that changes cannot be read()
20160    back from the file, nor mmap's back from the file at a different
20161    address.  (There have been systems where private was not correctly
20162    implemented like the infamous i386 svr4.0, and systems where the
20163    VM page cache was not coherent with the file system buffer cache
20164    like early versions of FreeBSD and possibly contemporary NetBSD.)
20165    For shared mappings, we should conversely verify that changes get
20166    propagated back to all the places they're supposed to be.
20167
20168    Grep wants private fixed already mapped.
20169    The main things grep needs to know about mmap are:
20170    * does it exist and is it safe to write into the mmap'd area
20171    * how to use it (BSD variants)  */
20172
20173 #include <fcntl.h>
20174 #include <sys/mman.h>
20175
20176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20177 char *malloc ();
20178 #endif
20179
20180 /* This mess was copied from the GNU getpagesize.h.  */
20181 #ifndef HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h.  */
20183 # ifndef HAVE_SYS_PARAM_H
20184 #  define HAVE_SYS_PARAM_H 1
20185 # endif
20186
20187 # ifdef _SC_PAGESIZE
20188 #  define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 #  ifdef HAVE_SYS_PARAM_H
20191 #   include <sys/param.h>
20192 #   ifdef EXEC_PAGESIZE
20193 #    define getpagesize() EXEC_PAGESIZE
20194 #   else /* no EXEC_PAGESIZE */
20195 #    ifdef NBPG
20196 #     define getpagesize() NBPG * CLSIZE
20197 #     ifndef CLSIZE
20198 #      define CLSIZE 1
20199 #     endif /* no CLSIZE */
20200 #    else /* no NBPG */
20201 #     ifdef NBPC
20202 #      define getpagesize() NBPC
20203 #     else /* no NBPC */
20204 #      ifdef PAGESIZE
20205 #       define getpagesize() PAGESIZE
20206 #      endif /* PAGESIZE */
20207 #     endif /* no NBPC */
20208 #    endif /* no NBPG */
20209 #   endif /* no EXEC_PAGESIZE */
20210 #  else /* no HAVE_SYS_PARAM_H */
20211 #   define getpagesize() 8192   /* punt totally */
20212 #  endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20214
20215 #endif /* no HAVE_GETPAGESIZE */
20216
20217 int
20218 main ()
20219 {
20220   char *data, *data2, *data3;
20221   int i, pagesize;
20222   int fd;
20223
20224   pagesize = getpagesize ();
20225
20226   /* First, make a file with some known garbage in it. */
20227   data = (char *) malloc (pagesize);
20228   if (!data)
20229     return 1;
20230   for (i = 0; i < pagesize; ++i)
20231     *(data + i) = rand ();
20232   umask (0);
20233   fd = creat ("conftest.mmap", 0600);
20234   if (fd < 0)
20235     return 1;
20236   if (write (fd, data, pagesize) != pagesize)
20237     return 1;
20238   close (fd);
20239
20240   /* Next, try to mmap the file at a fixed address which already has
20241      something else allocated at it.  If we can, also make sure that
20242      we see the same garbage.  */
20243   fd = open ("conftest.mmap", O_RDWR);
20244   if (fd < 0)
20245     return 1;
20246   data2 = (char *) malloc (2 * pagesize);
20247   if (!data2)
20248     return 1;
20249   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252     return 1;
20253   for (i = 0; i < pagesize; ++i)
20254     if (*(data + i) != *(data2 + i))
20255       return 1;
20256
20257   /* Finally, make sure that changes to the mapped area do not
20258      percolate back to the file as seen by read().  (This is a bug on
20259      some variants of i386 svr4.0.)  */
20260   for (i = 0; i < pagesize; ++i)
20261     *(data2 + i) = *(data2 + i) + 1;
20262   data3 = (char *) malloc (pagesize);
20263   if (!data3)
20264     return 1;
20265   if (read (fd, data3, pagesize) != pagesize)
20266     return 1;
20267   for (i = 0; i < pagesize; ++i)
20268     if (*(data + i) != *(data3 + i))
20269       return 1;
20270   close (fd);
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_link") 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_mmap_fixed_mapped=yes
20295 else
20296   echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20302 fi
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304 fi
20305
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20314 _ACEOF
20315
20316 fi
20317 rm -f conftest.mmap
20318
20319
20320     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331
20332 #include <features.h>
20333 #ifdef __GNU_LIBRARY__
20334  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20335   Lucky GNU user
20336  #endif
20337 #endif
20338
20339 _ACEOF
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20342   ac_cv_gnu_library_2_1=yes
20343 else
20344   ac_cv_gnu_library_2_1=no
20345 fi
20346 rm -f conftest*
20347
20348
20349
20350 fi
20351 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20353
20354     GLIBC21="$ac_cv_gnu_library_2_1"
20355
20356
20357
20358
20359   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20360 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20361 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364
20365       if test "$cross_compiling" = yes; then
20366
20367           # Guess based on the CPU.
20368           case "$host_cpu" in
20369             alpha* | i3456786 | m68k | s390*)
20370               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20371             *)
20372               gt_cv_int_divbyzero_sigfpe="guessing no";;
20373           esac
20374
20375 else
20376   cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382
20383 #include <stdlib.h>
20384 #include <signal.h>
20385
20386 static void
20387 #ifdef __cplusplus
20388 sigfpe_handler (int sig)
20389 #else
20390 sigfpe_handler (sig) int sig;
20391 #endif
20392 {
20393   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20394   exit (sig != SIGFPE);
20395 }
20396
20397 int x = 1;
20398 int y = 0;
20399 int z;
20400 int nan;
20401
20402 int main ()
20403 {
20404   signal (SIGFPE, sigfpe_handler);
20405 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20406 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20407   signal (SIGTRAP, sigfpe_handler);
20408 #endif
20409 /* Linux/SPARC yields signal SIGILL.  */
20410 #if defined (__sparc__) && defined (__linux__)
20411   signal (SIGILL, sigfpe_handler);
20412 #endif
20413
20414   z = x / y;
20415   nan = y / y;
20416   exit (1);
20417 }
20418
20419 _ACEOF
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_link") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   gt_cv_int_divbyzero_sigfpe=yes
20441 else
20442   echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ( exit $ac_status )
20447 gt_cv_int_divbyzero_sigfpe=no
20448 fi
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20450 fi
20451
20452
20453
20454 fi
20455 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20456 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20457   case "$gt_cv_int_divbyzero_sigfpe" in
20458     *yes) value=1;;
20459     *) value=0;;
20460   esac
20461
20462 cat >>confdefs.h <<_ACEOF
20463 #define INTDIV0_RAISES_SIGFPE $value
20464 _ACEOF
20465
20466
20467
20468   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20469 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20470 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 unsigned long long ull = 1ULL; int i = 63;
20480 int
20481 main ()
20482 {
20483 unsigned long long ullmax = (unsigned long long) -1;
20484      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_link") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest$ac_exeext &&
20506        $as_test_x conftest$ac_exeext; then
20507   ac_cv_type_unsigned_long_long=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_type_unsigned_long_long=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516       conftest$ac_exeext conftest.$ac_ext
20517 fi
20518 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20519 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20520   if test $ac_cv_type_unsigned_long_long = yes; then
20521
20522 cat >>confdefs.h <<\_ACEOF
20523 #define HAVE_UNSIGNED_LONG_LONG 1
20524 _ACEOF
20525
20526   fi
20527
20528
20529
20530
20531   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20532
20533     test $ac_cv_type_unsigned_long_long = yes \
20534       && ac_type='unsigned long long' \
20535       || ac_type='unsigned long'
20536
20537 cat >>confdefs.h <<_ACEOF
20538 #define uintmax_t $ac_type
20539 _ACEOF
20540
20541   else
20542
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_UINTMAX_T 1
20545 _ACEOF
20546
20547   fi
20548
20549
20550   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20551 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20552 if test "${gt_cv_header_inttypes_h+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555
20556     cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #include <sys/types.h>
20563 #include <inttypes.h>
20564 int
20565 main ()
20566 {
20567
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_compile") 2>conftest.er1
20580   ac_status=$?
20581   grep -v '^ *+' conftest.er1 >conftest.err
20582   rm -f conftest.er1
20583   cat conftest.err >&5
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); } && {
20586          test -z "$ac_c_werror_flag" ||
20587          test ! -s conftest.err
20588        } && test -s conftest.$ac_objext; then
20589   gt_cv_header_inttypes_h=yes
20590 else
20591   echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         gt_cv_header_inttypes_h=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598
20599 fi
20600 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20601 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20602   if test $gt_cv_header_inttypes_h = yes; then
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_INTTYPES_H 1
20606 _ACEOF
20607
20608   fi
20609
20610
20611
20612   if test $gt_cv_header_inttypes_h = yes; then
20613     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20614 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20615 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618
20619         cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <inttypes.h>
20626 #ifdef PRId32
20627 char *p = PRId32;
20628 #endif
20629
20630 int
20631 main ()
20632 {
20633
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_compile") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && {
20652          test -z "$ac_c_werror_flag" ||
20653          test ! -s conftest.err
20654        } && test -s conftest.$ac_objext; then
20655   gt_cv_inttypes_pri_broken=no
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         gt_cv_inttypes_pri_broken=yes
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664
20665 fi
20666 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20667 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20668   fi
20669   if test "$gt_cv_inttypes_pri_broken" = yes; then
20670
20671 cat >>confdefs.h <<_ACEOF
20672 #define PRI_MACROS_BROKEN 1
20673 _ACEOF
20674
20675   fi
20676
20677
20678
20679 for ac_header in stdint.h
20680 do
20681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 fi
20688 ac_res=`eval echo '${'$as_ac_Header'}'`
20689                { echo "$as_me:$LINENO: result: $ac_res" >&5
20690 echo "${ECHO_T}$ac_res" >&6; }
20691 else
20692   # Is the header compilable?
20693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702 #include <$ac_header>
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   ac_header_compiler=yes
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         ac_header_compiler=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20731 echo "${ECHO_T}$ac_header_compiler" >&6; }
20732
20733 # Is the header present?
20734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <$ac_header>
20743 _ACEOF
20744 if { (ac_try="$ac_cpp conftest.$ac_ext"
20745 case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20751   ac_status=$?
20752   grep -v '^ *+' conftest.er1 >conftest.err
20753   rm -f conftest.er1
20754   cat conftest.err >&5
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } >/dev/null && {
20757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20758          test ! -s conftest.err
20759        }; then
20760   ac_header_preproc=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765   ac_header_preproc=no
20766 fi
20767
20768 rm -f conftest.err conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20770 echo "${ECHO_T}$ac_header_preproc" >&6; }
20771
20772 # So?  What about this header?
20773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20774   yes:no: )
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20779     ac_header_preproc=yes
20780     ;;
20781   no:yes:* )
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20794
20795     ;;
20796 esac
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   eval "$as_ac_Header=\$ac_header_preproc"
20803 fi
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805                { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807
20808 fi
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810   cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 fi
20815
20816 done
20817
20818     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20819 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20820   result=
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827
20828 #include <limits.h>
20829 #if HAVE_STDINT_H
20830 #include <stdint.h>
20831 #endif
20832 #ifdef SIZE_MAX
20833 Found it
20834 #endif
20835
20836 _ACEOF
20837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20838   $EGREP "Found it" >/dev/null 2>&1; then
20839   result=yes
20840 fi
20841 rm -f conftest*
20842
20843   if test -z "$result"; then
20844                     if test "$cross_compiling" = yes; then
20845   # Depending upon the size, compute the lo and hi bounds.
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <stddef.h>
20853 int
20854 main ()
20855 {
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20857 test_array [0] = 0
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_compile") 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && {
20877          test -z "$ac_c_werror_flag" ||
20878          test ! -s conftest.err
20879        } && test -s conftest.$ac_objext; then
20880   ac_lo=0 ac_mid=0
20881   while :; do
20882     cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 #include <stddef.h>
20889 int
20890 main ()
20891 {
20892 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20893 test_array [0] = 0
20894
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_compile") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } && {
20913          test -z "$ac_c_werror_flag" ||
20914          test ! -s conftest.err
20915        } && test -s conftest.$ac_objext; then
20916   ac_hi=$ac_mid; break
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         ac_lo=`expr $ac_mid + 1`
20922                         if test $ac_lo -le $ac_mid; then
20923                           ac_lo= ac_hi=
20924                           break
20925                         fi
20926                         ac_mid=`expr 2 '*' $ac_mid + 1`
20927 fi
20928
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930   done
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <stddef.h>
20942 int
20943 main ()
20944 {
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20946 test_array [0] = 0
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_compile") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest.$ac_objext; then
20969   ac_hi=-1 ac_mid=-1
20970   while :; do
20971     cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h.  */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h.  */
20977 #include <stddef.h>
20978 int
20979 main ()
20980 {
20981 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20982 test_array [0] = 0
20983
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_compile") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest.$ac_objext; then
21005   ac_lo=$ac_mid; break
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010         ac_hi=`expr '(' $ac_mid ')' - 1`
21011                         if test $ac_mid -le $ac_hi; then
21012                           ac_lo= ac_hi=
21013                           break
21014                         fi
21015                         ac_mid=`expr 2 '*' $ac_mid`
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019   done
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024         ac_lo= ac_hi=
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 # Binary search between lo and hi bounds.
21032 while test "x$ac_lo" != "x$ac_hi"; do
21033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21034   cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 #include <stddef.h>
21041 int
21042 main ()
21043 {
21044 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21045 test_array [0] = 0
21046
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } && {
21065          test -z "$ac_c_werror_flag" ||
21066          test ! -s conftest.err
21067        } && test -s conftest.$ac_objext; then
21068   ac_hi=$ac_mid
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_lo=`expr '(' $ac_mid ')' + 1`
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 done
21078 case $ac_lo in
21079 ?*) res_hi=$ac_lo;;
21080 '') result=? ;;
21081 esac
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <stddef.h>
21090 static long int longval () { return ~(size_t)0 / 10; }
21091 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21092 #include <stdio.h>
21093 #include <stdlib.h>
21094 int
21095 main ()
21096 {
21097
21098   FILE *f = fopen ("conftest.val", "w");
21099   if (! f)
21100     return 1;
21101   if ((~(size_t)0 / 10) < 0)
21102     {
21103       long int i = longval ();
21104       if (i != (~(size_t)0 / 10))
21105         return 1;
21106       fprintf (f, "%ld\n", i);
21107     }
21108   else
21109     {
21110       unsigned long int i = ulongval ();
21111       if (i != (~(size_t)0 / 10))
21112         return 1;
21113       fprintf (f, "%lu\n", i);
21114     }
21115   return ferror (f) || fclose (f) != 0;
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_link") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   res_hi=`cat conftest.val`
21142 else
21143   echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ( exit $ac_status )
21148 result=?
21149 fi
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 fi
21152 rm -f conftest.val
21153
21154     if test "$cross_compiling" = yes; then
21155   # Depending upon the size, compute the lo and hi bounds.
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <stddef.h>
21163 int
21164 main ()
21165 {
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21167 test_array [0] = 0
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && {
21187          test -z "$ac_c_werror_flag" ||
21188          test ! -s conftest.err
21189        } && test -s conftest.$ac_objext; then
21190   ac_lo=0 ac_mid=0
21191   while :; do
21192     cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 #include <stddef.h>
21199 int
21200 main ()
21201 {
21202 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21203 test_array [0] = 0
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_compile") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } && {
21223          test -z "$ac_c_werror_flag" ||
21224          test ! -s conftest.err
21225        } && test -s conftest.$ac_objext; then
21226   ac_hi=$ac_mid; break
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231         ac_lo=`expr $ac_mid + 1`
21232                         if test $ac_lo -le $ac_mid; then
21233                           ac_lo= ac_hi=
21234                           break
21235                         fi
21236                         ac_mid=`expr 2 '*' $ac_mid + 1`
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240   done
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 #include <stddef.h>
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_hi=-1 ac_mid=-1
21280   while :; do
21281     cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <stddef.h>
21288 int
21289 main ()
21290 {
21291 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21292 test_array [0] = 0
21293
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302   *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305   (eval "$ac_compile") 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } && {
21312          test -z "$ac_c_werror_flag" ||
21313          test ! -s conftest.err
21314        } && test -s conftest.$ac_objext; then
21315   ac_lo=$ac_mid; break
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320         ac_hi=`expr '(' $ac_mid ')' - 1`
21321                         if test $ac_mid -le $ac_hi; then
21322                           ac_lo= ac_hi=
21323                           break
21324                         fi
21325                         ac_mid=`expr 2 '*' $ac_mid`
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329   done
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         ac_lo= ac_hi=
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 fi
21339
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 # Binary search between lo and hi bounds.
21342 while test "x$ac_lo" != "x$ac_hi"; do
21343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 #include <stddef.h>
21351 int
21352 main ()
21353 {
21354 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21355 test_array [0] = 0
21356
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_compile") 2>conftest.er1
21369   ac_status=$?
21370   grep -v '^ *+' conftest.er1 >conftest.err
21371   rm -f conftest.er1
21372   cat conftest.err >&5
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && {
21375          test -z "$ac_c_werror_flag" ||
21376          test ! -s conftest.err
21377        } && test -s conftest.$ac_objext; then
21378   ac_hi=$ac_mid
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         ac_lo=`expr '(' $ac_mid ')' + 1`
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 done
21388 case $ac_lo in
21389 ?*) res_lo=$ac_lo;;
21390 '') result=? ;;
21391 esac
21392 else
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <stddef.h>
21400 static long int longval () { return ~(size_t)0 % 10; }
21401 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21402 #include <stdio.h>
21403 #include <stdlib.h>
21404 int
21405 main ()
21406 {
21407
21408   FILE *f = fopen ("conftest.val", "w");
21409   if (! f)
21410     return 1;
21411   if ((~(size_t)0 % 10) < 0)
21412     {
21413       long int i = longval ();
21414       if (i != (~(size_t)0 % 10))
21415         return 1;
21416       fprintf (f, "%ld\n", i);
21417     }
21418   else
21419     {
21420       unsigned long int i = ulongval ();
21421       if (i != (~(size_t)0 % 10))
21422         return 1;
21423       fprintf (f, "%lu\n", i);
21424     }
21425   return ferror (f) || fclose (f) != 0;
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_link") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442   { (case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_try") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   res_lo=`cat conftest.val`
21452 else
21453   echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ( exit $ac_status )
21458 result=?
21459 fi
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 rm -f conftest.val
21463
21464     if test "$cross_compiling" = yes; then
21465   # Depending upon the size, compute the lo and hi bounds.
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <stddef.h>
21473 int
21474 main ()
21475 {
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21477 test_array [0] = 0
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_compile") 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } && {
21497          test -z "$ac_c_werror_flag" ||
21498          test ! -s conftest.err
21499        } && test -s conftest.$ac_objext; then
21500   ac_lo=0 ac_mid=0
21501   while :; do
21502     cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 #include <stddef.h>
21509 int
21510 main ()
21511 {
21512 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21513 test_array [0] = 0
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_compile") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } && {
21533          test -z "$ac_c_werror_flag" ||
21534          test ! -s conftest.err
21535        } && test -s conftest.$ac_objext; then
21536   ac_hi=$ac_mid; break
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_lo=`expr $ac_mid + 1`
21542                         if test $ac_lo -le $ac_mid; then
21543                           ac_lo= ac_hi=
21544                           break
21545                         fi
21546                         ac_mid=`expr 2 '*' $ac_mid + 1`
21547 fi
21548
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550   done
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555         cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <stddef.h>
21562 int
21563 main ()
21564 {
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21566 test_array [0] = 0
21567
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_hi=-1 ac_mid=-1
21590   while :; do
21591     cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 #include <stddef.h>
21598 int
21599 main ()
21600 {
21601 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21602 test_array [0] = 0
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_compile") 2>conftest.er1
21616   ac_status=$?
21617   grep -v '^ *+' conftest.er1 >conftest.err
21618   rm -f conftest.er1
21619   cat conftest.err >&5
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && {
21622          test -z "$ac_c_werror_flag" ||
21623          test ! -s conftest.err
21624        } && test -s conftest.$ac_objext; then
21625   ac_lo=$ac_mid; break
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630         ac_hi=`expr '(' $ac_mid ')' - 1`
21631                         if test $ac_mid -le $ac_hi; then
21632                           ac_lo= ac_hi=
21633                           break
21634                         fi
21635                         ac_mid=`expr 2 '*' $ac_mid`
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639   done
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_lo= ac_hi=
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 #include <stddef.h>
21661 int
21662 main ()
21663 {
21664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21665 test_array [0] = 0
21666
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675   *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678   (eval "$ac_compile") 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && {
21685          test -z "$ac_c_werror_flag" ||
21686          test ! -s conftest.err
21687        } && test -s conftest.$ac_objext; then
21688   ac_hi=$ac_mid
21689 else
21690   echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693         ac_lo=`expr '(' $ac_mid ')' + 1`
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 done
21698 case $ac_lo in
21699 ?*) fits_in_uint=$ac_lo;;
21700 '') result=? ;;
21701 esac
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 #include <stddef.h>
21710 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21711 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21712 #include <stdio.h>
21713 #include <stdlib.h>
21714 int
21715 main ()
21716 {
21717
21718   FILE *f = fopen ("conftest.val", "w");
21719   if (! f)
21720     return 1;
21721   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21722     {
21723       long int i = longval ();
21724       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21725         return 1;
21726       fprintf (f, "%ld\n", i);
21727     }
21728   else
21729     {
21730       unsigned long int i = ulongval ();
21731       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21732         return 1;
21733       fprintf (f, "%lu\n", i);
21734     }
21735   return ferror (f) || fclose (f) != 0;
21736
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   fits_in_uint=`cat conftest.val`
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 result=?
21769 fi
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772 rm -f conftest.val
21773
21774     if test "$fits_in_uint" = 1; then
21775                   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <stddef.h>
21782         extern size_t foo;
21783         extern unsigned long foo;
21784
21785 int
21786 main ()
21787 {
21788
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_compile") 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } && {
21807          test -z "$ac_c_werror_flag" ||
21808          test ! -s conftest.err
21809        } && test -s conftest.$ac_objext; then
21810   fits_in_uint=0
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819     fi
21820     if test -z "$result"; then
21821       if test "$fits_in_uint" = 1; then
21822         result="$res_hi$res_lo"U
21823       else
21824         result="$res_hi$res_lo"UL
21825       fi
21826     else
21827             result='~(size_t)0'
21828     fi
21829   fi
21830   { echo "$as_me:$LINENO: result: $result" >&5
21831 echo "${ECHO_T}$result" >&6; }
21832   if test "$result" != yes; then
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZE_MAX $result
21836 _ACEOF
21837
21838   fi
21839
21840
21841
21842
21843
21844 for ac_header in stdint.h
21845 do
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 fi
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854                { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21856 else
21857   # Is the header compilable?
21858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 $ac_includes_default
21867 #include <$ac_header>
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_compile") 2>conftest.er1
21877   ac_status=$?
21878   grep -v '^ *+' conftest.er1 >conftest.err
21879   rm -f conftest.er1
21880   cat conftest.err >&5
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); } && {
21883          test -z "$ac_c_werror_flag" ||
21884          test ! -s conftest.err
21885        } && test -s conftest.$ac_objext; then
21886   ac_header_compiler=yes
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891         ac_header_compiler=no
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896 echo "${ECHO_T}$ac_header_compiler" >&6; }
21897
21898 # Is the header present?
21899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 #include <$ac_header>
21908 _ACEOF
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } >/dev/null && {
21922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        }; then
21925   ac_header_preproc=yes
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930   ac_header_preproc=no
21931 fi
21932
21933 rm -f conftest.err conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 echo "${ECHO_T}$ac_header_preproc" >&6; }
21936
21937 # So?  What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21939   yes:no: )
21940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21944     ac_header_preproc=yes
21945     ;;
21946   no:yes:* )
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21959
21960     ;;
21961 esac
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   eval "$as_ac_Header=\$ac_header_preproc"
21968 fi
21969 ac_res=`eval echo '${'$as_ac_Header'}'`
21970                { echo "$as_me:$LINENO: result: $ac_res" >&5
21971 echo "${ECHO_T}$ac_res" >&6; }
21972
21973 fi
21974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21975   cat >>confdefs.h <<_ACEOF
21976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 _ACEOF
21978
21979 fi
21980
21981 done
21982
21983
21984
21985
21986
21987
21988
21989
21990   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21993   echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995   cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 $ac_includes_default
22002 typedef ptrdiff_t ac__type_new_;
22003 int
22004 main ()
22005 {
22006 if ((ac__type_new_ *) 0)
22007   return 0;
22008 if (sizeof (ac__type_new_))
22009   return 0;
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_compile") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest.$ac_objext; then
22031   ac_cv_type_ptrdiff_t=yes
22032 else
22033   echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036         ac_cv_type_ptrdiff_t=no
22037 fi
22038
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 fi
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22043 if test $ac_cv_type_ptrdiff_t = yes; then
22044   :
22045 else
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define ptrdiff_t long
22049 _ACEOF
22050
22051
22052 fi
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22065 stdlib.h string.h unistd.h sys/param.h
22066 do
22067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 fi
22074 ac_res=`eval echo '${'$as_ac_Header'}'`
22075                { echo "$as_me:$LINENO: result: $ac_res" >&5
22076 echo "${ECHO_T}$ac_res" >&6; }
22077 else
22078   # Is the header compilable?
22079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 $ac_includes_default
22088 #include <$ac_header>
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097   (eval "$ac_compile") 2>conftest.er1
22098   ac_status=$?
22099   grep -v '^ *+' conftest.er1 >conftest.err
22100   rm -f conftest.er1
22101   cat conftest.err >&5
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } && {
22104          test -z "$ac_c_werror_flag" ||
22105          test ! -s conftest.err
22106        } && test -s conftest.$ac_objext; then
22107   ac_header_compiler=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112         ac_header_compiler=no
22113 fi
22114
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22117 echo "${ECHO_T}$ac_header_compiler" >&6; }
22118
22119 # Is the header present?
22120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 #include <$ac_header>
22129 _ACEOF
22130 if { (ac_try="$ac_cpp conftest.$ac_ext"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } >/dev/null && {
22143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        }; then
22146   ac_header_preproc=yes
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151   ac_header_preproc=no
22152 fi
22153
22154 rm -f conftest.err conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22156 echo "${ECHO_T}$ac_header_preproc" >&6; }
22157
22158 # So?  What about this header?
22159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22160   yes:no: )
22161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22165     ac_header_preproc=yes
22166     ;;
22167   no:yes:* )
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22180
22181     ;;
22182 esac
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186   echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188   eval "$as_ac_Header=\$ac_header_preproc"
22189 fi
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191                { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22193
22194 fi
22195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196   cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22198 _ACEOF
22199
22200 fi
22201
22202 done
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22228 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22229 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22230 __fsetlocking
22231 do
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22246 #define $ac_func innocuous_$ac_func
22247
22248 /* System header to define __stub macros and hopefully few prototypes,
22249     which can conflict with char $ac_func (); below.
22250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251     <limits.h> exists even on freestanding compilers.  */
22252
22253 #ifdef __STDC__
22254 # include <limits.h>
22255 #else
22256 # include <assert.h>
22257 #endif
22258
22259 #undef $ac_func
22260
22261 /* Override any GCC internal prototype to avoid an error.
22262    Use char because int might match the return type of a GCC
22263    builtin and then its argument prototype would still apply.  */
22264 #ifdef __cplusplus
22265 extern "C"
22266 #endif
22267 char $ac_func ();
22268 /* The GNU C library defines this for functions which it implements
22269     to always fail with ENOSYS.  Some functions are actually named
22270     something starting with __ and the normal name is an alias.  */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22272 choke me
22273 #endif
22274
22275 int
22276 main ()
22277 {
22278 return $ac_func ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_link") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && {
22297          test -z "$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        } && test -s conftest$ac_exeext &&
22300        $as_test_x conftest$ac_exeext; then
22301   eval "$as_ac_var=yes"
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         eval "$as_ac_var=no"
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310       conftest$ac_exeext conftest.$ac_ext
22311 fi
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313                { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 fi
22321 done
22322
22323
22324
22325   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22326 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22327 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 #include <stdio.h>
22337 int
22338 main ()
22339 {
22340
22341 #ifndef _snprintf
22342   char *p = (char *) _snprintf;
22343 #endif
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_have_decl__snprintf=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         ac_cv_have_decl__snprintf=no
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22377 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22378   if test $ac_cv_have_decl__snprintf = yes; then
22379     gt_value=1
22380   else
22381     gt_value=0
22382   fi
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_DECL__SNPRINTF $gt_value
22386 _ACEOF
22387
22388
22389
22390   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22391 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22392 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <stdio.h>
22402 int
22403 main ()
22404 {
22405
22406 #ifndef _snwprintf
22407   char *p = (char *) _snwprintf;
22408 #endif
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_compile") 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && {
22428          test -z "$ac_c_werror_flag" ||
22429          test ! -s conftest.err
22430        } && test -s conftest.$ac_objext; then
22431   ac_cv_have_decl__snwprintf=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_have_decl__snwprintf=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22442 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22443   if test $ac_cv_have_decl__snwprintf = yes; then
22444     gt_value=1
22445   else
22446     gt_value=0
22447   fi
22448
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL__SNWPRINTF $gt_value
22451 _ACEOF
22452
22453
22454
22455
22456   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22457 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22458 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <stdio.h>
22468 int
22469 main ()
22470 {
22471
22472 #ifndef feof_unlocked
22473   char *p = (char *) feof_unlocked;
22474 #endif
22475
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487   (eval "$ac_compile") 2>conftest.er1
22488   ac_status=$?
22489   grep -v '^ *+' conftest.er1 >conftest.err
22490   rm -f conftest.er1
22491   cat conftest.err >&5
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } && {
22494          test -z "$ac_c_werror_flag" ||
22495          test ! -s conftest.err
22496        } && test -s conftest.$ac_objext; then
22497   ac_cv_have_decl_feof_unlocked=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502         ac_cv_have_decl_feof_unlocked=no
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22508 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22509   if test $ac_cv_have_decl_feof_unlocked = yes; then
22510     gt_value=1
22511   else
22512     gt_value=0
22513   fi
22514
22515 cat >>confdefs.h <<_ACEOF
22516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22517 _ACEOF
22518
22519
22520
22521   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22522 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22523 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 #include <stdio.h>
22533 int
22534 main ()
22535 {
22536
22537 #ifndef fgets_unlocked
22538   char *p = (char *) fgets_unlocked;
22539 #endif
22540
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_cv_have_decl_fgets_unlocked=yes
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         ac_cv_have_decl_fgets_unlocked=no
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22573 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22574   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22575     gt_value=1
22576   else
22577     gt_value=0
22578   fi
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22582 _ACEOF
22583
22584
22585
22586   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22587 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 #include <stdio.h>
22598 int
22599 main ()
22600 {
22601
22602 #ifndef getc_unlocked
22603   char *p = (char *) getc_unlocked;
22604 #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_have_decl_getc_unlocked=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_cv_have_decl_getc_unlocked=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22638 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22639   if test $ac_cv_have_decl_getc_unlocked = yes; then
22640     gt_value=1
22641   else
22642     gt_value=0
22643   fi
22644
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22647 _ACEOF
22648
22649
22650
22651   case $gt_cv_func_printf_posix in
22652     *yes) HAVE_POSIX_PRINTF=1 ;;
22653     *) HAVE_POSIX_PRINTF=0 ;;
22654   esac
22655
22656   if test "$ac_cv_func_asprintf" = yes; then
22657     HAVE_ASPRINTF=1
22658   else
22659     HAVE_ASPRINTF=0
22660   fi
22661
22662   if test "$ac_cv_func_snprintf" = yes; then
22663     HAVE_SNPRINTF=1
22664   else
22665     HAVE_SNPRINTF=0
22666   fi
22667
22668   if test "$ac_cv_func_wprintf" = yes; then
22669     HAVE_WPRINTF=1
22670   else
22671     HAVE_WPRINTF=0
22672   fi
22673
22674
22675
22676
22677
22678
22679
22680           am_save_CPPFLAGS="$CPPFLAGS"
22681
22682   for element in $INCICONV; do
22683     haveit=
22684     for x in $CPPFLAGS; do
22685
22686   acl_save_prefix="$prefix"
22687   prefix="$acl_final_prefix"
22688   acl_save_exec_prefix="$exec_prefix"
22689   exec_prefix="$acl_final_exec_prefix"
22690   eval x=\"$x\"
22691   exec_prefix="$acl_save_exec_prefix"
22692   prefix="$acl_save_prefix"
22693
22694       if test "X$x" = "X$element"; then
22695         haveit=yes
22696         break
22697       fi
22698     done
22699     if test -z "$haveit"; then
22700       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22701     fi
22702   done
22703
22704
22705   { echo "$as_me:$LINENO: checking for iconv" >&5
22706 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22707 if test "${am_cv_func_iconv+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710
22711     am_cv_func_iconv="no, consider installing GNU libiconv"
22712     am_cv_lib_iconv=no
22713     cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <stdlib.h>
22720 #include <iconv.h>
22721 int
22722 main ()
22723 {
22724 iconv_t cd = iconv_open("","");
22725        iconv(cd,NULL,NULL,NULL,NULL);
22726        iconv_close(cd);
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_link") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } && {
22745          test -z "$ac_c_werror_flag" ||
22746          test ! -s conftest.err
22747        } && test -s conftest$ac_exeext &&
22748        $as_test_x conftest$ac_exeext; then
22749   am_cv_func_iconv=yes
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758       conftest$ac_exeext conftest.$ac_ext
22759     if test "$am_cv_func_iconv" != yes; then
22760       am_save_LIBS="$LIBS"
22761       LIBS="$LIBS $LIBICONV"
22762       cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 #include <stdlib.h>
22769 #include <iconv.h>
22770 int
22771 main ()
22772 {
22773 iconv_t cd = iconv_open("","");
22774          iconv(cd,NULL,NULL,NULL,NULL);
22775          iconv_close(cd);
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787   (eval "$ac_link") 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } && {
22794          test -z "$ac_c_werror_flag" ||
22795          test ! -s conftest.err
22796        } && test -s conftest$ac_exeext &&
22797        $as_test_x conftest$ac_exeext; then
22798   am_cv_lib_iconv=yes
22799         am_cv_func_iconv=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804
22805 fi
22806
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808       conftest$ac_exeext conftest.$ac_ext
22809       LIBS="$am_save_LIBS"
22810     fi
22811
22812 fi
22813 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22814 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22815   if test "$am_cv_func_iconv" = yes; then
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_ICONV 1
22819 _ACEOF
22820
22821   fi
22822   if test "$am_cv_lib_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22824 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22825     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22826 echo "${ECHO_T}$LIBICONV" >&6; }
22827   else
22828             CPPFLAGS="$am_save_CPPFLAGS"
22829     LIBICONV=
22830     LTLIBICONV=
22831   fi
22832
22833
22834
22835   if test "$am_cv_func_iconv" = yes; then
22836     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22837 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22838     if test "${am_cv_proto_iconv+set}" = set; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841
22842       cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848
22849 #include <stdlib.h>
22850 #include <iconv.h>
22851 extern
22852 #ifdef __cplusplus
22853 "C"
22854 #endif
22855 #if defined(__STDC__) || defined(__cplusplus)
22856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22857 #else
22858 size_t iconv();
22859 #endif
22860
22861 int
22862 main ()
22863 {
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   am_cv_proto_iconv_arg1=""
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891         am_cv_proto_iconv_arg1="const"
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22896 fi
22897
22898     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22899     { echo "$as_me:$LINENO: result: ${ac_t:-
22900          }$am_cv_proto_iconv" >&5
22901 echo "${ECHO_T}${ac_t:-
22902          }$am_cv_proto_iconv" >&6; }
22903
22904 cat >>confdefs.h <<_ACEOF
22905 #define ICONV_CONST $am_cv_proto_iconv_arg1
22906 _ACEOF
22907
22908   fi
22909
22910
22911   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${am_cv_langinfo_codeset+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #include <langinfo.h>
22923 int
22924 main ()
22925 {
22926 char* cs = nl_langinfo(CODESET);
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_link") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } && {
22945          test -z "$ac_c_werror_flag" ||
22946          test ! -s conftest.err
22947        } && test -s conftest$ac_exeext &&
22948        $as_test_x conftest$ac_exeext; then
22949   am_cv_langinfo_codeset=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954         am_cv_langinfo_codeset=no
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958       conftest$ac_exeext conftest.$ac_ext
22959
22960 fi
22961 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22963   if test $am_cv_langinfo_codeset = yes; then
22964
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22967 _ACEOF
22968
22969   fi
22970
22971   if test $ac_cv_header_locale_h = yes; then
22972
22973   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22974 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22975 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <locale.h>
22985 int
22986 main ()
22987 {
22988 return LC_MESSAGES
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_link") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } && {
23007          test -z "$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        } && test -s conftest$ac_exeext &&
23010        $as_test_x conftest$ac_exeext; then
23011   gt_cv_val_LC_MESSAGES=yes
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016         gt_cv_val_LC_MESSAGES=no
23017 fi
23018
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020       conftest$ac_exeext conftest.$ac_ext
23021 fi
23022 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23023 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23024   if test $gt_cv_val_LC_MESSAGES = yes; then
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_LC_MESSAGES 1
23028 _ACEOF
23029
23030   fi
23031
23032   fi
23033
23034   if test -n "$INTL_MACOSX_LIBS"; then
23035     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23036   fi
23037
23038                       for ac_prog in bison
23039 do
23040   # Extract the first word of "$ac_prog", so it can be a program name with args.
23041 set dummy $ac_prog; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23045   echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047   if test -n "$INTLBISON"; then
23048   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23049 else
23050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23052 do
23053   IFS=$as_save_IFS
23054   test -z "$as_dir" && as_dir=.
23055   for ac_exec_ext in '' $ac_executable_extensions; do
23056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23057     ac_cv_prog_INTLBISON="$ac_prog"
23058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23059     break 2
23060   fi
23061 done
23062 done
23063 IFS=$as_save_IFS
23064
23065 fi
23066 fi
23067 INTLBISON=$ac_cv_prog_INTLBISON
23068 if test -n "$INTLBISON"; then
23069   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23070 echo "${ECHO_T}$INTLBISON" >&6; }
23071 else
23072   { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23074 fi
23075
23076
23077   test -n "$INTLBISON" && break
23078 done
23079
23080   if test -z "$INTLBISON"; then
23081     ac_verc_fail=yes
23082   else
23083         { echo "$as_me:$LINENO: checking version of bison" >&5
23084 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23085     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23086     case $ac_prog_version in
23087       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23088       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23089          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23090       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23091     esac
23092     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23093 echo "${ECHO_T}$ac_prog_version" >&6; }
23094   fi
23095   if test $ac_verc_fail = yes; then
23096     INTLBISON=:
23097   fi
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23115 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119   gt_save_CPPFLAGS="$CPPFLAGS"
23120      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121      gt_save_LIBS="$LIBS"
23122      LIBS="$LIBS -framework CoreFoundation"
23123      cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <CFPreferences.h>
23130 int
23131 main ()
23132 {
23133 CFPreferencesCopyAppValue(NULL, NULL)
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_link") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } && {
23152          test -z "$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        } && test -s conftest$ac_exeext &&
23155        $as_test_x conftest$ac_exeext; then
23156   gt_cv_func_CFPreferencesCopyAppValue=yes
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         gt_cv_func_CFPreferencesCopyAppValue=no
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165       conftest$ac_exeext conftest.$ac_ext
23166      CPPFLAGS="$gt_save_CPPFLAGS"
23167      LIBS="$gt_save_LIBS"
23168 fi
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23171   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23172
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23175 _ACEOF
23176
23177   fi
23178     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23179 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23180 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   gt_save_CPPFLAGS="$CPPFLAGS"
23184      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23185      gt_save_LIBS="$LIBS"
23186      LIBS="$LIBS -framework CoreFoundation"
23187      cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 #include <CFLocale.h>
23194 int
23195 main ()
23196 {
23197 CFLocaleCopyCurrent();
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_link") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } && {
23216          test -z "$ac_c_werror_flag" ||
23217          test ! -s conftest.err
23218        } && test -s conftest$ac_exeext &&
23219        $as_test_x conftest$ac_exeext; then
23220   gt_cv_func_CFLocaleCopyCurrent=yes
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225         gt_cv_func_CFLocaleCopyCurrent=no
23226 fi
23227
23228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23229       conftest$ac_exeext conftest.$ac_ext
23230      CPPFLAGS="$gt_save_CPPFLAGS"
23231      LIBS="$gt_save_LIBS"
23232 fi
23233 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23234 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23235   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23236
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_CFLOCALECOPYCURRENT 1
23239 _ACEOF
23240
23241   fi
23242   INTL_MACOSX_LIBS=
23243   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23244     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23245   fi
23246
23247
23248
23249
23250   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23251 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23252     # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then
23254   enableval=$enable_nls; USE_NLS=$enableval
23255 else
23256   USE_NLS=yes
23257 fi
23258
23259   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 echo "${ECHO_T}$USE_NLS" >&6; }
23261
23262
23263
23264
23265     BUILD_INCLUDED_LIBINTL=no
23266     USE_INCLUDED_LIBINTL=no
23267
23268   LIBINTL=
23269   LTLIBINTL=
23270   POSUB=
23271
23272     if test "$USE_NLS" = "yes"; then
23273     gt_use_preinstalled_gnugettext=no
23274
23275       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23277
23278 # Check whether --with-included-gettext was given.
23279 if test "${with_included_gettext+set}" = set; then
23280   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23281 else
23282   nls_cv_force_use_gnu_gettext=no
23283 fi
23284
23285       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23287
23288       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23289       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23290
23291
23292
23293
23294
23295
23296         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23298 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 #include <libintl.h>
23308 extern int _nl_msg_cat_cntr;
23309 extern int *_nl_domain_bindings;
23310 int
23311 main ()
23312 {
23313 bindtextdomain ("", "");
23314 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_link") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest$ac_exeext &&
23336        $as_test_x conftest$ac_exeext; then
23337   gt_cv_func_gnugettext1_libc=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         gt_cv_func_gnugettext1_libc=no
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23346       conftest$ac_exeext conftest.$ac_ext
23347 fi
23348 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23349 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23350
23351         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23352
23353
23354
23355     use_additional=yes
23356
23357   acl_save_prefix="$prefix"
23358   prefix="$acl_final_prefix"
23359   acl_save_exec_prefix="$exec_prefix"
23360   exec_prefix="$acl_final_exec_prefix"
23361
23362     eval additional_includedir=\"$includedir\"
23363     eval additional_libdir=\"$libdir\"
23364
23365   exec_prefix="$acl_save_exec_prefix"
23366   prefix="$acl_save_prefix"
23367
23368
23369 # Check whether --with-libintl-prefix was given.
23370 if test "${with_libintl_prefix+set}" = set; then
23371   withval=$with_libintl_prefix;
23372     if test "X$withval" = "Xno"; then
23373       use_additional=no
23374     else
23375       if test "X$withval" = "X"; then
23376
23377   acl_save_prefix="$prefix"
23378   prefix="$acl_final_prefix"
23379   acl_save_exec_prefix="$exec_prefix"
23380   exec_prefix="$acl_final_exec_prefix"
23381
23382           eval additional_includedir=\"$includedir\"
23383           eval additional_libdir=\"$libdir\"
23384
23385   exec_prefix="$acl_save_exec_prefix"
23386   prefix="$acl_save_prefix"
23387
23388       else
23389         additional_includedir="$withval/include"
23390         additional_libdir="$withval/lib"
23391       fi
23392     fi
23393
23394 fi
23395
23396       LIBINTL=
23397   LTLIBINTL=
23398   INCINTL=
23399   rpathdirs=
23400   ltrpathdirs=
23401   names_already_handled=
23402   names_next_round='intl '
23403   while test -n "$names_next_round"; do
23404     names_this_round="$names_next_round"
23405     names_next_round=
23406     for name in $names_this_round; do
23407       already_handled=
23408       for n in $names_already_handled; do
23409         if test "$n" = "$name"; then
23410           already_handled=yes
23411           break
23412         fi
23413       done
23414       if test -z "$already_handled"; then
23415         names_already_handled="$names_already_handled $name"
23416                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23417         eval value=\"\$HAVE_LIB$uppername\"
23418         if test -n "$value"; then
23419           if test "$value" = yes; then
23420             eval value=\"\$LIB$uppername\"
23421             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23422             eval value=\"\$LTLIB$uppername\"
23423             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23424           else
23425                                     :
23426           fi
23427         else
23428                               found_dir=
23429           found_la=
23430           found_so=
23431           found_a=
23432           if test $use_additional = yes; then
23433             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23434               found_dir="$additional_libdir"
23435               found_so="$additional_libdir/lib$name.$shlibext"
23436               if test -f "$additional_libdir/lib$name.la"; then
23437                 found_la="$additional_libdir/lib$name.la"
23438               fi
23439             else
23440               if test -f "$additional_libdir/lib$name.$libext"; then
23441                 found_dir="$additional_libdir"
23442                 found_a="$additional_libdir/lib$name.$libext"
23443                 if test -f "$additional_libdir/lib$name.la"; then
23444                   found_la="$additional_libdir/lib$name.la"
23445                 fi
23446               fi
23447             fi
23448           fi
23449           if test "X$found_dir" = "X"; then
23450             for x in $LDFLAGS $LTLIBINTL; do
23451
23452   acl_save_prefix="$prefix"
23453   prefix="$acl_final_prefix"
23454   acl_save_exec_prefix="$exec_prefix"
23455   exec_prefix="$acl_final_exec_prefix"
23456   eval x=\"$x\"
23457   exec_prefix="$acl_save_exec_prefix"
23458   prefix="$acl_save_prefix"
23459
23460               case "$x" in
23461                 -L*)
23462                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23463                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23464                     found_dir="$dir"
23465                     found_so="$dir/lib$name.$shlibext"
23466                     if test -f "$dir/lib$name.la"; then
23467                       found_la="$dir/lib$name.la"
23468                     fi
23469                   else
23470                     if test -f "$dir/lib$name.$libext"; then
23471                       found_dir="$dir"
23472                       found_a="$dir/lib$name.$libext"
23473                       if test -f "$dir/lib$name.la"; then
23474                         found_la="$dir/lib$name.la"
23475                       fi
23476                     fi
23477                   fi
23478                   ;;
23479               esac
23480               if test "X$found_dir" != "X"; then
23481                 break
23482               fi
23483             done
23484           fi
23485           if test "X$found_dir" != "X"; then
23486                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23487             if test "X$found_so" != "X"; then
23488                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23489                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490               else
23491                                                                                 haveit=
23492                 for x in $ltrpathdirs; do
23493                   if test "X$x" = "X$found_dir"; then
23494                     haveit=yes
23495                     break
23496                   fi
23497                 done
23498                 if test -z "$haveit"; then
23499                   ltrpathdirs="$ltrpathdirs $found_dir"
23500                 fi
23501                                 if test "$hardcode_direct" = yes; then
23502                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23503                 else
23504                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23505                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506                                                             haveit=
23507                     for x in $rpathdirs; do
23508                       if test "X$x" = "X$found_dir"; then
23509                         haveit=yes
23510                         break
23511                       fi
23512                     done
23513                     if test -z "$haveit"; then
23514                       rpathdirs="$rpathdirs $found_dir"
23515                     fi
23516                   else
23517                                                                                 haveit=
23518                     for x in $LDFLAGS $LIBINTL; do
23519
23520   acl_save_prefix="$prefix"
23521   prefix="$acl_final_prefix"
23522   acl_save_exec_prefix="$exec_prefix"
23523   exec_prefix="$acl_final_exec_prefix"
23524   eval x=\"$x\"
23525   exec_prefix="$acl_save_exec_prefix"
23526   prefix="$acl_save_prefix"
23527
23528                       if test "X$x" = "X-L$found_dir"; then
23529                         haveit=yes
23530                         break
23531                       fi
23532                     done
23533                     if test -z "$haveit"; then
23534                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23535                     fi
23536                     if test "$hardcode_minus_L" != no; then
23537                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23538                     else
23539                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23540                     fi
23541                   fi
23542                 fi
23543               fi
23544             else
23545               if test "X$found_a" != "X"; then
23546                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23547               else
23548                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23549               fi
23550             fi
23551                         additional_includedir=
23552             case "$found_dir" in
23553               */lib | */lib/)
23554                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23555                 additional_includedir="$basedir/include"
23556                 ;;
23557             esac
23558             if test "X$additional_includedir" != "X"; then
23559                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23560                 haveit=
23561                 if test "X$additional_includedir" = "X/usr/local/include"; then
23562                   if test -n "$GCC"; then
23563                     case $host_os in
23564                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23565                     esac
23566                   fi
23567                 fi
23568                 if test -z "$haveit"; then
23569                   for x in $CPPFLAGS $INCINTL; do
23570
23571   acl_save_prefix="$prefix"
23572   prefix="$acl_final_prefix"
23573   acl_save_exec_prefix="$exec_prefix"
23574   exec_prefix="$acl_final_exec_prefix"
23575   eval x=\"$x\"
23576   exec_prefix="$acl_save_exec_prefix"
23577   prefix="$acl_save_prefix"
23578
23579                     if test "X$x" = "X-I$additional_includedir"; then
23580                       haveit=yes
23581                       break
23582                     fi
23583                   done
23584                   if test -z "$haveit"; then
23585                     if test -d "$additional_includedir"; then
23586                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23587                     fi
23588                   fi
23589                 fi
23590               fi
23591             fi
23592                         if test -n "$found_la"; then
23593                                                         save_libdir="$libdir"
23594               case "$found_la" in
23595                 */* | *\\*) . "$found_la" ;;
23596                 *) . "./$found_la" ;;
23597               esac
23598               libdir="$save_libdir"
23599                             for dep in $dependency_libs; do
23600                 case "$dep" in
23601                   -L*)
23602                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23603                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23604                       haveit=
23605                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23606                         if test -n "$GCC"; then
23607                           case $host_os in
23608                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23609                           esac
23610                         fi
23611                       fi
23612                       if test -z "$haveit"; then
23613                         haveit=
23614                         for x in $LDFLAGS $LIBINTL; do
23615
23616   acl_save_prefix="$prefix"
23617   prefix="$acl_final_prefix"
23618   acl_save_exec_prefix="$exec_prefix"
23619   exec_prefix="$acl_final_exec_prefix"
23620   eval x=\"$x\"
23621   exec_prefix="$acl_save_exec_prefix"
23622   prefix="$acl_save_prefix"
23623
23624                           if test "X$x" = "X-L$additional_libdir"; then
23625                             haveit=yes
23626                             break
23627                           fi
23628                         done
23629                         if test -z "$haveit"; then
23630                           if test -d "$additional_libdir"; then
23631                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23632                           fi
23633                         fi
23634                         haveit=
23635                         for x in $LDFLAGS $LTLIBINTL; do
23636
23637   acl_save_prefix="$prefix"
23638   prefix="$acl_final_prefix"
23639   acl_save_exec_prefix="$exec_prefix"
23640   exec_prefix="$acl_final_exec_prefix"
23641   eval x=\"$x\"
23642   exec_prefix="$acl_save_exec_prefix"
23643   prefix="$acl_save_prefix"
23644
23645                           if test "X$x" = "X-L$additional_libdir"; then
23646                             haveit=yes
23647                             break
23648                           fi
23649                         done
23650                         if test -z "$haveit"; then
23651                           if test -d "$additional_libdir"; then
23652                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23653                           fi
23654                         fi
23655                       fi
23656                     fi
23657                     ;;
23658                   -R*)
23659                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23660                     if test "$enable_rpath" != no; then
23661                                                                   haveit=
23662                       for x in $rpathdirs; do
23663                         if test "X$x" = "X$dir"; then
23664                           haveit=yes
23665                           break
23666                         fi
23667                       done
23668                       if test -z "$haveit"; then
23669                         rpathdirs="$rpathdirs $dir"
23670                       fi
23671                                                                   haveit=
23672                       for x in $ltrpathdirs; do
23673                         if test "X$x" = "X$dir"; then
23674                           haveit=yes
23675                           break
23676                         fi
23677                       done
23678                       if test -z "$haveit"; then
23679                         ltrpathdirs="$ltrpathdirs $dir"
23680                       fi
23681                     fi
23682                     ;;
23683                   -l*)
23684                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23685                     ;;
23686                   *.la)
23687                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23688                     ;;
23689                   *)
23690                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23691                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23692                     ;;
23693                 esac
23694               done
23695             fi
23696           else
23697                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23698             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23699           fi
23700         fi
23701       fi
23702     done
23703   done
23704   if test "X$rpathdirs" != "X"; then
23705     if test -n "$hardcode_libdir_separator"; then
23706                         alldirs=
23707       for found_dir in $rpathdirs; do
23708         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23709       done
23710             acl_save_libdir="$libdir"
23711       libdir="$alldirs"
23712       eval flag=\"$hardcode_libdir_flag_spec\"
23713       libdir="$acl_save_libdir"
23714       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23715     else
23716             for found_dir in $rpathdirs; do
23717         acl_save_libdir="$libdir"
23718         libdir="$found_dir"
23719         eval flag=\"$hardcode_libdir_flag_spec\"
23720         libdir="$acl_save_libdir"
23721         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23722       done
23723     fi
23724   fi
23725   if test "X$ltrpathdirs" != "X"; then
23726             for found_dir in $ltrpathdirs; do
23727       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23728     done
23729   fi
23730
23731           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23733 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   gt_save_CPPFLAGS="$CPPFLAGS"
23737             CPPFLAGS="$CPPFLAGS $INCINTL"
23738             gt_save_LIBS="$LIBS"
23739             LIBS="$LIBS $LIBINTL"
23740                         cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h.  */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h.  */
23746 #include <libintl.h>
23747 extern int _nl_msg_cat_cntr;
23748 extern
23749 #ifdef __cplusplus
23750 "C"
23751 #endif
23752 const char *_nl_expand_alias (const char *);
23753 int
23754 main ()
23755 {
23756 bindtextdomain ("", "");
23757 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_link") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } && {
23776          test -z "$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        } && test -s conftest$ac_exeext &&
23779        $as_test_x conftest$ac_exeext; then
23780   gt_cv_func_gnugettext1_libintl=yes
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         gt_cv_func_gnugettext1_libintl=no
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23789       conftest$ac_exeext conftest.$ac_ext
23790                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23791               LIBS="$LIBS $LIBICONV"
23792               cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 #include <libintl.h>
23799 extern int _nl_msg_cat_cntr;
23800 extern
23801 #ifdef __cplusplus
23802 "C"
23803 #endif
23804 const char *_nl_expand_alias (const char *);
23805 int
23806 main ()
23807 {
23808 bindtextdomain ("", "");
23809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821   (eval "$ac_link") 2>conftest.er1
23822   ac_status=$?
23823   grep -v '^ *+' conftest.er1 >conftest.err
23824   rm -f conftest.er1
23825   cat conftest.err >&5
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && {
23828          test -z "$ac_c_werror_flag" ||
23829          test ! -s conftest.err
23830        } && test -s conftest$ac_exeext &&
23831        $as_test_x conftest$ac_exeext; then
23832   LIBINTL="$LIBINTL $LIBICONV"
23833                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23834                 gt_cv_func_gnugettext1_libintl=yes
23835
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23844       conftest$ac_exeext conftest.$ac_ext
23845             fi
23846             CPPFLAGS="$gt_save_CPPFLAGS"
23847             LIBS="$gt_save_LIBS"
23848 fi
23849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23851         fi
23852
23853                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23854            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23855                 && test "$PACKAGE" != gettext-runtime \
23856                 && test "$PACKAGE" != gettext-tools; }; then
23857           gt_use_preinstalled_gnugettext=yes
23858         else
23859                     LIBINTL=
23860           LTLIBINTL=
23861           INCINTL=
23862         fi
23863
23864
23865         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23866                               nls_cv_use_gnu_gettext=yes
23867         fi
23868       fi
23869
23870       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23871                 BUILD_INCLUDED_LIBINTL=yes
23872         USE_INCLUDED_LIBINTL=yes
23873         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23874         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23875         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23876       fi
23877
23878       CATOBJEXT=
23879       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23880          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23881                 CATOBJEXT=.gmo
23882       fi
23883
23884
23885     if test -n "$INTL_MACOSX_LIBS"; then
23886       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23887          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23889         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23890       fi
23891     fi
23892
23893     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23894        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23895
23896 cat >>confdefs.h <<\_ACEOF
23897 #define ENABLE_NLS 1
23898 _ACEOF
23899
23900     else
23901       USE_NLS=no
23902     fi
23903   fi
23904
23905   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23906 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23907   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23908 echo "${ECHO_T}$USE_NLS" >&6; }
23909   if test "$USE_NLS" = "yes"; then
23910     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23911 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23912     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914         gt_source="external libintl"
23915       else
23916         gt_source="libc"
23917       fi
23918     else
23919       gt_source="included intl directory"
23920     fi
23921     { echo "$as_me:$LINENO: result: $gt_source" >&5
23922 echo "${ECHO_T}$gt_source" >&6; }
23923   fi
23924
23925   if test "$USE_NLS" = "yes"; then
23926
23927     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23928       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23929         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23930 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23931         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23932 echo "${ECHO_T}$LIBINTL" >&6; }
23933
23934   for element in $INCINTL; do
23935     haveit=
23936     for x in $CPPFLAGS; do
23937
23938   acl_save_prefix="$prefix"
23939   prefix="$acl_final_prefix"
23940   acl_save_exec_prefix="$exec_prefix"
23941   exec_prefix="$acl_final_exec_prefix"
23942   eval x=\"$x\"
23943   exec_prefix="$acl_save_exec_prefix"
23944   prefix="$acl_save_prefix"
23945
23946       if test "X$x" = "X$element"; then
23947         haveit=yes
23948         break
23949       fi
23950     done
23951     if test -z "$haveit"; then
23952       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23953     fi
23954   done
23955
23956       fi
23957
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_GETTEXT 1
23961 _ACEOF
23962
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_DCGETTEXT 1
23966 _ACEOF
23967
23968     fi
23969
23970         POSUB=po
23971   fi
23972
23973
23974             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23975       BUILD_INCLUDED_LIBINTL=yes
23976     fi
23977
23978
23979
23980
23981
23982         nls_cv_header_intl=
23983     nls_cv_header_libgt=
23984
23985         DATADIRNAME=share
23986
23987
23988         INSTOBJEXT=.mo
23989
23990
23991         GENCAT=gencat
23992
23993
23994         INTLOBJS=
23995     if test "$USE_INCLUDED_LIBINTL" = yes; then
23996       INTLOBJS="\$(GETTOBJS)"
23997     fi
23998
23999
24000         INTL_LIBTOOL_SUFFIX_PREFIX=
24001
24002
24003
24004     INTLLIBS="$LIBINTL"
24005
24006
24007
24008
24009
24010
24011 fi
24012
24013 support_mysql=no
24014 support_sqlite=no
24015 support_sqlite3=no
24016 support_postgresql=no
24017 support_ingres=no
24018 support_dbi=no
24019 support_smartalloc=yes
24020 support_readline=yes
24021 support_conio=yes
24022 support_gnome=no
24023 support_bat=no
24024 support_wx_console=no
24025 support_tray_monitor=no
24026 support_tls=no
24027 support_crypto=no
24028 gnome_version=
24029 wx_version=
24030 support_static_tools=no
24031 support_static_fd=no
24032 support_static_sd=no
24033 support_static_dir=no
24034 support_static_cons=no
24035 support_python=no
24036 build_client_only=no
24037 build_dird=yes
24038 build_stored=yes
24039 cats=
24040 db_type=Internal
24041 support_lockmgr=no
24042 DB_TYPE=bdb
24043
24044
24045 # Check whether --enable-gnome was given.
24046 if test "${enable_gnome+set}" = set; then
24047   enableval=$enable_gnome;
24048        if test x$enableval = xyes; then
24049           support_gnome=yes
24050        fi
24051
24052
24053 fi
24054
24055
24056 GNOME_DIR=
24057 if test x$support_gnome = xyes; then
24058    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24059 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24060    { (exit 1); exit 1; }; }
24061    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24062 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24063    { (exit 1); exit 1; }; }
24064 fi
24065 # AC_SUBST(GNOME_DIR)
24066
24067 # Check whether --enable-bat was given.
24068 if test "${enable_bat+set}" = set; then
24069   enableval=$enable_bat;
24070        if test x$enableval = xyes; then
24071
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_BAT 1
24074 _ACEOF
24075
24076           support_bat=yes
24077        fi
24078
24079
24080 fi
24081
24082
24083 BAT_DIR=
24084 if test x$support_bat = xyes; then
24085    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24086    pkg=$?
24087    if test $pkg = 0; then
24088       BAT_DIR=src/qt-console
24089    else
24090       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24091 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24092    { (exit 1); exit 1; }; }
24093    fi
24094 fi
24095
24096 got_qwt=no
24097 QWT_INC=
24098 QWT_LDFLAGS=
24099 QWT_LIB=
24100 QWT=
24101 no_qwt=no
24102
24103
24104
24105
24106
24107
24108
24109
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112   enableval=$enable_bwx_console;
24113        if test x$enableval = xyes; then
24114           support_wx_console=yes
24115        fi
24116
24117
24118 fi
24119
24120
24121 WX_DIR=
24122 if test x$support_wx_console = xyes; then
24123    abc=`$WXCONFIG $WXFLAGS --cppflags`
24124    pkg=$?
24125    if test $pkg = 0; then
24126       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24129
24130
24131
24132       WX_DIR="src/wx-console"
24133    else
24134       echo " "
24135       echo "wx-config program not found. bwx-console disabled."
24136       echo " "
24137       support_wx_console=no
24138    fi
24139 fi
24140
24141
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144   enableval=$enable_tray_monitor;
24145        if test x$enableval = xyes; then
24146           support_tray_monitor=yes
24147        fi
24148
24149
24150 fi
24151
24152
24153 TRAY_MONITOR_DIR=
24154 if test x$support_tray_monitor = xyes; then
24155    abc=`$PKGCONFIG --exists gtk+-2.0`
24156    pkg=$?
24157    if test $pkg = 0; then
24158       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24160
24161
24162       TRAY_MONITOR_DIR=src/tray-monitor
24163       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24164       pkg=$?
24165       if test $pkg = 0; then
24166
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24169 _ACEOF
24170
24171       fi
24172    fi
24173 fi
24174
24175
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178   enableval=$enable_smartalloc;
24179        if test x$enableval = xno; then
24180           support_smartalloc=no
24181        fi
24182
24183
24184 fi
24185
24186
24187 if test x$support_smartalloc = xyes; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24191 _ACEOF
24192
24193 fi
24194
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197   enableval=$enable_lockmgr;
24198        if test x$enableval = xyes; then
24199           support_lockmgr=yes
24200        fi
24201
24202
24203 fi
24204
24205
24206 if test x$support_lockmgr = xyes; then
24207
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24210 _ACEOF
24211
24212 fi
24213
24214
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217   enableval=$enable_static_tools;
24218        if test x$enableval = xyes; then
24219           if test x$use_libtool = xyes; then
24220              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24221   please rerun configure with --disable-libtool" >&5
24222 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24223   please rerun configure with --disable-libtool" >&2;}
24224    { (exit 1); exit 1; }; }
24225           fi
24226           support_static_tools=yes
24227        fi
24228
24229
24230 fi
24231
24232
24233 TTOOL_LDFLAGS=
24234 if test x$support_static_tools = xyes; then
24235    TTOOL_LDFLAGS="-static"
24236 fi
24237
24238
24239 # Check whether --enable-static-fd was given.
24240 if test "${enable_static_fd+set}" = set; then
24241   enableval=$enable_static_fd;
24242        if test x$enableval = xyes; then
24243           if test x$use_libtool = xyes; then
24244              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24245   please rerun configure with --disable-libtool" >&5
24246 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24247   please rerun configure with --disable-libtool" >&2;}
24248    { (exit 1); exit 1; }; }
24249           fi
24250           support_static_fd=yes
24251        fi
24252
24253
24254 fi
24255
24256
24257 STATIC_FD=
24258 if test x$support_static_fd = xyes; then
24259    STATIC_FD="static-bacula-fd"
24260 fi
24261
24262
24263 # Check whether --enable-static-sd was given.
24264 if test "${enable_static_sd+set}" = set; then
24265   enableval=$enable_static_sd;
24266        if test x$enableval = xyes; then
24267           if test x$use_libtool = xyes; then
24268              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24269   please rerun configure with --disable-libtool" >&5
24270 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24271   please rerun configure with --disable-libtool" >&2;}
24272    { (exit 1); exit 1; }; }
24273           fi
24274           support_static_sd=yes
24275        fi
24276
24277
24278 fi
24279
24280
24281 STATIC_SD=
24282 if test x$support_static_sd = xyes; then
24283    STATIC_SD="static-bacula-sd"
24284 fi
24285
24286
24287 # Check whether --enable-static-dir was given.
24288 if test "${enable_static_dir+set}" = set; then
24289   enableval=$enable_static_dir;
24290        if test x$enableval = xyes; then
24291           if test x$use_libtool = xyes; then
24292              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24293   please rerun configure with --disable-libtool" >&5
24294 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24295   please rerun configure with --disable-libtool" >&2;}
24296    { (exit 1); exit 1; }; }
24297           fi
24298           support_static_dir=yes
24299        fi
24300
24301
24302 fi
24303
24304
24305 STATIC_DIR=
24306 if test x$support_static_dir = xyes; then
24307    STATIC_DIR="static-bacula-dir"
24308 fi
24309
24310
24311 # Check whether --enable-static-cons was given.
24312 if test "${enable_static_cons+set}" = set; then
24313   enableval=$enable_static_cons;
24314        if test x$enableval = xyes; then
24315           if test x$use_libtool = xyes; then
24316              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24317   please rerun configure with --disable-libtool" >&5
24318 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24319   please rerun configure with --disable-libtool" >&2;}
24320    { (exit 1); exit 1; }; }
24321           fi
24322           support_static_cons=yes
24323        fi
24324
24325
24326 fi
24327
24328
24329 STATIC_CONS=
24330 STATIC_GNOME_CONS=
24331 STATIC_WX_CONS=
24332 if test x$support_static_cons = xyes; then
24333    STATIC_CONS="static-bconsole"
24334    STATIC_GNOME_CONS="static-bgnome-console"
24335    STATIC_WX_CONS="static-bwx-console"
24336 fi
24337
24338
24339
24340
24341 # Check whether --enable-client-only was given.
24342 if test "${enable_client_only+set}" = set; then
24343   enableval=$enable_client_only;
24344        if test x$enableval = xyes; then
24345           build_client_only=yes
24346           db_type=None
24347           DB_TYPE=none
24348        fi
24349
24350
24351 fi
24352
24353 if test x$build_client_only = xno; then
24354    ALL_DIRS="subdirs"
24355 else
24356    ALL_DIRS=""
24357 fi
24358
24359
24360 # Check whether --enable-build-dird was given.
24361 if test "${enable_build_dird+set}" = set; then
24362   enableval=$enable_build_dird;
24363        if test x$enableval = xno; then
24364           build_dird=no
24365        fi
24366
24367
24368 fi
24369
24370 if test x$build_dird = xyes; then
24371    DIRD_DIR="src/dird"
24372    DIR_TOOLS="DIRTOOLS"
24373 else
24374    DIRD_DIR=""
24375    DIR_TOOLS="NODIRTOOLS"
24376 fi
24377
24378
24379
24380 # Check whether --enable-build-stored was given.
24381 if test "${enable_build_stored+set}" = set; then
24382   enableval=$enable_build_stored;
24383       if test x$enableval = xno; then
24384          build_stored=no
24385       fi
24386
24387
24388 fi
24389
24390 if test x$build_stored = xyes; then
24391    STORED_DIR="src/stored"
24392 else
24393    STORED_DIR=""
24394 fi
24395
24396
24397 # Check whether --enable-conio was given.
24398 if test "${enable_conio+set}" = set; then
24399   enableval=$enable_conio;
24400        if test x$enableval = xno; then
24401           support_conio=no
24402        fi
24403
24404
24405 fi
24406
24407
24408
24409 support_ipv6=yes
24410 # Check whether --enable-ipv6 was given.
24411 if test "${enable_ipv6+set}" = set; then
24412   enableval=$enable_ipv6;
24413        if test x$enableval = xno; then
24414           support_ipv6=no
24415        fi
24416
24417
24418 fi
24419
24420
24421 if test x$support_ipv6 = xyes; then
24422     cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428  #include <sys/types.h>
24429 #include <sys/socket.h>
24430 #include <netinet/in.h>
24431 int
24432 main ()
24433 {
24434 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_link") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest$ac_exeext &&
24456        $as_test_x conftest$ac_exeext; then
24457   support_ipv6=yes
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462         support_ipv6=no
24463 fi
24464
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466       conftest$ac_exeext conftest.$ac_ext
24467 fi
24468
24469 if test x$support_ipv6 = xyes; then
24470
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_IPV6 1
24473 _ACEOF
24474
24475 fi
24476
24477 TERM_LIB=""
24478 if test "${ac_cv_header_termcap_h+set}" = set; then
24479   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24480 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_termcap_h+set}" = set; then
24482   echo $ECHO_N "(cached) $ECHO_C" >&6
24483 fi
24484 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24485 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24486 else
24487   # Is the header compilable?
24488 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24489 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496 $ac_includes_default
24497 #include <termcap.h>
24498 _ACEOF
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_compile") 2>conftest.er1
24507   ac_status=$?
24508   grep -v '^ *+' conftest.er1 >conftest.err
24509   rm -f conftest.er1
24510   cat conftest.err >&5
24511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512   (exit $ac_status); } && {
24513          test -z "$ac_c_werror_flag" ||
24514          test ! -s conftest.err
24515        } && test -s conftest.$ac_objext; then
24516   ac_header_compiler=yes
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521         ac_header_compiler=no
24522 fi
24523
24524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24526 echo "${ECHO_T}$ac_header_compiler" >&6; }
24527
24528 # Is the header present?
24529 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24530 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h.  */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h.  */
24537 #include <termcap.h>
24538 _ACEOF
24539 if { (ac_try="$ac_cpp conftest.$ac_ext"
24540 case "(($ac_try" in
24541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542   *) ac_try_echo=$ac_try;;
24543 esac
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } >/dev/null && {
24552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        }; then
24555   ac_header_preproc=yes
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560   ac_header_preproc=no
24561 fi
24562
24563 rm -f conftest.err conftest.$ac_ext
24564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24565 echo "${ECHO_T}$ac_header_preproc" >&6; }
24566
24567 # So?  What about this header?
24568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24569   yes:no: )
24570     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24571 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24572     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24573 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24574     ac_header_preproc=yes
24575     ;;
24576   no:yes:* )
24577     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24578 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24579     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24580 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24581     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24582 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24583     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24584 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24585     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24586 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24587     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24588 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24589
24590     ;;
24591 esac
24592 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24593 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24594 if test "${ac_cv_header_termcap_h+set}" = set; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597   ac_cv_header_termcap_h=$ac_header_preproc
24598 fi
24599 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24600 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24601
24602 fi
24603 if test $ac_cv_header_termcap_h = yes; then
24604    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24605 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-ltermcap  $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617
24618 /* Override any GCC internal prototype to avoid an error.
24619    Use char because int might match the return type of a GCC
24620    builtin and then its argument prototype would still apply.  */
24621 #ifdef __cplusplus
24622 extern "C"
24623 #endif
24624 char tgetent ();
24625 int
24626 main ()
24627 {
24628 return tgetent ();
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_link") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest$ac_exeext &&
24650        $as_test_x conftest$ac_exeext; then
24651   ac_cv_lib_termcap_tgetent=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656         ac_cv_lib_termcap_tgetent=no
24657 fi
24658
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660       conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24662 fi
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24664 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24665 if test $ac_cv_lib_termcap_tgetent = yes; then
24666    TERM_LIB="-ltermcap"
24667 else
24668    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24669 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24670 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24671   echo $ECHO_N "(cached) $ECHO_C" >&6
24672 else
24673   ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-lncurses  $LIBS"
24675 cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681
24682 /* Override any GCC internal prototype to avoid an error.
24683    Use char because int might match the return type of a GCC
24684    builtin and then its argument prototype would still apply.  */
24685 #ifdef __cplusplus
24686 extern "C"
24687 #endif
24688 char tgetent ();
24689 int
24690 main ()
24691 {
24692 return tgetent ();
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704   (eval "$ac_link") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest$ac_exeext &&
24714        $as_test_x conftest$ac_exeext; then
24715   ac_cv_lib_ncurses_tgetent=yes
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         ac_cv_lib_ncurses_tgetent=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24724       conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24726 fi
24727 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24728 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24729 if test $ac_cv_lib_ncurses_tgetent = yes; then
24730    TERM_LIB="-lncurses"
24731 fi
24732
24733
24734 fi
24735
24736
24737 else
24738
24739 for ac_header in curses.h
24740 do
24741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 fi
24748 ac_res=`eval echo '${'$as_ac_Header'}'`
24749                { echo "$as_me:$LINENO: result: $ac_res" >&5
24750 echo "${ECHO_T}$ac_res" >&6; }
24751 else
24752   # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761 $ac_includes_default
24762 #include <$ac_header>
24763 _ACEOF
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768   *) ac_try_echo=$ac_try;;
24769 esac
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771   (eval "$ac_compile") 2>conftest.er1
24772   ac_status=$?
24773   grep -v '^ *+' conftest.er1 >conftest.err
24774   rm -f conftest.er1
24775   cat conftest.err >&5
24776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777   (exit $ac_status); } && {
24778          test -z "$ac_c_werror_flag" ||
24779          test ! -s conftest.err
24780        } && test -s conftest.$ac_objext; then
24781   ac_header_compiler=yes
24782 else
24783   echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786         ac_header_compiler=no
24787 fi
24788
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24791 echo "${ECHO_T}$ac_header_compiler" >&6; }
24792
24793 # Is the header present?
24794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802 #include <$ac_header>
24803 _ACEOF
24804 if { (ac_try="$ac_cpp conftest.$ac_ext"
24805 case "(($ac_try" in
24806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807   *) ac_try_echo=$ac_try;;
24808 esac
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24811   ac_status=$?
24812   grep -v '^ *+' conftest.er1 >conftest.err
24813   rm -f conftest.er1
24814   cat conftest.err >&5
24815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816   (exit $ac_status); } >/dev/null && {
24817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24818          test ! -s conftest.err
24819        }; then
24820   ac_header_preproc=yes
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825   ac_header_preproc=no
24826 fi
24827
24828 rm -f conftest.err conftest.$ac_ext
24829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24830 echo "${ECHO_T}$ac_header_preproc" >&6; }
24831
24832 # So?  What about this header?
24833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24834   yes:no: )
24835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24839     ac_header_preproc=yes
24840     ;;
24841   no:yes:* )
24842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24854
24855     ;;
24856 esac
24857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24860   echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862   eval "$as_ac_Header=\$ac_header_preproc"
24863 fi
24864 ac_res=`eval echo '${'$as_ac_Header'}'`
24865                { echo "$as_me:$LINENO: result: $ac_res" >&5
24866 echo "${ECHO_T}$ac_res" >&6; }
24867
24868 fi
24869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870   cat >>confdefs.h <<_ACEOF
24871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24872 _ACEOF
24873
24874 fi
24875
24876 done
24877
24878      if test "${ac_cv_header_term_h+set}" = set; then
24879   { echo "$as_me:$LINENO: checking for term.h" >&5
24880 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24881 if test "${ac_cv_header_term_h+set}" = set; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 fi
24884 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24885 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24886 else
24887   # Is the header compilable?
24888 { echo "$as_me:$LINENO: checking term.h usability" >&5
24889 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24890 cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 #include <term.h>
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_compile") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } && {
24913          test -z "$ac_c_werror_flag" ||
24914          test ! -s conftest.err
24915        } && test -s conftest.$ac_objext; then
24916   ac_header_compiler=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921         ac_header_compiler=no
24922 fi
24923
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6; }
24927
24928 # Is the header present?
24929 { echo "$as_me:$LINENO: checking term.h presence" >&5
24930 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937 #include <term.h>
24938 _ACEOF
24939 if { (ac_try="$ac_cpp conftest.$ac_ext"
24940 case "(($ac_try" in
24941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942   *) ac_try_echo=$ac_try;;
24943 esac
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } >/dev/null && {
24952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953          test ! -s conftest.err
24954        }; then
24955   ac_header_preproc=yes
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960   ac_header_preproc=no
24961 fi
24962
24963 rm -f conftest.err conftest.$ac_ext
24964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 echo "${ECHO_T}$ac_header_preproc" >&6; }
24966
24967 # So?  What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24969   yes:no: )
24970     { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24973 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24974     ac_header_preproc=yes
24975     ;;
24976   no:yes:* )
24977     { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24978 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24979     { echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
24980 echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
24981     { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24982 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24983     { echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
24984 echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24985     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24986 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24987     { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24988 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24989
24990     ;;
24991 esac
24992 { echo "$as_me:$LINENO: checking for term.h" >&5
24993 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24994 if test "${ac_cv_header_term_h+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   ac_cv_header_term_h=$ac_header_preproc
24998 fi
24999 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25000 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25001
25002 fi
25003 if test $ac_cv_header_term_h = yes; then
25004    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25005 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25006 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009   ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lcurses  $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017
25018 /* Override any GCC internal prototype to avoid an error.
25019    Use char because int might match the return type of a GCC
25020    builtin and then its argument prototype would still apply.  */
25021 #ifdef __cplusplus
25022 extern "C"
25023 #endif
25024 char tgetent ();
25025 int
25026 main ()
25027 {
25028 return tgetent ();
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040   (eval "$ac_link") 2>conftest.er1
25041   ac_status=$?
25042   grep -v '^ *+' conftest.er1 >conftest.err
25043   rm -f conftest.er1
25044   cat conftest.err >&5
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); } && {
25047          test -z "$ac_c_werror_flag" ||
25048          test ! -s conftest.err
25049        } && test -s conftest$ac_exeext &&
25050        $as_test_x conftest$ac_exeext; then
25051   ac_cv_lib_curses_tgetent=yes
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056         ac_cv_lib_curses_tgetent=no
25057 fi
25058
25059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25060       conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25062 fi
25063 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25064 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25065 if test $ac_cv_lib_curses_tgetent = yes; then
25066    TERM_LIB="-lcurses"
25067 fi
25068
25069
25070 fi
25071
25072
25073
25074 fi
25075
25076
25077
25078
25079 got_conio="no"
25080 if test x$support_conio = xyes; then
25081    if test x$TERM_LIB != x; then
25082       CONS_LIBS=$TERM_LIB
25083       CONS_OBJ="conio.o"
25084       CONS_SRC="conio.c"
25085       got_conio="yes"
25086       support_readline=no
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_CONIO 1
25090 _ACEOF
25091
25092    else
25093       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25094    fi
25095 fi
25096
25097
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100   enableval=$enable_readline;
25101        if test x$enableval = xno; then
25102           support_readline=no
25103        fi
25104
25105
25106 fi
25107
25108 if test x$TERM_LIB = x ; then
25109    support_readline=no
25110 fi
25111
25112 got_readline="no"
25113 READLINE_SRC=
25114 if test x$support_readline = xyes; then
25115
25116 # Check whether --with-readline was given.
25117 if test "${with_readline+set}" = set; then
25118   withval=$with_readline;
25119           case "$with_readline" in
25120           no)
25121              :
25122              ;;
25123           yes|*)
25124              if test -f ${with_readline}/readline.h; then
25125                 CONS_INC="-I${with_readline}"
25126                 CONS_LDFLAGS="-L$with_readline"
25127              elif test -f ${with_readline}/include/readline/readline.h; then
25128                 CONS_INC="-I${with_readline}/include/readline"
25129                 CONS_LDFLAGS="-L${with_readline}/lib"
25130                 with_readline="${with_readline}/include/readline"
25131              else
25132                 with_readline="/usr/include/readline"
25133              fi
25134
25135              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25138 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 fi
25142 ac_res=`eval echo '${'$as_ac_Header'}'`
25143                { echo "$as_me:$LINENO: result: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25145 else
25146   # Is the header compilable?
25147 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25148 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25149 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 $ac_includes_default
25156 #include <${with_readline}/readline.h>
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_c_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175   ac_header_compiler=yes
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180         ac_header_compiler=no
25181 fi
25182
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 echo "${ECHO_T}$ac_header_compiler" >&6; }
25186
25187 # Is the header present?
25188 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25189 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 #include <${with_readline}/readline.h>
25197 _ACEOF
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201   *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } >/dev/null && {
25211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25212          test ! -s conftest.err
25213        }; then
25214   ac_header_preproc=yes
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219   ac_header_preproc=no
25220 fi
25221
25222 rm -f conftest.err conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25224 echo "${ECHO_T}$ac_header_preproc" >&6; }
25225
25226 # So?  What about this header?
25227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25228   yes:no: )
25229     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25231     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25233     ac_header_preproc=yes
25234     ;;
25235   no:yes:* )
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25244     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25245 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25247 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25248
25249     ;;
25250 esac
25251 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25252 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254   echo $ECHO_N "(cached) $ECHO_C" >&6
25255 else
25256   eval "$as_ac_Header=\$ac_header_preproc"
25257 fi
25258 ac_res=`eval echo '${'$as_ac_Header'}'`
25259                { echo "$as_me:$LINENO: result: $ac_res" >&5
25260 echo "${ECHO_T}$ac_res" >&6; }
25261
25262 fi
25263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25264
25265
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_READLINE 1
25268 _ACEOF
25269
25270                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25271                     got_readline="yes"
25272
25273 else
25274
25275                     echo " "
25276                     echo "readline.h not found. readline turned off ..."
25277                     echo " "
25278
25279
25280 fi
25281
25282
25283              ;;
25284           esac
25285
25286 else
25287
25288                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25290 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25291 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 fi
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25296 else
25297   # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306 $ac_includes_default
25307 #include </usr/include/readline/readline.h>
25308 _ACEOF
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313   *) ac_try_echo=$ac_try;;
25314 esac
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316   (eval "$ac_compile") 2>conftest.er1
25317   ac_status=$?
25318   grep -v '^ *+' conftest.er1 >conftest.err
25319   rm -f conftest.er1
25320   cat conftest.err >&5
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); } && {
25323          test -z "$ac_c_werror_flag" ||
25324          test ! -s conftest.err
25325        } && test -s conftest.$ac_objext; then
25326   ac_header_compiler=yes
25327 else
25328   echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331         ac_header_compiler=no
25332 fi
25333
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25336 echo "${ECHO_T}$ac_header_compiler" >&6; }
25337
25338 # Is the header present?
25339 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347 #include </usr/include/readline/readline.h>
25348 _ACEOF
25349 if { (ac_try="$ac_cpp conftest.$ac_ext"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25356   ac_status=$?
25357   grep -v '^ *+' conftest.er1 >conftest.err
25358   rm -f conftest.er1
25359   cat conftest.err >&5
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); } >/dev/null && {
25362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25363          test ! -s conftest.err
25364        }; then
25365   ac_header_preproc=yes
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370   ac_header_preproc=no
25371 fi
25372
25373 rm -f conftest.err conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25375 echo "${ECHO_T}$ac_header_preproc" >&6; }
25376
25377 # So?  What about this header?
25378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25379   yes:no: )
25380     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25384     ac_header_preproc=yes
25385     ;;
25386   no:yes:* )
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25399
25400     ;;
25401 esac
25402 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25403 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25404 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25405   echo $ECHO_N "(cached) $ECHO_C" >&6
25406 else
25407   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25408 fi
25409 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25410 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25411
25412 fi
25413 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25414
25415
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_READLINE 1
25418 _ACEOF
25419
25420                 got_readline="yes"
25421                 CONS_INC="-I/usr/include/readline"
25422                 CONS_LIBS="-lreadline $TERM_LIB"
25423
25424 else
25425
25426                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25429 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25431   echo $ECHO_N "(cached) $ECHO_C" >&6
25432 fi
25433 ac_res=`eval echo '${'$as_ac_Header'}'`
25434                { echo "$as_me:$LINENO: result: $ac_res" >&5
25435 echo "${ECHO_T}$ac_res" >&6; }
25436 else
25437   # Is the header compilable?
25438 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25439 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25440 cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 $ac_includes_default
25447 #include <${TOP_DIR}/depkgs/readline/readline.h>
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456   (eval "$ac_compile") 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } && {
25463          test -z "$ac_c_werror_flag" ||
25464          test ! -s conftest.err
25465        } && test -s conftest.$ac_objext; then
25466   ac_header_compiler=yes
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471         ac_header_compiler=no
25472 fi
25473
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6; }
25477
25478 # Is the header present?
25479 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25480 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25481 cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 #include <${TOP_DIR}/depkgs/readline/readline.h>
25488 _ACEOF
25489 if { (ac_try="$ac_cpp conftest.$ac_ext"
25490 case "(($ac_try" in
25491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492   *) ac_try_echo=$ac_try;;
25493 esac
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25496   ac_status=$?
25497   grep -v '^ *+' conftest.er1 >conftest.err
25498   rm -f conftest.er1
25499   cat conftest.err >&5
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } >/dev/null && {
25502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25503          test ! -s conftest.err
25504        }; then
25505   ac_header_preproc=yes
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510   ac_header_preproc=no
25511 fi
25512
25513 rm -f conftest.err conftest.$ac_ext
25514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25515 echo "${ECHO_T}$ac_header_preproc" >&6; }
25516
25517 # So?  What about this header?
25518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25519   yes:no: )
25520     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25522     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25524     ac_header_preproc=yes
25525     ;;
25526   no:yes:* )
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25533     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25535     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25536 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25537     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25538 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25539
25540     ;;
25541 esac
25542 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25543 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25545   echo $ECHO_N "(cached) $ECHO_C" >&6
25546 else
25547   eval "$as_ac_Header=\$ac_header_preproc"
25548 fi
25549 ac_res=`eval echo '${'$as_ac_Header'}'`
25550                { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25552
25553 fi
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555
25556
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_READLINE 1
25559 _ACEOF
25560
25561                         got_readline="yes"
25562                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25563                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25564                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25565                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25566
25567 else
25568
25569                         echo " "
25570                         echo "readline.h not found. readline turned off ..."
25571                         echo " "
25572
25573
25574 fi
25575
25576
25577
25578
25579 fi
25580
25581
25582
25583
25584 fi
25585
25586 fi
25587
25588
25589
25590
25591
25592
25593
25594
25595 MAKE_SHELL=/bin/sh
25596
25597 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25598 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25599 if test "${ac_cv_header_stat_broken+set}" = set; then
25600   echo $ECHO_N "(cached) $ECHO_C" >&6
25601 else
25602   cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608 #include <sys/types.h>
25609 #include <sys/stat.h>
25610
25611 #if defined S_ISBLK && defined S_IFDIR
25612 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25613 #endif
25614
25615 #if defined S_ISBLK && defined S_IFCHR
25616 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25617 #endif
25618
25619 #if defined S_ISLNK && defined S_IFREG
25620 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25621 #endif
25622
25623 #if defined S_ISSOCK && defined S_IFREG
25624 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25625 #endif
25626
25627 _ACEOF
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635   (eval "$ac_compile") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_c_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest.$ac_objext; then
25645   ac_cv_header_stat_broken=no
25646 else
25647   echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650         ac_cv_header_stat_broken=yes
25651 fi
25652
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25654 fi
25655 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25656 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25657 if test $ac_cv_header_stat_broken = yes; then
25658
25659 cat >>confdefs.h <<\_ACEOF
25660 #define STAT_MACROS_BROKEN 1
25661 _ACEOF
25662
25663 fi
25664
25665
25666
25667
25668
25669
25670 ac_header_dirent=no
25671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25672   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25673 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25676   echo $ECHO_N "(cached) $ECHO_C" >&6
25677 else
25678   cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h.  */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h.  */
25684 #include <sys/types.h>
25685 #include <$ac_hdr>
25686
25687 int
25688 main ()
25689 {
25690 if ((DIR *) 0)
25691 return 0;
25692   ;
25693   return 0;
25694 }
25695 _ACEOF
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_compile") 2>conftest.er1
25704   ac_status=$?
25705   grep -v '^ *+' conftest.er1 >conftest.err
25706   rm -f conftest.er1
25707   cat conftest.err >&5
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); } && {
25710          test -z "$ac_c_werror_flag" ||
25711          test ! -s conftest.err
25712        } && test -s conftest.$ac_objext; then
25713   eval "$as_ac_Header=yes"
25714 else
25715   echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25717
25718         eval "$as_ac_Header=no"
25719 fi
25720
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25722 fi
25723 ac_res=`eval echo '${'$as_ac_Header'}'`
25724                { echo "$as_me:$LINENO: result: $ac_res" >&5
25725 echo "${ECHO_T}$ac_res" >&6; }
25726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25727   cat >>confdefs.h <<_ACEOF
25728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25729 _ACEOF
25730
25731 ac_header_dirent=$ac_hdr; break
25732 fi
25733
25734 done
25735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25736 if test $ac_header_dirent = dirent.h; then
25737   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25739 if test "${ac_cv_search_opendir+set}" = set; then
25740   echo $ECHO_N "(cached) $ECHO_C" >&6
25741 else
25742   ac_func_search_save_LIBS=$LIBS
25743 cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749
25750 /* Override any GCC internal prototype to avoid an error.
25751    Use char because int might match the return type of a GCC
25752    builtin and then its argument prototype would still apply.  */
25753 #ifdef __cplusplus
25754 extern "C"
25755 #endif
25756 char opendir ();
25757 int
25758 main ()
25759 {
25760 return opendir ();
25761   ;
25762   return 0;
25763 }
25764 _ACEOF
25765 for ac_lib in '' dir; do
25766   if test -z "$ac_lib"; then
25767     ac_res="none required"
25768   else
25769     ac_res=-l$ac_lib
25770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25771   fi
25772   rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_link") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } && {
25786          test -z "$ac_c_werror_flag" ||
25787          test ! -s conftest.err
25788        } && test -s conftest$ac_exeext &&
25789        $as_test_x conftest$ac_exeext; then
25790   ac_cv_search_opendir=$ac_res
25791 else
25792   echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25794
25795
25796 fi
25797
25798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25799       conftest$ac_exeext
25800   if test "${ac_cv_search_opendir+set}" = set; then
25801   break
25802 fi
25803 done
25804 if test "${ac_cv_search_opendir+set}" = set; then
25805   :
25806 else
25807   ac_cv_search_opendir=no
25808 fi
25809 rm conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25811 fi
25812 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25814 ac_res=$ac_cv_search_opendir
25815 if test "$ac_res" != no; then
25816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25817
25818 fi
25819
25820 else
25821   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_opendir+set}" = set; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826   ac_func_search_save_LIBS=$LIBS
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h.  */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h.  */
25833
25834 /* Override any GCC internal prototype to avoid an error.
25835    Use char because int might match the return type of a GCC
25836    builtin and then its argument prototype would still apply.  */
25837 #ifdef __cplusplus
25838 extern "C"
25839 #endif
25840 char opendir ();
25841 int
25842 main ()
25843 {
25844 return opendir ();
25845   ;
25846   return 0;
25847 }
25848 _ACEOF
25849 for ac_lib in '' x; do
25850   if test -z "$ac_lib"; then
25851     ac_res="none required"
25852   else
25853     ac_res=-l$ac_lib
25854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25855   fi
25856   rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_link") 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } && {
25870          test -z "$ac_c_werror_flag" ||
25871          test ! -s conftest.err
25872        } && test -s conftest$ac_exeext &&
25873        $as_test_x conftest$ac_exeext; then
25874   ac_cv_search_opendir=$ac_res
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25883       conftest$ac_exeext
25884   if test "${ac_cv_search_opendir+set}" = set; then
25885   break
25886 fi
25887 done
25888 if test "${ac_cv_search_opendir+set}" = set; then
25889   :
25890 else
25891   ac_cv_search_opendir=no
25892 fi
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25895 fi
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25898 ac_res=$ac_cv_search_opendir
25899 if test "$ac_res" != no; then
25900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25901
25902 fi
25903
25904 fi
25905
25906
25907
25908
25909
25910
25911
25912
25913 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25914 do
25915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25919   echo $ECHO_N "(cached) $ECHO_C" >&6
25920 else
25921   cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25929 #define $ac_func innocuous_$ac_func
25930
25931 /* System header to define __stub macros and hopefully few prototypes,
25932     which can conflict with char $ac_func (); below.
25933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25934     <limits.h> exists even on freestanding compilers.  */
25935
25936 #ifdef __STDC__
25937 # include <limits.h>
25938 #else
25939 # include <assert.h>
25940 #endif
25941
25942 #undef $ac_func
25943
25944 /* Override any GCC internal prototype to avoid an error.
25945    Use char because int might match the return type of a GCC
25946    builtin and then its argument prototype would still apply.  */
25947 #ifdef __cplusplus
25948 extern "C"
25949 #endif
25950 char $ac_func ();
25951 /* The GNU C library defines this for functions which it implements
25952     to always fail with ENOSYS.  Some functions are actually named
25953     something starting with __ and the normal name is an alias.  */
25954 #if defined __stub_$ac_func || defined __stub___$ac_func
25955 choke me
25956 #endif
25957
25958 int
25959 main ()
25960 {
25961 return $ac_func ();
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_link") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } && {
25980          test -z "$ac_c_werror_flag" ||
25981          test ! -s conftest.err
25982        } && test -s conftest$ac_exeext &&
25983        $as_test_x conftest$ac_exeext; then
25984   eval "$as_ac_var=yes"
25985 else
25986   echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25988
25989         eval "$as_ac_var=no"
25990 fi
25991
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993       conftest$ac_exeext conftest.$ac_ext
25994 fi
25995 ac_res=`eval echo '${'$as_ac_var'}'`
25996                { echo "$as_me:$LINENO: result: $ac_res" >&5
25997 echo "${ECHO_T}$ac_res" >&6; }
25998 if test `eval echo '${'$as_ac_var'}'` = yes; then
25999   cat >>confdefs.h <<_ACEOF
26000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26001 _ACEOF
26002
26003 fi
26004 done
26005
26006
26007
26008 for ac_func in nanosleep nl_langinfo
26009 do
26010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 else
26016   cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h.  */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h.  */
26022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26024 #define $ac_func innocuous_$ac_func
26025
26026 /* System header to define __stub macros and hopefully few prototypes,
26027     which can conflict with char $ac_func (); below.
26028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26029     <limits.h> exists even on freestanding compilers.  */
26030
26031 #ifdef __STDC__
26032 # include <limits.h>
26033 #else
26034 # include <assert.h>
26035 #endif
26036
26037 #undef $ac_func
26038
26039 /* Override any GCC internal prototype to avoid an error.
26040    Use char because int might match the return type of a GCC
26041    builtin and then its argument prototype would still apply.  */
26042 #ifdef __cplusplus
26043 extern "C"
26044 #endif
26045 char $ac_func ();
26046 /* The GNU C library defines this for functions which it implements
26047     to always fail with ENOSYS.  Some functions are actually named
26048     something starting with __ and the normal name is an alias.  */
26049 #if defined __stub_$ac_func || defined __stub___$ac_func
26050 choke me
26051 #endif
26052
26053 int
26054 main ()
26055 {
26056 return $ac_func ();
26057   ;
26058   return 0;
26059 }
26060 _ACEOF
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065   *) ac_try_echo=$ac_try;;
26066 esac
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068   (eval "$ac_link") 2>conftest.er1
26069   ac_status=$?
26070   grep -v '^ *+' conftest.er1 >conftest.err
26071   rm -f conftest.er1
26072   cat conftest.err >&5
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } && {
26075          test -z "$ac_c_werror_flag" ||
26076          test ! -s conftest.err
26077        } && test -s conftest$ac_exeext &&
26078        $as_test_x conftest$ac_exeext; then
26079   eval "$as_ac_var=yes"
26080 else
26081   echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084         eval "$as_ac_var=no"
26085 fi
26086
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088       conftest$ac_exeext conftest.$ac_ext
26089 fi
26090 ac_res=`eval echo '${'$as_ac_var'}'`
26091                { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26093 if test `eval echo '${'$as_ac_var'}'` = yes; then
26094   cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26096 _ACEOF
26097
26098 fi
26099 done
26100
26101
26102 for ac_header in varargs.h
26103 do
26104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 fi
26111 ac_res=`eval echo '${'$as_ac_Header'}'`
26112                { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26114 else
26115   # Is the header compilable?
26116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26118 cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 $ac_includes_default
26125 #include <$ac_header>
26126 _ACEOF
26127 rm -f conftest.$ac_objext
26128 if { (ac_try="$ac_compile"
26129 case "(($ac_try" in
26130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131   *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134   (eval "$ac_compile") 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && {
26141          test -z "$ac_c_werror_flag" ||
26142          test ! -s conftest.err
26143        } && test -s conftest.$ac_objext; then
26144   ac_header_compiler=yes
26145 else
26146   echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26148
26149         ac_header_compiler=no
26150 fi
26151
26152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6; }
26155
26156 # Is the header present?
26157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <$ac_header>
26166 _ACEOF
26167 if { (ac_try="$ac_cpp conftest.$ac_ext"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } >/dev/null && {
26180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26181          test ! -s conftest.err
26182        }; then
26183   ac_header_preproc=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188   ac_header_preproc=no
26189 fi
26190
26191 rm -f conftest.err conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26193 echo "${ECHO_T}$ac_header_preproc" >&6; }
26194
26195 # So?  What about this header?
26196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26197   yes:no: )
26198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26202     ac_header_preproc=yes
26203     ;;
26204   no:yes:* )
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26217
26218     ;;
26219 esac
26220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223   echo $ECHO_N "(cached) $ECHO_C" >&6
26224 else
26225   eval "$as_ac_Header=\$ac_header_preproc"
26226 fi
26227 ac_res=`eval echo '${'$as_ac_Header'}'`
26228                { echo "$as_me:$LINENO: result: $ac_res" >&5
26229 echo "${ECHO_T}$ac_res" >&6; }
26230
26231 fi
26232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26233   cat >>confdefs.h <<_ACEOF
26234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26235 _ACEOF
26236
26237 fi
26238
26239 done
26240
26241
26242
26243 { echo "$as_me:$LINENO: checking for Python support" >&5
26244 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26245
26246 # Check whether --with-python was given.
26247 if test "${with_python+set}" = set; then
26248   withval=$with_python;
26249        PYTHON_INCDIR=
26250        PYTHON_LIBS=
26251        if test "$withval" != "no"; then
26252           if test "$withval" = "yes"; then
26253              if test -e /usr/bin/python-config ; then
26254                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26255                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26256              else
26257                 for python_root in /usr /usr/local /usr/sfw; do
26258                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26259                       if test -f $python_root/include/${ver}/Python.h; then
26260                          PYTHON_INCDIR=-I$python_root/include/${ver}
26261                          if test -d $python_root/lib64/${ver}/config; then
26262                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26263                          else
26264                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26265                          fi
26266                          break
26267                       fi
26268                    done
26269                 done
26270
26271                 if test x$PYTHON_INCDIR = x; then
26272                    if test -f $prefix/include/Python.h; then
26273                       PYTHON_INCDIR=-I$prefix/include
26274                       if test -d $prefix/lib64/config; then
26275                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26276                       else
26277                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26278                       fi
26279                    else
26280                       { echo "$as_me:$LINENO: result: no" >&5
26281 echo "${ECHO_T}no" >&6; }
26282                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26283 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26284    { (exit 1); exit 1; }; }
26285                    fi
26286                 fi
26287              fi
26288           else
26289              if test -e $withval/bin/python-config ; then
26290                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26291                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26292              elif test -f $withval/Python.h; then
26293                 PYTHON_INCDIR=-I$withval
26294                 PYTHON_LIBS="-L$withval/config -lpython"
26295              elif test -f $withval/include/Python.h; then
26296                 PYTHON_INCDIR=-I$withval/include
26297                 if test -d $withval/lib64/config; then
26298                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26299                 else
26300                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26301                 fi
26302              elif test -f $withval/include/python/Python.h; then
26303                 PYTHON_INCDIR=-I$withval/include/python
26304                 if test -d $withval/lib64/python/config; then
26305                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26306                 else
26307                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26308                 fi
26309              else
26310                 { echo "$as_me:$LINENO: result: no" >&5
26311 echo "${ECHO_T}no" >&6; }
26312                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26313 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26314    { (exit 1); exit 1; }; }
26315              fi
26316           fi
26317
26318           cat >>confdefs.h <<\_ACEOF
26319 #define HAVE_PYTHON 1
26320 _ACEOF
26321
26322           { echo "$as_me:$LINENO: result: yes" >&5
26323 echo "${ECHO_T}yes" >&6; }
26324           support_python=yes
26325           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26326 echo "$as_me: checking for more Python libs" >&6;}
26327           saved_LIBS="$LIBS"; LIBS=
26328           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26329 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26330 if test "${ac_cv_search_shm_open+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333   ac_func_search_save_LIBS=$LIBS
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340
26341 /* Override any GCC internal prototype to avoid an error.
26342    Use char because int might match the return type of a GCC
26343    builtin and then its argument prototype would still apply.  */
26344 #ifdef __cplusplus
26345 extern "C"
26346 #endif
26347 char shm_open ();
26348 int
26349 main ()
26350 {
26351 return shm_open ();
26352   ;
26353   return 0;
26354 }
26355 _ACEOF
26356 for ac_lib in '' rt; do
26357   if test -z "$ac_lib"; then
26358     ac_res="none required"
26359   else
26360     ac_res=-l$ac_lib
26361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26362   fi
26363   rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367   *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370   (eval "$ac_link") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } && {
26377          test -z "$ac_c_werror_flag" ||
26378          test ! -s conftest.err
26379        } && test -s conftest$ac_exeext &&
26380        $as_test_x conftest$ac_exeext; then
26381   ac_cv_search_shm_open=$ac_res
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386
26387 fi
26388
26389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26390       conftest$ac_exeext
26391   if test "${ac_cv_search_shm_open+set}" = set; then
26392   break
26393 fi
26394 done
26395 if test "${ac_cv_search_shm_open+set}" = set; then
26396   :
26397 else
26398   ac_cv_search_shm_open=no
26399 fi
26400 rm conftest.$ac_ext
26401 LIBS=$ac_func_search_save_LIBS
26402 fi
26403 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26404 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26405 ac_res=$ac_cv_search_shm_open
26406 if test "$ac_res" != no; then
26407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26408
26409 fi
26410
26411
26412 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26413 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26414 if test "${ac_cv_lib_util_openpty+set}" = set; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417   ac_check_lib_save_LIBS=$LIBS
26418 LIBS="-lutil  $LIBS"
26419 cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425
26426 /* Override any GCC internal prototype to avoid an error.
26427    Use char because int might match the return type of a GCC
26428    builtin and then its argument prototype would still apply.  */
26429 #ifdef __cplusplus
26430 extern "C"
26431 #endif
26432 char openpty ();
26433 int
26434 main ()
26435 {
26436 return openpty ();
26437   ;
26438   return 0;
26439 }
26440 _ACEOF
26441 rm -f conftest.$ac_objext conftest$ac_exeext
26442 if { (ac_try="$ac_link"
26443 case "(($ac_try" in
26444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445   *) ac_try_echo=$ac_try;;
26446 esac
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448   (eval "$ac_link") 2>conftest.er1
26449   ac_status=$?
26450   grep -v '^ *+' conftest.er1 >conftest.err
26451   rm -f conftest.er1
26452   cat conftest.err >&5
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); } && {
26455          test -z "$ac_c_werror_flag" ||
26456          test ! -s conftest.err
26457        } && test -s conftest$ac_exeext &&
26458        $as_test_x conftest$ac_exeext; then
26459   ac_cv_lib_util_openpty=yes
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464         ac_cv_lib_util_openpty=no
26465 fi
26466
26467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26468       conftest$ac_exeext conftest.$ac_ext
26469 LIBS=$ac_check_lib_save_LIBS
26470 fi
26471 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26472 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26473 if test $ac_cv_lib_util_openpty = yes; then
26474   cat >>confdefs.h <<_ACEOF
26475 #define HAVE_LIBUTIL 1
26476 _ACEOF
26477
26478   LIBS="-lutil $LIBS"
26479
26480 fi
26481
26482           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26483           LIBS="$saved_LIBS"
26484        else
26485           { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26487        fi
26488
26489 else
26490
26491        { echo "$as_me:$LINENO: result: no" >&5
26492 echo "${ECHO_T}no" >&6; }
26493
26494
26495 fi
26496
26497
26498
26499
26500 { echo "$as_me:$LINENO: checking for socket" >&5
26501 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26502 if test "${ac_cv_func_socket+set}" = set; then
26503   echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26505   cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h.  */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h.  */
26511 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26513 #define socket innocuous_socket
26514
26515 /* System header to define __stub macros and hopefully few prototypes,
26516     which can conflict with char socket (); below.
26517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26518     <limits.h> exists even on freestanding compilers.  */
26519
26520 #ifdef __STDC__
26521 # include <limits.h>
26522 #else
26523 # include <assert.h>
26524 #endif
26525
26526 #undef socket
26527
26528 /* Override any GCC internal prototype to avoid an error.
26529    Use char because int might match the return type of a GCC
26530    builtin and then its argument prototype would still apply.  */
26531 #ifdef __cplusplus
26532 extern "C"
26533 #endif
26534 char socket ();
26535 /* The GNU C library defines this for functions which it implements
26536     to always fail with ENOSYS.  Some functions are actually named
26537     something starting with __ and the normal name is an alias.  */
26538 #if defined __stub_socket || defined __stub___socket
26539 choke me
26540 #endif
26541
26542 int
26543 main ()
26544 {
26545 return socket ();
26546   ;
26547   return 0;
26548 }
26549 _ACEOF
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_link") 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } && {
26564          test -z "$ac_c_werror_flag" ||
26565          test ! -s conftest.err
26566        } && test -s conftest$ac_exeext &&
26567        $as_test_x conftest$ac_exeext; then
26568   ac_cv_func_socket=yes
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573         ac_cv_func_socket=no
26574 fi
26575
26576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26577       conftest$ac_exeext conftest.$ac_ext
26578 fi
26579 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26580 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26581 if test $ac_cv_func_socket = yes; then
26582   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26583 echo "${ECHO_T}using libc's socket" >&6; }
26584 else
26585
26586 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26587 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591   ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-lxnet  $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601    Use char because int might match the return type of a GCC
26602    builtin and then its argument prototype would still apply.  */
26603 #ifdef __cplusplus
26604 extern "C"
26605 #endif
26606 char socket ();
26607 int
26608 main ()
26609 {
26610 return socket ();
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622   (eval "$ac_link") 2>conftest.er1
26623   ac_status=$?
26624   grep -v '^ *+' conftest.er1 >conftest.err
26625   rm -f conftest.er1
26626   cat conftest.err >&5
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); } && {
26629          test -z "$ac_c_werror_flag" ||
26630          test ! -s conftest.err
26631        } && test -s conftest$ac_exeext &&
26632        $as_test_x conftest$ac_exeext; then
26633   ac_cv_lib_xnet_socket=yes
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638         ac_cv_lib_xnet_socket=no
26639 fi
26640
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642       conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26644 fi
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26647 if test $ac_cv_lib_xnet_socket = yes; then
26648   cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBXNET 1
26650 _ACEOF
26651
26652   LIBS="-lxnet $LIBS"
26653
26654 fi
26655
26656
26657 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26658 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26659 if test "${ac_cv_lib_socket_socket+set}" = set; then
26660   echo $ECHO_N "(cached) $ECHO_C" >&6
26661 else
26662   ac_check_lib_save_LIBS=$LIBS
26663 LIBS="-lsocket  $LIBS"
26664 cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h.  */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h.  */
26670
26671 /* Override any GCC internal prototype to avoid an error.
26672    Use char because int might match the return type of a GCC
26673    builtin and then its argument prototype would still apply.  */
26674 #ifdef __cplusplus
26675 extern "C"
26676 #endif
26677 char socket ();
26678 int
26679 main ()
26680 {
26681 return socket ();
26682   ;
26683   return 0;
26684 }
26685 _ACEOF
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690   *) ac_try_echo=$ac_try;;
26691 esac
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693   (eval "$ac_link") 2>conftest.er1
26694   ac_status=$?
26695   grep -v '^ *+' conftest.er1 >conftest.err
26696   rm -f conftest.er1
26697   cat conftest.err >&5
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); } && {
26700          test -z "$ac_c_werror_flag" ||
26701          test ! -s conftest.err
26702        } && test -s conftest$ac_exeext &&
26703        $as_test_x conftest$ac_exeext; then
26704   ac_cv_lib_socket_socket=yes
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709         ac_cv_lib_socket_socket=no
26710 fi
26711
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713       conftest$ac_exeext conftest.$ac_ext
26714 LIBS=$ac_check_lib_save_LIBS
26715 fi
26716 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26717 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26718 if test $ac_cv_lib_socket_socket = yes; then
26719   cat >>confdefs.h <<_ACEOF
26720 #define HAVE_LIBSOCKET 1
26721 _ACEOF
26722
26723   LIBS="-lsocket $LIBS"
26724
26725 fi
26726
26727
26728 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26729 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_inet_socket+set}" = set; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 else
26733   ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-linet  $LIBS"
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741
26742 /* Override any GCC internal prototype to avoid an error.
26743    Use char because int might match the return type of a GCC
26744    builtin and then its argument prototype would still apply.  */
26745 #ifdef __cplusplus
26746 extern "C"
26747 #endif
26748 char socket ();
26749 int
26750 main ()
26751 {
26752 return socket ();
26753   ;
26754   return 0;
26755 }
26756 _ACEOF
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761   *) ac_try_echo=$ac_try;;
26762 esac
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764   (eval "$ac_link") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } && {
26771          test -z "$ac_c_werror_flag" ||
26772          test ! -s conftest.err
26773        } && test -s conftest$ac_exeext &&
26774        $as_test_x conftest$ac_exeext; then
26775   ac_cv_lib_inet_socket=yes
26776 else
26777   echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26779
26780         ac_cv_lib_inet_socket=no
26781 fi
26782
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784       conftest$ac_exeext conftest.$ac_ext
26785 LIBS=$ac_check_lib_save_LIBS
26786 fi
26787 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26789 if test $ac_cv_lib_inet_socket = yes; then
26790   cat >>confdefs.h <<_ACEOF
26791 #define HAVE_LIBINET 1
26792 _ACEOF
26793
26794   LIBS="-linet $LIBS"
26795
26796 fi
26797
26798 fi
26799
26800
26801 TCPW_MSG="no"
26802 WRAPLIBS=""
26803
26804 # Check whether --with-tcp-wrappers was given.
26805 if test "${with_tcp_wrappers+set}" = set; then
26806   withval=$with_tcp_wrappers;
26807        if test "x$withval" != "xno" ; then
26808           saved_LIBS="$LIBS"
26809           LIBS="$saved_LIBS -lwrap"
26810           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26811 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26812 if test "${ac_cv_search_nanosleep+set}" = set; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815   ac_func_search_save_LIBS=$LIBS
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822
26823 /* Override any GCC internal prototype to avoid an error.
26824    Use char because int might match the return type of a GCC
26825    builtin and then its argument prototype would still apply.  */
26826 #ifdef __cplusplus
26827 extern "C"
26828 #endif
26829 char nanosleep ();
26830 int
26831 main ()
26832 {
26833 return nanosleep ();
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 for ac_lib in '' rt; do
26839   if test -z "$ac_lib"; then
26840     ac_res="none required"
26841   else
26842     ac_res=-l$ac_lib
26843     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26844   fi
26845   rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852   (eval "$ac_link") 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } && {
26859          test -z "$ac_c_werror_flag" ||
26860          test ! -s conftest.err
26861        } && test -s conftest$ac_exeext &&
26862        $as_test_x conftest$ac_exeext; then
26863   ac_cv_search_nanosleep=$ac_res
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868
26869 fi
26870
26871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26872       conftest$ac_exeext
26873   if test "${ac_cv_search_nanosleep+set}" = set; then
26874   break
26875 fi
26876 done
26877 if test "${ac_cv_search_nanosleep+set}" = set; then
26878   :
26879 else
26880   ac_cv_search_nanosleep=no
26881 fi
26882 rm conftest.$ac_ext
26883 LIBS=$ac_func_search_save_LIBS
26884 fi
26885 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26886 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26887 ac_res=$ac_cv_search_nanosleep
26888 if test "$ac_res" != no; then
26889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26890
26891 fi
26892
26893           { echo "$as_me:$LINENO: checking for libwrap" >&5
26894 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26895           cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901
26902                #include <sys/types.h>
26903                #include <tcpd.h>
26904                int deny_severity = 0;
26905                int allow_severity = 0;
26906                struct request_info *req;
26907
26908 int
26909 main ()
26910 {
26911
26912                 hosts_access(req);
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925   (eval "$ac_link") 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } && {
26932          test -z "$ac_c_werror_flag" ||
26933          test ! -s conftest.err
26934        } && test -s conftest$ac_exeext &&
26935        $as_test_x conftest$ac_exeext; then
26936
26937                  { echo "$as_me:$LINENO: result: yes" >&5
26938 echo "${ECHO_T}yes" >&6; }
26939
26940 cat >>confdefs.h <<\_ACEOF
26941 #define HAVE_LIBWRAP 1
26942 _ACEOF
26943
26944                  TCPW_MSG="yes"
26945                  LIBS="$saved_LIBS"
26946                  WRAPLIBS="-lwrap"
26947
26948 else
26949   echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952
26953                  LIBS="$saved_LIBS -lwrap -lnsl"
26954                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26955                  cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961
26962                        #include <sys/types.h>
26963                        #include <tcpd.h>
26964                        int deny_severity = 0;
26965                        int allow_severity = 0;
26966                        struct request_info *req;
26967
26968 int
26969 main ()
26970 {
26971
26972                        hosts_access(req);
26973
26974   ;
26975   return 0;
26976 }
26977 _ACEOF
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (ac_try="$ac_link"
26980 case "(($ac_try" in
26981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982   *) ac_try_echo=$ac_try;;
26983 esac
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985   (eval "$ac_link") 2>conftest.er1
26986   ac_status=$?
26987   grep -v '^ *+' conftest.er1 >conftest.err
26988   rm -f conftest.er1
26989   cat conftest.err >&5
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); } && {
26992          test -z "$ac_c_werror_flag" ||
26993          test ! -s conftest.err
26994        } && test -s conftest$ac_exeext &&
26995        $as_test_x conftest$ac_exeext; then
26996
26997                       { echo "$as_me:$LINENO: result: yes" >&5
26998 echo "${ECHO_T}yes" >&6; }
26999
27000 cat >>confdefs.h <<\_ACEOF
27001 #define HAVE_LIBWRAP 1
27002 _ACEOF
27003
27004                       TCPW_MSG="yes"
27005                       LIBS="$saved_LIBS"
27006                       WRAPLIBS="-lwrap"
27007
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012
27013                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27014 echo "$as_me: error: *** libwrap missing" >&2;}
27015    { (exit 1); exit 1; }; }
27016
27017
27018 fi
27019
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021       conftest$ac_exeext conftest.$ac_ext
27022
27023
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027       conftest$ac_exeext conftest.$ac_ext
27028        fi
27029
27030
27031 fi
27032
27033
27034 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27035 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27036
27037 # Check whether --with-openssl was given.
27038 if test "${with_openssl+set}" = set; then
27039   withval=$with_openssl;
27040         with_openssl_directory=${withval}
27041
27042
27043 fi
27044
27045
27046 if test "x$with_openssl_directory" != "xno"; then
27047    OPENSSL_LIBS="-lssl -lcrypto"
27048    OPENSSL_INC=""
27049
27050    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27051       #
27052       # Make sure the $with_openssl_directory also makes sense
27053       #
27054       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27055          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27056          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27057       fi
27058    fi
27059
27060    saved_LIBS="${LIBS}"
27061    saved_CFLAGS="${CFLAGS}"
27062    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27063    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27064
27065    cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071
27072           #include <openssl/ssl.h>
27073
27074 int
27075 main ()
27076 {
27077
27078            CRYPTO_set_id_callback(NULL);
27079
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088   *) ac_try_echo=$ac_try;;
27089 esac
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091   (eval "$ac_link") 2>conftest.er1
27092   ac_status=$?
27093   grep -v '^ *+' conftest.er1 >conftest.err
27094   rm -f conftest.er1
27095   cat conftest.err >&5
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); } && {
27098          test -z "$ac_c_werror_flag" ||
27099          test ! -s conftest.err
27100        } && test -s conftest$ac_exeext &&
27101        $as_test_x conftest$ac_exeext; then
27102
27103           support_tls="yes"
27104           support_crypto="yes"
27105
27106 else
27107   echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27109
27110
27111           support_tls="no"
27112           support_crypto="no"
27113
27114
27115 fi
27116
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118       conftest$ac_exeext conftest.$ac_ext
27119
27120    cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126
27127           #include <openssl/evp.h>
27128
27129 int
27130 main ()
27131 {
27132
27133           EVP_sha512();
27134
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143   *) ac_try_echo=$ac_try;;
27144 esac
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146   (eval "$ac_link") 2>conftest.er1
27147   ac_status=$?
27148   grep -v '^ *+' conftest.er1 >conftest.err
27149   rm -f conftest.er1
27150   cat conftest.err >&5
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); } && {
27153          test -z "$ac_c_werror_flag" ||
27154          test ! -s conftest.err
27155        } && test -s conftest$ac_exeext &&
27156        $as_test_x conftest$ac_exeext; then
27157
27158           ac_cv_openssl_sha2="yes"
27159
27160 else
27161   echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164
27165           ac_cv_openssl_sha2="no"
27166
27167
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171       conftest$ac_exeext conftest.$ac_ext
27172
27173                cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179
27180           #include <openssl/evp.h>
27181
27182 int
27183 main ()
27184 {
27185
27186           EVP_aes_192_cbc();
27187
27188   ;
27189   return 0;
27190 }
27191 _ACEOF
27192 rm -f conftest.$ac_objext conftest$ac_exeext
27193 if { (ac_try="$ac_link"
27194 case "(($ac_try" in
27195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27196   *) ac_try_echo=$ac_try;;
27197 esac
27198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27199   (eval "$ac_link") 2>conftest.er1
27200   ac_status=$?
27201   grep -v '^ *+' conftest.er1 >conftest.err
27202   rm -f conftest.er1
27203   cat conftest.err >&5
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); } && {
27206          test -z "$ac_c_werror_flag" ||
27207          test ! -s conftest.err
27208        } && test -s conftest$ac_exeext &&
27209        $as_test_x conftest$ac_exeext; then
27210
27211           ac_cv_openssl_export="no"
27212
27213 else
27214   echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27216
27217
27218           ac_cv_openssl_export="yes"
27219
27220
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224       conftest$ac_exeext conftest.$ac_ext
27225
27226    LIBS="${saved_LIBS}"
27227    CFLAGS="${saved_CFLAGS}"
27228
27229    if test "$support_tls" = "yes"; then
27230
27231 cat >>confdefs.h <<\_ACEOF
27232 #define HAVE_OPENSSL 1
27233 _ACEOF
27234
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_TLS 1
27238 _ACEOF
27239
27240
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_CRYPTO 1
27243 _ACEOF
27244
27245    fi
27246
27247    if test "$ac_cv_openssl_sha2" = "yes"; then
27248
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_SHA2 1
27251 _ACEOF
27252
27253    fi
27254
27255    if test "$ac_cv_openssl_export" = "yes"; then
27256
27257 cat >>confdefs.h <<\_ACEOF
27258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27259 _ACEOF
27260
27261    fi
27262 else
27263    support_tls="no"
27264    support_crypto="no"
27265    OPENSSL_LIBS=""
27266    OPENSSL_INC=""
27267 fi
27268
27269 if test "$support_tls" = "no"; then
27270    OPENSSL_LIBS=""
27271    OPENSSL_INC=""
27272 fi
27273 if test "$support_crypto" = "no"; then
27274    OPENSSL_LIBS=""
27275    OPENSSL_INC=""
27276 else
27277    { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27278 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27279 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27280   echo $ECHO_N "(cached) $ECHO_C" >&6
27281 else
27282   ac_check_lib_save_LIBS=$LIBS
27283 LIBS="-lssl  $LIBS"
27284 cat >conftest.$ac_ext <<_ACEOF
27285 /* confdefs.h.  */
27286 _ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h.  */
27290
27291 /* Override any GCC internal prototype to avoid an error.
27292    Use char because int might match the return type of a GCC
27293    builtin and then its argument prototype would still apply.  */
27294 #ifdef __cplusplus
27295 extern "C"
27296 #endif
27297 char EVP_PKEY_encrypt_old ();
27298 int
27299 main ()
27300 {
27301 return EVP_PKEY_encrypt_old ();
27302   ;
27303   return 0;
27304 }
27305 _ACEOF
27306 rm -f conftest.$ac_objext conftest$ac_exeext
27307 if { (ac_try="$ac_link"
27308 case "(($ac_try" in
27309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310   *) ac_try_echo=$ac_try;;
27311 esac
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313   (eval "$ac_link") 2>conftest.er1
27314   ac_status=$?
27315   grep -v '^ *+' conftest.er1 >conftest.err
27316   rm -f conftest.er1
27317   cat conftest.err >&5
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); } && {
27320          test -z "$ac_c_werror_flag" ||
27321          test ! -s conftest.err
27322        } && test -s conftest$ac_exeext &&
27323        $as_test_x conftest$ac_exeext; then
27324   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27325 else
27326   echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27328
27329         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27330 fi
27331
27332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27333       conftest$ac_exeext conftest.$ac_ext
27334 LIBS=$ac_check_lib_save_LIBS
27335 fi
27336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27337 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27338 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27339
27340 cat >>confdefs.h <<\_ACEOF
27341 #define HAVE_OPENSSLv1 1
27342 _ACEOF
27343
27344 fi
27345
27346 fi
27347
27348 { echo "$as_me:$LINENO: result: $support_tls" >&5
27349 echo "${ECHO_T}$support_tls" >&6; }
27350
27351
27352
27353 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27354 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27355 if test "${ac_cv_search_dlopen+set}" = set; then
27356   echo $ECHO_N "(cached) $ECHO_C" >&6
27357 else
27358   ac_func_search_save_LIBS=$LIBS
27359 cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h.  */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h.  */
27365
27366 /* Override any GCC internal prototype to avoid an error.
27367    Use char because int might match the return type of a GCC
27368    builtin and then its argument prototype would still apply.  */
27369 #ifdef __cplusplus
27370 extern "C"
27371 #endif
27372 char dlopen ();
27373 int
27374 main ()
27375 {
27376 return dlopen ();
27377   ;
27378   return 0;
27379 }
27380 _ACEOF
27381 for ac_lib in '' dl; do
27382   if test -z "$ac_lib"; then
27383     ac_res="none required"
27384   else
27385     ac_res=-l$ac_lib
27386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27387   fi
27388   rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (ac_try="$ac_link"
27390 case "(($ac_try" in
27391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392   *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395   (eval "$ac_link") 2>conftest.er1
27396   ac_status=$?
27397   grep -v '^ *+' conftest.er1 >conftest.err
27398   rm -f conftest.er1
27399   cat conftest.err >&5
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); } && {
27402          test -z "$ac_c_werror_flag" ||
27403          test ! -s conftest.err
27404        } && test -s conftest$ac_exeext &&
27405        $as_test_x conftest$ac_exeext; then
27406   ac_cv_search_dlopen=$ac_res
27407 else
27408   echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411
27412 fi
27413
27414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27415       conftest$ac_exeext
27416   if test "${ac_cv_search_dlopen+set}" = set; then
27417   break
27418 fi
27419 done
27420 if test "${ac_cv_search_dlopen+set}" = set; then
27421   :
27422 else
27423   ac_cv_search_dlopen=no
27424 fi
27425 rm conftest.$ac_ext
27426 LIBS=$ac_func_search_save_LIBS
27427 fi
27428 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27429 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27430 ac_res=$ac_cv_search_dlopen
27431 if test "$ac_res" != no; then
27432   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27433
27434 fi
27435
27436
27437 working_dir=`eval echo ${prefix}/var/bacula/working`
27438
27439 # Check whether --with-working-dir was given.
27440 if test "${with_working_dir+set}" = set; then
27441   withval=$with_working_dir;
27442        if test "x$withval" != "xno" ; then
27443          working_dir=$withval
27444        fi
27445
27446
27447 fi
27448
27449
27450
27451
27452 archivedir=/tmp
27453
27454 # Check whether --with-archivedir was given.
27455 if test "${with_archivedir+set}" = set; then
27456   withval=$with_archivedir;
27457        if test "x$withval" != "xno" ; then
27458           archivedir=$withval
27459        fi
27460
27461
27462 fi
27463
27464
27465
27466
27467 basename=`hostname`
27468
27469 # Check whether --with-basename was given.
27470 if test "${with_basename+set}" = set; then
27471   withval=$with_basename;
27472        if test "x$withval" != "xno" ; then
27473           basename=$withval
27474        fi
27475
27476
27477 fi
27478
27479
27480
27481
27482 hostname=`uname -n | cut -d '.' -f 1`
27483 if test x${hostname} = x ; then
27484   hostname="localhost"
27485 fi
27486
27487 # Check whether --with-hostname was given.
27488 if test "${with_hostname+set}" = set; then
27489   withval=$with_hostname;
27490        if test "x$withval" != "xno" ; then
27491          hostname=$withval
27492        fi
27493
27494
27495 fi
27496
27497
27498
27499
27500
27501 scriptdir=`eval echo ${sysconfdir}`
27502
27503 # Check whether --with-scriptdir was given.
27504 if test "${with_scriptdir+set}" = set; then
27505   withval=$with_scriptdir;
27506        if test "x$withval" != "xno" ; then
27507           scriptdir=$withval
27508        fi
27509
27510
27511 fi
27512
27513
27514
27515
27516
27517 bsrdir=/tmp
27518
27519 # Check whether --with-bsrdir was given.
27520 if test "${with_bsrdir+set}" = set; then
27521   withval=$with_bsrdir;
27522        if test "x$withval" != "xno" ; then
27523           bsrdir=$withval
27524        fi
27525
27526
27527 fi
27528
27529
27530
27531
27532 logdir=/tmp
27533
27534 # Check whether --with-logdir was given.
27535 if test "${with_logdir+set}" = set; then
27536   withval=$with_logdir;
27537        if test "x$withval" != "xno" ; then
27538           logdir=$withval
27539        fi
27540
27541
27542 fi
27543
27544
27545
27546
27547
27548 # ------------------------------------------
27549 # Where to place plugindir (plugin files)
27550 # ------------------------------------------
27551 plugindir=`eval echo ${libdir}`
27552
27553 # Check whether --with-plugindir was given.
27554 if test "${with_plugindir+set}" = set; then
27555   withval=$with_plugindir;
27556        if test "x$withval" != "xno" ; then
27557           plugindir=$withval
27558        fi
27559
27560
27561 fi
27562
27563
27564
27565
27566 dump_email=root@localhost
27567
27568 # Check whether --with-dump-email was given.
27569 if test "${with_dump_email+set}" = set; then
27570   withval=$with_dump_email;
27571        if test "x$withval" != "xno" ; then
27572           dump_email=$withval
27573        fi
27574
27575
27576 fi
27577
27578
27579
27580
27581 job_email=root@localhost
27582
27583 # Check whether --with-job-email was given.
27584 if test "${with_job_email+set}" = set; then
27585   withval=$with_job_email;
27586        if test "x$withval" != "xno" ; then
27587           job_email=$withval
27588        fi
27589
27590
27591 fi
27592
27593
27594
27595
27596 smtp_host=localhost
27597
27598 # Check whether --with-smtp_host was given.
27599 if test "${with_smtp_host+set}" = set; then
27600   withval=$with_smtp_host;
27601        if test "x$withval" != "xno" ; then
27602           smtp_host=$withval
27603        fi
27604
27605
27606 fi
27607
27608
27609
27610
27611 piddir=/var/run
27612
27613 # Check whether --with-pid-dir was given.
27614 if test "${with_pid_dir+set}" = set; then
27615   withval=$with_pid_dir;
27616        if test "x$withval" != "xno" ; then
27617           piddir=$withval
27618        fi
27619
27620
27621 fi
27622
27623
27624 cat >>confdefs.h <<_ACEOF
27625 #define _PATH_BACULA_PIDDIR "$piddir"
27626 _ACEOF
27627
27628
27629
27630 subsysdir=/var/run/subsys
27631 if test -d /var/run/subsys; then
27632    subsysdir=/var/run/subsys
27633 elif test -d /var/lock/subsys; then
27634    subsysdir=/var/lock/subsys
27635 else
27636    subsysdir=/var/run/subsys
27637 fi
27638
27639 # Check whether --with-subsys-dir was given.
27640 if test "${with_subsys_dir+set}" = set; then
27641   withval=$with_subsys_dir;
27642        if test "x$withval" != "xno" ; then
27643           subsysdir=$withval
27644        fi
27645
27646
27647 fi
27648
27649
27650
27651
27652 baseport=9101
27653
27654 # Check whether --with-baseport was given.
27655 if test "${with_baseport+set}" = set; then
27656   withval=$with_baseport;
27657        if test "x$withval" != "xno" ; then
27658           baseport=$withval
27659        fi
27660
27661
27662 fi
27663
27664
27665
27666 dir_port=`expr $baseport`
27667 fd_port=`expr $baseport + 1`
27668 sd_port=`expr $fd_port + 1`
27669
27670
27671
27672
27673
27674 dir_password=
27675
27676 # Check whether --with-dir-password was given.
27677 if test "${with_dir_password+set}" = set; then
27678   withval=$with_dir_password;
27679        if test "x$withval" != "xno" ; then
27680           dir_password=$withval
27681        fi
27682
27683
27684 fi
27685
27686
27687 if test "x$dir_password" = "x" ; then
27688    if test "x$OPENSSL" = "xnone" ; then
27689       key=`autoconf/randpass 33`
27690    else
27691       key=`openssl rand -base64 33`
27692    fi
27693    dir_password=$key
27694 fi
27695
27696 fd_password=
27697
27698 # Check whether --with-fd-password was given.
27699 if test "${with_fd_password+set}" = set; then
27700   withval=$with_fd_password;
27701        if test "x$withval" != "xno" ; then
27702           fd_password=$withval
27703        fi
27704
27705
27706 fi
27707
27708
27709 if test "x$fd_password" = "x" ; then
27710    if test "x$OPENSSL" = "xnone" ; then
27711       key=`autoconf/randpass 37`
27712    else
27713       key=`openssl rand -base64 33`
27714    fi
27715    fd_password=$key
27716 fi
27717
27718 sd_password=
27719
27720 # Check whether --with-sd-password was given.
27721 if test "${with_sd_password+set}" = set; then
27722   withval=$with_sd_password;
27723        if test "x$withval" != "xno" ; then
27724           sd_password=$withval
27725        fi
27726
27727
27728 fi
27729
27730
27731 if test "x$sd_password" = "x" ; then
27732    if test "x$OPENSSL" = "xnone" ; then
27733       key=`autoconf/randpass 41`
27734    else
27735       key=`openssl rand -base64 33`
27736    fi
27737    sd_password=$key
27738 fi
27739
27740 mon_dir_password=
27741
27742 # Check whether --with-mon-dir-password was given.
27743 if test "${with_mon_dir_password+set}" = set; then
27744   withval=$with_mon_dir_password;
27745        if test "x$withval" != "xno" ; then
27746           mon_dir_password=$withval
27747        fi
27748
27749
27750 fi
27751
27752
27753 if test "x$mon_dir_password" = "x" ; then
27754    if test "x$OPENSSL" = "xnone" ; then
27755       key=`autoconf/randpass 33`
27756    else
27757       key=`openssl rand -base64 33`
27758    fi
27759    mon_dir_password=$key
27760 fi
27761
27762 mon_fd_password=
27763
27764 # Check whether --with-mon-fd-password was given.
27765 if test "${with_mon_fd_password+set}" = set; then
27766   withval=$with_mon_fd_password;
27767        if test "x$withval" != "xno" ; then
27768           mon_fd_password=$withval
27769        fi
27770
27771
27772 fi
27773
27774
27775 if test "x$mon_fd_password" = "x" ; then
27776    if test "x$OPENSSL" = "xnone" ; then
27777       key=`autoconf/randpass 37`
27778    else
27779       key=`openssl rand -base64 33`
27780    fi
27781    mon_fd_password=$key
27782 fi
27783
27784 mon_sd_password=
27785
27786 # Check whether --with-mon-sd-password was given.
27787 if test "${with_mon_sd_password+set}" = set; then
27788   withval=$with_mon_sd_password;
27789        if test "x$withval" != "xno" ; then
27790           mon_sd_password=$withval
27791        fi
27792
27793
27794 fi
27795
27796
27797 if test "x$mon_sd_password" = "x" ; then
27798    if test "x$OPENSSL" = "xnone" ; then
27799       key=`autoconf/randpass 41`
27800    else
27801       key=`openssl rand -base64 33`
27802    fi
27803    mon_sd_password=$key
27804 fi
27805
27806
27807
27808
27809
27810
27811
27812
27813 db_name=bacula
27814
27815 # Check whether --with-db_name was given.
27816 if test "${with_db_name+set}" = set; then
27817   withval=$with_db_name;
27818        if test "x$withval" != "x" ; then
27819           db_name=$withval
27820        fi
27821
27822
27823 fi
27824
27825
27826
27827 db_user=bacula
27828
27829 # Check whether --with-db_user was given.
27830 if test "${with_db_user+set}" = set; then
27831   withval=$with_db_user;
27832        if test "x$withval" != "x" ; then
27833           db_user=$withval
27834        fi
27835
27836
27837 fi
27838
27839
27840
27841 db_password=
27842
27843 # Check whether --with-db_password was given.
27844 if test "${with_db_password+set}" = set; then
27845   withval=$with_db_password;
27846        if test "x$withval" != "x" ; then
27847           db_password=$withval
27848        fi
27849
27850
27851 fi
27852
27853
27854
27855 db_port=" "
27856
27857 # Check whether --with-db_port was given.
27858 if test "${with_db_port+set}" = set; then
27859   withval=$with_db_port;
27860        if test "x$withval" != "x" ; then
27861           db_port=$withval
27862        fi
27863
27864
27865 fi
27866
27867
27868
27869 #
27870 # Handle users and groups for each daemon
27871 #
27872 dir_user=
27873
27874 # Check whether --with-dir_user was given.
27875 if test "${with_dir_user+set}" = set; then
27876   withval=$with_dir_user;
27877        if test "x$withval" != "x" ; then
27878            dir_user=$withval
27879        fi
27880
27881
27882 fi
27883
27884
27885 dir_group=
27886
27887 # Check whether --with-dir_group was given.
27888 if test "${with_dir_group+set}" = set; then
27889   withval=$with_dir_group;
27890        if test "x$withval" != "x" ; then
27891           dir_group=$withval
27892        fi
27893
27894
27895 fi
27896
27897
27898 sd_user=
27899
27900 # Check whether --with-sd_user was given.
27901 if test "${with_sd_user+set}" = set; then
27902   withval=$with_sd_user;
27903        if test "x$withval" != "x" ; then
27904           sd_user=$withval
27905        fi
27906
27907
27908 fi
27909
27910
27911 sd_group=
27912
27913 # Check whether --with-sd_group was given.
27914 if test "${with_sd_group+set}" = set; then
27915   withval=$with_sd_group;
27916        if test "x$withval" != "x" ; then
27917           sd_group=$withval
27918        fi
27919
27920
27921 fi
27922
27923
27924 fd_user=
27925
27926 # Check whether --with-fd_user was given.
27927 if test "${with_fd_user+set}" = set; then
27928   withval=$with_fd_user;
27929        if test "x$withval" != "x" ; then
27930           fd_user=$withval
27931        fi
27932
27933
27934 fi
27935
27936
27937 fd_group=
27938
27939 # Check whether --with-fd_group was given.
27940 if test "${with_fd_group+set}" = set; then
27941   withval=$with_fd_group;
27942        if test "x$withval" != "x" ; then
27943           fd_group=$withval
27944        fi
27945
27946
27947 fi
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957 SBINPERM=0754
27958
27959 # Check whether --with-sbin-perm was given.
27960 if test "${with_sbin_perm+set}" = set; then
27961   withval=$with_sbin_perm;
27962        if test "x$withval" != "x" ; then
27963           SBINPERM=$withval
27964        fi
27965
27966
27967 fi
27968
27969
27970
27971
27972 SQL_LIB=
27973
27974 db_found=no
27975 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27976 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27977
27978 # Check whether --with-postgresql was given.
27979 if test "${with_postgresql+set}" = set; then
27980   withval=$with_postgresql;
27981   if test "$withval" != "no"; then
27982       if test "$db_found" = "yes"; then
27983           { echo "$as_me:$LINENO: result: error" >&5
27984 echo "${ECHO_T}error" >&6; }
27985           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27986 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27987    { (exit 1); exit 1; }; };
27988       fi
27989       if test "$withval" = "yes"; then
27990           PG_CONFIG=`which pg_config`
27991           if test -n "$PG_CONFIG";then
27992               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27993               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27994               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27995           elif test -f /usr/local/include/libpq-fe.h; then
27996               POSTGRESQL_INCDIR=/usr/local/include
27997               if test -d /usr/local/lib64; then
27998                  POSTGRESQL_LIBDIR=/usr/local/lib64
27999               else
28000                  POSTGRESQL_LIBDIR=/usr/local/lib
28001               fi
28002               POSTGRESQL_BINDIR=/usr/local/bin
28003           elif test -f /usr/include/libpq-fe.h; then
28004               POSTGRESQL_INCDIR=/usr/include
28005               if test -d /usr/lib64; then
28006                  POSTGRESQL_LIBDIR=/usr/lib64
28007               else
28008                  POSTGRESQL_LIBDIR=/usr/lib
28009               fi
28010               POSTGRESQL_BINDIR=/usr/bin
28011           elif test -f /usr/include/pgsql/libpq-fe.h; then
28012               POSTGRESQL_INCDIR=/usr/include/pgsql
28013               if test -d /usr/lib64/pgsql; then
28014                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28015               else
28016                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28017               fi
28018               POSTGRESQL_BINDIR=/usr/bin
28019           elif test -f /usr/include/postgresql/libpq-fe.h; then
28020               POSTGRESQL_INCDIR=/usr/include/postgresql
28021               if test -d /usr/lib64/postgresql; then
28022                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28023               else
28024                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28025               fi
28026               POSTGRESQL_BINDIR=/usr/bin
28027           else
28028               { echo "$as_me:$LINENO: result: no" >&5
28029 echo "${ECHO_T}no" >&6; }
28030               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28031 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28032    { (exit 1); exit 1; }; }
28033           fi
28034       elif test -f $withval/include/libpq-fe.h; then
28035           POSTGRESQL_INCDIR=$withval/include
28036           POSTGRESQL_LIBDIR=$withval/lib
28037           POSTGRESQL_BINDIR=$withval/bin
28038       elif test -f $withval/include/postgresql/libpq-fe.h; then
28039           POSTGRESQL_INCDIR=$withval/include/postgresql
28040      if test -d $withval/lib64; then
28041          POSTGRESQL_LIBDIR=$withval/lib64
28042      else
28043          POSTGRESQL_LIBDIR=$withval/lib
28044      fi
28045           POSTGRESQL_BINDIR=$withval/bin
28046       else
28047           { echo "$as_me:$LINENO: result: no" >&5
28048 echo "${ECHO_T}no" >&6; }
28049           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28050 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28051    { (exit 1); exit 1; }; }
28052       fi
28053       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28054       { echo "$as_me:$LINENO: checking for crypt" >&5
28055 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28056 if test "${ac_cv_func_crypt+set}" = set; then
28057   echo $ECHO_N "(cached) $ECHO_C" >&6
28058 else
28059   cat >conftest.$ac_ext <<_ACEOF
28060 /* confdefs.h.  */
28061 _ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h.  */
28065 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28067 #define crypt innocuous_crypt
28068
28069 /* System header to define __stub macros and hopefully few prototypes,
28070     which can conflict with char crypt (); below.
28071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28072     <limits.h> exists even on freestanding compilers.  */
28073
28074 #ifdef __STDC__
28075 # include <limits.h>
28076 #else
28077 # include <assert.h>
28078 #endif
28079
28080 #undef crypt
28081
28082 /* Override any GCC internal prototype to avoid an error.
28083    Use char because int might match the return type of a GCC
28084    builtin and then its argument prototype would still apply.  */
28085 #ifdef __cplusplus
28086 extern "C"
28087 #endif
28088 char crypt ();
28089 /* The GNU C library defines this for functions which it implements
28090     to always fail with ENOSYS.  Some functions are actually named
28091     something starting with __ and the normal name is an alias.  */
28092 #if defined __stub_crypt || defined __stub___crypt
28093 choke me
28094 #endif
28095
28096 int
28097 main ()
28098 {
28099 return crypt ();
28100   ;
28101   return 0;
28102 }
28103 _ACEOF
28104 rm -f conftest.$ac_objext conftest$ac_exeext
28105 if { (ac_try="$ac_link"
28106 case "(($ac_try" in
28107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108   *) ac_try_echo=$ac_try;;
28109 esac
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111   (eval "$ac_link") 2>conftest.er1
28112   ac_status=$?
28113   grep -v '^ *+' conftest.er1 >conftest.err
28114   rm -f conftest.er1
28115   cat conftest.err >&5
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); } && {
28118          test -z "$ac_c_werror_flag" ||
28119          test ! -s conftest.err
28120        } && test -s conftest$ac_exeext &&
28121        $as_test_x conftest$ac_exeext; then
28122   ac_cv_func_crypt=yes
28123 else
28124   echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28126
28127         ac_cv_func_crypt=no
28128 fi
28129
28130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28131       conftest$ac_exeext conftest.$ac_ext
28132 fi
28133 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28134 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28135 if test $ac_cv_func_crypt = yes; then
28136   :
28137 else
28138   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28139 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28140 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28141   echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143   ac_check_lib_save_LIBS=$LIBS
28144 LIBS="-lcrypt  $LIBS"
28145 cat >conftest.$ac_ext <<_ACEOF
28146 /* confdefs.h.  */
28147 _ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h.  */
28151
28152 /* Override any GCC internal prototype to avoid an error.
28153    Use char because int might match the return type of a GCC
28154    builtin and then its argument prototype would still apply.  */
28155 #ifdef __cplusplus
28156 extern "C"
28157 #endif
28158 char crypt ();
28159 int
28160 main ()
28161 {
28162 return crypt ();
28163   ;
28164   return 0;
28165 }
28166 _ACEOF
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (ac_try="$ac_link"
28169 case "(($ac_try" in
28170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171   *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174   (eval "$ac_link") 2>conftest.er1
28175   ac_status=$?
28176   grep -v '^ *+' conftest.er1 >conftest.err
28177   rm -f conftest.er1
28178   cat conftest.err >&5
28179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); } && {
28181          test -z "$ac_c_werror_flag" ||
28182          test ! -s conftest.err
28183        } && test -s conftest$ac_exeext &&
28184        $as_test_x conftest$ac_exeext; then
28185   ac_cv_lib_crypt_crypt=yes
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190         ac_cv_lib_crypt_crypt=no
28191 fi
28192
28193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28194       conftest$ac_exeext conftest.$ac_ext
28195 LIBS=$ac_check_lib_save_LIBS
28196 fi
28197 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28198 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28199 if test $ac_cv_lib_crypt_crypt = yes; then
28200   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28201 fi
28202
28203 fi
28204
28205       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28206       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28207       SQL_BINDIR=$POSTGRESQL_BINDIR
28208       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28209
28210       cat >>confdefs.h <<\_ACEOF
28211 #define HAVE_POSTGRESQL 1
28212 _ACEOF
28213
28214       { echo "$as_me:$LINENO: result: yes" >&5
28215 echo "${ECHO_T}yes" >&6; }
28216       db_found=yes
28217       support_postgresql=yes
28218       db_type=PostgreSQL
28219       DB_TYPE=postgresql
28220   else
28221       { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28223   fi
28224
28225 else
28226
28227   { echo "$as_me:$LINENO: result: no" >&5
28228 echo "${ECHO_T}no" >&6; }
28229
28230 fi
28231
28232
28233
28234
28235
28236
28237
28238
28239 db_found=no
28240 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28241 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28242
28243 # Check whether --with-mysql was given.
28244 if test "${with_mysql+set}" = set; then
28245   withval=$with_mysql;
28246   if test "$withval" != "no"; then
28247         if test "$withval" = "yes"; then
28248            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28249                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28250                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28251                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28252                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28253                    else
28254                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28255                    fi
28256                    MYSQL_BINDIR=/usr/local/mysql/bin
28257            elif test -f /usr/include/mysql/mysql.h; then
28258                    MYSQL_INCDIR=/usr/include/mysql
28259                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28260                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28261                            MYSQL_LIBDIR=/usr/lib64/mysql
28262                    elif test -f /usr/lib64/libmysqlclient_r.a \
28263                         -o -f /usr/lib64/libmysqlclient_r.so; then
28264                            MYSQL_LIBDIR=/usr/lib64
28265                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28266                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28267                            MYSQL_LIBDIR=/usr/lib/mysql
28268                    else
28269                            MYSQL_LIBDIR=/usr/lib
28270                    fi
28271                    MYSQL_BINDIR=/usr/bin
28272            elif test -f /usr/include/mysql.h; then
28273                    MYSQL_INCDIR=/usr/include
28274                    if test -f /usr/lib64/libmysqlclient_r.a \
28275                         -o -f /usr/lib64/libmysqlclient_r.so; then
28276                            MYSQL_LIBDIR=/usr/lib64
28277                    else
28278                            MYSQL_LIBDIR=/usr/lib
28279                    fi
28280                    MYSQL_BINDIR=/usr/bin
28281            elif test -f /usr/local/include/mysql/mysql.h; then
28282                    MYSQL_INCDIR=/usr/local/include/mysql
28283                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28284                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28285                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28286                    else
28287                            MYSQL_LIBDIR=/usr/local/lib/mysql
28288                    fi
28289                    MYSQL_BINDIR=/usr/local/bin
28290            elif test -f /usr/local/include/mysql.h; then
28291                    MYSQL_INCDIR=/usr/local/include
28292                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28293                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28294                            MYSQL_LIBDIR=/usr/local/lib64
28295                    else
28296                            MYSQL_LIBDIR=/usr/local/lib
28297                    fi
28298                    MYSQL_BINDIR=/usr/local/bin
28299            else
28300               { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28302               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28303 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28304    { (exit 1); exit 1; }; }
28305            fi
28306         else
28307            if test -f $withval/include/mysql/mysql.h; then
28308               MYSQL_INCDIR=$withval/include/mysql
28309               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28310                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28311                  MYSQL_LIBDIR=$withval/lib64/mysql
28312               elif test -f $withval/lib64/libmysqlclient_r.a \
28313                    -o -f $withval/lib64/libmysqlclient_r.so; then
28314                  MYSQL_LIBDIR=$withval/lib64
28315               elif test -f $withval/lib/libmysqlclient_r.a \
28316                    -o -f $withval/lib/libmysqlclient_r.so; then
28317                  MYSQL_LIBDIR=$withval/lib
28318               else
28319                  MYSQL_LIBDIR=$withval/lib/mysql
28320               fi
28321               MYSQL_BINDIR=$withval/bin
28322            elif test -f $withval/include/mysql.h; then
28323               MYSQL_INCDIR=$withval/include
28324               if test -f $withval/lib64/libmysqlclient_r.a \
28325                    -o -f $withval/lib64/libmysqlclient_r.so; then
28326                  MYSQL_LIBDIR=$withval/lib64
28327               else
28328                  MYSQL_LIBDIR=$withval/lib
28329               fi
28330               MYSQL_BINDIR=$withval/bin
28331            else
28332               { echo "$as_me:$LINENO: result: no" >&5
28333 echo "${ECHO_T}no" >&6; }
28334               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28335 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28336    { (exit 1); exit 1; }; }
28337            fi
28338         fi
28339     SQL_INCLUDE=-I$MYSQL_INCDIR
28340     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28341          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28342        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28343        cat >>confdefs.h <<\_ACEOF
28344 #define HAVE_THREAD_SAFE_MYSQL 1
28345 _ACEOF
28346
28347     fi
28348     SQL_BINDIR=$MYSQL_BINDIR
28349     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28350
28351
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_MYSQL 1
28354 _ACEOF
28355
28356     { echo "$as_me:$LINENO: result: yes" >&5
28357 echo "${ECHO_T}yes" >&6; }
28358     db_found=yes
28359     support_mysql=yes
28360     db_type=MySQL
28361     DB_TYPE=mysql
28362
28363   else
28364         { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28366   fi
28367
28368
28369 fi
28370
28371
28372
28373 # Check whether --with-embedded-mysql was given.
28374 if test "${with_embedded_mysql+set}" = set; then
28375   withval=$with_embedded_mysql;
28376   if test "$withval" != "no"; then
28377         if test "$withval" = "yes"; then
28378                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28379                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28380                         if test -d /usr/local/mysql/lib64/mysql; then
28381                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28382                         else
28383                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28384                         fi
28385                         MYSQL_BINDIR=/usr/local/mysql/bin
28386                 elif test -f /usr/include/mysql/mysql.h; then
28387                         MYSQL_INCDIR=/usr/include/mysql
28388                         if test -d /usr/lib64/mysql; then
28389                                 MYSQL_LIBDIR=/usr/lib64/mysql
28390                         else
28391                                 MYSQL_LIBDIR=/usr/lib/mysql
28392                         fi
28393                         MYSQL_BINDIR=/usr/bin
28394                 elif test -f /usr/include/mysql.h; then
28395                         MYSQL_INCDIR=/usr/include
28396                         if test -d /usr/lib64; then
28397                                 MYSQL_LIBDIR=/usr/lib64
28398                         else
28399                                 MYSQL_LIBDIR=/usr/lib
28400                         fi
28401                         MYSQL_BINDIR=/usr/bin
28402                 elif test -f /usr/local/include/mysql/mysql.h; then
28403                         MYSQL_INCDIR=/usr/local/include/mysql
28404                         if test -d /usr/local/lib64/mysql; then
28405                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28406                         else
28407                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28408                         fi
28409                         MYSQL_BINDIR=/usr/local/bin
28410                 elif test -f /usr/local/include/mysql.h; then
28411                         MYSQL_INCDIR=/usr/local/include
28412                         if test -d /usr/local/lib64; then
28413                                 MYSQL_LIBDIR=/usr/local/lib64
28414                         else
28415                                 MYSQL_LIBDIR=/usr/local/lib
28416                         fi
28417                         MYSQL_BINDIR=/usr/local/bin
28418                 else
28419                    { echo "$as_me:$LINENO: result: no" >&5
28420 echo "${ECHO_T}no" >&6; }
28421                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28422 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28423    { (exit 1); exit 1; }; }
28424                 fi
28425         else
28426                 if test -f $withval/include/mysql/mysql.h; then
28427                         MYSQL_INCDIR=$withval/include/mysql
28428                         if test -d $withval/lib64/mysql; then
28429                                 MYSQL_LIBDIR=$withval/lib64/mysql
28430                         else
28431                                 MYSQL_LIBDIR=$withval/lib/mysql
28432                         fi
28433                         MYSQL_BINDIR=$withval/bin
28434                 elif test -f $withval/include/mysql.h; then
28435                         MYSQL_INCDIR=$withval/include
28436                         if test -d $withval/lib64; then
28437                                 MYSQL_LIBDIR=$withval/lib64
28438                         else
28439                                 MYSQL_LIBDIR=$withval/lib
28440                         fi
28441                         MYSQL_BINDIR=$withval/bin
28442                 else
28443                    { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28446 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28447    { (exit 1); exit 1; }; }
28448                 fi
28449         fi
28450     SQL_INCLUDE=-I$MYSQL_INCDIR
28451     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28452     SQL_BINDIR=$MYSQL_BINDIR
28453     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28454
28455     cat >>confdefs.h <<\_ACEOF
28456 #define HAVE_MYSQL 1
28457 _ACEOF
28458
28459     cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_EMBEDDED_MYSQL 1
28461 _ACEOF
28462
28463     { echo "$as_me:$LINENO: result: yes" >&5
28464 echo "${ECHO_T}yes" >&6; }
28465     db_found=yes
28466     support_mysql=yes
28467     db_type=MySQL
28468     DB_TYPE=mysql
28469
28470   else
28471         { echo "$as_me:$LINENO: result: no" >&5
28472 echo "${ECHO_T}no" >&6; }
28473   fi
28474
28475
28476 fi
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487 db_found=no
28488 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28489 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28490
28491 # Check whether --with-ingres was given.
28492 if test "${with_ingres+set}" = set; then
28493   withval=$with_ingres;
28494   if test "$withval" != "no"; then
28495      if test "$withval" = "yes"; then
28496         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28497            INGRES_INCDIR=${II_SYSTEM}/files
28498            INGRES_LIBDIR=${II_SYSTEM}/lib
28499            INGRES_BINDIR=${II_SYSTEM}/bin
28500         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28501            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28502            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28503            INGRES_BINDIR=${II_SYSTEM}/bin
28504         else
28505            { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28508 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28509    { (exit 1); exit 1; }; }
28510         fi
28511      else
28512         if test -f $withval/files/eqdefc.h; then
28513            INGRES_INCDIR=$withval/files
28514            INGRES_LIBDIR=$withval/lib
28515            INGRES_BINDIR=$withval/bin
28516         else
28517            { echo "$as_me:$LINENO: result: no" >&5
28518 echo "${ECHO_T}no" >&6; }
28519            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28520 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28521    { (exit 1); exit 1; }; }
28522         fi
28523      fi
28524      SQL_INCLUDE=-I$INGRES_INCDIR
28525      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28526      SQL_BINDIR=$INGRES_BINDIR
28527      SQL_LIB=$INGRES_LIBDIR/libingres.a
28528
28529 cat >>confdefs.h <<\_ACEOF
28530 #define HAVE_INGRES 1
28531 _ACEOF
28532
28533      { echo "$as_me:$LINENO: result: yes" >&5
28534 echo "${ECHO_T}yes" >&6; }
28535      db_found=yes
28536      support_ingres=yes
28537      db_type=Ingres
28538      DB_TYPE=ingres
28539
28540   else
28541      { echo "$as_me:$LINENO: result: no" >&5
28542 echo "${ECHO_T}no" >&6; }
28543   fi
28544
28545 else
28546
28547   { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28549
28550 fi
28551
28552
28553
28554
28555
28556
28557
28558
28559 db_found=no
28560 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28561 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28562
28563 # Check whether --with-sqlite3 was given.
28564 if test "${with_sqlite3+set}" = set; then
28565   withval=$with_sqlite3;
28566   if test "$withval" != "no"; then
28567      if test "$withval" = "yes"; then
28568         if test -f /usr/local/include/sqlite3.h; then
28569            SQLITE_INCDIR=/usr/local/include
28570            if test -d /usr/local/lib64; then
28571               SQLITE_LIBDIR=/usr/local/lib64
28572            else
28573               SQLITE_LIBDIR=/usr/local/lib
28574            fi
28575            SQLITE_BINDIR=/usr/local/bin
28576         elif test -f /usr/include/sqlite3.h; then
28577            SQLITE_INCDIR=/usr/include
28578            if test -d /usr/lib64; then
28579               SQLITE_LIBDIR=/usr/lib64
28580            else
28581               SQLITE_LIBDIR=/usr/lib
28582            fi
28583            SQLITE_BINDIR=/usr/bin
28584         elif test -f $prefix/include/sqlite3.h; then
28585            SQLITE_INCDIR=$prefix/include
28586            if test -d $prefix/lib64; then
28587               SQLITE_LIBDIR=$prefix/lib64
28588            else
28589               SQLITE_LIBDIR=$prefix/lib
28590            fi
28591            SQLITE_BINDIR=$prefix/bin
28592         else
28593            { echo "$as_me:$LINENO: result: no" >&5
28594 echo "${ECHO_T}no" >&6; }
28595            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28596 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28597    { (exit 1); exit 1; }; }
28598         fi
28599      else
28600         if test -f $withval/sqlite3.h; then
28601            SQLITE_INCDIR=$withval
28602            SQLITE_LIBDIR=$withval
28603            SQLITE_BINDIR=$withval
28604         elif test -f $withval/include/sqlite3.h; then
28605            SQLITE_INCDIR=$withval/include
28606            if test -d $withval/lib64; then
28607               SQLITE_LIBDIR=$withval/lib64
28608            else
28609               SQLITE_LIBDIR=$withval/lib
28610            fi
28611            SQLITE_BINDIR=$withval/bin
28612         else
28613            { echo "$as_me:$LINENO: result: no" >&5
28614 echo "${ECHO_T}no" >&6; }
28615            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28616 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28617    { (exit 1); exit 1; }; }
28618         fi
28619      fi
28620      SQL_INCLUDE=-I$SQLITE_INCDIR
28621      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28622      SQL_BINDIR=$SQLITE_BINDIR
28623      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28624
28625      cat >>confdefs.h <<\_ACEOF
28626 #define HAVE_SQLITE3 1
28627 _ACEOF
28628
28629      { echo "$as_me:$LINENO: result: yes" >&5
28630 echo "${ECHO_T}yes" >&6; }
28631      db_found=yes
28632      support_sqlite3=yes
28633      db_type=SQLite3
28634      DB_TYPE=sqlite3
28635
28636   else
28637      { echo "$as_me:$LINENO: result: no" >&5
28638 echo "${ECHO_T}no" >&6; }
28639   fi
28640
28641 else
28642
28643   { echo "$as_me:$LINENO: result: no" >&5
28644 echo "${ECHO_T}no" >&6; }
28645
28646 fi
28647
28648
28649
28650
28651
28652
28653
28654 # BA_CHECK_SQLITE_DB
28655
28656
28657 db_found=no
28658 { echo "$as_me:$LINENO: checking for DBI support" >&5
28659 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28660
28661 # Check whether --with-dbi was given.
28662 if test "${with_dbi+set}" = set; then
28663   withval=$with_dbi;
28664   if test "$withval" != "no"; then
28665      if test "$withval" = "yes"; then
28666         if test -f /usr/local/include/dbi/dbi.h; then
28667            DBI_INCDIR=/usr/local/dbi/include
28668            if test -d /usr/local/lib64; then
28669               DBI_LIBDIR=/usr/local/lib64
28670            else
28671               DBI_LIBDIR=/usr/local/lib
28672            fi
28673            DBI_BINDIR=/usr/local/bin
28674         elif test -f /usr/include/dbi/dbi.h; then
28675            DBI_INCDIR=/usr/include
28676            if test -d /usr/lib64; then
28677               DBI_LIBDIR=/usr/lib64
28678            else
28679               DBI_LIBDIR=/usr/lib
28680            fi
28681            DBI_BINDIR=/usr/bin
28682         elif test -f $prefix/include/dbi/dbi.h; then
28683            DBI_INCDIR=$prefix/include
28684            if test -d $prefix/lib64; then
28685               DBI_LIBDIR=$prefix/lib64
28686            else
28687               DBI_LIBDIR=$prefix/lib
28688            fi
28689            DBI_BINDIR=$prefix/bin
28690         else
28691            { echo "$as_me:$LINENO: result: no" >&5
28692 echo "${ECHO_T}no" >&6; }
28693            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28694 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28695    { (exit 1); exit 1; }; }
28696         fi
28697         if test -d /usr/local/lib/dbd; then
28698            DRIVERDIR=/usr/local/lib/dbd
28699            if test -d /usr/local/lib64/dbd; then
28700               DRIVERDIR=/usr/local/lib64/dbd
28701            else
28702               DRIVERDIR=/usr/local/lib/dbd
28703            fi
28704         elif test -d /usr/lib/dbd; then
28705            DRIVERDIR=/usr/lib/dbd
28706            if test -d /usr/lib64/dbd; then
28707               DRIVERDIR=/usr/lib64/dbd
28708            else
28709               DRIVERDIR=/usr/lib/dbd
28710            fi
28711         elif test -d $prefix/lib/dbd; then
28712            if test -d $prefix/lib64/dbd; then
28713               DRIVERDIR=$prefix/lib64/dbd
28714            else
28715               DRIVERDIR=$prefix/lib/dbd
28716            fi
28717         elif test -d /usr/local/lib64/dbd; then
28718            DRIVERDIR=/usr/local/lib64/dbd
28719         elif test -d /usr/lib64/dbd; then
28720            DRIVERDIR=/usr/lib64/dbd
28721         elif test -d $prefix/lib64/dbd; then
28722            DRIVERDIR=$prefix/lib64/dbd
28723         else
28724            { echo "$as_me:$LINENO: result: no" >&5
28725 echo "${ECHO_T}no" >&6; }
28726            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28727 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28728    { (exit 1); exit 1; }; }
28729         fi
28730      else
28731         if test -f $withval/dbi.h; then
28732            DBI_INCDIR=$withval
28733            DBI_LIBDIR=$withval
28734            DBI_BINDIR=$withval
28735         elif test -f $withval/include/dbi/dbi.h; then
28736            DBI_INCDIR=$withval/include
28737            if test -d $withval/lib64; then
28738               DBI_LIBDIR=$withval/lib64
28739            else
28740               DBI_LIBDIR=$withval/lib
28741            fi
28742            DBI_BINDIR=$withval/bin
28743         else
28744            { echo "$as_me:$LINENO: result: no" >&5
28745 echo "${ECHO_T}no" >&6; }
28746            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28747 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28748    { (exit 1); exit 1; }; }
28749         fi
28750         if test -d $withval/dbd; then
28751            DRIVERDIR=$withval/dbd
28752         elif test -d $withval/lib/; then
28753            if test -d $withval/lib64/dbd; then
28754               DRIVERDIR=$withval/lib64/dbd
28755            else
28756               DRIVERDIR=$withval/lib/dbd
28757            fi
28758         elif test -d $withval/lib64/dbd; then
28759            DRIVERDIR=$withval/lib64/dbd
28760         else
28761            { echo "$as_me:$LINENO: result: no" >&5
28762 echo "${ECHO_T}no" >&6; }
28763            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28764 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28765    { (exit 1); exit 1; }; }
28766         fi
28767      fi
28768      SQL_INCLUDE=-I$DBI_INCDIR
28769      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28770      SQL_BINDIR=$DBI_BINDIR
28771      SQL_LIB=$DBI_LIBDIR/libdbi.a
28772      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28773
28774
28775 cat >>confdefs.h <<\_ACEOF
28776 #define HAVE_DBI 1
28777 _ACEOF
28778
28779      { echo "$as_me:$LINENO: result: yes" >&5
28780 echo "${ECHO_T}yes" >&6; }
28781      db_found=yes
28782      support_dbi=yes
28783      db_type=DBI
28784      DB_TYPE=dbi
28785      uncomment_dbi=" "
28786
28787   else
28788      { echo "$as_me:$LINENO: result: no" >&5
28789 echo "${ECHO_T}no" >&6; }
28790   fi
28791
28792 else
28793
28794   { echo "$as_me:$LINENO: result: no" >&5
28795 echo "${ECHO_T}no" >&6; }
28796
28797 fi
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808 db_found=no
28809 db_prog=no
28810 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28811 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28812
28813 # Check whether --with-dbi-driver was given.
28814 if test "${with_dbi_driver+set}" = set; then
28815   withval=$with_dbi_driver;
28816   if test "$withval" != "no"; then
28817      case $withval in
28818         "mysql")
28819            db_prog="mysql"
28820            if test -f /usr/local/mysql/bin/mysql; then
28821               SQL_BINDIR=/usr/local/mysql/bin
28822               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28823                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28824                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28825               else
28826                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28827               fi
28828            elif test -f /usr/bin/mysql; then
28829               SQL_BINDIR=/usr/bin
28830               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28831                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28832                   SQL_LIBDIR=/usr/lib64/mysql
28833               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28834                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28835                   SQL_LIBDIR=/usr/lib/mysql
28836               else
28837                   SQL_LIBDIR=/usr/lib
28838               fi
28839            elif test -f /usr/local/bin/mysql; then
28840               SQL_BINDIR=/usr/local/bin
28841               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28842                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28843                   SQL_LIBDIR=/usr/local/lib64/mysql
28844               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28845                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28846                   SQL_LIBDIR=/usr/local/lib/mysql
28847               else
28848                   SQL_LIBDIR=/usr/local/lib
28849               fi
28850            elif test -f $withval/bin/mysql; then
28851               SQL_BINDIR=$withval/bin
28852               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28853                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28854                   SQL_LIBDIR=$withval/lib64/mysql
28855               elif test -f $withval/lib64/libmysqlclient_r.a \
28856                   -o -f $withval/lib64/libmysqlclient_r.so; then
28857                   SQL_LIBDIR=$withval/lib64
28858               elif test -f $withval/lib/libmysqlclient_r.a \
28859                   -o -f $withval/lib/libmysqlclient_r.so; then
28860                   SQL_LIBDIR=$withval/lib/
28861               else
28862                   SQL_LIBDIR=$withval/lib/mysql
28863               fi
28864            else
28865               { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28868 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28869    { (exit 1); exit 1; }; }
28870            fi
28871            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28872               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28873            else
28874               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28875            fi
28876         ;;
28877         "postgresql")
28878            db_prog="postgresql"
28879            PG_CONFIG=`which pg_config`
28880            if test -n "$PG_CONFIG"; then
28881               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28882               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28883            elif test -f /usr/local/bin/psql; then
28884               SQL_BINDIR=/usr/local/bin
28885               if test -d /usr/local/lib64; then
28886                  SQL_LIBDIR=/usr/local/lib64
28887               else
28888                  SQL_LIBDIR=/usr/local/lib
28889               fi
28890            elif test -f /usr/bin/psql; then
28891               SQL_BINDIR=/usr/local/bin
28892               if test -d /usr/lib64/postgresql; then
28893                  SQL_LIBDIR=/usr/lib64/postgresql
28894               elif test -d /usr/lib/postgresql; then
28895                  SQL_LIBDIR=/usr/lib/postgresql
28896               elif test -d /usr/lib64; then
28897                  SQL_LIBDIR=/usr/lib64
28898               else
28899                  SQL_LIBDIR=/usr/lib
28900               fi
28901            elif test -f $withval/bin/psql; then
28902               SQL_BINDIR=$withval/bin
28903               if test -d $withval/lib64; then
28904                  SQL_LIBDIR=$withval/lib64
28905               else
28906                  SQL_LIBDIR=$withval/lib
28907               fi
28908            else
28909               { echo "$as_me:$LINENO: result: no" >&5
28910 echo "${ECHO_T}no" >&6; }
28911               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28912 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28913    { (exit 1); exit 1; }; }
28914            fi
28915            if test -f $SQL_LIBDIR/libpq.so; then
28916               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28917            else
28918               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28919            fi
28920         ;;
28921         "sqlite")
28922            db_prog="sqlite"
28923            if test -f /usr/local/bin/sqlite; then
28924               SQL_BINDIR=/usr/local/bin
28925               if test -d /usr/local/lib64; then
28926                  SQL_LIBDIR=/usr/local/lib64
28927               else
28928                  SQL_LIBDIR=/usr/local/lib
28929               fi
28930            elif test -f /usr/bin/sqlite; then
28931               SQL_BINDIR=/usr/bin
28932               if test -d /usr/lib64; then
28933                  SQL_LIBDIR=/usr/lib64
28934               else
28935                  SQL_LIBDIR=/usr/lib
28936               fi
28937            elif test -f $withval/bin/sqlite; then
28938               SQL_BINDIR=$withval/bin
28939               if test -d $withval/lib64; then
28940                  SQL_LIBDIR=$withval/lib64
28941               else
28942                  SQL_LIBDIR=$withval/lib
28943               fi
28944            else
28945               { echo "$as_me:$LINENO: result: no" >&5
28946 echo "${ECHO_T}no" >&6; }
28947               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28948 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28949    { (exit 1); exit 1; }; }
28950            fi
28951            if test -f $SQL_LIBDIR/libsqlite.so; then
28952               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28953            else
28954               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28955            fi
28956         ;;
28957         "sqlite3")
28958            db_prog="sqlite3"
28959            if test -f /usr/local/bin/sqlite3; then
28960               SQL_BINDIR=/usr/local/bin
28961               if test -d /usr/local/lib64; then
28962                  SQL_LIBDIR=/usr/local/lib64
28963               else
28964                  SQL_LIBDIR=/usr/local/lib
28965               fi
28966            elif test -f /usr/bin/sqlite3; then
28967               SQL_BINDIR=/usr/bin
28968               if test -d /usr/lib64; then
28969                  SQL_LIBDIR=/usr/lib64
28970               else
28971                  SQL_LIBDIR=/usr/lib
28972               fi
28973            elif test -f $withval/bin/sqlite3; then
28974               SQL_BINDIR=$withval/bin
28975               if test -d $withval/lib64; then
28976                  SQL_LIBDIR=$withval/lib64
28977               else
28978                  SQL_LIBDIR=$withval/lib
28979               fi
28980            else
28981               { echo "$as_me:$LINENO: result: no" >&5
28982 echo "${ECHO_T}no" >&6; }
28983               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28984 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28985    { (exit 1); exit 1; }; }
28986            fi
28987            if test -f $SQL_LIBDIR/libsqlite3.so; then
28988               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28989            else
28990               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28991            fi
28992         ;;
28993         *)
28994            { echo "$as_me:$LINENO: result: no" >&5
28995 echo "${ECHO_T}no" >&6; }
28996            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28997 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28998    { (exit 1); exit 1; }; }
28999         ;;
29000      esac
29001
29002      { echo "$as_me:$LINENO: result: yes" >&5
29003 echo "${ECHO_T}yes" >&6; }
29004      DB_PROG=$db_prog
29005   else
29006      { echo "$as_me:$LINENO: result: no" >&5
29007 echo "${ECHO_T}no" >&6; }
29008   fi
29009
29010 else
29011
29012   { echo "$as_me:$LINENO: result: no" >&5
29013 echo "${ECHO_T}no" >&6; }
29014
29015 fi
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026 support_batch_insert=no
29027 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29028 pkg=$?
29029 if test $pkg = 0; then
29030    support_batch_insert=yes
29031    # Check whether --enable-batch-insert was given.
29032 if test "${enable_batch_insert+set}" = set; then
29033   enableval=$enable_batch_insert;
29034           if test x$enableval = xno; then
29035              support_batch_insert=no
29036           else
29037              support_batch_insert=yes
29038           fi
29039
29040
29041 fi
29042
29043 fi
29044
29045 if test x$DB_TYPE = xpostgresql; then
29046    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29047 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29048 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051   ac_check_lib_save_LIBS=$LIBS
29052 LIBS="-lpq  $LIBS"
29053 cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h.  */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h.  */
29059
29060 /* Override any GCC internal prototype to avoid an error.
29061    Use char because int might match the return type of a GCC
29062    builtin and then its argument prototype would still apply.  */
29063 #ifdef __cplusplus
29064 extern "C"
29065 #endif
29066 char PQisthreadsafe ();
29067 int
29068 main ()
29069 {
29070 return PQisthreadsafe ();
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 rm -f conftest.$ac_objext conftest$ac_exeext
29076 if { (ac_try="$ac_link"
29077 case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_link") 2>conftest.er1
29083   ac_status=$?
29084   grep -v '^ *+' conftest.er1 >conftest.err
29085   rm -f conftest.er1
29086   cat conftest.err >&5
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); } && {
29089          test -z "$ac_c_werror_flag" ||
29090          test ! -s conftest.err
29091        } && test -s conftest$ac_exeext &&
29092        $as_test_x conftest$ac_exeext; then
29093   ac_cv_lib_pq_PQisthreadsafe=yes
29094 else
29095   echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098         ac_cv_lib_pq_PQisthreadsafe=no
29099 fi
29100
29101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29102       conftest$ac_exeext conftest.$ac_ext
29103 LIBS=$ac_check_lib_save_LIBS
29104 fi
29105 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29106 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29107 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29108
29109 cat >>confdefs.h <<\_ACEOF
29110 #define HAVE_PQISTHREADSAFE 1
29111 _ACEOF
29112
29113 fi
29114
29115    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29116 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29117 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29118   echo $ECHO_N "(cached) $ECHO_C" >&6
29119 else
29120   ac_check_lib_save_LIBS=$LIBS
29121 LIBS="-lpq  $LIBS"
29122 cat >conftest.$ac_ext <<_ACEOF
29123 /* confdefs.h.  */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h.  */
29128
29129 /* Override any GCC internal prototype to avoid an error.
29130    Use char because int might match the return type of a GCC
29131    builtin and then its argument prototype would still apply.  */
29132 #ifdef __cplusplus
29133 extern "C"
29134 #endif
29135 char PQputCopyData ();
29136 int
29137 main ()
29138 {
29139 return PQputCopyData ();
29140   ;
29141   return 0;
29142 }
29143 _ACEOF
29144 rm -f conftest.$ac_objext conftest$ac_exeext
29145 if { (ac_try="$ac_link"
29146 case "(($ac_try" in
29147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148   *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151   (eval "$ac_link") 2>conftest.er1
29152   ac_status=$?
29153   grep -v '^ *+' conftest.er1 >conftest.err
29154   rm -f conftest.er1
29155   cat conftest.err >&5
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } && {
29158          test -z "$ac_c_werror_flag" ||
29159          test ! -s conftest.err
29160        } && test -s conftest$ac_exeext &&
29161        $as_test_x conftest$ac_exeext; then
29162   ac_cv_lib_pq_PQputCopyData=yes
29163 else
29164   echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167         ac_cv_lib_pq_PQputCopyData=no
29168 fi
29169
29170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29171       conftest$ac_exeext conftest.$ac_ext
29172 LIBS=$ac_check_lib_save_LIBS
29173 fi
29174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29175 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29176 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29177
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_PQ_COPY 1
29180 _ACEOF
29181
29182 fi
29183
29184    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29185     then
29186         support_batch_insert=no
29187    fi
29188 fi
29189
29190 if test x$DB_TYPE = xdbi; then
29191    DB_TYPE=$DB_PROG
29192    db_type=$DB_PROG
29193    pkg=1
29194       if test $DB_PROG = postgresql; then
29195       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29196 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29197 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   ac_check_lib_save_LIBS=$LIBS
29201 LIBS="-lpq  $LIBS"
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208
29209 /* Override any GCC internal prototype to avoid an error.
29210    Use char because int might match the return type of a GCC
29211    builtin and then its argument prototype would still apply.  */
29212 #ifdef __cplusplus
29213 extern "C"
29214 #endif
29215 char PQisthreadsafe ();
29216 int
29217 main ()
29218 {
29219 return PQisthreadsafe ();
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_link") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } && {
29238          test -z "$ac_c_werror_flag" ||
29239          test ! -s conftest.err
29240        } && test -s conftest$ac_exeext &&
29241        $as_test_x conftest$ac_exeext; then
29242   ac_cv_lib_pq_PQisthreadsafe=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247         ac_cv_lib_pq_PQisthreadsafe=no
29248 fi
29249
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251       conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29253 fi
29254 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29255 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29256 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29257   cat >>confdefs.h <<\_ACEOF
29258 #define HAVE_PQISTHREADSAFE 1
29259 _ACEOF
29260
29261 fi
29262
29263       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29264 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29265 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29266   echo $ECHO_N "(cached) $ECHO_C" >&6
29267 else
29268   ac_check_lib_save_LIBS=$LIBS
29269 LIBS="-lpq  $LIBS"
29270 cat >conftest.$ac_ext <<_ACEOF
29271 /* confdefs.h.  */
29272 _ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h.  */
29276
29277 /* Override any GCC internal prototype to avoid an error.
29278    Use char because int might match the return type of a GCC
29279    builtin and then its argument prototype would still apply.  */
29280 #ifdef __cplusplus
29281 extern "C"
29282 #endif
29283 char PQputCopyData ();
29284 int
29285 main ()
29286 {
29287 return PQputCopyData ();
29288   ;
29289   return 0;
29290 }
29291 _ACEOF
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296   *) ac_try_echo=$ac_try;;
29297 esac
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299   (eval "$ac_link") 2>conftest.er1
29300   ac_status=$?
29301   grep -v '^ *+' conftest.er1 >conftest.err
29302   rm -f conftest.er1
29303   cat conftest.err >&5
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); } && {
29306          test -z "$ac_c_werror_flag" ||
29307          test ! -s conftest.err
29308        } && test -s conftest$ac_exeext &&
29309        $as_test_x conftest$ac_exeext; then
29310   ac_cv_lib_pq_PQputCopyData=yes
29311 else
29312   echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29314
29315         ac_cv_lib_pq_PQputCopyData=no
29316 fi
29317
29318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29319       conftest$ac_exeext conftest.$ac_ext
29320 LIBS=$ac_check_lib_save_LIBS
29321 fi
29322 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29323 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29324 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29325   cat >>confdefs.h <<\_ACEOF
29326 #define HAVE_PQ_COPY 1
29327 _ACEOF
29328
29329 fi
29330
29331       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29332       pkg=$?
29333    fi
29334
29335    if test $DB_PROG = mysql; then
29336       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29337       pkg=$?
29338    fi
29339
29340    if test $DB_PROG = sqlite3; then
29341       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29342       pkg=$?
29343       { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29344 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29345 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29346   echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348   ac_check_lib_save_LIBS=$LIBS
29349 LIBS="-lsqlite3  $LIBS"
29350 cat >conftest.$ac_ext <<_ACEOF
29351 /* confdefs.h.  */
29352 _ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h.  */
29356
29357 /* Override any GCC internal prototype to avoid an error.
29358    Use char because int might match the return type of a GCC
29359    builtin and then its argument prototype would still apply.  */
29360 #ifdef __cplusplus
29361 extern "C"
29362 #endif
29363 char sqlite3_threadsafe ();
29364 int
29365 main ()
29366 {
29367 return sqlite3_threadsafe ();
29368   ;
29369   return 0;
29370 }
29371 _ACEOF
29372 rm -f conftest.$ac_objext conftest$ac_exeext
29373 if { (ac_try="$ac_link"
29374 case "(($ac_try" in
29375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376   *) ac_try_echo=$ac_try;;
29377 esac
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379   (eval "$ac_link") 2>conftest.er1
29380   ac_status=$?
29381   grep -v '^ *+' conftest.er1 >conftest.err
29382   rm -f conftest.er1
29383   cat conftest.err >&5
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); } && {
29386          test -z "$ac_c_werror_flag" ||
29387          test ! -s conftest.err
29388        } && test -s conftest$ac_exeext &&
29389        $as_test_x conftest$ac_exeext; then
29390   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29391 else
29392   echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29394
29395         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29396 fi
29397
29398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29399       conftest$ac_exeext conftest.$ac_ext
29400 LIBS=$ac_check_lib_save_LIBS
29401 fi
29402 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29403 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29404 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29405
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_SQLITE3_THREADSAFE 1
29408 _ACEOF
29409
29410 fi
29411
29412    fi
29413
29414    if test $pkg = 0; then
29415       # Check whether --enable-batch-insert was given.
29416 if test "${enable_batch_insert+set}" = set; then
29417   enableval=$enable_batch_insert;
29418              if test x$enableval = xno; then
29419                 support_batch_insert=no
29420              else
29421                 support_batch_insert=yes
29422              fi
29423
29424
29425 fi
29426
29427    fi
29428 else
29429       uncomment_dbi="#"
29430 fi
29431
29432
29433
29434 if test $support_batch_insert = yes ; then
29435
29436 cat >>confdefs.h <<\_ACEOF
29437 #define HAVE_BATCH_FILE_INSERT 1
29438 _ACEOF
29439
29440 fi
29441
29442 cat >>confdefs.h <<\_ACEOF
29443 #define PROTOTYPES 1
29444 _ACEOF
29445
29446
29447 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29448    if test -z "$CCOPTS"; then
29449       CCOPTS='-g -O2 -Wall'
29450    fi
29451    CFLAGS="$CCOPTS"
29452 fi
29453
29454
29455
29456 largefile_support="no"
29457
29458    # Check whether --enable-largefile was given.
29459 if test "${enable_largefile+set}" = set; then
29460   enableval=$enable_largefile;
29461 fi
29462
29463    if test "$enable_largefile" != no; then
29464      if test -n "$ac_tool_prefix"; then
29465   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29466 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29469 if test "${ac_cv_prog_GETCONF+set}" = set; then
29470   echo $ECHO_N "(cached) $ECHO_C" >&6
29471 else
29472   if test -n "$GETCONF"; then
29473   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29474 else
29475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29476 for as_dir in $PATH
29477 do
29478   IFS=$as_save_IFS
29479   test -z "$as_dir" && as_dir=.
29480   for ac_exec_ext in '' $ac_executable_extensions; do
29481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29482     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29484     break 2
29485   fi
29486 done
29487 done
29488 IFS=$as_save_IFS
29489
29490 fi
29491 fi
29492 GETCONF=$ac_cv_prog_GETCONF
29493 if test -n "$GETCONF"; then
29494   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29495 echo "${ECHO_T}$GETCONF" >&6; }
29496 else
29497   { echo "$as_me:$LINENO: result: no" >&5
29498 echo "${ECHO_T}no" >&6; }
29499 fi
29500
29501
29502 fi
29503 if test -z "$ac_cv_prog_GETCONF"; then
29504   ac_ct_GETCONF=$GETCONF
29505   # Extract the first word of "getconf", so it can be a program name with args.
29506 set dummy getconf; ac_word=$2
29507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29509 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29510   echo $ECHO_N "(cached) $ECHO_C" >&6
29511 else
29512   if test -n "$ac_ct_GETCONF"; then
29513   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29514 else
29515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29516 for as_dir in $PATH
29517 do
29518   IFS=$as_save_IFS
29519   test -z "$as_dir" && as_dir=.
29520   for ac_exec_ext in '' $ac_executable_extensions; do
29521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29522     ac_cv_prog_ac_ct_GETCONF="getconf"
29523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29524     break 2
29525   fi
29526 done
29527 done
29528 IFS=$as_save_IFS
29529
29530 fi
29531 fi
29532 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29533 if test -n "$ac_ct_GETCONF"; then
29534   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29535 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29536 else
29537   { echo "$as_me:$LINENO: result: no" >&5
29538 echo "${ECHO_T}no" >&6; }
29539 fi
29540
29541   if test "x$ac_ct_GETCONF" = x; then
29542     GETCONF=""
29543   else
29544     case $cross_compiling:$ac_tool_warned in
29545 yes:)
29546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29547 whose name does not start with the host triplet.  If you think this
29548 configuration is useful to you, please write to autoconf@gnu.org." >&5
29549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29550 whose name does not start with the host triplet.  If you think this
29551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29552 ac_tool_warned=yes ;;
29553 esac
29554     GETCONF=$ac_ct_GETCONF
29555   fi
29556 else
29557   GETCONF="$ac_cv_prog_GETCONF"
29558 fi
29559
29560      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29561 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29562 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29563   echo $ECHO_N "(cached) $ECHO_C" >&6
29564 else
29565   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29566         ac_cv_sys_largefile_CFLAGS=no
29567         case "$host_os" in
29568            # IRIX 6.2 and later require cc -n32.
29569            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29570              if test "$GCC" != yes; then
29571                ac_cv_sys_largefile_CFLAGS=-n32
29572              fi
29573              ac_save_CC="$CC"
29574              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29575              cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581
29582 int
29583 main ()
29584 {
29585
29586   ;
29587   return 0;
29588 }
29589 _ACEOF
29590 rm -f conftest.$ac_objext conftest$ac_exeext
29591 if { (ac_try="$ac_link"
29592 case "(($ac_try" in
29593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594   *) ac_try_echo=$ac_try;;
29595 esac
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597   (eval "$ac_link") 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } && {
29604          test -z "$ac_c_werror_flag" ||
29605          test ! -s conftest.err
29606        } && test -s conftest$ac_exeext &&
29607        $as_test_x conftest$ac_exeext; then
29608   :
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613         ac_cv_sys_largefile_CFLAGS=no
29614 fi
29615
29616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29617       conftest$ac_exeext conftest.$ac_ext
29618              CC="$ac_save_CC"
29619            esac
29620       }
29621 fi
29622 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29623 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29624      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29625 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29626 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29627   echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29630         ac_cv_sys_largefile_LDFLAGS=no
29631
29632       }
29633 fi
29634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29635 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29636      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29637 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29638 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29639   echo $ECHO_N "(cached) $ECHO_C" >&6
29640 else
29641   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29642         ac_cv_sys_largefile_LIBS=no
29643
29644       }
29645 fi
29646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29647 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29648
29649      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29650        case "$ac_flag" in
29651        no) ;;
29652        -D_FILE_OFFSET_BITS=*) ;;
29653        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29654        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29655        -D?* | -I?*)
29656          case "$ac_flag" in
29657    no) ;;
29658    ?*)
29659      case "$CPPFLAGS" in
29660      '') CPPFLAGS="$ac_flag" ;;
29661      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29662      esac ;;
29663    esac ;;
29664        *)
29665          case "$ac_flag" in
29666    no) ;;
29667    ?*)
29668      case "$CFLAGS" in
29669      '') CFLAGS="$ac_flag" ;;
29670      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29671      esac ;;
29672    esac ;;
29673        esac
29674      done
29675      case "$ac_cv_sys_largefile_LDFLAGS" in
29676    no) ;;
29677    ?*)
29678      case "$LDFLAGS" in
29679      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29680      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29681      esac ;;
29682    esac
29683      case "$ac_cv_sys_largefile_LIBS" in
29684    no) ;;
29685    ?*)
29686      case "$LIBS" in
29687      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29688      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29689      esac ;;
29690    esac
29691      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29692 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29694   echo $ECHO_N "(cached) $ECHO_C" >&6
29695 else
29696   ac_cv_sys_file_offset_bits=no
29697       ac_cv_sys_file_offset_bits=64
29698       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29699         case "$ac_flag" in
29700         -D_FILE_OFFSET_BITS)
29701           ac_cv_sys_file_offset_bits=1 ;;
29702         -D_FILE_OFFSET_BITS=*)
29703           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29704         esac
29705       done
29706
29707 fi
29708 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29709 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29710    if test "$ac_cv_sys_file_offset_bits" != no; then
29711
29712 cat >>confdefs.h <<_ACEOF
29713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29714 _ACEOF
29715
29716    fi
29717      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29718 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29719 if test "${ac_cv_sys_largefile_source+set}" = set; then
29720   echo $ECHO_N "(cached) $ECHO_C" >&6
29721 else
29722   ac_cv_sys_largefile_source=no
29723       ac_cv_sys_largefile_source=1
29724       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29725         case "$ac_flag" in
29726         -D_LARGEFILE_SOURCE)
29727           ac_cv_sys_largefile_source=1 ;;
29728         -D_LARGEFILE_SOURCE=*)
29729           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29730         esac
29731       done
29732
29733 fi
29734 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29735 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29736    if test "$ac_cv_sys_largefile_source" != no; then
29737
29738 cat >>confdefs.h <<_ACEOF
29739 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29740 _ACEOF
29741
29742    fi
29743      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29744 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29745 if test "${ac_cv_sys_large_files+set}" = set; then
29746   echo $ECHO_N "(cached) $ECHO_C" >&6
29747 else
29748   ac_cv_sys_large_files=no
29749       ac_cv_sys_large_files=1
29750       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29751         case "$ac_flag" in
29752         -D_LARGE_FILES)
29753           ac_cv_sys_large_files=1 ;;
29754         -D_LARGE_FILES=*)
29755           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29756         esac
29757       done
29758
29759 fi
29760 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29761 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29762    if test "$ac_cv_sys_large_files" != no; then
29763
29764 cat >>confdefs.h <<_ACEOF
29765 #define _LARGE_FILES $ac_cv_sys_large_files
29766 _ACEOF
29767
29768    fi
29769    fi
29770
29771
29772 { echo "$as_me:$LINENO: checking for X" >&5
29773 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29774
29775
29776 # Check whether --with-x was given.
29777 if test "${with_x+set}" = set; then
29778   withval=$with_x;
29779 fi
29780
29781 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29782 if test "x$with_x" = xno; then
29783   # The user explicitly disabled X.
29784   have_x=disabled
29785 else
29786   case $x_includes,$x_libraries in #(
29787     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29788 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29789    { (exit 1); exit 1; }; };; #(
29790     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29791   echo $ECHO_N "(cached) $ECHO_C" >&6
29792 else
29793   # One or both of the vars are not set, and there is no cached value.
29794 ac_x_includes=no ac_x_libraries=no
29795 rm -f -r conftest.dir
29796 if mkdir conftest.dir; then
29797   cd conftest.dir
29798   cat >Imakefile <<'_ACEOF'
29799 incroot:
29800         @echo incroot='${INCROOT}'
29801 usrlibdir:
29802         @echo usrlibdir='${USRLIBDIR}'
29803 libdir:
29804         @echo libdir='${LIBDIR}'
29805 _ACEOF
29806   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29807     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29808     for ac_var in incroot usrlibdir libdir; do
29809       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29810     done
29811     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29812     for ac_extension in a so sl; do
29813       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29814          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29815         ac_im_usrlibdir=$ac_im_libdir; break
29816       fi
29817     done
29818     # Screen out bogus values from the imake configuration.  They are
29819     # bogus both because they are the default anyway, and because
29820     # using them would break gcc on systems where it needs fixed includes.
29821     case $ac_im_incroot in
29822         /usr/include) ac_x_includes= ;;
29823         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29824     esac
29825     case $ac_im_usrlibdir in
29826         /usr/lib | /lib) ;;
29827         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29828     esac
29829   fi
29830   cd ..
29831   rm -f -r conftest.dir
29832 fi
29833
29834 # Standard set of common directories for X headers.
29835 # Check X11 before X11Rn because it is often a symlink to the current release.
29836 ac_x_header_dirs='
29837 /usr/X11/include
29838 /usr/X11R6/include
29839 /usr/X11R5/include
29840 /usr/X11R4/include
29841
29842 /usr/include/X11
29843 /usr/include/X11R6
29844 /usr/include/X11R5
29845 /usr/include/X11R4
29846
29847 /usr/local/X11/include
29848 /usr/local/X11R6/include
29849 /usr/local/X11R5/include
29850 /usr/local/X11R4/include
29851
29852 /usr/local/include/X11
29853 /usr/local/include/X11R6
29854 /usr/local/include/X11R5
29855 /usr/local/include/X11R4
29856
29857 /usr/X386/include
29858 /usr/x386/include
29859 /usr/XFree86/include/X11
29860
29861 /usr/include
29862 /usr/local/include
29863 /usr/unsupported/include
29864 /usr/athena/include
29865 /usr/local/x11r5/include
29866 /usr/lpp/Xamples/include
29867
29868 /usr/openwin/include
29869 /usr/openwin/share/include'
29870
29871 if test "$ac_x_includes" = no; then
29872   # Guess where to find include files, by looking for Xlib.h.
29873   # First, try using that file with no special directory specified.
29874   cat >conftest.$ac_ext <<_ACEOF
29875 /* confdefs.h.  */
29876 _ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h.  */
29880 #include <X11/Xlib.h>
29881 _ACEOF
29882 if { (ac_try="$ac_cpp conftest.$ac_ext"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } >/dev/null && {
29895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29896          test ! -s conftest.err
29897        }; then
29898   # We can compile using X headers with no special include directory.
29899 ac_x_includes=
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904   for ac_dir in $ac_x_header_dirs; do
29905   if test -r "$ac_dir/X11/Xlib.h"; then
29906     ac_x_includes=$ac_dir
29907     break
29908   fi
29909 done
29910 fi
29911
29912 rm -f conftest.err conftest.$ac_ext
29913 fi # $ac_x_includes = no
29914
29915 if test "$ac_x_libraries" = no; then
29916   # Check for the libraries.
29917   # See if we find them without any special options.
29918   # Don't add to $LIBS permanently.
29919   ac_save_LIBS=$LIBS
29920   LIBS="-lX11 $LIBS"
29921   cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927 #include <X11/Xlib.h>
29928 int
29929 main ()
29930 {
29931 XrmInitialize ()
29932   ;
29933   return 0;
29934 }
29935 _ACEOF
29936 rm -f conftest.$ac_objext conftest$ac_exeext
29937 if { (ac_try="$ac_link"
29938 case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_link") 2>conftest.er1
29944   ac_status=$?
29945   grep -v '^ *+' conftest.er1 >conftest.err
29946   rm -f conftest.er1
29947   cat conftest.err >&5
29948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949   (exit $ac_status); } && {
29950          test -z "$ac_c_werror_flag" ||
29951          test ! -s conftest.err
29952        } && test -s conftest$ac_exeext &&
29953        $as_test_x conftest$ac_exeext; then
29954   LIBS=$ac_save_LIBS
29955 # We can link X programs with no special library path.
29956 ac_x_libraries=
29957 else
29958   echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29960
29961         LIBS=$ac_save_LIBS
29962 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29963 do
29964   # Don't even attempt the hair of trying to link an X program!
29965   for ac_extension in a so sl; do
29966     if test -r "$ac_dir/libX11.$ac_extension"; then
29967       ac_x_libraries=$ac_dir
29968       break 2
29969     fi
29970   done
29971 done
29972 fi
29973
29974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29975       conftest$ac_exeext conftest.$ac_ext
29976 fi # $ac_x_libraries = no
29977
29978 case $ac_x_includes,$ac_x_libraries in #(
29979   no,* | *,no | *\'*)
29980     # Didn't find X, or a directory has "'" in its name.
29981     ac_cv_have_x="have_x=no";; #(
29982   *)
29983     # Record where we found X for the cache.
29984     ac_cv_have_x="have_x=yes\
29985         ac_x_includes='$ac_x_includes'\
29986         ac_x_libraries='$ac_x_libraries'"
29987 esac
29988 fi
29989 ;; #(
29990     *) have_x=yes;;
29991   esac
29992   eval "$ac_cv_have_x"
29993 fi # $with_x != no
29994
29995 if test "$have_x" != yes; then
29996   { echo "$as_me:$LINENO: result: $have_x" >&5
29997 echo "${ECHO_T}$have_x" >&6; }
29998   no_x=yes
29999 else
30000   # If each of the values was on the command line, it overrides each guess.
30001   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30002   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30003   # Update the cache value to reflect the command line values.
30004   ac_cv_have_x="have_x=yes\
30005         ac_x_includes='$x_includes'\
30006         ac_x_libraries='$x_libraries'"
30007   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30008 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30009 fi
30010
30011 if test "$no_x" = yes; then
30012   # Not all programs may use this symbol, but it does not hurt to define it.
30013
30014 cat >>confdefs.h <<\_ACEOF
30015 #define X_DISPLAY_MISSING 1
30016 _ACEOF
30017
30018   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30019 else
30020   if test -n "$x_includes"; then
30021     X_CFLAGS="$X_CFLAGS -I$x_includes"
30022   fi
30023
30024   # It would also be nice to do this for all -L options, not just this one.
30025   if test -n "$x_libraries"; then
30026     X_LIBS="$X_LIBS -L$x_libraries"
30027     # For Solaris; some versions of Sun CC require a space after -R and
30028     # others require no space.  Words are not sufficient . . . .
30029     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30030 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30031     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30032     ac_xsave_c_werror_flag=$ac_c_werror_flag
30033     ac_c_werror_flag=yes
30034     cat >conftest.$ac_ext <<_ACEOF
30035 /* confdefs.h.  */
30036 _ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h.  */
30040
30041 int
30042 main ()
30043 {
30044
30045   ;
30046   return 0;
30047 }
30048 _ACEOF
30049 rm -f conftest.$ac_objext conftest$ac_exeext
30050 if { (ac_try="$ac_link"
30051 case "(($ac_try" in
30052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053   *) ac_try_echo=$ac_try;;
30054 esac
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056   (eval "$ac_link") 2>conftest.er1
30057   ac_status=$?
30058   grep -v '^ *+' conftest.er1 >conftest.err
30059   rm -f conftest.er1
30060   cat conftest.err >&5
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); } && {
30063          test -z "$ac_c_werror_flag" ||
30064          test ! -s conftest.err
30065        } && test -s conftest$ac_exeext &&
30066        $as_test_x conftest$ac_exeext; then
30067   { echo "$as_me:$LINENO: result: no" >&5
30068 echo "${ECHO_T}no" >&6; }
30069        X_LIBS="$X_LIBS -R$x_libraries"
30070 else
30071   echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30073
30074         LIBS="$ac_xsave_LIBS -R $x_libraries"
30075        cat >conftest.$ac_ext <<_ACEOF
30076 /* confdefs.h.  */
30077 _ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h.  */
30081
30082 int
30083 main ()
30084 {
30085
30086   ;
30087   return 0;
30088 }
30089 _ACEOF
30090 rm -f conftest.$ac_objext conftest$ac_exeext
30091 if { (ac_try="$ac_link"
30092 case "(($ac_try" in
30093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094   *) ac_try_echo=$ac_try;;
30095 esac
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097   (eval "$ac_link") 2>conftest.er1
30098   ac_status=$?
30099   grep -v '^ *+' conftest.er1 >conftest.err
30100   rm -f conftest.er1
30101   cat conftest.err >&5
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); } && {
30104          test -z "$ac_c_werror_flag" ||
30105          test ! -s conftest.err
30106        } && test -s conftest$ac_exeext &&
30107        $as_test_x conftest$ac_exeext; then
30108   { echo "$as_me:$LINENO: result: yes" >&5
30109 echo "${ECHO_T}yes" >&6; }
30110           X_LIBS="$X_LIBS -R $x_libraries"
30111 else
30112   echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30114
30115         { echo "$as_me:$LINENO: result: neither works" >&5
30116 echo "${ECHO_T}neither works" >&6; }
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30120       conftest$ac_exeext conftest.$ac_ext
30121 fi
30122
30123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30124       conftest$ac_exeext conftest.$ac_ext
30125     ac_c_werror_flag=$ac_xsave_c_werror_flag
30126     LIBS=$ac_xsave_LIBS
30127   fi
30128
30129   # Check for system-dependent libraries X programs must link with.
30130   # Do this before checking for the system-independent R6 libraries
30131   # (-lICE), since we may need -lsocket or whatever for X linking.
30132
30133   if test "$ISC" = yes; then
30134     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30135   else
30136     # Martyn Johnson says this is needed for Ultrix, if the X
30137     # libraries were built with DECnet support.  And Karl Berry says
30138     # the Alpha needs dnet_stub (dnet does not exist).
30139     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30140     cat >conftest.$ac_ext <<_ACEOF
30141 /* confdefs.h.  */
30142 _ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h.  */
30146
30147 /* Override any GCC internal prototype to avoid an error.
30148    Use char because int might match the return type of a GCC
30149    builtin and then its argument prototype would still apply.  */
30150 #ifdef __cplusplus
30151 extern "C"
30152 #endif
30153 char XOpenDisplay ();
30154 int
30155 main ()
30156 {
30157 return XOpenDisplay ();
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (ac_try="$ac_link"
30164 case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_link") 2>conftest.er1
30170   ac_status=$?
30171   grep -v '^ *+' conftest.er1 >conftest.err
30172   rm -f conftest.er1
30173   cat conftest.err >&5
30174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); } && {
30176          test -z "$ac_c_werror_flag" ||
30177          test ! -s conftest.err
30178        } && test -s conftest$ac_exeext &&
30179        $as_test_x conftest$ac_exeext; then
30180   :
30181 else
30182   echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30186 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30187 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30188   echo $ECHO_N "(cached) $ECHO_C" >&6
30189 else
30190   ac_check_lib_save_LIBS=$LIBS
30191 LIBS="-ldnet  $LIBS"
30192 cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h.  */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h.  */
30198
30199 /* Override any GCC internal prototype to avoid an error.
30200    Use char because int might match the return type of a GCC
30201    builtin and then its argument prototype would still apply.  */
30202 #ifdef __cplusplus
30203 extern "C"
30204 #endif
30205 char dnet_ntoa ();
30206 int
30207 main ()
30208 {
30209 return dnet_ntoa ();
30210   ;
30211   return 0;
30212 }
30213 _ACEOF
30214 rm -f conftest.$ac_objext conftest$ac_exeext
30215 if { (ac_try="$ac_link"
30216 case "(($ac_try" in
30217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218   *) ac_try_echo=$ac_try;;
30219 esac
30220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30221   (eval "$ac_link") 2>conftest.er1
30222   ac_status=$?
30223   grep -v '^ *+' conftest.er1 >conftest.err
30224   rm -f conftest.er1
30225   cat conftest.err >&5
30226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227   (exit $ac_status); } && {
30228          test -z "$ac_c_werror_flag" ||
30229          test ! -s conftest.err
30230        } && test -s conftest$ac_exeext &&
30231        $as_test_x conftest$ac_exeext; then
30232   ac_cv_lib_dnet_dnet_ntoa=yes
30233 else
30234   echo "$as_me: failed program was:" >&5
30235 sed 's/^/| /' conftest.$ac_ext >&5
30236
30237         ac_cv_lib_dnet_dnet_ntoa=no
30238 fi
30239
30240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30241       conftest$ac_exeext conftest.$ac_ext
30242 LIBS=$ac_check_lib_save_LIBS
30243 fi
30244 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30245 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30246 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30247   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30248 fi
30249
30250     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30251       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30252 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-ldnet_stub  $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 /* Override any GCC internal prototype to avoid an error.
30266    Use char because int might match the return type of a GCC
30267    builtin and then its argument prototype would still apply.  */
30268 #ifdef __cplusplus
30269 extern "C"
30270 #endif
30271 char dnet_ntoa ();
30272 int
30273 main ()
30274 {
30275 return dnet_ntoa ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287   (eval "$ac_link") 2>conftest.er1
30288   ac_status=$?
30289   grep -v '^ *+' conftest.er1 >conftest.err
30290   rm -f conftest.er1
30291   cat conftest.err >&5
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); } && {
30294          test -z "$ac_c_werror_flag" ||
30295          test ! -s conftest.err
30296        } && test -s conftest$ac_exeext &&
30297        $as_test_x conftest$ac_exeext; then
30298   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_cv_lib_dnet_stub_dnet_ntoa=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307       conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30309 fi
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30311 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30312 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30313   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30314 fi
30315
30316     fi
30317 fi
30318
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320       conftest$ac_exeext conftest.$ac_ext
30321     LIBS="$ac_xsave_LIBS"
30322
30323     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30324     # to get the SysV transport functions.
30325     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30326     # needs -lnsl.
30327     # The nsl library prevents programs from opening the X display
30328     # on Irix 5.2, according to T.E. Dickey.
30329     # The functions gethostbyname, getservbyname, and inet_addr are
30330     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30331     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30332 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30333 if test "${ac_cv_func_gethostbyname+set}" = set; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30335 else
30336   cat >conftest.$ac_ext <<_ACEOF
30337 /* confdefs.h.  */
30338 _ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h.  */
30342 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30344 #define gethostbyname innocuous_gethostbyname
30345
30346 /* System header to define __stub macros and hopefully few prototypes,
30347     which can conflict with char gethostbyname (); below.
30348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30349     <limits.h> exists even on freestanding compilers.  */
30350
30351 #ifdef __STDC__
30352 # include <limits.h>
30353 #else
30354 # include <assert.h>
30355 #endif
30356
30357 #undef gethostbyname
30358
30359 /* Override any GCC internal prototype to avoid an error.
30360    Use char because int might match the return type of a GCC
30361    builtin and then its argument prototype would still apply.  */
30362 #ifdef __cplusplus
30363 extern "C"
30364 #endif
30365 char gethostbyname ();
30366 /* The GNU C library defines this for functions which it implements
30367     to always fail with ENOSYS.  Some functions are actually named
30368     something starting with __ and the normal name is an alias.  */
30369 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30370 choke me
30371 #endif
30372
30373 int
30374 main ()
30375 {
30376 return gethostbyname ();
30377   ;
30378   return 0;
30379 }
30380 _ACEOF
30381 rm -f conftest.$ac_objext conftest$ac_exeext
30382 if { (ac_try="$ac_link"
30383 case "(($ac_try" in
30384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385   *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388   (eval "$ac_link") 2>conftest.er1
30389   ac_status=$?
30390   grep -v '^ *+' conftest.er1 >conftest.err
30391   rm -f conftest.er1
30392   cat conftest.err >&5
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); } && {
30395          test -z "$ac_c_werror_flag" ||
30396          test ! -s conftest.err
30397        } && test -s conftest$ac_exeext &&
30398        $as_test_x conftest$ac_exeext; then
30399   ac_cv_func_gethostbyname=yes
30400 else
30401   echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30403
30404         ac_cv_func_gethostbyname=no
30405 fi
30406
30407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30408       conftest$ac_exeext conftest.$ac_ext
30409 fi
30410 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30411 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30412
30413     if test $ac_cv_func_gethostbyname = no; then
30414       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30415 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30416 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30417   echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419   ac_check_lib_save_LIBS=$LIBS
30420 LIBS="-lnsl  $LIBS"
30421 cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h.  */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h.  */
30427
30428 /* Override any GCC internal prototype to avoid an error.
30429    Use char because int might match the return type of a GCC
30430    builtin and then its argument prototype would still apply.  */
30431 #ifdef __cplusplus
30432 extern "C"
30433 #endif
30434 char gethostbyname ();
30435 int
30436 main ()
30437 {
30438 return gethostbyname ();
30439   ;
30440   return 0;
30441 }
30442 _ACEOF
30443 rm -f conftest.$ac_objext conftest$ac_exeext
30444 if { (ac_try="$ac_link"
30445 case "(($ac_try" in
30446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447   *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450   (eval "$ac_link") 2>conftest.er1
30451   ac_status=$?
30452   grep -v '^ *+' conftest.er1 >conftest.err
30453   rm -f conftest.er1
30454   cat conftest.err >&5
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } && {
30457          test -z "$ac_c_werror_flag" ||
30458          test ! -s conftest.err
30459        } && test -s conftest$ac_exeext &&
30460        $as_test_x conftest$ac_exeext; then
30461   ac_cv_lib_nsl_gethostbyname=yes
30462 else
30463   echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30465
30466         ac_cv_lib_nsl_gethostbyname=no
30467 fi
30468
30469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30470       conftest$ac_exeext conftest.$ac_ext
30471 LIBS=$ac_check_lib_save_LIBS
30472 fi
30473 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30475 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30476   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30477 fi
30478
30479       if test $ac_cv_lib_nsl_gethostbyname = no; then
30480         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30481 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30482 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30483   echo $ECHO_N "(cached) $ECHO_C" >&6
30484 else
30485   ac_check_lib_save_LIBS=$LIBS
30486 LIBS="-lbsd  $LIBS"
30487 cat >conftest.$ac_ext <<_ACEOF
30488 /* confdefs.h.  */
30489 _ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h.  */
30493
30494 /* Override any GCC internal prototype to avoid an error.
30495    Use char because int might match the return type of a GCC
30496    builtin and then its argument prototype would still apply.  */
30497 #ifdef __cplusplus
30498 extern "C"
30499 #endif
30500 char gethostbyname ();
30501 int
30502 main ()
30503 {
30504 return gethostbyname ();
30505   ;
30506   return 0;
30507 }
30508 _ACEOF
30509 rm -f conftest.$ac_objext conftest$ac_exeext
30510 if { (ac_try="$ac_link"
30511 case "(($ac_try" in
30512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513   *) ac_try_echo=$ac_try;;
30514 esac
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516   (eval "$ac_link") 2>conftest.er1
30517   ac_status=$?
30518   grep -v '^ *+' conftest.er1 >conftest.err
30519   rm -f conftest.er1
30520   cat conftest.err >&5
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); } && {
30523          test -z "$ac_c_werror_flag" ||
30524          test ! -s conftest.err
30525        } && test -s conftest$ac_exeext &&
30526        $as_test_x conftest$ac_exeext; then
30527   ac_cv_lib_bsd_gethostbyname=yes
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532         ac_cv_lib_bsd_gethostbyname=no
30533 fi
30534
30535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30536       conftest$ac_exeext conftest.$ac_ext
30537 LIBS=$ac_check_lib_save_LIBS
30538 fi
30539 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30540 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30541 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30542   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30543 fi
30544
30545       fi
30546     fi
30547
30548     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30549     # socket/setsockopt and other routines are undefined under SCO ODT
30550     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30551     # on later versions), says Simon Leinen: it contains gethostby*
30552     # variants that don't use the name server (or something).  -lsocket
30553     # must be given before -lnsl if both are needed.  We assume that
30554     # if connect needs -lnsl, so does gethostbyname.
30555     { echo "$as_me:$LINENO: checking for connect" >&5
30556 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30557 if test "${ac_cv_func_connect+set}" = set; then
30558   echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560   cat >conftest.$ac_ext <<_ACEOF
30561 /* confdefs.h.  */
30562 _ACEOF
30563 cat confdefs.h >>conftest.$ac_ext
30564 cat >>conftest.$ac_ext <<_ACEOF
30565 /* end confdefs.h.  */
30566 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30568 #define connect innocuous_connect
30569
30570 /* System header to define __stub macros and hopefully few prototypes,
30571     which can conflict with char connect (); below.
30572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30573     <limits.h> exists even on freestanding compilers.  */
30574
30575 #ifdef __STDC__
30576 # include <limits.h>
30577 #else
30578 # include <assert.h>
30579 #endif
30580
30581 #undef connect
30582
30583 /* Override any GCC internal prototype to avoid an error.
30584    Use char because int might match the return type of a GCC
30585    builtin and then its argument prototype would still apply.  */
30586 #ifdef __cplusplus
30587 extern "C"
30588 #endif
30589 char connect ();
30590 /* The GNU C library defines this for functions which it implements
30591     to always fail with ENOSYS.  Some functions are actually named
30592     something starting with __ and the normal name is an alias.  */
30593 #if defined __stub_connect || defined __stub___connect
30594 choke me
30595 #endif
30596
30597 int
30598 main ()
30599 {
30600 return connect ();
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext conftest$ac_exeext
30606 if { (ac_try="$ac_link"
30607 case "(($ac_try" in
30608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609   *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612   (eval "$ac_link") 2>conftest.er1
30613   ac_status=$?
30614   grep -v '^ *+' conftest.er1 >conftest.err
30615   rm -f conftest.er1
30616   cat conftest.err >&5
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); } && {
30619          test -z "$ac_c_werror_flag" ||
30620          test ! -s conftest.err
30621        } && test -s conftest$ac_exeext &&
30622        $as_test_x conftest$ac_exeext; then
30623   ac_cv_func_connect=yes
30624 else
30625   echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628         ac_cv_func_connect=no
30629 fi
30630
30631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30632       conftest$ac_exeext conftest.$ac_ext
30633 fi
30634 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30635 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30636
30637     if test $ac_cv_func_connect = no; then
30638       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30639 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30640 if test "${ac_cv_lib_socket_connect+set}" = set; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643   ac_check_lib_save_LIBS=$LIBS
30644 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30645 cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h.  */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h.  */
30651
30652 /* Override any GCC internal prototype to avoid an error.
30653    Use char because int might match the return type of a GCC
30654    builtin and then its argument prototype would still apply.  */
30655 #ifdef __cplusplus
30656 extern "C"
30657 #endif
30658 char connect ();
30659 int
30660 main ()
30661 {
30662 return connect ();
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_link") 2>conftest.er1
30675   ac_status=$?
30676   grep -v '^ *+' conftest.er1 >conftest.err
30677   rm -f conftest.er1
30678   cat conftest.err >&5
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); } && {
30681          test -z "$ac_c_werror_flag" ||
30682          test ! -s conftest.err
30683        } && test -s conftest$ac_exeext &&
30684        $as_test_x conftest$ac_exeext; then
30685   ac_cv_lib_socket_connect=yes
30686 else
30687   echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30689
30690         ac_cv_lib_socket_connect=no
30691 fi
30692
30693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30694       conftest$ac_exeext conftest.$ac_ext
30695 LIBS=$ac_check_lib_save_LIBS
30696 fi
30697 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30698 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30699 if test $ac_cv_lib_socket_connect = yes; then
30700   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30701 fi
30702
30703     fi
30704
30705     # Guillermo Gomez says -lposix is necessary on A/UX.
30706     { echo "$as_me:$LINENO: checking for remove" >&5
30707 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30708 if test "${ac_cv_func_remove+set}" = set; then
30709   echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711   cat >conftest.$ac_ext <<_ACEOF
30712 /* confdefs.h.  */
30713 _ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h.  */
30717 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30719 #define remove innocuous_remove
30720
30721 /* System header to define __stub macros and hopefully few prototypes,
30722     which can conflict with char remove (); below.
30723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30724     <limits.h> exists even on freestanding compilers.  */
30725
30726 #ifdef __STDC__
30727 # include <limits.h>
30728 #else
30729 # include <assert.h>
30730 #endif
30731
30732 #undef remove
30733
30734 /* Override any GCC internal prototype to avoid an error.
30735    Use char because int might match the return type of a GCC
30736    builtin and then its argument prototype would still apply.  */
30737 #ifdef __cplusplus
30738 extern "C"
30739 #endif
30740 char remove ();
30741 /* The GNU C library defines this for functions which it implements
30742     to always fail with ENOSYS.  Some functions are actually named
30743     something starting with __ and the normal name is an alias.  */
30744 #if defined __stub_remove || defined __stub___remove
30745 choke me
30746 #endif
30747
30748 int
30749 main ()
30750 {
30751 return remove ();
30752   ;
30753   return 0;
30754 }
30755 _ACEOF
30756 rm -f conftest.$ac_objext conftest$ac_exeext
30757 if { (ac_try="$ac_link"
30758 case "(($ac_try" in
30759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760   *) ac_try_echo=$ac_try;;
30761 esac
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763   (eval "$ac_link") 2>conftest.er1
30764   ac_status=$?
30765   grep -v '^ *+' conftest.er1 >conftest.err
30766   rm -f conftest.er1
30767   cat conftest.err >&5
30768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769   (exit $ac_status); } && {
30770          test -z "$ac_c_werror_flag" ||
30771          test ! -s conftest.err
30772        } && test -s conftest$ac_exeext &&
30773        $as_test_x conftest$ac_exeext; then
30774   ac_cv_func_remove=yes
30775 else
30776   echo "$as_me: failed program was:" >&5
30777 sed 's/^/| /' conftest.$ac_ext >&5
30778
30779         ac_cv_func_remove=no
30780 fi
30781
30782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30783       conftest$ac_exeext conftest.$ac_ext
30784 fi
30785 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30786 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30787
30788     if test $ac_cv_func_remove = no; then
30789       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30790 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30791 if test "${ac_cv_lib_posix_remove+set}" = set; then
30792   echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794   ac_check_lib_save_LIBS=$LIBS
30795 LIBS="-lposix  $LIBS"
30796 cat >conftest.$ac_ext <<_ACEOF
30797 /* confdefs.h.  */
30798 _ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h.  */
30802
30803 /* Override any GCC internal prototype to avoid an error.
30804    Use char because int might match the return type of a GCC
30805    builtin and then its argument prototype would still apply.  */
30806 #ifdef __cplusplus
30807 extern "C"
30808 #endif
30809 char remove ();
30810 int
30811 main ()
30812 {
30813 return remove ();
30814   ;
30815   return 0;
30816 }
30817 _ACEOF
30818 rm -f conftest.$ac_objext conftest$ac_exeext
30819 if { (ac_try="$ac_link"
30820 case "(($ac_try" in
30821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822   *) ac_try_echo=$ac_try;;
30823 esac
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825   (eval "$ac_link") 2>conftest.er1
30826   ac_status=$?
30827   grep -v '^ *+' conftest.er1 >conftest.err
30828   rm -f conftest.er1
30829   cat conftest.err >&5
30830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); } && {
30832          test -z "$ac_c_werror_flag" ||
30833          test ! -s conftest.err
30834        } && test -s conftest$ac_exeext &&
30835        $as_test_x conftest$ac_exeext; then
30836   ac_cv_lib_posix_remove=yes
30837 else
30838   echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841         ac_cv_lib_posix_remove=no
30842 fi
30843
30844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30845       conftest$ac_exeext conftest.$ac_ext
30846 LIBS=$ac_check_lib_save_LIBS
30847 fi
30848 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30849 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30850 if test $ac_cv_lib_posix_remove = yes; then
30851   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30852 fi
30853
30854     fi
30855
30856     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30857     { echo "$as_me:$LINENO: checking for shmat" >&5
30858 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30859 if test "${ac_cv_func_shmat+set}" = set; then
30860   echo $ECHO_N "(cached) $ECHO_C" >&6
30861 else
30862   cat >conftest.$ac_ext <<_ACEOF
30863 /* confdefs.h.  */
30864 _ACEOF
30865 cat confdefs.h >>conftest.$ac_ext
30866 cat >>conftest.$ac_ext <<_ACEOF
30867 /* end confdefs.h.  */
30868 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30870 #define shmat innocuous_shmat
30871
30872 /* System header to define __stub macros and hopefully few prototypes,
30873     which can conflict with char shmat (); below.
30874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30875     <limits.h> exists even on freestanding compilers.  */
30876
30877 #ifdef __STDC__
30878 # include <limits.h>
30879 #else
30880 # include <assert.h>
30881 #endif
30882
30883 #undef shmat
30884
30885 /* Override any GCC internal prototype to avoid an error.
30886    Use char because int might match the return type of a GCC
30887    builtin and then its argument prototype would still apply.  */
30888 #ifdef __cplusplus
30889 extern "C"
30890 #endif
30891 char shmat ();
30892 /* The GNU C library defines this for functions which it implements
30893     to always fail with ENOSYS.  Some functions are actually named
30894     something starting with __ and the normal name is an alias.  */
30895 #if defined __stub_shmat || defined __stub___shmat
30896 choke me
30897 #endif
30898
30899 int
30900 main ()
30901 {
30902 return shmat ();
30903   ;
30904   return 0;
30905 }
30906 _ACEOF
30907 rm -f conftest.$ac_objext conftest$ac_exeext
30908 if { (ac_try="$ac_link"
30909 case "(($ac_try" in
30910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911   *) ac_try_echo=$ac_try;;
30912 esac
30913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914   (eval "$ac_link") 2>conftest.er1
30915   ac_status=$?
30916   grep -v '^ *+' conftest.er1 >conftest.err
30917   rm -f conftest.er1
30918   cat conftest.err >&5
30919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920   (exit $ac_status); } && {
30921          test -z "$ac_c_werror_flag" ||
30922          test ! -s conftest.err
30923        } && test -s conftest$ac_exeext &&
30924        $as_test_x conftest$ac_exeext; then
30925   ac_cv_func_shmat=yes
30926 else
30927   echo "$as_me: failed program was:" >&5
30928 sed 's/^/| /' conftest.$ac_ext >&5
30929
30930         ac_cv_func_shmat=no
30931 fi
30932
30933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30934       conftest$ac_exeext conftest.$ac_ext
30935 fi
30936 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30937 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30938
30939     if test $ac_cv_func_shmat = no; then
30940       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30941 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30942 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 else
30945   ac_check_lib_save_LIBS=$LIBS
30946 LIBS="-lipc  $LIBS"
30947 cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h.  */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h.  */
30953
30954 /* Override any GCC internal prototype to avoid an error.
30955    Use char because int might match the return type of a GCC
30956    builtin and then its argument prototype would still apply.  */
30957 #ifdef __cplusplus
30958 extern "C"
30959 #endif
30960 char shmat ();
30961 int
30962 main ()
30963 {
30964 return shmat ();
30965   ;
30966   return 0;
30967 }
30968 _ACEOF
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (ac_try="$ac_link"
30971 case "(($ac_try" in
30972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973   *) ac_try_echo=$ac_try;;
30974 esac
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976   (eval "$ac_link") 2>conftest.er1
30977   ac_status=$?
30978   grep -v '^ *+' conftest.er1 >conftest.err
30979   rm -f conftest.er1
30980   cat conftest.err >&5
30981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); } && {
30983          test -z "$ac_c_werror_flag" ||
30984          test ! -s conftest.err
30985        } && test -s conftest$ac_exeext &&
30986        $as_test_x conftest$ac_exeext; then
30987   ac_cv_lib_ipc_shmat=yes
30988 else
30989   echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992         ac_cv_lib_ipc_shmat=no
30993 fi
30994
30995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30996       conftest$ac_exeext conftest.$ac_ext
30997 LIBS=$ac_check_lib_save_LIBS
30998 fi
30999 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31000 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31001 if test $ac_cv_lib_ipc_shmat = yes; then
31002   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31003 fi
31004
31005     fi
31006   fi
31007
31008   # Check for libraries that X11R6 Xt/Xaw programs need.
31009   ac_save_LDFLAGS=$LDFLAGS
31010   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31011   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31012   # check for ICE first), but we must link in the order -lSM -lICE or
31013   # we get undefined symbols.  So assume we have SM if we have ICE.
31014   # These have to be linked with before -lX11, unlike the other
31015   # libraries we check for below, so use a different variable.
31016   # John Interrante, Karl Berry
31017   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31018 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31019 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31020   echo $ECHO_N "(cached) $ECHO_C" >&6
31021 else
31022   ac_check_lib_save_LIBS=$LIBS
31023 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31024 cat >conftest.$ac_ext <<_ACEOF
31025 /* confdefs.h.  */
31026 _ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h.  */
31030
31031 /* Override any GCC internal prototype to avoid an error.
31032    Use char because int might match the return type of a GCC
31033    builtin and then its argument prototype would still apply.  */
31034 #ifdef __cplusplus
31035 extern "C"
31036 #endif
31037 char IceConnectionNumber ();
31038 int
31039 main ()
31040 {
31041 return IceConnectionNumber ();
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext conftest$ac_exeext
31047 if { (ac_try="$ac_link"
31048 case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_link") 2>conftest.er1
31054   ac_status=$?
31055   grep -v '^ *+' conftest.er1 >conftest.err
31056   rm -f conftest.er1
31057   cat conftest.err >&5
31058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059   (exit $ac_status); } && {
31060          test -z "$ac_c_werror_flag" ||
31061          test ! -s conftest.err
31062        } && test -s conftest$ac_exeext &&
31063        $as_test_x conftest$ac_exeext; then
31064   ac_cv_lib_ICE_IceConnectionNumber=yes
31065 else
31066   echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31068
31069         ac_cv_lib_ICE_IceConnectionNumber=no
31070 fi
31071
31072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31073       conftest$ac_exeext conftest.$ac_ext
31074 LIBS=$ac_check_lib_save_LIBS
31075 fi
31076 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31077 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31078 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31079   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31080 fi
31081
31082   LDFLAGS=$ac_save_LDFLAGS
31083
31084 fi
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116 for ac_header in \
31117    assert.h \
31118    fcntl.h \
31119    grp.h \
31120    pwd.h \
31121    libc.h \
31122    limits.h \
31123    stdarg.h \
31124    stdlib.h \
31125    stdint.h \
31126    string.h \
31127    strings.h \
31128    termios.h \
31129    termcap.h \
31130    term.h \
31131    unistd.h \
31132    sys/bitypes.h \
31133    sys/byteorder.h \
31134    sys/ioctl.h \
31135    sys/select.h \
31136    sys/socket.h \
31137    sys/sockio.h \
31138    sys/stat.h \
31139    sys/time.h \
31140    sys/types.h \
31141    arpa/nameser.h \
31142    mtio.h \
31143    sys/mtio.h \
31144    sys/tape.h \
31145    regex.h \
31146
31147 do
31148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31153   echo $ECHO_N "(cached) $ECHO_C" >&6
31154 fi
31155 ac_res=`eval echo '${'$as_ac_Header'}'`
31156                { echo "$as_me:$LINENO: result: $ac_res" >&5
31157 echo "${ECHO_T}$ac_res" >&6; }
31158 else
31159   # Is the header compilable?
31160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31162 cat >conftest.$ac_ext <<_ACEOF
31163 /* confdefs.h.  */
31164 _ACEOF
31165 cat confdefs.h >>conftest.$ac_ext
31166 cat >>conftest.$ac_ext <<_ACEOF
31167 /* end confdefs.h.  */
31168 $ac_includes_default
31169 #include <$ac_header>
31170 _ACEOF
31171 rm -f conftest.$ac_objext
31172 if { (ac_try="$ac_compile"
31173 case "(($ac_try" in
31174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175   *) ac_try_echo=$ac_try;;
31176 esac
31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178   (eval "$ac_compile") 2>conftest.er1
31179   ac_status=$?
31180   grep -v '^ *+' conftest.er1 >conftest.err
31181   rm -f conftest.er1
31182   cat conftest.err >&5
31183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184   (exit $ac_status); } && {
31185          test -z "$ac_c_werror_flag" ||
31186          test ! -s conftest.err
31187        } && test -s conftest.$ac_objext; then
31188   ac_header_compiler=yes
31189 else
31190   echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.$ac_ext >&5
31192
31193         ac_header_compiler=no
31194 fi
31195
31196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31198 echo "${ECHO_T}$ac_header_compiler" >&6; }
31199
31200 # Is the header present?
31201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31203 cat >conftest.$ac_ext <<_ACEOF
31204 /* confdefs.h.  */
31205 _ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h.  */
31209 #include <$ac_header>
31210 _ACEOF
31211 if { (ac_try="$ac_cpp conftest.$ac_ext"
31212 case "(($ac_try" in
31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214   *) ac_try_echo=$ac_try;;
31215 esac
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31218   ac_status=$?
31219   grep -v '^ *+' conftest.er1 >conftest.err
31220   rm -f conftest.er1
31221   cat conftest.err >&5
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); } >/dev/null && {
31224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31225          test ! -s conftest.err
31226        }; then
31227   ac_header_preproc=yes
31228 else
31229   echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232   ac_header_preproc=no
31233 fi
31234
31235 rm -f conftest.err conftest.$ac_ext
31236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31237 echo "${ECHO_T}$ac_header_preproc" >&6; }
31238
31239 # So?  What about this header?
31240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31241   yes:no: )
31242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31246     ac_header_preproc=yes
31247     ;;
31248   no:yes:* )
31249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31261
31262     ;;
31263 esac
31264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31267   echo $ECHO_N "(cached) $ECHO_C" >&6
31268 else
31269   eval "$as_ac_Header=\$ac_header_preproc"
31270 fi
31271 ac_res=`eval echo '${'$as_ac_Header'}'`
31272                { echo "$as_me:$LINENO: result: $ac_res" >&5
31273 echo "${ECHO_T}$ac_res" >&6; }
31274
31275 fi
31276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277   cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31279 _ACEOF
31280
31281 fi
31282
31283 done
31284
31285 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31287 if test "${ac_cv_header_stdc+set}" = set; then
31288   echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290   cat >conftest.$ac_ext <<_ACEOF
31291 /* confdefs.h.  */
31292 _ACEOF
31293 cat confdefs.h >>conftest.$ac_ext
31294 cat >>conftest.$ac_ext <<_ACEOF
31295 /* end confdefs.h.  */
31296 #include <stdlib.h>
31297 #include <stdarg.h>
31298 #include <string.h>
31299 #include <float.h>
31300
31301 int
31302 main ()
31303 {
31304
31305   ;
31306   return 0;
31307 }
31308 _ACEOF
31309 rm -f conftest.$ac_objext
31310 if { (ac_try="$ac_compile"
31311 case "(($ac_try" in
31312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313   *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316   (eval "$ac_compile") 2>conftest.er1
31317   ac_status=$?
31318   grep -v '^ *+' conftest.er1 >conftest.err
31319   rm -f conftest.er1
31320   cat conftest.err >&5
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); } && {
31323          test -z "$ac_c_werror_flag" ||
31324          test ! -s conftest.err
31325        } && test -s conftest.$ac_objext; then
31326   ac_cv_header_stdc=yes
31327 else
31328   echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31330
31331         ac_cv_header_stdc=no
31332 fi
31333
31334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31335
31336 if test $ac_cv_header_stdc = yes; then
31337   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31338   cat >conftest.$ac_ext <<_ACEOF
31339 /* confdefs.h.  */
31340 _ACEOF
31341 cat confdefs.h >>conftest.$ac_ext
31342 cat >>conftest.$ac_ext <<_ACEOF
31343 /* end confdefs.h.  */
31344 #include <string.h>
31345
31346 _ACEOF
31347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31348   $EGREP "memchr" >/dev/null 2>&1; then
31349   :
31350 else
31351   ac_cv_header_stdc=no
31352 fi
31353 rm -f conftest*
31354
31355 fi
31356
31357 if test $ac_cv_header_stdc = yes; then
31358   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31359   cat >conftest.$ac_ext <<_ACEOF
31360 /* confdefs.h.  */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h.  */
31365 #include <stdlib.h>
31366
31367 _ACEOF
31368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31369   $EGREP "free" >/dev/null 2>&1; then
31370   :
31371 else
31372   ac_cv_header_stdc=no
31373 fi
31374 rm -f conftest*
31375
31376 fi
31377
31378 if test $ac_cv_header_stdc = yes; then
31379   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31380   if test "$cross_compiling" = yes; then
31381   :
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 #include <ctype.h>
31390 #include <stdlib.h>
31391 #if ((' ' & 0x0FF) == 0x020)
31392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31394 #else
31395 # define ISLOWER(c) \
31396                    (('a' <= (c) && (c) <= 'i') \
31397                      || ('j' <= (c) && (c) <= 'r') \
31398                      || ('s' <= (c) && (c) <= 'z'))
31399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31400 #endif
31401
31402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31403 int
31404 main ()
31405 {
31406   int i;
31407   for (i = 0; i < 256; i++)
31408     if (XOR (islower (i), ISLOWER (i))
31409         || toupper (i) != TOUPPER (i))
31410       return 2;
31411   return 0;
31412 }
31413 _ACEOF
31414 rm -f conftest$ac_exeext
31415 if { (ac_try="$ac_link"
31416 case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_link") 2>&5
31422   ac_status=$?
31423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31425   { (case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430   (eval "$ac_try") 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); }; }; then
31434   :
31435 else
31436   echo "$as_me: program exited with status $ac_status" >&5
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31439
31440 ( exit $ac_status )
31441 ac_cv_header_stdc=no
31442 fi
31443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31444 fi
31445
31446
31447 fi
31448 fi
31449 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31450 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31451 if test $ac_cv_header_stdc = yes; then
31452
31453 cat >>confdefs.h <<\_ACEOF
31454 #define STDC_HEADERS 1
31455 _ACEOF
31456
31457 fi
31458
31459 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31460 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31461 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31462   echo $ECHO_N "(cached) $ECHO_C" >&6
31463 else
31464   cat >conftest.$ac_ext <<_ACEOF
31465 /* confdefs.h.  */
31466 _ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h.  */
31470 #include <sys/types.h>
31471 int
31472 main ()
31473 {
31474 return makedev(0, 0);
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (ac_try="$ac_link"
31481 case "(($ac_try" in
31482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483   *) ac_try_echo=$ac_try;;
31484 esac
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486   (eval "$ac_link") 2>conftest.er1
31487   ac_status=$?
31488   grep -v '^ *+' conftest.er1 >conftest.err
31489   rm -f conftest.er1
31490   cat conftest.err >&5
31491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492   (exit $ac_status); } && {
31493          test -z "$ac_c_werror_flag" ||
31494          test ! -s conftest.err
31495        } && test -s conftest$ac_exeext &&
31496        $as_test_x conftest$ac_exeext; then
31497   ac_cv_header_sys_types_h_makedev=yes
31498 else
31499   echo "$as_me: failed program was:" >&5
31500 sed 's/^/| /' conftest.$ac_ext >&5
31501
31502         ac_cv_header_sys_types_h_makedev=no
31503 fi
31504
31505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31506       conftest$ac_exeext conftest.$ac_ext
31507
31508 fi
31509 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31510 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31511
31512 if test $ac_cv_header_sys_types_h_makedev = no; then
31513 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31514   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31517   echo $ECHO_N "(cached) $ECHO_C" >&6
31518 fi
31519 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31520 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31521 else
31522   # Is the header compilable?
31523 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31524 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31525 cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h.  */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h.  */
31531 $ac_includes_default
31532 #include <sys/mkdev.h>
31533 _ACEOF
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_compile") 2>conftest.er1
31542   ac_status=$?
31543   grep -v '^ *+' conftest.er1 >conftest.err
31544   rm -f conftest.er1
31545   cat conftest.err >&5
31546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547   (exit $ac_status); } && {
31548          test -z "$ac_c_werror_flag" ||
31549          test ! -s conftest.err
31550        } && test -s conftest.$ac_objext; then
31551   ac_header_compiler=yes
31552 else
31553   echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556         ac_header_compiler=no
31557 fi
31558
31559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31561 echo "${ECHO_T}$ac_header_compiler" >&6; }
31562
31563 # Is the header present?
31564 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31565 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31566 cat >conftest.$ac_ext <<_ACEOF
31567 /* confdefs.h.  */
31568 _ACEOF
31569 cat confdefs.h >>conftest.$ac_ext
31570 cat >>conftest.$ac_ext <<_ACEOF
31571 /* end confdefs.h.  */
31572 #include <sys/mkdev.h>
31573 _ACEOF
31574 if { (ac_try="$ac_cpp conftest.$ac_ext"
31575 case "(($ac_try" in
31576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577   *) ac_try_echo=$ac_try;;
31578 esac
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31581   ac_status=$?
31582   grep -v '^ *+' conftest.er1 >conftest.err
31583   rm -f conftest.er1
31584   cat conftest.err >&5
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); } >/dev/null && {
31587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31588          test ! -s conftest.err
31589        }; then
31590   ac_header_preproc=yes
31591 else
31592   echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31594
31595   ac_header_preproc=no
31596 fi
31597
31598 rm -f conftest.err conftest.$ac_ext
31599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31600 echo "${ECHO_T}$ac_header_preproc" >&6; }
31601
31602 # So?  What about this header?
31603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31604   yes:no: )
31605     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31606 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31607     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31608 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31609     ac_header_preproc=yes
31610     ;;
31611   no:yes:* )
31612     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31613 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31614     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31615 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31616     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31617 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31618     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31619 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31620     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31621 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31622     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31623 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31624
31625     ;;
31626 esac
31627 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31628 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31629 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31630   echo $ECHO_N "(cached) $ECHO_C" >&6
31631 else
31632   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31633 fi
31634 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31635 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31636
31637 fi
31638 if test $ac_cv_header_sys_mkdev_h = yes; then
31639
31640 cat >>confdefs.h <<\_ACEOF
31641 #define MAJOR_IN_MKDEV 1
31642 _ACEOF
31643
31644 fi
31645
31646
31647
31648   if test $ac_cv_header_sys_mkdev_h = no; then
31649     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31650   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31651 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31652 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 fi
31655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31656 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31657 else
31658   # Is the header compilable?
31659 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31660 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667 $ac_includes_default
31668 #include <sys/sysmacros.h>
31669 _ACEOF
31670 rm -f conftest.$ac_objext
31671 if { (ac_try="$ac_compile"
31672 case "(($ac_try" in
31673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674   *) ac_try_echo=$ac_try;;
31675 esac
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677   (eval "$ac_compile") 2>conftest.er1
31678   ac_status=$?
31679   grep -v '^ *+' conftest.er1 >conftest.err
31680   rm -f conftest.er1
31681   cat conftest.err >&5
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); } && {
31684          test -z "$ac_c_werror_flag" ||
31685          test ! -s conftest.err
31686        } && test -s conftest.$ac_objext; then
31687   ac_header_compiler=yes
31688 else
31689   echo "$as_me: failed program was:" >&5
31690 sed 's/^/| /' conftest.$ac_ext >&5
31691
31692         ac_header_compiler=no
31693 fi
31694
31695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31697 echo "${ECHO_T}$ac_header_compiler" >&6; }
31698
31699 # Is the header present?
31700 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31701 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31702 cat >conftest.$ac_ext <<_ACEOF
31703 /* confdefs.h.  */
31704 _ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h.  */
31708 #include <sys/sysmacros.h>
31709 _ACEOF
31710 if { (ac_try="$ac_cpp conftest.$ac_ext"
31711 case "(($ac_try" in
31712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713   *) ac_try_echo=$ac_try;;
31714 esac
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31717   ac_status=$?
31718   grep -v '^ *+' conftest.er1 >conftest.err
31719   rm -f conftest.er1
31720   cat conftest.err >&5
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); } >/dev/null && {
31723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31724          test ! -s conftest.err
31725        }; then
31726   ac_header_preproc=yes
31727 else
31728   echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31730
31731   ac_header_preproc=no
31732 fi
31733
31734 rm -f conftest.err conftest.$ac_ext
31735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31736 echo "${ECHO_T}$ac_header_preproc" >&6; }
31737
31738 # So?  What about this header?
31739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31740   yes:no: )
31741     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31742 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31743     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31744 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31745     ac_header_preproc=yes
31746     ;;
31747   no:yes:* )
31748     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31749 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31750     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31751 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31752     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31753 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31754     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31755 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31756     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31757 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31758     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31759 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31760
31761     ;;
31762 esac
31763 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31764 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31765 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31766   echo $ECHO_N "(cached) $ECHO_C" >&6
31767 else
31768   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31769 fi
31770 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31771 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31772
31773 fi
31774 if test $ac_cv_header_sys_sysmacros_h = yes; then
31775
31776 cat >>confdefs.h <<\_ACEOF
31777 #define MAJOR_IN_SYSMACROS 1
31778 _ACEOF
31779
31780 fi
31781
31782
31783   fi
31784 fi
31785
31786
31787
31788
31789
31790
31791 ac_header_dirent=no
31792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31793   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31797   echo $ECHO_N "(cached) $ECHO_C" >&6
31798 else
31799   cat >conftest.$ac_ext <<_ACEOF
31800 /* confdefs.h.  */
31801 _ACEOF
31802 cat confdefs.h >>conftest.$ac_ext
31803 cat >>conftest.$ac_ext <<_ACEOF
31804 /* end confdefs.h.  */
31805 #include <sys/types.h>
31806 #include <$ac_hdr>
31807
31808 int
31809 main ()
31810 {
31811 if ((DIR *) 0)
31812 return 0;
31813   ;
31814   return 0;
31815 }
31816 _ACEOF
31817 rm -f conftest.$ac_objext
31818 if { (ac_try="$ac_compile"
31819 case "(($ac_try" in
31820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821   *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824   (eval "$ac_compile") 2>conftest.er1
31825   ac_status=$?
31826   grep -v '^ *+' conftest.er1 >conftest.err
31827   rm -f conftest.er1
31828   cat conftest.err >&5
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); } && {
31831          test -z "$ac_c_werror_flag" ||
31832          test ! -s conftest.err
31833        } && test -s conftest.$ac_objext; then
31834   eval "$as_ac_Header=yes"
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839         eval "$as_ac_Header=no"
31840 fi
31841
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31843 fi
31844 ac_res=`eval echo '${'$as_ac_Header'}'`
31845                { echo "$as_me:$LINENO: result: $ac_res" >&5
31846 echo "${ECHO_T}$ac_res" >&6; }
31847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31848   cat >>confdefs.h <<_ACEOF
31849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31850 _ACEOF
31851
31852 ac_header_dirent=$ac_hdr; break
31853 fi
31854
31855 done
31856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31857 if test $ac_header_dirent = dirent.h; then
31858   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31860 if test "${ac_cv_search_opendir+set}" = set; then
31861   echo $ECHO_N "(cached) $ECHO_C" >&6
31862 else
31863   ac_func_search_save_LIBS=$LIBS
31864 cat >conftest.$ac_ext <<_ACEOF
31865 /* confdefs.h.  */
31866 _ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h.  */
31870
31871 /* Override any GCC internal prototype to avoid an error.
31872    Use char because int might match the return type of a GCC
31873    builtin and then its argument prototype would still apply.  */
31874 #ifdef __cplusplus
31875 extern "C"
31876 #endif
31877 char opendir ();
31878 int
31879 main ()
31880 {
31881 return opendir ();
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 for ac_lib in '' dir; do
31887   if test -z "$ac_lib"; then
31888     ac_res="none required"
31889   else
31890     ac_res=-l$ac_lib
31891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31892   fi
31893   rm -f conftest.$ac_objext conftest$ac_exeext
31894 if { (ac_try="$ac_link"
31895 case "(($ac_try" in
31896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897   *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900   (eval "$ac_link") 2>conftest.er1
31901   ac_status=$?
31902   grep -v '^ *+' conftest.er1 >conftest.err
31903   rm -f conftest.er1
31904   cat conftest.err >&5
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); } && {
31907          test -z "$ac_c_werror_flag" ||
31908          test ! -s conftest.err
31909        } && test -s conftest$ac_exeext &&
31910        $as_test_x conftest$ac_exeext; then
31911   ac_cv_search_opendir=$ac_res
31912 else
31913   echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31915
31916
31917 fi
31918
31919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31920       conftest$ac_exeext
31921   if test "${ac_cv_search_opendir+set}" = set; then
31922   break
31923 fi
31924 done
31925 if test "${ac_cv_search_opendir+set}" = set; then
31926   :
31927 else
31928   ac_cv_search_opendir=no
31929 fi
31930 rm conftest.$ac_ext
31931 LIBS=$ac_func_search_save_LIBS
31932 fi
31933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31935 ac_res=$ac_cv_search_opendir
31936 if test "$ac_res" != no; then
31937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31938
31939 fi
31940
31941 else
31942   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31944 if test "${ac_cv_search_opendir+set}" = set; then
31945   echo $ECHO_N "(cached) $ECHO_C" >&6
31946 else
31947   ac_func_search_save_LIBS=$LIBS
31948 cat >conftest.$ac_ext <<_ACEOF
31949 /* confdefs.h.  */
31950 _ACEOF
31951 cat confdefs.h >>conftest.$ac_ext
31952 cat >>conftest.$ac_ext <<_ACEOF
31953 /* end confdefs.h.  */
31954
31955 /* Override any GCC internal prototype to avoid an error.
31956    Use char because int might match the return type of a GCC
31957    builtin and then its argument prototype would still apply.  */
31958 #ifdef __cplusplus
31959 extern "C"
31960 #endif
31961 char opendir ();
31962 int
31963 main ()
31964 {
31965 return opendir ();
31966   ;
31967   return 0;
31968 }
31969 _ACEOF
31970 for ac_lib in '' x; do
31971   if test -z "$ac_lib"; then
31972     ac_res="none required"
31973   else
31974     ac_res=-l$ac_lib
31975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31976   fi
31977   rm -f conftest.$ac_objext conftest$ac_exeext
31978 if { (ac_try="$ac_link"
31979 case "(($ac_try" in
31980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981   *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984   (eval "$ac_link") 2>conftest.er1
31985   ac_status=$?
31986   grep -v '^ *+' conftest.er1 >conftest.err
31987   rm -f conftest.er1
31988   cat conftest.err >&5
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); } && {
31991          test -z "$ac_c_werror_flag" ||
31992          test ! -s conftest.err
31993        } && test -s conftest$ac_exeext &&
31994        $as_test_x conftest$ac_exeext; then
31995   ac_cv_search_opendir=$ac_res
31996 else
31997   echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
31999
32000
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32004       conftest$ac_exeext
32005   if test "${ac_cv_search_opendir+set}" = set; then
32006   break
32007 fi
32008 done
32009 if test "${ac_cv_search_opendir+set}" = set; then
32010   :
32011 else
32012   ac_cv_search_opendir=no
32013 fi
32014 rm conftest.$ac_ext
32015 LIBS=$ac_func_search_save_LIBS
32016 fi
32017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32019 ac_res=$ac_cv_search_opendir
32020 if test "$ac_res" != no; then
32021   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32022
32023 fi
32024
32025 fi
32026
32027 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32028 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32029 if test "${ac_cv_header_stat_broken+set}" = set; then
32030   echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 #include <sys/types.h>
32039 #include <sys/stat.h>
32040
32041 #if defined S_ISBLK && defined S_IFDIR
32042 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32043 #endif
32044
32045 #if defined S_ISBLK && defined S_IFCHR
32046 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32047 #endif
32048
32049 #if defined S_ISLNK && defined S_IFREG
32050 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32051 #endif
32052
32053 #if defined S_ISSOCK && defined S_IFREG
32054 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32055 #endif
32056
32057 _ACEOF
32058 rm -f conftest.$ac_objext
32059 if { (ac_try="$ac_compile"
32060 case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065   (eval "$ac_compile") 2>conftest.er1
32066   ac_status=$?
32067   grep -v '^ *+' conftest.er1 >conftest.err
32068   rm -f conftest.er1
32069   cat conftest.err >&5
32070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071   (exit $ac_status); } && {
32072          test -z "$ac_c_werror_flag" ||
32073          test ! -s conftest.err
32074        } && test -s conftest.$ac_objext; then
32075   ac_cv_header_stat_broken=no
32076 else
32077   echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32079
32080         ac_cv_header_stat_broken=yes
32081 fi
32082
32083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32084 fi
32085 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32086 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32087 if test $ac_cv_header_stat_broken = yes; then
32088
32089 cat >>confdefs.h <<\_ACEOF
32090 #define STAT_MACROS_BROKEN 1
32091 _ACEOF
32092
32093 fi
32094
32095 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32096 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32097 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32098   echo $ECHO_N "(cached) $ECHO_C" >&6
32099 else
32100   cat >conftest.$ac_ext <<_ACEOF
32101 /* confdefs.h.  */
32102 _ACEOF
32103 cat confdefs.h >>conftest.$ac_ext
32104 cat >>conftest.$ac_ext <<_ACEOF
32105 /* end confdefs.h.  */
32106 #include <sys/types.h>
32107 #include <sys/wait.h>
32108 #ifndef WEXITSTATUS
32109 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32110 #endif
32111 #ifndef WIFEXITED
32112 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32113 #endif
32114
32115 int
32116 main ()
32117 {
32118   int s;
32119   wait (&s);
32120   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32121   ;
32122   return 0;
32123 }
32124 _ACEOF
32125 rm -f conftest.$ac_objext
32126 if { (ac_try="$ac_compile"
32127 case "(($ac_try" in
32128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129   *) ac_try_echo=$ac_try;;
32130 esac
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132   (eval "$ac_compile") 2>conftest.er1
32133   ac_status=$?
32134   grep -v '^ *+' conftest.er1 >conftest.err
32135   rm -f conftest.er1
32136   cat conftest.err >&5
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); } && {
32139          test -z "$ac_c_werror_flag" ||
32140          test ! -s conftest.err
32141        } && test -s conftest.$ac_objext; then
32142   ac_cv_header_sys_wait_h=yes
32143 else
32144   echo "$as_me: failed program was:" >&5
32145 sed 's/^/| /' conftest.$ac_ext >&5
32146
32147         ac_cv_header_sys_wait_h=no
32148 fi
32149
32150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32151 fi
32152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32153 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32154 if test $ac_cv_header_sys_wait_h = yes; then
32155
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_SYS_WAIT_H 1
32158 _ACEOF
32159
32160 fi
32161
32162 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32163 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32164 if test "${ac_cv_header_time+set}" = set; then
32165   echo $ECHO_N "(cached) $ECHO_C" >&6
32166 else
32167   cat >conftest.$ac_ext <<_ACEOF
32168 /* confdefs.h.  */
32169 _ACEOF
32170 cat confdefs.h >>conftest.$ac_ext
32171 cat >>conftest.$ac_ext <<_ACEOF
32172 /* end confdefs.h.  */
32173 #include <sys/types.h>
32174 #include <sys/time.h>
32175 #include <time.h>
32176
32177 int
32178 main ()
32179 {
32180 if ((struct tm *) 0)
32181 return 0;
32182   ;
32183   return 0;
32184 }
32185 _ACEOF
32186 rm -f conftest.$ac_objext
32187 if { (ac_try="$ac_compile"
32188 case "(($ac_try" in
32189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190   *) ac_try_echo=$ac_try;;
32191 esac
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193   (eval "$ac_compile") 2>conftest.er1
32194   ac_status=$?
32195   grep -v '^ *+' conftest.er1 >conftest.err
32196   rm -f conftest.er1
32197   cat conftest.err >&5
32198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199   (exit $ac_status); } && {
32200          test -z "$ac_c_werror_flag" ||
32201          test ! -s conftest.err
32202        } && test -s conftest.$ac_objext; then
32203   ac_cv_header_time=yes
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208         ac_cv_header_time=no
32209 fi
32210
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 fi
32213 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32214 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32215 if test $ac_cv_header_time = yes; then
32216
32217 cat >>confdefs.h <<\_ACEOF
32218 #define TIME_WITH_SYS_TIME 1
32219 _ACEOF
32220
32221 fi
32222
32223 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32224 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32225 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32226   echo $ECHO_N "(cached) $ECHO_C" >&6
32227 else
32228   cat >conftest.$ac_ext <<_ACEOF
32229 /* confdefs.h.  */
32230 _ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h.  */
32234 $ac_includes_default
32235 int
32236 main ()
32237 {
32238 static struct stat ac_aggr;
32239 if (ac_aggr.st_blksize)
32240 return 0;
32241   ;
32242   return 0;
32243 }
32244 _ACEOF
32245 rm -f conftest.$ac_objext
32246 if { (ac_try="$ac_compile"
32247 case "(($ac_try" in
32248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249   *) ac_try_echo=$ac_try;;
32250 esac
32251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252   (eval "$ac_compile") 2>conftest.er1
32253   ac_status=$?
32254   grep -v '^ *+' conftest.er1 >conftest.err
32255   rm -f conftest.er1
32256   cat conftest.err >&5
32257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258   (exit $ac_status); } && {
32259          test -z "$ac_c_werror_flag" ||
32260          test ! -s conftest.err
32261        } && test -s conftest.$ac_objext; then
32262   ac_cv_member_struct_stat_st_blksize=yes
32263 else
32264   echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32266
32267         cat >conftest.$ac_ext <<_ACEOF
32268 /* confdefs.h.  */
32269 _ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h.  */
32273 $ac_includes_default
32274 int
32275 main ()
32276 {
32277 static struct stat ac_aggr;
32278 if (sizeof ac_aggr.st_blksize)
32279 return 0;
32280   ;
32281   return 0;
32282 }
32283 _ACEOF
32284 rm -f conftest.$ac_objext
32285 if { (ac_try="$ac_compile"
32286 case "(($ac_try" in
32287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288   *) ac_try_echo=$ac_try;;
32289 esac
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291   (eval "$ac_compile") 2>conftest.er1
32292   ac_status=$?
32293   grep -v '^ *+' conftest.er1 >conftest.err
32294   rm -f conftest.er1
32295   cat conftest.err >&5
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); } && {
32298          test -z "$ac_c_werror_flag" ||
32299          test ! -s conftest.err
32300        } && test -s conftest.$ac_objext; then
32301   ac_cv_member_struct_stat_st_blksize=yes
32302 else
32303   echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32305
32306         ac_cv_member_struct_stat_st_blksize=no
32307 fi
32308
32309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32310 fi
32311
32312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32313 fi
32314 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32315 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32316 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32317
32318 cat >>confdefs.h <<_ACEOF
32319 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32320 _ACEOF
32321
32322
32323 cat >>confdefs.h <<\_ACEOF
32324 #define HAVE_ST_BLKSIZE 1
32325 _ACEOF
32326
32327 fi
32328
32329
32330 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32331 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32332 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32333   echo $ECHO_N "(cached) $ECHO_C" >&6
32334 else
32335   cat >conftest.$ac_ext <<_ACEOF
32336 /* confdefs.h.  */
32337 _ACEOF
32338 cat confdefs.h >>conftest.$ac_ext
32339 cat >>conftest.$ac_ext <<_ACEOF
32340 /* end confdefs.h.  */
32341 $ac_includes_default
32342 int
32343 main ()
32344 {
32345 static struct stat ac_aggr;
32346 if (ac_aggr.st_blocks)
32347 return 0;
32348   ;
32349   return 0;
32350 }
32351 _ACEOF
32352 rm -f conftest.$ac_objext
32353 if { (ac_try="$ac_compile"
32354 case "(($ac_try" in
32355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356   *) ac_try_echo=$ac_try;;
32357 esac
32358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359   (eval "$ac_compile") 2>conftest.er1
32360   ac_status=$?
32361   grep -v '^ *+' conftest.er1 >conftest.err
32362   rm -f conftest.er1
32363   cat conftest.err >&5
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); } && {
32366          test -z "$ac_c_werror_flag" ||
32367          test ! -s conftest.err
32368        } && test -s conftest.$ac_objext; then
32369   ac_cv_member_struct_stat_st_blocks=yes
32370 else
32371   echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32373
32374         cat >conftest.$ac_ext <<_ACEOF
32375 /* confdefs.h.  */
32376 _ACEOF
32377 cat confdefs.h >>conftest.$ac_ext
32378 cat >>conftest.$ac_ext <<_ACEOF
32379 /* end confdefs.h.  */
32380 $ac_includes_default
32381 int
32382 main ()
32383 {
32384 static struct stat ac_aggr;
32385 if (sizeof ac_aggr.st_blocks)
32386 return 0;
32387   ;
32388   return 0;
32389 }
32390 _ACEOF
32391 rm -f conftest.$ac_objext
32392 if { (ac_try="$ac_compile"
32393 case "(($ac_try" in
32394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395   *) ac_try_echo=$ac_try;;
32396 esac
32397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398   (eval "$ac_compile") 2>conftest.er1
32399   ac_status=$?
32400   grep -v '^ *+' conftest.er1 >conftest.err
32401   rm -f conftest.er1
32402   cat conftest.err >&5
32403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404   (exit $ac_status); } && {
32405          test -z "$ac_c_werror_flag" ||
32406          test ! -s conftest.err
32407        } && test -s conftest.$ac_objext; then
32408   ac_cv_member_struct_stat_st_blocks=yes
32409 else
32410   echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32412
32413         ac_cv_member_struct_stat_st_blocks=no
32414 fi
32415
32416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417 fi
32418
32419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32420 fi
32421 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32422 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32423 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32424
32425 cat >>confdefs.h <<_ACEOF
32426 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32427 _ACEOF
32428
32429
32430 cat >>confdefs.h <<\_ACEOF
32431 #define HAVE_ST_BLOCKS 1
32432 _ACEOF
32433
32434 else
32435   case " $LIBOBJS " in
32436   *" fileblocks.$ac_objext "* ) ;;
32437   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32438  ;;
32439 esac
32440
32441 fi
32442
32443
32444 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32445 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32446 if test "${ac_cv_struct_tm+set}" = set; then
32447   echo $ECHO_N "(cached) $ECHO_C" >&6
32448 else
32449   cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h.  */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h.  */
32455 #include <sys/types.h>
32456 #include <time.h>
32457
32458 int
32459 main ()
32460 {
32461 struct tm tm;
32462                                      int *p = &tm.tm_sec;
32463                                      return !p;
32464   ;
32465   return 0;
32466 }
32467 _ACEOF
32468 rm -f conftest.$ac_objext
32469 if { (ac_try="$ac_compile"
32470 case "(($ac_try" in
32471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472   *) ac_try_echo=$ac_try;;
32473 esac
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475   (eval "$ac_compile") 2>conftest.er1
32476   ac_status=$?
32477   grep -v '^ *+' conftest.er1 >conftest.err
32478   rm -f conftest.er1
32479   cat conftest.err >&5
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); } && {
32482          test -z "$ac_c_werror_flag" ||
32483          test ! -s conftest.err
32484        } && test -s conftest.$ac_objext; then
32485   ac_cv_struct_tm=time.h
32486 else
32487   echo "$as_me: failed program was:" >&5
32488 sed 's/^/| /' conftest.$ac_ext >&5
32489
32490         ac_cv_struct_tm=sys/time.h
32491 fi
32492
32493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32494 fi
32495 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32496 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32497 if test $ac_cv_struct_tm = sys/time.h; then
32498
32499 cat >>confdefs.h <<\_ACEOF
32500 #define TM_IN_SYS_TIME 1
32501 _ACEOF
32502
32503 fi
32504
32505 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32506 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32507 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32508   echo $ECHO_N "(cached) $ECHO_C" >&6
32509 else
32510   cat >conftest.$ac_ext <<_ACEOF
32511 /* confdefs.h.  */
32512 _ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h.  */
32516 #include <sys/types.h>
32517 #include <$ac_cv_struct_tm>
32518
32519
32520 int
32521 main ()
32522 {
32523 static struct tm ac_aggr;
32524 if (ac_aggr.tm_zone)
32525 return 0;
32526   ;
32527   return 0;
32528 }
32529 _ACEOF
32530 rm -f conftest.$ac_objext
32531 if { (ac_try="$ac_compile"
32532 case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_compile") 2>conftest.er1
32538   ac_status=$?
32539   grep -v '^ *+' conftest.er1 >conftest.err
32540   rm -f conftest.er1
32541   cat conftest.err >&5
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); } && {
32544          test -z "$ac_c_werror_flag" ||
32545          test ! -s conftest.err
32546        } && test -s conftest.$ac_objext; then
32547   ac_cv_member_struct_tm_tm_zone=yes
32548 else
32549   echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552         cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558 #include <sys/types.h>
32559 #include <$ac_cv_struct_tm>
32560
32561
32562 int
32563 main ()
32564 {
32565 static struct tm ac_aggr;
32566 if (sizeof ac_aggr.tm_zone)
32567 return 0;
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && {
32586          test -z "$ac_c_werror_flag" ||
32587          test ! -s conftest.err
32588        } && test -s conftest.$ac_objext; then
32589   ac_cv_member_struct_tm_tm_zone=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594         ac_cv_member_struct_tm_tm_zone=no
32595 fi
32596
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598 fi
32599
32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32601 fi
32602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32603 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32604 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32605
32606 cat >>confdefs.h <<_ACEOF
32607 #define HAVE_STRUCT_TM_TM_ZONE 1
32608 _ACEOF
32609
32610
32611 fi
32612
32613 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32614
32615 cat >>confdefs.h <<\_ACEOF
32616 #define HAVE_TM_ZONE 1
32617 _ACEOF
32618
32619 else
32620   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32621 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32622 if test "${ac_cv_have_decl_tzname+set}" = set; then
32623   echo $ECHO_N "(cached) $ECHO_C" >&6
32624 else
32625   cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h.  */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h.  */
32631 #include <time.h>
32632
32633 int
32634 main ()
32635 {
32636 #ifndef tzname
32637   (void) tzname;
32638 #endif
32639
32640   ;
32641   return 0;
32642 }
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648   *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651   (eval "$ac_compile") 2>conftest.er1
32652   ac_status=$?
32653   grep -v '^ *+' conftest.er1 >conftest.err
32654   rm -f conftest.er1
32655   cat conftest.err >&5
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); } && {
32658          test -z "$ac_c_werror_flag" ||
32659          test ! -s conftest.err
32660        } && test -s conftest.$ac_objext; then
32661   ac_cv_have_decl_tzname=yes
32662 else
32663   echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32665
32666         ac_cv_have_decl_tzname=no
32667 fi
32668
32669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670 fi
32671 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32672 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32673 if test $ac_cv_have_decl_tzname = yes; then
32674
32675 cat >>confdefs.h <<_ACEOF
32676 #define HAVE_DECL_TZNAME 1
32677 _ACEOF
32678
32679
32680 else
32681   cat >>confdefs.h <<_ACEOF
32682 #define HAVE_DECL_TZNAME 0
32683 _ACEOF
32684
32685
32686 fi
32687
32688
32689   { echo "$as_me:$LINENO: checking for tzname" >&5
32690 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32691 if test "${ac_cv_var_tzname+set}" = set; then
32692   echo $ECHO_N "(cached) $ECHO_C" >&6
32693 else
32694   cat >conftest.$ac_ext <<_ACEOF
32695 /* confdefs.h.  */
32696 _ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h.  */
32700 #include <time.h>
32701 #if !HAVE_DECL_TZNAME
32702 extern char *tzname[];
32703 #endif
32704
32705 int
32706 main ()
32707 {
32708 return tzname[0][0];
32709   ;
32710   return 0;
32711 }
32712 _ACEOF
32713 rm -f conftest.$ac_objext conftest$ac_exeext
32714 if { (ac_try="$ac_link"
32715 case "(($ac_try" in
32716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717   *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720   (eval "$ac_link") 2>conftest.er1
32721   ac_status=$?
32722   grep -v '^ *+' conftest.er1 >conftest.err
32723   rm -f conftest.er1
32724   cat conftest.err >&5
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); } && {
32727          test -z "$ac_c_werror_flag" ||
32728          test ! -s conftest.err
32729        } && test -s conftest$ac_exeext &&
32730        $as_test_x conftest$ac_exeext; then
32731   ac_cv_var_tzname=yes
32732 else
32733   echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32735
32736         ac_cv_var_tzname=no
32737 fi
32738
32739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32740       conftest$ac_exeext conftest.$ac_ext
32741 fi
32742 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32743 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32744   if test $ac_cv_var_tzname = yes; then
32745
32746 cat >>confdefs.h <<\_ACEOF
32747 #define HAVE_TZNAME 1
32748 _ACEOF
32749
32750   fi
32751 fi
32752
32753
32754 { echo "$as_me:$LINENO: checking for utime.h" >&5
32755 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32756 if test "${ba_cv_header_utime_h+set}" = set; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759
32760        cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766
32767               #include <sys/types.h>
32768               #include <utime.h>
32769
32770 int
32771 main ()
32772 {
32773
32774               struct utimbuf foo
32775
32776   ;
32777   return 0;
32778 }
32779 _ACEOF
32780 rm -f conftest.$ac_objext
32781 if { (ac_try="$ac_compile"
32782 case "(($ac_try" in
32783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784   *) ac_try_echo=$ac_try;;
32785 esac
32786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787   (eval "$ac_compile") 2>conftest.er1
32788   ac_status=$?
32789   grep -v '^ *+' conftest.er1 >conftest.err
32790   rm -f conftest.er1
32791   cat conftest.err >&5
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); } && {
32794          test -z "$ac_c_werror_flag" ||
32795          test ! -s conftest.err
32796        } && test -s conftest.$ac_objext; then
32797
32798               ba_cv_header_utime_h=yes
32799
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804
32805               ba_cv_header_utime_h=no
32806
32807
32808 fi
32809
32810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32811
32812
32813 fi
32814 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32815 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32816 test $ba_cv_header_utime_h = yes &&
32817 cat >>confdefs.h <<\_ACEOF
32818 #define HAVE_UTIME_H 1
32819 _ACEOF
32820
32821
32822 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32823 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32824 if test "${ba_cv_header_socklen_t+set}" = set; then
32825   echo $ECHO_N "(cached) $ECHO_C" >&6
32826 else
32827
32828        cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834
32835               #include <sys/types.h>
32836               #include <sys/socket.h>
32837
32838 int
32839 main ()
32840 {
32841
32842               socklen_t x
32843
32844   ;
32845   return 0;
32846 }
32847 _ACEOF
32848 rm -f conftest.$ac_objext
32849 if { (ac_try="$ac_compile"
32850 case "(($ac_try" in
32851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852   *) ac_try_echo=$ac_try;;
32853 esac
32854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855   (eval "$ac_compile") 2>conftest.er1
32856   ac_status=$?
32857   grep -v '^ *+' conftest.er1 >conftest.err
32858   rm -f conftest.er1
32859   cat conftest.err >&5
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); } && {
32862          test -z "$ac_c_werror_flag" ||
32863          test ! -s conftest.err
32864        } && test -s conftest.$ac_objext; then
32865
32866              ba_cv_header_socklen_t=yes
32867
32868 else
32869   echo "$as_me: failed program was:" >&5
32870 sed 's/^/| /' conftest.$ac_ext >&5
32871
32872
32873              ba_cv_header_socklen_t=no
32874
32875
32876 fi
32877
32878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32879
32880
32881 fi
32882 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32883 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32884 test $ba_cv_header_socklen_t = yes &&
32885 cat >>confdefs.h <<\_ACEOF
32886 #define HAVE_SOCKLEN_T 1
32887 _ACEOF
32888
32889
32890 ac_ext=cpp
32891 ac_cpp='$CXXCPP $CPPFLAGS'
32892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32895
32896 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32897 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32898 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32899   echo $ECHO_N "(cached) $ECHO_C" >&6
32900 else
32901
32902        cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908
32909               #include <unistd.h>
32910               #include <sys/types.h>
32911               #include <sys/ioctl.h>
32912
32913 int
32914 main ()
32915 {
32916
32917               int (*d_ioctl)(int fd, unsigned long int request, ...);
32918               d_ioctl = ::ioctl;
32919
32920   ;
32921   return 0;
32922 }
32923 _ACEOF
32924 rm -f conftest.$ac_objext
32925 if { (ac_try="$ac_compile"
32926 case "(($ac_try" in
32927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32928   *) ac_try_echo=$ac_try;;
32929 esac
32930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32931   (eval "$ac_compile") 2>conftest.er1
32932   ac_status=$?
32933   grep -v '^ *+' conftest.er1 >conftest.err
32934   rm -f conftest.er1
32935   cat conftest.err >&5
32936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937   (exit $ac_status); } && {
32938          test -z "$ac_cxx_werror_flag" ||
32939          test ! -s conftest.err
32940        } && test -s conftest.$ac_objext; then
32941
32942              ba_cv_header_ioctl_req_t=yes
32943
32944 else
32945   echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32947
32948
32949              ba_cv_header_ioctl_req_t=no
32950
32951
32952 fi
32953
32954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32955
32956
32957 fi
32958 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32959 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32960 test $ba_cv_header_ioctl_req_t = yes &&
32961 cat >>confdefs.h <<\_ACEOF
32962 #define HAVE_IOCTL_ULINT_REQUEST 1
32963 _ACEOF
32964
32965
32966 ac_ext=c
32967 ac_cpp='$CPP $CPPFLAGS'
32968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32971
32972
32973 ac_ext=cpp
32974 ac_cpp='$CXXCPP $CPPFLAGS'
32975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32978
32979 { echo "$as_me:$LINENO: checking for typeof" >&5
32980 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32981 if test "${ba_cv_have_typeof+set}" = set; then
32982   echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984
32985        if test "$cross_compiling" = yes; then
32986
32987               ba_cv_have_typeof=no
32988
32989
32990 else
32991   cat >conftest.$ac_ext <<_ACEOF
32992 /* confdefs.h.  */
32993 _ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h.  */
32997
32998               main(){char *a = 0; a = (typeof a)a;}
32999
33000 _ACEOF
33001 rm -f conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_link") 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33012   { (case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_try") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; }; then
33021
33022               ba_cv_have_typeof=yes
33023
33024 else
33025   echo "$as_me: program exited with status $ac_status" >&5
33026 echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33028
33029 ( exit $ac_status )
33030
33031               ba_cv_have_typeof=no
33032
33033 fi
33034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33035 fi
33036
33037
33038
33039
33040 fi
33041 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33042 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33043 test $ba_cv_have_typeof = yes &&
33044 cat >>confdefs.h <<\_ACEOF
33045 #define HAVE_TYPEOF 1
33046 _ACEOF
33047
33048 ac_ext=c
33049 ac_cpp='$CPP $CPPFLAGS'
33050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33053
33054
33055 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33056 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33057 if test "${ac_cv_c_const+set}" = set; then
33058   echo $ECHO_N "(cached) $ECHO_C" >&6
33059 else
33060   cat >conftest.$ac_ext <<_ACEOF
33061 /* confdefs.h.  */
33062 _ACEOF
33063 cat confdefs.h >>conftest.$ac_ext
33064 cat >>conftest.$ac_ext <<_ACEOF
33065 /* end confdefs.h.  */
33066
33067 int
33068 main ()
33069 {
33070 /* FIXME: Include the comments suggested by Paul. */
33071 #ifndef __cplusplus
33072   /* Ultrix mips cc rejects this.  */
33073   typedef int charset[2];
33074   const charset cs;
33075   /* SunOS 4.1.1 cc rejects this.  */
33076   char const *const *pcpcc;
33077   char **ppc;
33078   /* NEC SVR4.0.2 mips cc rejects this.  */
33079   struct point {int x, y;};
33080   static struct point const zero = {0,0};
33081   /* AIX XL C 1.02.0.0 rejects this.
33082      It does not let you subtract one const X* pointer from another in
33083      an arm of an if-expression whose if-part is not a constant
33084      expression */
33085   const char *g = "string";
33086   pcpcc = &g + (g ? g-g : 0);
33087   /* HPUX 7.0 cc rejects these. */
33088   ++pcpcc;
33089   ppc = (char**) pcpcc;
33090   pcpcc = (char const *const *) ppc;
33091   { /* SCO 3.2v4 cc rejects this.  */
33092     char *t;
33093     char const *s = 0 ? (char *) 0 : (char const *) 0;
33094
33095     *t++ = 0;
33096     if (s) return 0;
33097   }
33098   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33099     int x[] = {25, 17};
33100     const int *foo = &x[0];
33101     ++foo;
33102   }
33103   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33104     typedef const int *iptr;
33105     iptr p = 0;
33106     ++p;
33107   }
33108   { /* AIX XL C 1.02.0.0 rejects this saying
33109        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33110     struct s { int j; const int *ap[3]; };
33111     struct s *b; b->j = 5;
33112   }
33113   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33114     const int foo = 10;
33115     if (!foo) return 0;
33116   }
33117   return !cs[0] && !zero.x;
33118 #endif
33119
33120   ;
33121   return 0;
33122 }
33123 _ACEOF
33124 rm -f conftest.$ac_objext
33125 if { (ac_try="$ac_compile"
33126 case "(($ac_try" in
33127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128   *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131   (eval "$ac_compile") 2>conftest.er1
33132   ac_status=$?
33133   grep -v '^ *+' conftest.er1 >conftest.err
33134   rm -f conftest.er1
33135   cat conftest.err >&5
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); } && {
33138          test -z "$ac_c_werror_flag" ||
33139          test ! -s conftest.err
33140        } && test -s conftest.$ac_objext; then
33141   ac_cv_c_const=yes
33142 else
33143   echo "$as_me: failed program was:" >&5
33144 sed 's/^/| /' conftest.$ac_ext >&5
33145
33146         ac_cv_c_const=no
33147 fi
33148
33149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33150 fi
33151 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33152 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33153 if test $ac_cv_c_const = no; then
33154
33155 cat >>confdefs.h <<\_ACEOF
33156 #define const
33157 _ACEOF
33158
33159 fi
33160
33161
33162 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33163 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33164 fstype=no
33165 # The order of these tests is important.
33166 cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172
33173        #include <sys/statvfs.h>
33174        #include <sys/fstyp.h>
33175
33176 _ACEOF
33177 if { (ac_try="$ac_cpp conftest.$ac_ext"
33178 case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } >/dev/null && {
33190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33191          test ! -s conftest.err
33192        }; then
33193   cat >>confdefs.h <<\_ACEOF
33194 #define FSTYPE_STATVFS 1
33195 _ACEOF
33196  fstype=SVR4
33197
33198 else
33199   echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202
33203 fi
33204
33205 rm -f conftest.err conftest.$ac_ext
33206 if test $fstype = no; then
33207    cat >conftest.$ac_ext <<_ACEOF
33208 /* confdefs.h.  */
33209 _ACEOF
33210 cat confdefs.h >>conftest.$ac_ext
33211 cat >>conftest.$ac_ext <<_ACEOF
33212 /* end confdefs.h.  */
33213
33214           #include <sys/statfs.h>
33215           #include <sys/fstyp.h>
33216
33217 _ACEOF
33218 if { (ac_try="$ac_cpp conftest.$ac_ext"
33219 case "(($ac_try" in
33220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221   *) ac_try_echo=$ac_try;;
33222 esac
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33225   ac_status=$?
33226   grep -v '^ *+' conftest.er1 >conftest.err
33227   rm -f conftest.er1
33228   cat conftest.err >&5
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } >/dev/null && {
33231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33232          test ! -s conftest.err
33233        }; then
33234   cat >>confdefs.h <<\_ACEOF
33235 #define FSTYPE_USG_STATFS 1
33236 _ACEOF
33237  fstype=SVR3
33238
33239 else
33240   echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33242
33243
33244 fi
33245
33246 rm -f conftest.err conftest.$ac_ext
33247 fi
33248 if test $fstype = no; then
33249    cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h.  */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h.  */
33255
33256           #include <sys/statfs.h>
33257           #include <sys/vmount.h>
33258
33259 _ACEOF
33260 if { (ac_try="$ac_cpp conftest.$ac_ext"
33261 case "(($ac_try" in
33262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33263   *) ac_try_echo=$ac_try;;
33264 esac
33265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33267   ac_status=$?
33268   grep -v '^ *+' conftest.er1 >conftest.err
33269   rm -f conftest.er1
33270   cat conftest.err >&5
33271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272   (exit $ac_status); } >/dev/null && {
33273          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33274          test ! -s conftest.err
33275        }; then
33276   cat >>confdefs.h <<\_ACEOF
33277 #define FSTYPE_AIX_STATFS 1
33278 _ACEOF
33279  fstype=AIX
33280
33281 else
33282   echo "$as_me: failed program was:" >&5
33283 sed 's/^/| /' conftest.$ac_ext >&5
33284
33285
33286 fi
33287
33288 rm -f conftest.err conftest.$ac_ext
33289 fi
33290 if test $fstype = no; then
33291    cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h.  */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h.  */
33297
33298           #include <mntent.h>
33299
33300 _ACEOF
33301 if { (ac_try="$ac_cpp conftest.$ac_ext"
33302 case "(($ac_try" in
33303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304   *) ac_try_echo=$ac_try;;
33305 esac
33306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } >/dev/null && {
33314          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33315          test ! -s conftest.err
33316        }; then
33317   cat >>confdefs.h <<\_ACEOF
33318 #define FSTYPE_MNTENT 1
33319 _ACEOF
33320  fstype=4.3BSD
33321
33322 else
33323   echo "$as_me: failed program was:" >&5
33324 sed 's/^/| /' conftest.$ac_ext >&5
33325
33326
33327 fi
33328
33329 rm -f conftest.err conftest.$ac_ext
33330 fi
33331 if test $fstype = no; then
33332    cat >conftest.$ac_ext <<_ACEOF
33333 /* confdefs.h.  */
33334 _ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h.  */
33338 #include <sys/mount.h>
33339
33340 _ACEOF
33341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33342   $EGREP "f_type;" >/dev/null 2>&1; then
33343   cat >>confdefs.h <<\_ACEOF
33344 #define FSTYPE_STATFS 1
33345 _ACEOF
33346  fstype=4.4BSD/OSF1
33347 fi
33348 rm -f conftest*
33349
33350 fi
33351 if test $fstype = no; then
33352    cat >conftest.$ac_ext <<_ACEOF
33353 /* confdefs.h.  */
33354 _ACEOF
33355 cat confdefs.h >>conftest.$ac_ext
33356 cat >>conftest.$ac_ext <<_ACEOF
33357 /* end confdefs.h.  */
33358
33359           #include <sys/mount.h>
33360           #include <sys/fs_types.h>
33361
33362 _ACEOF
33363 if { (ac_try="$ac_cpp conftest.$ac_ext"
33364 case "(($ac_try" in
33365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366   *) ac_try_echo=$ac_try;;
33367 esac
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33370   ac_status=$?
33371   grep -v '^ *+' conftest.er1 >conftest.err
33372   rm -f conftest.er1
33373   cat conftest.err >&5
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); } >/dev/null && {
33376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33377          test ! -s conftest.err
33378        }; then
33379   cat >>confdefs.h <<\_ACEOF
33380 #define FSTYPE_GETMNT 1
33381 _ACEOF
33382  fstype=Ultrix
33383
33384 else
33385   echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33387
33388
33389 fi
33390
33391 rm -f conftest.err conftest.$ac_ext
33392 fi
33393 { echo "$as_me:$LINENO: result: $fstype" >&5
33394 echo "${ECHO_T}$fstype" >&6; }
33395
33396 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33397   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33398 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33399 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33400   echo $ECHO_N "(cached) $ECHO_C" >&6
33401 fi
33402 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33403 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33404 else
33405   # Is the header compilable?
33406 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33407 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33408 cat >conftest.$ac_ext <<_ACEOF
33409 /* confdefs.h.  */
33410 _ACEOF
33411 cat confdefs.h >>conftest.$ac_ext
33412 cat >>conftest.$ac_ext <<_ACEOF
33413 /* end confdefs.h.  */
33414 $ac_includes_default
33415 #include <sys/statvfs.h>
33416 _ACEOF
33417 rm -f conftest.$ac_objext
33418 if { (ac_try="$ac_compile"
33419 case "(($ac_try" in
33420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33421   *) ac_try_echo=$ac_try;;
33422 esac
33423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33424   (eval "$ac_compile") 2>conftest.er1
33425   ac_status=$?
33426   grep -v '^ *+' conftest.er1 >conftest.err
33427   rm -f conftest.er1
33428   cat conftest.err >&5
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); } && {
33431          test -z "$ac_c_werror_flag" ||
33432          test ! -s conftest.err
33433        } && test -s conftest.$ac_objext; then
33434   ac_header_compiler=yes
33435 else
33436   echo "$as_me: failed program was:" >&5
33437 sed 's/^/| /' conftest.$ac_ext >&5
33438
33439         ac_header_compiler=no
33440 fi
33441
33442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33444 echo "${ECHO_T}$ac_header_compiler" >&6; }
33445
33446 # Is the header present?
33447 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33448 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33449 cat >conftest.$ac_ext <<_ACEOF
33450 /* confdefs.h.  */
33451 _ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h.  */
33455 #include <sys/statvfs.h>
33456 _ACEOF
33457 if { (ac_try="$ac_cpp conftest.$ac_ext"
33458 case "(($ac_try" in
33459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460   *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } >/dev/null && {
33470          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33471          test ! -s conftest.err
33472        }; then
33473   ac_header_preproc=yes
33474 else
33475   echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33477
33478   ac_header_preproc=no
33479 fi
33480
33481 rm -f conftest.err conftest.$ac_ext
33482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33483 echo "${ECHO_T}$ac_header_preproc" >&6; }
33484
33485 # So?  What about this header?
33486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33487   yes:no: )
33488     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33489 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33490     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33491 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33492     ac_header_preproc=yes
33493     ;;
33494   no:yes:* )
33495     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33496 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33497     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33498 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33499     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33500 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33501     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33502 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33503     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33504 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33505     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33506 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33507
33508     ;;
33509 esac
33510 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33511 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33512 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33513   echo $ECHO_N "(cached) $ECHO_C" >&6
33514 else
33515   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33516 fi
33517 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33518 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33519
33520 fi
33521 if test $ac_cv_header_sys_statvfs_h = yes; then
33522
33523 cat >>confdefs.h <<\_ACEOF
33524 #define HAVE_SYS_STATVFS_H 1
33525 _ACEOF
33526
33527 fi
33528
33529
33530
33531 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33532 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33533 if test "${ac_cv_type_signal+set}" = set; then
33534   echo $ECHO_N "(cached) $ECHO_C" >&6
33535 else
33536   cat >conftest.$ac_ext <<_ACEOF
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542 #include <sys/types.h>
33543 #include <signal.h>
33544
33545 int
33546 main ()
33547 {
33548 return *(signal (0, 0)) (0) == 1;
33549   ;
33550   return 0;
33551 }
33552 _ACEOF
33553 rm -f conftest.$ac_objext
33554 if { (ac_try="$ac_compile"
33555 case "(($ac_try" in
33556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557   *) ac_try_echo=$ac_try;;
33558 esac
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560   (eval "$ac_compile") 2>conftest.er1
33561   ac_status=$?
33562   grep -v '^ *+' conftest.er1 >conftest.err
33563   rm -f conftest.er1
33564   cat conftest.err >&5
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } && {
33567          test -z "$ac_c_werror_flag" ||
33568          test ! -s conftest.err
33569        } && test -s conftest.$ac_objext; then
33570   ac_cv_type_signal=int
33571 else
33572   echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33574
33575         ac_cv_type_signal=void
33576 fi
33577
33578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33579 fi
33580 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33581 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33582
33583 cat >>confdefs.h <<_ACEOF
33584 #define RETSIGTYPE $ac_cv_type_signal
33585 _ACEOF
33586
33587
33588
33589   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33590 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33591   if test "${bash_cv_signal_vintage+set}" = set; then
33592   echo $ECHO_N "(cached) $ECHO_C" >&6
33593 else
33594
33595     cat >conftest.$ac_ext <<_ACEOF
33596 /* confdefs.h.  */
33597 _ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h.  */
33601 #include <signal.h>
33602 int
33603 main ()
33604 {
33605
33606       sigset_t ss;
33607       struct sigaction sa;
33608       sigemptyset(&ss); sigsuspend(&ss);
33609       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33610       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33611
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (ac_try="$ac_link"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_link") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } && {
33630          test -z "$ac_c_werror_flag" ||
33631          test ! -s conftest.err
33632        } && test -s conftest$ac_exeext &&
33633        $as_test_x conftest$ac_exeext; then
33634   bash_cv_signal_vintage="posix"
33635 else
33636   echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33638
33639
33640       cat >conftest.$ac_ext <<_ACEOF
33641 /* confdefs.h.  */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h.  */
33646 #include <signal.h>
33647 int
33648 main ()
33649 {
33650
33651           int mask = sigmask(SIGINT);
33652           sigsetmask(mask); sigblock(mask); sigpause(mask);
33653
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_link") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } && {
33672          test -z "$ac_c_werror_flag" ||
33673          test ! -s conftest.err
33674        } && test -s conftest$ac_exeext &&
33675        $as_test_x conftest$ac_exeext; then
33676   bash_cv_signal_vintage="4.2bsd"
33677 else
33678   echo "$as_me: failed program was:" >&5
33679 sed 's/^/| /' conftest.$ac_ext >&5
33680
33681
33682         cat >conftest.$ac_ext <<_ACEOF
33683 /* confdefs.h.  */
33684 _ACEOF
33685 cat confdefs.h >>conftest.$ac_ext
33686 cat >>conftest.$ac_ext <<_ACEOF
33687 /* end confdefs.h.  */
33688
33689           #include <signal.h>
33690           RETSIGTYPE foo() { }
33691 int
33692 main ()
33693 {
33694
33695                   int mask = sigmask(SIGINT);
33696                   sigset(SIGINT, foo); sigrelse(SIGINT);
33697                   sighold(SIGINT); sigpause(SIGINT);
33698
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 rm -f conftest.$ac_objext conftest$ac_exeext
33704 if { (ac_try="$ac_link"
33705 case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_link") 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } && {
33717          test -z "$ac_c_werror_flag" ||
33718          test ! -s conftest.err
33719        } && test -s conftest$ac_exeext &&
33720        $as_test_x conftest$ac_exeext; then
33721   bash_cv_signal_vintage="svr3"
33722 else
33723   echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33725
33726         bash_cv_signal_vintage="v7"
33727
33728 fi
33729
33730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33731       conftest$ac_exeext conftest.$ac_ext
33732
33733 fi
33734
33735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33736       conftest$ac_exeext conftest.$ac_ext
33737
33738 fi
33739
33740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33741       conftest$ac_exeext conftest.$ac_ext
33742
33743 fi
33744
33745   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33746 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33747   if test "$bash_cv_signal_vintage" = "posix"; then
33748     cat >>confdefs.h <<\_ACEOF
33749 #define HAVE_POSIX_SIGNALS 1
33750 _ACEOF
33751
33752   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33753     cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_BSD_SIGNALS 1
33755 _ACEOF
33756
33757   elif test "$bash_cv_signal_vintage" = "svr3"; then
33758     cat >>confdefs.h <<\_ACEOF
33759 #define HAVE_USG_SIGHOLD 1
33760 _ACEOF
33761
33762   fi
33763
33764 { echo "$as_me:$LINENO: checking for mode_t" >&5
33765 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33766 if test "${ac_cv_type_mode_t+set}" = set; then
33767   echo $ECHO_N "(cached) $ECHO_C" >&6
33768 else
33769   cat >conftest.$ac_ext <<_ACEOF
33770 /* confdefs.h.  */
33771 _ACEOF
33772 cat confdefs.h >>conftest.$ac_ext
33773 cat >>conftest.$ac_ext <<_ACEOF
33774 /* end confdefs.h.  */
33775 $ac_includes_default
33776 typedef mode_t ac__type_new_;
33777 int
33778 main ()
33779 {
33780 if ((ac__type_new_ *) 0)
33781   return 0;
33782 if (sizeof (ac__type_new_))
33783   return 0;
33784   ;
33785   return 0;
33786 }
33787 _ACEOF
33788 rm -f conftest.$ac_objext
33789 if { (ac_try="$ac_compile"
33790 case "(($ac_try" in
33791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792   *) ac_try_echo=$ac_try;;
33793 esac
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795   (eval "$ac_compile") 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } && {
33802          test -z "$ac_c_werror_flag" ||
33803          test ! -s conftest.err
33804        } && test -s conftest.$ac_objext; then
33805   ac_cv_type_mode_t=yes
33806 else
33807   echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33809
33810         ac_cv_type_mode_t=no
33811 fi
33812
33813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33814 fi
33815 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33816 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33817 if test $ac_cv_type_mode_t = yes; then
33818   :
33819 else
33820
33821 cat >>confdefs.h <<_ACEOF
33822 #define mode_t int
33823 _ACEOF
33824
33825 fi
33826
33827 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33828 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33829 if test "${ac_cv_type_uid_t+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832   cat >conftest.$ac_ext <<_ACEOF
33833 /* confdefs.h.  */
33834 _ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h.  */
33838 #include <sys/types.h>
33839
33840 _ACEOF
33841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33842   $EGREP "uid_t" >/dev/null 2>&1; then
33843   ac_cv_type_uid_t=yes
33844 else
33845   ac_cv_type_uid_t=no
33846 fi
33847 rm -f conftest*
33848
33849 fi
33850 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33851 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33852 if test $ac_cv_type_uid_t = no; then
33853
33854 cat >>confdefs.h <<\_ACEOF
33855 #define uid_t int
33856 _ACEOF
33857
33858
33859 cat >>confdefs.h <<\_ACEOF
33860 #define gid_t int
33861 _ACEOF
33862
33863 fi
33864
33865 { echo "$as_me:$LINENO: checking for size_t" >&5
33866 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33867 if test "${ac_cv_type_size_t+set}" = set; then
33868   echo $ECHO_N "(cached) $ECHO_C" >&6
33869 else
33870   cat >conftest.$ac_ext <<_ACEOF
33871 /* confdefs.h.  */
33872 _ACEOF
33873 cat confdefs.h >>conftest.$ac_ext
33874 cat >>conftest.$ac_ext <<_ACEOF
33875 /* end confdefs.h.  */
33876 $ac_includes_default
33877 typedef size_t ac__type_new_;
33878 int
33879 main ()
33880 {
33881 if ((ac__type_new_ *) 0)
33882   return 0;
33883 if (sizeof (ac__type_new_))
33884   return 0;
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893   *) ac_try_echo=$ac_try;;
33894 esac
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896   (eval "$ac_compile") 2>conftest.er1
33897   ac_status=$?
33898   grep -v '^ *+' conftest.er1 >conftest.err
33899   rm -f conftest.er1
33900   cat conftest.err >&5
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); } && {
33903          test -z "$ac_c_werror_flag" ||
33904          test ! -s conftest.err
33905        } && test -s conftest.$ac_objext; then
33906   ac_cv_type_size_t=yes
33907 else
33908   echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33910
33911         ac_cv_type_size_t=no
33912 fi
33913
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 fi
33916 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33917 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33918 if test $ac_cv_type_size_t = yes; then
33919   :
33920 else
33921
33922 cat >>confdefs.h <<_ACEOF
33923 #define size_t unsigned int
33924 _ACEOF
33925
33926 fi
33927
33928 { echo "$as_me:$LINENO: checking for pid_t" >&5
33929 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33930 if test "${ac_cv_type_pid_t+set}" = set; then
33931   echo $ECHO_N "(cached) $ECHO_C" >&6
33932 else
33933   cat >conftest.$ac_ext <<_ACEOF
33934 /* confdefs.h.  */
33935 _ACEOF
33936 cat confdefs.h >>conftest.$ac_ext
33937 cat >>conftest.$ac_ext <<_ACEOF
33938 /* end confdefs.h.  */
33939 $ac_includes_default
33940 typedef pid_t ac__type_new_;
33941 int
33942 main ()
33943 {
33944 if ((ac__type_new_ *) 0)
33945   return 0;
33946 if (sizeof (ac__type_new_))
33947   return 0;
33948   ;
33949   return 0;
33950 }
33951 _ACEOF
33952 rm -f conftest.$ac_objext
33953 if { (ac_try="$ac_compile"
33954 case "(($ac_try" in
33955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33956   *) ac_try_echo=$ac_try;;
33957 esac
33958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33959   (eval "$ac_compile") 2>conftest.er1
33960   ac_status=$?
33961   grep -v '^ *+' conftest.er1 >conftest.err
33962   rm -f conftest.er1
33963   cat conftest.err >&5
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); } && {
33966          test -z "$ac_c_werror_flag" ||
33967          test ! -s conftest.err
33968        } && test -s conftest.$ac_objext; then
33969   ac_cv_type_pid_t=yes
33970 else
33971   echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33973
33974         ac_cv_type_pid_t=no
33975 fi
33976
33977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33978 fi
33979 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33980 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33981 if test $ac_cv_type_pid_t = yes; then
33982   :
33983 else
33984
33985 cat >>confdefs.h <<_ACEOF
33986 #define pid_t int
33987 _ACEOF
33988
33989 fi
33990
33991 { echo "$as_me:$LINENO: checking for off_t" >&5
33992 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33993 if test "${ac_cv_type_off_t+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996   cat >conftest.$ac_ext <<_ACEOF
33997 /* confdefs.h.  */
33998 _ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h.  */
34002 $ac_includes_default
34003 typedef off_t ac__type_new_;
34004 int
34005 main ()
34006 {
34007 if ((ac__type_new_ *) 0)
34008   return 0;
34009 if (sizeof (ac__type_new_))
34010   return 0;
34011   ;
34012   return 0;
34013 }
34014 _ACEOF
34015 rm -f conftest.$ac_objext
34016 if { (ac_try="$ac_compile"
34017 case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_compile") 2>conftest.er1
34023   ac_status=$?
34024   grep -v '^ *+' conftest.er1 >conftest.err
34025   rm -f conftest.er1
34026   cat conftest.err >&5
34027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028   (exit $ac_status); } && {
34029          test -z "$ac_c_werror_flag" ||
34030          test ! -s conftest.err
34031        } && test -s conftest.$ac_objext; then
34032   ac_cv_type_off_t=yes
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037         ac_cv_type_off_t=no
34038 fi
34039
34040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34041 fi
34042 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34043 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34044 if test $ac_cv_type_off_t = yes; then
34045   :
34046 else
34047
34048 cat >>confdefs.h <<_ACEOF
34049 #define off_t long int
34050 _ACEOF
34051
34052 fi
34053
34054
34055   { echo "$as_me:$LINENO: checking for intptr_t" >&5
34056 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34057 if test "${ac_cv_type_intptr_t+set}" = set; then
34058   echo $ECHO_N "(cached) $ECHO_C" >&6
34059 else
34060   cat >conftest.$ac_ext <<_ACEOF
34061 /* confdefs.h.  */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h.  */
34066 $ac_includes_default
34067 typedef intptr_t ac__type_new_;
34068 int
34069 main ()
34070 {
34071 if ((ac__type_new_ *) 0)
34072   return 0;
34073 if (sizeof (ac__type_new_))
34074   return 0;
34075   ;
34076   return 0;
34077 }
34078 _ACEOF
34079 rm -f conftest.$ac_objext
34080 if { (ac_try="$ac_compile"
34081 case "(($ac_try" in
34082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34083   *) ac_try_echo=$ac_try;;
34084 esac
34085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34086   (eval "$ac_compile") 2>conftest.er1
34087   ac_status=$?
34088   grep -v '^ *+' conftest.er1 >conftest.err
34089   rm -f conftest.er1
34090   cat conftest.err >&5
34091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092   (exit $ac_status); } && {
34093          test -z "$ac_c_werror_flag" ||
34094          test ! -s conftest.err
34095        } && test -s conftest.$ac_objext; then
34096   ac_cv_type_intptr_t=yes
34097 else
34098   echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34100
34101         ac_cv_type_intptr_t=no
34102 fi
34103
34104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34105 fi
34106 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34107 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34108 if test $ac_cv_type_intptr_t = yes; then
34109
34110 cat >>confdefs.h <<\_ACEOF
34111 #define HAVE_INTPTR_T 1
34112 _ACEOF
34113
34114 else
34115   for ac_type in 'int' 'long int' 'long long int'; do
34116        cat >conftest.$ac_ext <<_ACEOF
34117 /* confdefs.h.  */
34118 _ACEOF
34119 cat confdefs.h >>conftest.$ac_ext
34120 cat >>conftest.$ac_ext <<_ACEOF
34121 /* end confdefs.h.  */
34122 $ac_includes_default
34123 int
34124 main ()
34125 {
34126 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34127 test_array [0] = 0
34128
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150
34151 cat >>confdefs.h <<_ACEOF
34152 #define intptr_t $ac_type
34153 _ACEOF
34154
34155           ac_type=
34156 else
34157   echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34159
34160
34161 fi
34162
34163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164        test -z "$ac_type" && break
34165      done
34166 fi
34167
34168
34169
34170   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34171 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34172 if test "${ac_cv_type_uintptr_t+set}" = set; then
34173   echo $ECHO_N "(cached) $ECHO_C" >&6
34174 else
34175   cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181 $ac_includes_default
34182 typedef uintptr_t ac__type_new_;
34183 int
34184 main ()
34185 {
34186 if ((ac__type_new_ *) 0)
34187   return 0;
34188 if (sizeof (ac__type_new_))
34189   return 0;
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_compile") 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } && {
34208          test -z "$ac_c_werror_flag" ||
34209          test ! -s conftest.err
34210        } && test -s conftest.$ac_objext; then
34211   ac_cv_type_uintptr_t=yes
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216         ac_cv_type_uintptr_t=no
34217 fi
34218
34219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34220 fi
34221 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34222 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34223 if test $ac_cv_type_uintptr_t = yes; then
34224
34225 cat >>confdefs.h <<\_ACEOF
34226 #define HAVE_UINTPTR_T 1
34227 _ACEOF
34228
34229 else
34230   for ac_type in 'unsigned int' 'unsigned long int' \
34231         'unsigned long long int'; do
34232        cat >conftest.$ac_ext <<_ACEOF
34233 /* confdefs.h.  */
34234 _ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h.  */
34238 $ac_includes_default
34239 int
34240 main ()
34241 {
34242 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34243 test_array [0] = 0
34244
34245   ;
34246   return 0;
34247 }
34248 _ACEOF
34249 rm -f conftest.$ac_objext
34250 if { (ac_try="$ac_compile"
34251 case "(($ac_try" in
34252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253   *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256   (eval "$ac_compile") 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } && {
34263          test -z "$ac_c_werror_flag" ||
34264          test ! -s conftest.err
34265        } && test -s conftest.$ac_objext; then
34266
34267 cat >>confdefs.h <<_ACEOF
34268 #define uintptr_t $ac_type
34269 _ACEOF
34270
34271           ac_type=
34272 else
34273   echo "$as_me: failed program was:" >&5
34274 sed 's/^/| /' conftest.$ac_ext >&5
34275
34276
34277 fi
34278
34279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34280        test -z "$ac_type" && break
34281      done
34282 fi
34283
34284
34285 { echo "$as_me:$LINENO: checking for ino_t" >&5
34286 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34287 if test "${ac_cv_type_ino_t+set}" = set; then
34288   echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290   cat >conftest.$ac_ext <<_ACEOF
34291 /* confdefs.h.  */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h.  */
34296 $ac_includes_default
34297 typedef ino_t ac__type_new_;
34298 int
34299 main ()
34300 {
34301 if ((ac__type_new_ *) 0)
34302   return 0;
34303 if (sizeof (ac__type_new_))
34304   return 0;
34305   ;
34306   return 0;
34307 }
34308 _ACEOF
34309 rm -f conftest.$ac_objext
34310 if { (ac_try="$ac_compile"
34311 case "(($ac_try" in
34312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34313   *) ac_try_echo=$ac_try;;
34314 esac
34315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34316   (eval "$ac_compile") 2>conftest.er1
34317   ac_status=$?
34318   grep -v '^ *+' conftest.er1 >conftest.err
34319   rm -f conftest.er1
34320   cat conftest.err >&5
34321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322   (exit $ac_status); } && {
34323          test -z "$ac_c_werror_flag" ||
34324          test ! -s conftest.err
34325        } && test -s conftest.$ac_objext; then
34326   ac_cv_type_ino_t=yes
34327 else
34328   echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34330
34331         ac_cv_type_ino_t=no
34332 fi
34333
34334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34335 fi
34336 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34337 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34338 if test $ac_cv_type_ino_t = yes; then
34339   :
34340 else
34341
34342 cat >>confdefs.h <<_ACEOF
34343 #define ino_t unsigned long
34344 _ACEOF
34345
34346 fi
34347
34348 { echo "$as_me:$LINENO: checking for dev_t" >&5
34349 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34350 if test "${ac_cv_type_dev_t+set}" = set; then
34351   echo $ECHO_N "(cached) $ECHO_C" >&6
34352 else
34353   cat >conftest.$ac_ext <<_ACEOF
34354 /* confdefs.h.  */
34355 _ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h.  */
34359 $ac_includes_default
34360 typedef dev_t ac__type_new_;
34361 int
34362 main ()
34363 {
34364 if ((ac__type_new_ *) 0)
34365   return 0;
34366 if (sizeof (ac__type_new_))
34367   return 0;
34368   ;
34369   return 0;
34370 }
34371 _ACEOF
34372 rm -f conftest.$ac_objext
34373 if { (ac_try="$ac_compile"
34374 case "(($ac_try" in
34375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376   *) ac_try_echo=$ac_try;;
34377 esac
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379   (eval "$ac_compile") 2>conftest.er1
34380   ac_status=$?
34381   grep -v '^ *+' conftest.er1 >conftest.err
34382   rm -f conftest.er1
34383   cat conftest.err >&5
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); } && {
34386          test -z "$ac_c_werror_flag" ||
34387          test ! -s conftest.err
34388        } && test -s conftest.$ac_objext; then
34389   ac_cv_type_dev_t=yes
34390 else
34391   echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34393
34394         ac_cv_type_dev_t=no
34395 fi
34396
34397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34398 fi
34399 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34400 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34401 if test $ac_cv_type_dev_t = yes; then
34402   :
34403 else
34404
34405 cat >>confdefs.h <<_ACEOF
34406 #define dev_t unsigned long
34407 _ACEOF
34408
34409 fi
34410
34411 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34412 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34413 if test "${ac_cv_type_daddr_t+set}" = set; then
34414   echo $ECHO_N "(cached) $ECHO_C" >&6
34415 else
34416   cat >conftest.$ac_ext <<_ACEOF
34417 /* confdefs.h.  */
34418 _ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h.  */
34422 $ac_includes_default
34423 typedef daddr_t ac__type_new_;
34424 int
34425 main ()
34426 {
34427 if ((ac__type_new_ *) 0)
34428   return 0;
34429 if (sizeof (ac__type_new_))
34430   return 0;
34431   ;
34432   return 0;
34433 }
34434 _ACEOF
34435 rm -f conftest.$ac_objext
34436 if { (ac_try="$ac_compile"
34437 case "(($ac_try" in
34438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439   *) ac_try_echo=$ac_try;;
34440 esac
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442   (eval "$ac_compile") 2>conftest.er1
34443   ac_status=$?
34444   grep -v '^ *+' conftest.er1 >conftest.err
34445   rm -f conftest.er1
34446   cat conftest.err >&5
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); } && {
34449          test -z "$ac_c_werror_flag" ||
34450          test ! -s conftest.err
34451        } && test -s conftest.$ac_objext; then
34452   ac_cv_type_daddr_t=yes
34453 else
34454   echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34456
34457         ac_cv_type_daddr_t=no
34458 fi
34459
34460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34461 fi
34462 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34463 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34464 if test $ac_cv_type_daddr_t = yes; then
34465   :
34466 else
34467
34468 cat >>confdefs.h <<_ACEOF
34469 #define daddr_t long
34470 _ACEOF
34471
34472 fi
34473
34474 { echo "$as_me:$LINENO: checking for major_t" >&5
34475 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34476 if test "${ac_cv_type_major_t+set}" = set; then
34477   echo $ECHO_N "(cached) $ECHO_C" >&6
34478 else
34479   cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h.  */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h.  */
34485 $ac_includes_default
34486 typedef major_t ac__type_new_;
34487 int
34488 main ()
34489 {
34490 if ((ac__type_new_ *) 0)
34491   return 0;
34492 if (sizeof (ac__type_new_))
34493   return 0;
34494   ;
34495   return 0;
34496 }
34497 _ACEOF
34498 rm -f conftest.$ac_objext
34499 if { (ac_try="$ac_compile"
34500 case "(($ac_try" in
34501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34502   *) ac_try_echo=$ac_try;;
34503 esac
34504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34505   (eval "$ac_compile") 2>conftest.er1
34506   ac_status=$?
34507   grep -v '^ *+' conftest.er1 >conftest.err
34508   rm -f conftest.er1
34509   cat conftest.err >&5
34510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511   (exit $ac_status); } && {
34512          test -z "$ac_c_werror_flag" ||
34513          test ! -s conftest.err
34514        } && test -s conftest.$ac_objext; then
34515   ac_cv_type_major_t=yes
34516 else
34517   echo "$as_me: failed program was:" >&5
34518 sed 's/^/| /' conftest.$ac_ext >&5
34519
34520         ac_cv_type_major_t=no
34521 fi
34522
34523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34524 fi
34525 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34526 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34527 if test $ac_cv_type_major_t = yes; then
34528   :
34529 else
34530
34531 cat >>confdefs.h <<_ACEOF
34532 #define major_t int
34533 _ACEOF
34534
34535 fi
34536
34537 { echo "$as_me:$LINENO: checking for minor_t" >&5
34538 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34539 if test "${ac_cv_type_minor_t+set}" = set; then
34540   echo $ECHO_N "(cached) $ECHO_C" >&6
34541 else
34542   cat >conftest.$ac_ext <<_ACEOF
34543 /* confdefs.h.  */
34544 _ACEOF
34545 cat confdefs.h >>conftest.$ac_ext
34546 cat >>conftest.$ac_ext <<_ACEOF
34547 /* end confdefs.h.  */
34548 $ac_includes_default
34549 typedef minor_t ac__type_new_;
34550 int
34551 main ()
34552 {
34553 if ((ac__type_new_ *) 0)
34554   return 0;
34555 if (sizeof (ac__type_new_))
34556   return 0;
34557   ;
34558   return 0;
34559 }
34560 _ACEOF
34561 rm -f conftest.$ac_objext
34562 if { (ac_try="$ac_compile"
34563 case "(($ac_try" in
34564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34565   *) ac_try_echo=$ac_try;;
34566 esac
34567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568   (eval "$ac_compile") 2>conftest.er1
34569   ac_status=$?
34570   grep -v '^ *+' conftest.er1 >conftest.err
34571   rm -f conftest.er1
34572   cat conftest.err >&5
34573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574   (exit $ac_status); } && {
34575          test -z "$ac_c_werror_flag" ||
34576          test ! -s conftest.err
34577        } && test -s conftest.$ac_objext; then
34578   ac_cv_type_minor_t=yes
34579 else
34580   echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.$ac_ext >&5
34582
34583         ac_cv_type_minor_t=no
34584 fi
34585
34586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34587 fi
34588 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34589 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34590 if test $ac_cv_type_minor_t = yes; then
34591   :
34592 else
34593
34594 cat >>confdefs.h <<_ACEOF
34595 #define minor_t int
34596 _ACEOF
34597
34598 fi
34599
34600 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34601 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34602 if test "${ac_cv_type_ssize_t+set}" = set; then
34603   echo $ECHO_N "(cached) $ECHO_C" >&6
34604 else
34605   cat >conftest.$ac_ext <<_ACEOF
34606 /* confdefs.h.  */
34607 _ACEOF
34608 cat confdefs.h >>conftest.$ac_ext
34609 cat >>conftest.$ac_ext <<_ACEOF
34610 /* end confdefs.h.  */
34611 $ac_includes_default
34612 typedef ssize_t ac__type_new_;
34613 int
34614 main ()
34615 {
34616 if ((ac__type_new_ *) 0)
34617   return 0;
34618 if (sizeof (ac__type_new_))
34619   return 0;
34620   ;
34621   return 0;
34622 }
34623 _ACEOF
34624 rm -f conftest.$ac_objext
34625 if { (ac_try="$ac_compile"
34626 case "(($ac_try" in
34627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34628   *) ac_try_echo=$ac_try;;
34629 esac
34630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34631   (eval "$ac_compile") 2>conftest.er1
34632   ac_status=$?
34633   grep -v '^ *+' conftest.er1 >conftest.err
34634   rm -f conftest.er1
34635   cat conftest.err >&5
34636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637   (exit $ac_status); } && {
34638          test -z "$ac_c_werror_flag" ||
34639          test ! -s conftest.err
34640        } && test -s conftest.$ac_objext; then
34641   ac_cv_type_ssize_t=yes
34642 else
34643   echo "$as_me: failed program was:" >&5
34644 sed 's/^/| /' conftest.$ac_ext >&5
34645
34646         ac_cv_type_ssize_t=no
34647 fi
34648
34649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34650 fi
34651 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34652 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34653 if test $ac_cv_type_ssize_t = yes; then
34654   :
34655 else
34656
34657 cat >>confdefs.h <<_ACEOF
34658 #define ssize_t int
34659 _ACEOF
34660
34661 fi
34662
34663 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34664 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34665 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34666   echo $ECHO_N "(cached) $ECHO_C" >&6
34667 else
34668   cat >conftest.$ac_ext <<_ACEOF
34669 /* confdefs.h.  */
34670 _ACEOF
34671 cat confdefs.h >>conftest.$ac_ext
34672 cat >>conftest.$ac_ext <<_ACEOF
34673 /* end confdefs.h.  */
34674 $ac_includes_default
34675 int
34676 main ()
34677 {
34678 static struct stat ac_aggr;
34679 if (ac_aggr.st_blocks)
34680 return 0;
34681   ;
34682   return 0;
34683 }
34684 _ACEOF
34685 rm -f conftest.$ac_objext
34686 if { (ac_try="$ac_compile"
34687 case "(($ac_try" in
34688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34689   *) ac_try_echo=$ac_try;;
34690 esac
34691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34692   (eval "$ac_compile") 2>conftest.er1
34693   ac_status=$?
34694   grep -v '^ *+' conftest.er1 >conftest.err
34695   rm -f conftest.er1
34696   cat conftest.err >&5
34697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698   (exit $ac_status); } && {
34699          test -z "$ac_c_werror_flag" ||
34700          test ! -s conftest.err
34701        } && test -s conftest.$ac_objext; then
34702   ac_cv_member_struct_stat_st_blocks=yes
34703 else
34704   echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34706
34707         cat >conftest.$ac_ext <<_ACEOF
34708 /* confdefs.h.  */
34709 _ACEOF
34710 cat confdefs.h >>conftest.$ac_ext
34711 cat >>conftest.$ac_ext <<_ACEOF
34712 /* end confdefs.h.  */
34713 $ac_includes_default
34714 int
34715 main ()
34716 {
34717 static struct stat ac_aggr;
34718 if (sizeof ac_aggr.st_blocks)
34719 return 0;
34720   ;
34721   return 0;
34722 }
34723 _ACEOF
34724 rm -f conftest.$ac_objext
34725 if { (ac_try="$ac_compile"
34726 case "(($ac_try" in
34727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34728   *) ac_try_echo=$ac_try;;
34729 esac
34730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34731   (eval "$ac_compile") 2>conftest.er1
34732   ac_status=$?
34733   grep -v '^ *+' conftest.er1 >conftest.err
34734   rm -f conftest.er1
34735   cat conftest.err >&5
34736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737   (exit $ac_status); } && {
34738          test -z "$ac_c_werror_flag" ||
34739          test ! -s conftest.err
34740        } && test -s conftest.$ac_objext; then
34741   ac_cv_member_struct_stat_st_blocks=yes
34742 else
34743   echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34745
34746         ac_cv_member_struct_stat_st_blocks=no
34747 fi
34748
34749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34750 fi
34751
34752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34753 fi
34754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34756 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34757
34758 cat >>confdefs.h <<_ACEOF
34759 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34760 _ACEOF
34761
34762
34763 cat >>confdefs.h <<\_ACEOF
34764 #define HAVE_ST_BLOCKS 1
34765 _ACEOF
34766
34767 else
34768   case " $LIBOBJS " in
34769   *" fileblocks.$ac_objext "* ) ;;
34770   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34771  ;;
34772 esac
34773
34774 fi
34775
34776
34777 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34778 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34779 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34780   echo $ECHO_N "(cached) $ECHO_C" >&6
34781 else
34782   cat >conftest.$ac_ext <<_ACEOF
34783 /* confdefs.h.  */
34784 _ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h.  */
34788 $ac_includes_default
34789 int
34790 main ()
34791 {
34792 static struct stat ac_aggr;
34793 if (ac_aggr.st_rdev)
34794 return 0;
34795   ;
34796   return 0;
34797 }
34798 _ACEOF
34799 rm -f conftest.$ac_objext
34800 if { (ac_try="$ac_compile"
34801 case "(($ac_try" in
34802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34803   *) ac_try_echo=$ac_try;;
34804 esac
34805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34806   (eval "$ac_compile") 2>conftest.er1
34807   ac_status=$?
34808   grep -v '^ *+' conftest.er1 >conftest.err
34809   rm -f conftest.er1
34810   cat conftest.err >&5
34811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812   (exit $ac_status); } && {
34813          test -z "$ac_c_werror_flag" ||
34814          test ! -s conftest.err
34815        } && test -s conftest.$ac_objext; then
34816   ac_cv_member_struct_stat_st_rdev=yes
34817 else
34818   echo "$as_me: failed program was:" >&5
34819 sed 's/^/| /' conftest.$ac_ext >&5
34820
34821         cat >conftest.$ac_ext <<_ACEOF
34822 /* confdefs.h.  */
34823 _ACEOF
34824 cat confdefs.h >>conftest.$ac_ext
34825 cat >>conftest.$ac_ext <<_ACEOF
34826 /* end confdefs.h.  */
34827 $ac_includes_default
34828 int
34829 main ()
34830 {
34831 static struct stat ac_aggr;
34832 if (sizeof ac_aggr.st_rdev)
34833 return 0;
34834   ;
34835   return 0;
34836 }
34837 _ACEOF
34838 rm -f conftest.$ac_objext
34839 if { (ac_try="$ac_compile"
34840 case "(($ac_try" in
34841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842   *) ac_try_echo=$ac_try;;
34843 esac
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845   (eval "$ac_compile") 2>conftest.er1
34846   ac_status=$?
34847   grep -v '^ *+' conftest.er1 >conftest.err
34848   rm -f conftest.er1
34849   cat conftest.err >&5
34850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851   (exit $ac_status); } && {
34852          test -z "$ac_c_werror_flag" ||
34853          test ! -s conftest.err
34854        } && test -s conftest.$ac_objext; then
34855   ac_cv_member_struct_stat_st_rdev=yes
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860         ac_cv_member_struct_stat_st_rdev=no
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864 fi
34865
34866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34867 fi
34868 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34869 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34870 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34871
34872 cat >>confdefs.h <<_ACEOF
34873 #define HAVE_STRUCT_STAT_ST_RDEV 1
34874 _ACEOF
34875
34876
34877 cat >>confdefs.h <<\_ACEOF
34878 #define HAVE_ST_RDEV 1
34879 _ACEOF
34880
34881 fi
34882
34883
34884 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34886 if test "${ac_cv_struct_tm+set}" = set; then
34887   echo $ECHO_N "(cached) $ECHO_C" >&6
34888 else
34889   cat >conftest.$ac_ext <<_ACEOF
34890 /* confdefs.h.  */
34891 _ACEOF
34892 cat confdefs.h >>conftest.$ac_ext
34893 cat >>conftest.$ac_ext <<_ACEOF
34894 /* end confdefs.h.  */
34895 #include <sys/types.h>
34896 #include <time.h>
34897
34898 int
34899 main ()
34900 {
34901 struct tm tm;
34902                                      int *p = &tm.tm_sec;
34903                                      return !p;
34904   ;
34905   return 0;
34906 }
34907 _ACEOF
34908 rm -f conftest.$ac_objext
34909 if { (ac_try="$ac_compile"
34910 case "(($ac_try" in
34911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912   *) ac_try_echo=$ac_try;;
34913 esac
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915   (eval "$ac_compile") 2>conftest.er1
34916   ac_status=$?
34917   grep -v '^ *+' conftest.er1 >conftest.err
34918   rm -f conftest.er1
34919   cat conftest.err >&5
34920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921   (exit $ac_status); } && {
34922          test -z "$ac_c_werror_flag" ||
34923          test ! -s conftest.err
34924        } && test -s conftest.$ac_objext; then
34925   ac_cv_struct_tm=time.h
34926 else
34927   echo "$as_me: failed program was:" >&5
34928 sed 's/^/| /' conftest.$ac_ext >&5
34929
34930         ac_cv_struct_tm=sys/time.h
34931 fi
34932
34933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34934 fi
34935 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34936 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34937 if test $ac_cv_struct_tm = sys/time.h; then
34938
34939 cat >>confdefs.h <<\_ACEOF
34940 #define TM_IN_SYS_TIME 1
34941 _ACEOF
34942
34943 fi
34944
34945 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34947 if test "${ac_cv_c_const+set}" = set; then
34948   echo $ECHO_N "(cached) $ECHO_C" >&6
34949 else
34950   cat >conftest.$ac_ext <<_ACEOF
34951 /* confdefs.h.  */
34952 _ACEOF
34953 cat confdefs.h >>conftest.$ac_ext
34954 cat >>conftest.$ac_ext <<_ACEOF
34955 /* end confdefs.h.  */
34956
34957 int
34958 main ()
34959 {
34960 /* FIXME: Include the comments suggested by Paul. */
34961 #ifndef __cplusplus
34962   /* Ultrix mips cc rejects this.  */
34963   typedef int charset[2];
34964   const charset cs;
34965   /* SunOS 4.1.1 cc rejects this.  */
34966   char const *const *pcpcc;
34967   char **ppc;
34968   /* NEC SVR4.0.2 mips cc rejects this.  */
34969   struct point {int x, y;};
34970   static struct point const zero = {0,0};
34971   /* AIX XL C 1.02.0.0 rejects this.
34972      It does not let you subtract one const X* pointer from another in
34973      an arm of an if-expression whose if-part is not a constant
34974      expression */
34975   const char *g = "string";
34976   pcpcc = &g + (g ? g-g : 0);
34977   /* HPUX 7.0 cc rejects these. */
34978   ++pcpcc;
34979   ppc = (char**) pcpcc;
34980   pcpcc = (char const *const *) ppc;
34981   { /* SCO 3.2v4 cc rejects this.  */
34982     char *t;
34983     char const *s = 0 ? (char *) 0 : (char const *) 0;
34984
34985     *t++ = 0;
34986     if (s) return 0;
34987   }
34988   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34989     int x[] = {25, 17};
34990     const int *foo = &x[0];
34991     ++foo;
34992   }
34993   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34994     typedef const int *iptr;
34995     iptr p = 0;
34996     ++p;
34997   }
34998   { /* AIX XL C 1.02.0.0 rejects this saying
34999        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35000     struct s { int j; const int *ap[3]; };
35001     struct s *b; b->j = 5;
35002   }
35003   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35004     const int foo = 10;
35005     if (!foo) return 0;
35006   }
35007   return !cs[0] && !zero.x;
35008 #endif
35009
35010   ;
35011   return 0;
35012 }
35013 _ACEOF
35014 rm -f conftest.$ac_objext
35015 if { (ac_try="$ac_compile"
35016 case "(($ac_try" in
35017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35018   *) ac_try_echo=$ac_try;;
35019 esac
35020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35021   (eval "$ac_compile") 2>conftest.er1
35022   ac_status=$?
35023   grep -v '^ *+' conftest.er1 >conftest.err
35024   rm -f conftest.er1
35025   cat conftest.err >&5
35026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027   (exit $ac_status); } && {
35028          test -z "$ac_c_werror_flag" ||
35029          test ! -s conftest.err
35030        } && test -s conftest.$ac_objext; then
35031   ac_cv_c_const=yes
35032 else
35033   echo "$as_me: failed program was:" >&5
35034 sed 's/^/| /' conftest.$ac_ext >&5
35035
35036         ac_cv_c_const=no
35037 fi
35038
35039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35040 fi
35041 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35042 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35043 if test $ac_cv_c_const = no; then
35044
35045 cat >>confdefs.h <<\_ACEOF
35046 #define const
35047 _ACEOF
35048
35049 fi
35050
35051
35052 { echo "$as_me:$LINENO: checking for char" >&5
35053 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35054 if test "${ac_cv_type_char+set}" = set; then
35055   echo $ECHO_N "(cached) $ECHO_C" >&6
35056 else
35057   cat >conftest.$ac_ext <<_ACEOF
35058 /* confdefs.h.  */
35059 _ACEOF
35060 cat confdefs.h >>conftest.$ac_ext
35061 cat >>conftest.$ac_ext <<_ACEOF
35062 /* end confdefs.h.  */
35063 $ac_includes_default
35064 typedef char ac__type_new_;
35065 int
35066 main ()
35067 {
35068 if ((ac__type_new_ *) 0)
35069   return 0;
35070 if (sizeof (ac__type_new_))
35071   return 0;
35072   ;
35073   return 0;
35074 }
35075 _ACEOF
35076 rm -f conftest.$ac_objext
35077 if { (ac_try="$ac_compile"
35078 case "(($ac_try" in
35079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080   *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083   (eval "$ac_compile") 2>conftest.er1
35084   ac_status=$?
35085   grep -v '^ *+' conftest.er1 >conftest.err
35086   rm -f conftest.er1
35087   cat conftest.err >&5
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); } && {
35090          test -z "$ac_c_werror_flag" ||
35091          test ! -s conftest.err
35092        } && test -s conftest.$ac_objext; then
35093   ac_cv_type_char=yes
35094 else
35095   echo "$as_me: failed program was:" >&5
35096 sed 's/^/| /' conftest.$ac_ext >&5
35097
35098         ac_cv_type_char=no
35099 fi
35100
35101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35102 fi
35103 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35104 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35105
35106 # The cast to long int works around a bug in the HP C Compiler
35107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35109 # This bug is HP SR number 8606223364.
35110 { echo "$as_me:$LINENO: checking size of char" >&5
35111 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35112 if test "${ac_cv_sizeof_char+set}" = set; then
35113   echo $ECHO_N "(cached) $ECHO_C" >&6
35114 else
35115   if test "$cross_compiling" = yes; then
35116   # Depending upon the size, compute the lo and hi bounds.
35117 cat >conftest.$ac_ext <<_ACEOF
35118 /* confdefs.h.  */
35119 _ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h.  */
35123 $ac_includes_default
35124    typedef char ac__type_sizeof_;
35125 int
35126 main ()
35127 {
35128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35129 test_array [0] = 0
35130
35131   ;
35132   return 0;
35133 }
35134 _ACEOF
35135 rm -f conftest.$ac_objext
35136 if { (ac_try="$ac_compile"
35137 case "(($ac_try" in
35138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35139   *) ac_try_echo=$ac_try;;
35140 esac
35141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35142   (eval "$ac_compile") 2>conftest.er1
35143   ac_status=$?
35144   grep -v '^ *+' conftest.er1 >conftest.err
35145   rm -f conftest.er1
35146   cat conftest.err >&5
35147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148   (exit $ac_status); } && {
35149          test -z "$ac_c_werror_flag" ||
35150          test ! -s conftest.err
35151        } && test -s conftest.$ac_objext; then
35152   ac_lo=0 ac_mid=0
35153   while :; do
35154     cat >conftest.$ac_ext <<_ACEOF
35155 /* confdefs.h.  */
35156 _ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h.  */
35160 $ac_includes_default
35161    typedef char ac__type_sizeof_;
35162 int
35163 main ()
35164 {
35165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35166 test_array [0] = 0
35167
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext
35173 if { (ac_try="$ac_compile"
35174 case "(($ac_try" in
35175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35176   *) ac_try_echo=$ac_try;;
35177 esac
35178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179   (eval "$ac_compile") 2>conftest.er1
35180   ac_status=$?
35181   grep -v '^ *+' conftest.er1 >conftest.err
35182   rm -f conftest.er1
35183   cat conftest.err >&5
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); } && {
35186          test -z "$ac_c_werror_flag" ||
35187          test ! -s conftest.err
35188        } && test -s conftest.$ac_objext; then
35189   ac_hi=$ac_mid; break
35190 else
35191   echo "$as_me: failed program was:" >&5
35192 sed 's/^/| /' conftest.$ac_ext >&5
35193
35194         ac_lo=`expr $ac_mid + 1`
35195                         if test $ac_lo -le $ac_mid; then
35196                           ac_lo= ac_hi=
35197                           break
35198                         fi
35199                         ac_mid=`expr 2 '*' $ac_mid + 1`
35200 fi
35201
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203   done
35204 else
35205   echo "$as_me: failed program was:" >&5
35206 sed 's/^/| /' conftest.$ac_ext >&5
35207
35208         cat >conftest.$ac_ext <<_ACEOF
35209 /* confdefs.h.  */
35210 _ACEOF
35211 cat confdefs.h >>conftest.$ac_ext
35212 cat >>conftest.$ac_ext <<_ACEOF
35213 /* end confdefs.h.  */
35214 $ac_includes_default
35215    typedef char ac__type_sizeof_;
35216 int
35217 main ()
35218 {
35219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35220 test_array [0] = 0
35221
35222   ;
35223   return 0;
35224 }
35225 _ACEOF
35226 rm -f conftest.$ac_objext
35227 if { (ac_try="$ac_compile"
35228 case "(($ac_try" in
35229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35230   *) ac_try_echo=$ac_try;;
35231 esac
35232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35233   (eval "$ac_compile") 2>conftest.er1
35234   ac_status=$?
35235   grep -v '^ *+' conftest.er1 >conftest.err
35236   rm -f conftest.er1
35237   cat conftest.err >&5
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); } && {
35240          test -z "$ac_c_werror_flag" ||
35241          test ! -s conftest.err
35242        } && test -s conftest.$ac_objext; then
35243   ac_hi=-1 ac_mid=-1
35244   while :; do
35245     cat >conftest.$ac_ext <<_ACEOF
35246 /* confdefs.h.  */
35247 _ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h.  */
35251 $ac_includes_default
35252    typedef char ac__type_sizeof_;
35253 int
35254 main ()
35255 {
35256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35257 test_array [0] = 0
35258
35259   ;
35260   return 0;
35261 }
35262 _ACEOF
35263 rm -f conftest.$ac_objext
35264 if { (ac_try="$ac_compile"
35265 case "(($ac_try" in
35266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35267   *) ac_try_echo=$ac_try;;
35268 esac
35269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35270   (eval "$ac_compile") 2>conftest.er1
35271   ac_status=$?
35272   grep -v '^ *+' conftest.er1 >conftest.err
35273   rm -f conftest.er1
35274   cat conftest.err >&5
35275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276   (exit $ac_status); } && {
35277          test -z "$ac_c_werror_flag" ||
35278          test ! -s conftest.err
35279        } && test -s conftest.$ac_objext; then
35280   ac_lo=$ac_mid; break
35281 else
35282   echo "$as_me: failed program was:" >&5
35283 sed 's/^/| /' conftest.$ac_ext >&5
35284
35285         ac_hi=`expr '(' $ac_mid ')' - 1`
35286                         if test $ac_mid -le $ac_hi; then
35287                           ac_lo= ac_hi=
35288                           break
35289                         fi
35290                         ac_mid=`expr 2 '*' $ac_mid`
35291 fi
35292
35293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35294   done
35295 else
35296   echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35298
35299         ac_lo= ac_hi=
35300 fi
35301
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35303 fi
35304
35305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35306 # Binary search between lo and hi bounds.
35307 while test "x$ac_lo" != "x$ac_hi"; do
35308   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35309   cat >conftest.$ac_ext <<_ACEOF
35310 /* confdefs.h.  */
35311 _ACEOF
35312 cat confdefs.h >>conftest.$ac_ext
35313 cat >>conftest.$ac_ext <<_ACEOF
35314 /* end confdefs.h.  */
35315 $ac_includes_default
35316    typedef char ac__type_sizeof_;
35317 int
35318 main ()
35319 {
35320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35321 test_array [0] = 0
35322
35323   ;
35324   return 0;
35325 }
35326 _ACEOF
35327 rm -f conftest.$ac_objext
35328 if { (ac_try="$ac_compile"
35329 case "(($ac_try" in
35330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331   *) ac_try_echo=$ac_try;;
35332 esac
35333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35334   (eval "$ac_compile") 2>conftest.er1
35335   ac_status=$?
35336   grep -v '^ *+' conftest.er1 >conftest.err
35337   rm -f conftest.er1
35338   cat conftest.err >&5
35339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340   (exit $ac_status); } && {
35341          test -z "$ac_c_werror_flag" ||
35342          test ! -s conftest.err
35343        } && test -s conftest.$ac_objext; then
35344   ac_hi=$ac_mid
35345 else
35346   echo "$as_me: failed program was:" >&5
35347 sed 's/^/| /' conftest.$ac_ext >&5
35348
35349         ac_lo=`expr '(' $ac_mid ')' + 1`
35350 fi
35351
35352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35353 done
35354 case $ac_lo in
35355 ?*) ac_cv_sizeof_char=$ac_lo;;
35356 '') if test "$ac_cv_type_char" = yes; then
35357      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35358 See \`config.log' for more details." >&5
35359 echo "$as_me: error: cannot compute sizeof (char)
35360 See \`config.log' for more details." >&2;}
35361    { (exit 77); exit 77; }; }
35362    else
35363      ac_cv_sizeof_char=0
35364    fi ;;
35365 esac
35366 else
35367   cat >conftest.$ac_ext <<_ACEOF
35368 /* confdefs.h.  */
35369 _ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h.  */
35373 $ac_includes_default
35374    typedef char ac__type_sizeof_;
35375 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35376 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35377 #include <stdio.h>
35378 #include <stdlib.h>
35379 int
35380 main ()
35381 {
35382
35383   FILE *f = fopen ("conftest.val", "w");
35384   if (! f)
35385     return 1;
35386   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35387     {
35388       long int i = longval ();
35389       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35390         return 1;
35391       fprintf (f, "%ld\n", i);
35392     }
35393   else
35394     {
35395       unsigned long int i = ulongval ();
35396       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35397         return 1;
35398       fprintf (f, "%lu\n", i);
35399     }
35400   return ferror (f) || fclose (f) != 0;
35401
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 rm -f conftest$ac_exeext
35407 if { (ac_try="$ac_link"
35408 case "(($ac_try" in
35409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410   *) ac_try_echo=$ac_try;;
35411 esac
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413   (eval "$ac_link") 2>&5
35414   ac_status=$?
35415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35417   { (case "(($ac_try" in
35418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35419   *) ac_try_echo=$ac_try;;
35420 esac
35421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35422   (eval "$ac_try") 2>&5
35423   ac_status=$?
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); }; }; then
35426   ac_cv_sizeof_char=`cat conftest.val`
35427 else
35428   echo "$as_me: program exited with status $ac_status" >&5
35429 echo "$as_me: failed program was:" >&5
35430 sed 's/^/| /' conftest.$ac_ext >&5
35431
35432 ( exit $ac_status )
35433 if test "$ac_cv_type_char" = yes; then
35434      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35435 See \`config.log' for more details." >&5
35436 echo "$as_me: error: cannot compute sizeof (char)
35437 See \`config.log' for more details." >&2;}
35438    { (exit 77); exit 77; }; }
35439    else
35440      ac_cv_sizeof_char=0
35441    fi
35442 fi
35443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35444 fi
35445 rm -f conftest.val
35446 fi
35447 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35448 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35449
35450
35451
35452 cat >>confdefs.h <<_ACEOF
35453 #define SIZEOF_CHAR $ac_cv_sizeof_char
35454 _ACEOF
35455
35456
35457 { echo "$as_me:$LINENO: checking for short int" >&5
35458 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35459 if test "${ac_cv_type_short_int+set}" = set; then
35460   echo $ECHO_N "(cached) $ECHO_C" >&6
35461 else
35462   cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h.  */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h.  */
35468 $ac_includes_default
35469 typedef short int ac__type_new_;
35470 int
35471 main ()
35472 {
35473 if ((ac__type_new_ *) 0)
35474   return 0;
35475 if (sizeof (ac__type_new_))
35476   return 0;
35477   ;
35478   return 0;
35479 }
35480 _ACEOF
35481 rm -f conftest.$ac_objext
35482 if { (ac_try="$ac_compile"
35483 case "(($ac_try" in
35484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35485   *) ac_try_echo=$ac_try;;
35486 esac
35487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35488   (eval "$ac_compile") 2>conftest.er1
35489   ac_status=$?
35490   grep -v '^ *+' conftest.er1 >conftest.err
35491   rm -f conftest.er1
35492   cat conftest.err >&5
35493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494   (exit $ac_status); } && {
35495          test -z "$ac_c_werror_flag" ||
35496          test ! -s conftest.err
35497        } && test -s conftest.$ac_objext; then
35498   ac_cv_type_short_int=yes
35499 else
35500   echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35502
35503         ac_cv_type_short_int=no
35504 fi
35505
35506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35507 fi
35508 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35509 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35510
35511 # The cast to long int works around a bug in the HP C Compiler
35512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35514 # This bug is HP SR number 8606223364.
35515 { echo "$as_me:$LINENO: checking size of short int" >&5
35516 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35517 if test "${ac_cv_sizeof_short_int+set}" = set; then
35518   echo $ECHO_N "(cached) $ECHO_C" >&6
35519 else
35520   if test "$cross_compiling" = yes; then
35521   # Depending upon the size, compute the lo and hi bounds.
35522 cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h.  */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h.  */
35528 $ac_includes_default
35529    typedef short int ac__type_sizeof_;
35530 int
35531 main ()
35532 {
35533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35534 test_array [0] = 0
35535
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext
35541 if { (ac_try="$ac_compile"
35542 case "(($ac_try" in
35543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35544   *) ac_try_echo=$ac_try;;
35545 esac
35546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35547   (eval "$ac_compile") 2>conftest.er1
35548   ac_status=$?
35549   grep -v '^ *+' conftest.er1 >conftest.err
35550   rm -f conftest.er1
35551   cat conftest.err >&5
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); } && {
35554          test -z "$ac_c_werror_flag" ||
35555          test ! -s conftest.err
35556        } && test -s conftest.$ac_objext; then
35557   ac_lo=0 ac_mid=0
35558   while :; do
35559     cat >conftest.$ac_ext <<_ACEOF
35560 /* confdefs.h.  */
35561 _ACEOF
35562 cat confdefs.h >>conftest.$ac_ext
35563 cat >>conftest.$ac_ext <<_ACEOF
35564 /* end confdefs.h.  */
35565 $ac_includes_default
35566    typedef short int ac__type_sizeof_;
35567 int
35568 main ()
35569 {
35570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35571 test_array [0] = 0
35572
35573   ;
35574   return 0;
35575 }
35576 _ACEOF
35577 rm -f conftest.$ac_objext
35578 if { (ac_try="$ac_compile"
35579 case "(($ac_try" in
35580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35581   *) ac_try_echo=$ac_try;;
35582 esac
35583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35584   (eval "$ac_compile") 2>conftest.er1
35585   ac_status=$?
35586   grep -v '^ *+' conftest.er1 >conftest.err
35587   rm -f conftest.er1
35588   cat conftest.err >&5
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); } && {
35591          test -z "$ac_c_werror_flag" ||
35592          test ! -s conftest.err
35593        } && test -s conftest.$ac_objext; then
35594   ac_hi=$ac_mid; break
35595 else
35596   echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599         ac_lo=`expr $ac_mid + 1`
35600                         if test $ac_lo -le $ac_mid; then
35601                           ac_lo= ac_hi=
35602                           break
35603                         fi
35604                         ac_mid=`expr 2 '*' $ac_mid + 1`
35605 fi
35606
35607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35608   done
35609 else
35610   echo "$as_me: failed program was:" >&5
35611 sed 's/^/| /' conftest.$ac_ext >&5
35612
35613         cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h.  */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h.  */
35619 $ac_includes_default
35620    typedef short int ac__type_sizeof_;
35621 int
35622 main ()
35623 {
35624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35625 test_array [0] = 0
35626
35627   ;
35628   return 0;
35629 }
35630 _ACEOF
35631 rm -f conftest.$ac_objext
35632 if { (ac_try="$ac_compile"
35633 case "(($ac_try" in
35634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35635   *) ac_try_echo=$ac_try;;
35636 esac
35637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35638   (eval "$ac_compile") 2>conftest.er1
35639   ac_status=$?
35640   grep -v '^ *+' conftest.er1 >conftest.err
35641   rm -f conftest.er1
35642   cat conftest.err >&5
35643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644   (exit $ac_status); } && {
35645          test -z "$ac_c_werror_flag" ||
35646          test ! -s conftest.err
35647        } && test -s conftest.$ac_objext; then
35648   ac_hi=-1 ac_mid=-1
35649   while :; do
35650     cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656 $ac_includes_default
35657    typedef short int ac__type_sizeof_;
35658 int
35659 main ()
35660 {
35661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35662 test_array [0] = 0
35663
35664   ;
35665   return 0;
35666 }
35667 _ACEOF
35668 rm -f conftest.$ac_objext
35669 if { (ac_try="$ac_compile"
35670 case "(($ac_try" in
35671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35672   *) ac_try_echo=$ac_try;;
35673 esac
35674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35675   (eval "$ac_compile") 2>conftest.er1
35676   ac_status=$?
35677   grep -v '^ *+' conftest.er1 >conftest.err
35678   rm -f conftest.er1
35679   cat conftest.err >&5
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } && {
35682          test -z "$ac_c_werror_flag" ||
35683          test ! -s conftest.err
35684        } && test -s conftest.$ac_objext; then
35685   ac_lo=$ac_mid; break
35686 else
35687   echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35689
35690         ac_hi=`expr '(' $ac_mid ')' - 1`
35691                         if test $ac_mid -le $ac_hi; then
35692                           ac_lo= ac_hi=
35693                           break
35694                         fi
35695                         ac_mid=`expr 2 '*' $ac_mid`
35696 fi
35697
35698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35699   done
35700 else
35701   echo "$as_me: failed program was:" >&5
35702 sed 's/^/| /' conftest.$ac_ext >&5
35703
35704         ac_lo= ac_hi=
35705 fi
35706
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708 fi
35709
35710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35711 # Binary search between lo and hi bounds.
35712 while test "x$ac_lo" != "x$ac_hi"; do
35713   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35714   cat >conftest.$ac_ext <<_ACEOF
35715 /* confdefs.h.  */
35716 _ACEOF
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h.  */
35720 $ac_includes_default
35721    typedef short int ac__type_sizeof_;
35722 int
35723 main ()
35724 {
35725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35726 test_array [0] = 0
35727
35728   ;
35729   return 0;
35730 }
35731 _ACEOF
35732 rm -f conftest.$ac_objext
35733 if { (ac_try="$ac_compile"
35734 case "(($ac_try" in
35735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35736   *) ac_try_echo=$ac_try;;
35737 esac
35738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35739   (eval "$ac_compile") 2>conftest.er1
35740   ac_status=$?
35741   grep -v '^ *+' conftest.er1 >conftest.err
35742   rm -f conftest.er1
35743   cat conftest.err >&5
35744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745   (exit $ac_status); } && {
35746          test -z "$ac_c_werror_flag" ||
35747          test ! -s conftest.err
35748        } && test -s conftest.$ac_objext; then
35749   ac_hi=$ac_mid
35750 else
35751   echo "$as_me: failed program was:" >&5
35752 sed 's/^/| /' conftest.$ac_ext >&5
35753
35754         ac_lo=`expr '(' $ac_mid ')' + 1`
35755 fi
35756
35757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35758 done
35759 case $ac_lo in
35760 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35761 '') if test "$ac_cv_type_short_int" = yes; then
35762      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35763 See \`config.log' for more details." >&5
35764 echo "$as_me: error: cannot compute sizeof (short int)
35765 See \`config.log' for more details." >&2;}
35766    { (exit 77); exit 77; }; }
35767    else
35768      ac_cv_sizeof_short_int=0
35769    fi ;;
35770 esac
35771 else
35772   cat >conftest.$ac_ext <<_ACEOF
35773 /* confdefs.h.  */
35774 _ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h.  */
35778 $ac_includes_default
35779    typedef short int ac__type_sizeof_;
35780 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35781 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35782 #include <stdio.h>
35783 #include <stdlib.h>
35784 int
35785 main ()
35786 {
35787
35788   FILE *f = fopen ("conftest.val", "w");
35789   if (! f)
35790     return 1;
35791   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35792     {
35793       long int i = longval ();
35794       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35795         return 1;
35796       fprintf (f, "%ld\n", i);
35797     }
35798   else
35799     {
35800       unsigned long int i = ulongval ();
35801       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35802         return 1;
35803       fprintf (f, "%lu\n", i);
35804     }
35805   return ferror (f) || fclose (f) != 0;
35806
35807   ;
35808   return 0;
35809 }
35810 _ACEOF
35811 rm -f conftest$ac_exeext
35812 if { (ac_try="$ac_link"
35813 case "(($ac_try" in
35814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815   *) ac_try_echo=$ac_try;;
35816 esac
35817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35818   (eval "$ac_link") 2>&5
35819   ac_status=$?
35820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35822   { (case "(($ac_try" in
35823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824   *) ac_try_echo=$ac_try;;
35825 esac
35826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35827   (eval "$ac_try") 2>&5
35828   ac_status=$?
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); }; }; then
35831   ac_cv_sizeof_short_int=`cat conftest.val`
35832 else
35833   echo "$as_me: program exited with status $ac_status" >&5
35834 echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837 ( exit $ac_status )
35838 if test "$ac_cv_type_short_int" = yes; then
35839      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35840 See \`config.log' for more details." >&5
35841 echo "$as_me: error: cannot compute sizeof (short int)
35842 See \`config.log' for more details." >&2;}
35843    { (exit 77); exit 77; }; }
35844    else
35845      ac_cv_sizeof_short_int=0
35846    fi
35847 fi
35848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35849 fi
35850 rm -f conftest.val
35851 fi
35852 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35853 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35854
35855
35856
35857 cat >>confdefs.h <<_ACEOF
35858 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35859 _ACEOF
35860
35861
35862 { echo "$as_me:$LINENO: checking for int" >&5
35863 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35864 if test "${ac_cv_type_int+set}" = set; then
35865   echo $ECHO_N "(cached) $ECHO_C" >&6
35866 else
35867   cat >conftest.$ac_ext <<_ACEOF
35868 /* confdefs.h.  */
35869 _ACEOF
35870 cat confdefs.h >>conftest.$ac_ext
35871 cat >>conftest.$ac_ext <<_ACEOF
35872 /* end confdefs.h.  */
35873 $ac_includes_default
35874 typedef int ac__type_new_;
35875 int
35876 main ()
35877 {
35878 if ((ac__type_new_ *) 0)
35879   return 0;
35880 if (sizeof (ac__type_new_))
35881   return 0;
35882   ;
35883   return 0;
35884 }
35885 _ACEOF
35886 rm -f conftest.$ac_objext
35887 if { (ac_try="$ac_compile"
35888 case "(($ac_try" in
35889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890   *) ac_try_echo=$ac_try;;
35891 esac
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893   (eval "$ac_compile") 2>conftest.er1
35894   ac_status=$?
35895   grep -v '^ *+' conftest.er1 >conftest.err
35896   rm -f conftest.er1
35897   cat conftest.err >&5
35898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899   (exit $ac_status); } && {
35900          test -z "$ac_c_werror_flag" ||
35901          test ! -s conftest.err
35902        } && test -s conftest.$ac_objext; then
35903   ac_cv_type_int=yes
35904 else
35905   echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35907
35908         ac_cv_type_int=no
35909 fi
35910
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35912 fi
35913 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35914 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35915
35916 # The cast to long int works around a bug in the HP C Compiler
35917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35919 # This bug is HP SR number 8606223364.
35920 { echo "$as_me:$LINENO: checking size of int" >&5
35921 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35922 if test "${ac_cv_sizeof_int+set}" = set; then
35923   echo $ECHO_N "(cached) $ECHO_C" >&6
35924 else
35925   if test "$cross_compiling" = yes; then
35926   # Depending upon the size, compute the lo and hi bounds.
35927 cat >conftest.$ac_ext <<_ACEOF
35928 /* confdefs.h.  */
35929 _ACEOF
35930 cat confdefs.h >>conftest.$ac_ext
35931 cat >>conftest.$ac_ext <<_ACEOF
35932 /* end confdefs.h.  */
35933 $ac_includes_default
35934    typedef int ac__type_sizeof_;
35935 int
35936 main ()
35937 {
35938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35939 test_array [0] = 0
35940
35941   ;
35942   return 0;
35943 }
35944 _ACEOF
35945 rm -f conftest.$ac_objext
35946 if { (ac_try="$ac_compile"
35947 case "(($ac_try" in
35948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35949   *) ac_try_echo=$ac_try;;
35950 esac
35951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35952   (eval "$ac_compile") 2>conftest.er1
35953   ac_status=$?
35954   grep -v '^ *+' conftest.er1 >conftest.err
35955   rm -f conftest.er1
35956   cat conftest.err >&5
35957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958   (exit $ac_status); } && {
35959          test -z "$ac_c_werror_flag" ||
35960          test ! -s conftest.err
35961        } && test -s conftest.$ac_objext; then
35962   ac_lo=0 ac_mid=0
35963   while :; do
35964     cat >conftest.$ac_ext <<_ACEOF
35965 /* confdefs.h.  */
35966 _ACEOF
35967 cat confdefs.h >>conftest.$ac_ext
35968 cat >>conftest.$ac_ext <<_ACEOF
35969 /* end confdefs.h.  */
35970 $ac_includes_default
35971    typedef int ac__type_sizeof_;
35972 int
35973 main ()
35974 {
35975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35976 test_array [0] = 0
35977
35978   ;
35979   return 0;
35980 }
35981 _ACEOF
35982 rm -f conftest.$ac_objext
35983 if { (ac_try="$ac_compile"
35984 case "(($ac_try" in
35985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35986   *) ac_try_echo=$ac_try;;
35987 esac
35988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35989   (eval "$ac_compile") 2>conftest.er1
35990   ac_status=$?
35991   grep -v '^ *+' conftest.er1 >conftest.err
35992   rm -f conftest.er1
35993   cat conftest.err >&5
35994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995   (exit $ac_status); } && {
35996          test -z "$ac_c_werror_flag" ||
35997          test ! -s conftest.err
35998        } && test -s conftest.$ac_objext; then
35999   ac_hi=$ac_mid; break
36000 else
36001   echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36003
36004         ac_lo=`expr $ac_mid + 1`
36005                         if test $ac_lo -le $ac_mid; then
36006                           ac_lo= ac_hi=
36007                           break
36008                         fi
36009                         ac_mid=`expr 2 '*' $ac_mid + 1`
36010 fi
36011
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013   done
36014 else
36015   echo "$as_me: failed program was:" >&5
36016 sed 's/^/| /' conftest.$ac_ext >&5
36017
36018         cat >conftest.$ac_ext <<_ACEOF
36019 /* confdefs.h.  */
36020 _ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h.  */
36024 $ac_includes_default
36025    typedef int ac__type_sizeof_;
36026 int
36027 main ()
36028 {
36029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36030 test_array [0] = 0
36031
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36043   (eval "$ac_compile") 2>conftest.er1
36044   ac_status=$?
36045   grep -v '^ *+' conftest.er1 >conftest.err
36046   rm -f conftest.er1
36047   cat conftest.err >&5
36048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049   (exit $ac_status); } && {
36050          test -z "$ac_c_werror_flag" ||
36051          test ! -s conftest.err
36052        } && test -s conftest.$ac_objext; then
36053   ac_hi=-1 ac_mid=-1
36054   while :; do
36055     cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061 $ac_includes_default
36062    typedef int ac__type_sizeof_;
36063 int
36064 main ()
36065 {
36066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36067 test_array [0] = 0
36068
36069   ;
36070   return 0;
36071 }
36072 _ACEOF
36073 rm -f conftest.$ac_objext
36074 if { (ac_try="$ac_compile"
36075 case "(($ac_try" in
36076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36077   *) ac_try_echo=$ac_try;;
36078 esac
36079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36080   (eval "$ac_compile") 2>conftest.er1
36081   ac_status=$?
36082   grep -v '^ *+' conftest.er1 >conftest.err
36083   rm -f conftest.er1
36084   cat conftest.err >&5
36085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086   (exit $ac_status); } && {
36087          test -z "$ac_c_werror_flag" ||
36088          test ! -s conftest.err
36089        } && test -s conftest.$ac_objext; then
36090   ac_lo=$ac_mid; break
36091 else
36092   echo "$as_me: failed program was:" >&5
36093 sed 's/^/| /' conftest.$ac_ext >&5
36094
36095         ac_hi=`expr '(' $ac_mid ')' - 1`
36096                         if test $ac_mid -le $ac_hi; then
36097                           ac_lo= ac_hi=
36098                           break
36099                         fi
36100                         ac_mid=`expr 2 '*' $ac_mid`
36101 fi
36102
36103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36104   done
36105 else
36106   echo "$as_me: failed program was:" >&5
36107 sed 's/^/| /' conftest.$ac_ext >&5
36108
36109         ac_lo= ac_hi=
36110 fi
36111
36112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36113 fi
36114
36115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36116 # Binary search between lo and hi bounds.
36117 while test "x$ac_lo" != "x$ac_hi"; do
36118   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36119   cat >conftest.$ac_ext <<_ACEOF
36120 /* confdefs.h.  */
36121 _ACEOF
36122 cat confdefs.h >>conftest.$ac_ext
36123 cat >>conftest.$ac_ext <<_ACEOF
36124 /* end confdefs.h.  */
36125 $ac_includes_default
36126    typedef int ac__type_sizeof_;
36127 int
36128 main ()
36129 {
36130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36131 test_array [0] = 0
36132
36133   ;
36134   return 0;
36135 }
36136 _ACEOF
36137 rm -f conftest.$ac_objext
36138 if { (ac_try="$ac_compile"
36139 case "(($ac_try" in
36140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36141   *) ac_try_echo=$ac_try;;
36142 esac
36143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36144   (eval "$ac_compile") 2>conftest.er1
36145   ac_status=$?
36146   grep -v '^ *+' conftest.er1 >conftest.err
36147   rm -f conftest.er1
36148   cat conftest.err >&5
36149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150   (exit $ac_status); } && {
36151          test -z "$ac_c_werror_flag" ||
36152          test ! -s conftest.err
36153        } && test -s conftest.$ac_objext; then
36154   ac_hi=$ac_mid
36155 else
36156   echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36158
36159         ac_lo=`expr '(' $ac_mid ')' + 1`
36160 fi
36161
36162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36163 done
36164 case $ac_lo in
36165 ?*) ac_cv_sizeof_int=$ac_lo;;
36166 '') if test "$ac_cv_type_int" = yes; then
36167      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36168 See \`config.log' for more details." >&5
36169 echo "$as_me: error: cannot compute sizeof (int)
36170 See \`config.log' for more details." >&2;}
36171    { (exit 77); exit 77; }; }
36172    else
36173      ac_cv_sizeof_int=0
36174    fi ;;
36175 esac
36176 else
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    typedef int ac__type_sizeof_;
36185 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36186 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36187 #include <stdio.h>
36188 #include <stdlib.h>
36189 int
36190 main ()
36191 {
36192
36193   FILE *f = fopen ("conftest.val", "w");
36194   if (! f)
36195     return 1;
36196   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36197     {
36198       long int i = longval ();
36199       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36200         return 1;
36201       fprintf (f, "%ld\n", i);
36202     }
36203   else
36204     {
36205       unsigned long int i = ulongval ();
36206       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36207         return 1;
36208       fprintf (f, "%lu\n", i);
36209     }
36210   return ferror (f) || fclose (f) != 0;
36211
36212   ;
36213   return 0;
36214 }
36215 _ACEOF
36216 rm -f conftest$ac_exeext
36217 if { (ac_try="$ac_link"
36218 case "(($ac_try" in
36219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36220   *) ac_try_echo=$ac_try;;
36221 esac
36222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36223   (eval "$ac_link") 2>&5
36224   ac_status=$?
36225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36227   { (case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232   (eval "$ac_try") 2>&5
36233   ac_status=$?
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); }; }; then
36236   ac_cv_sizeof_int=`cat conftest.val`
36237 else
36238   echo "$as_me: program exited with status $ac_status" >&5
36239 echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36241
36242 ( exit $ac_status )
36243 if test "$ac_cv_type_int" = yes; then
36244      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36245 See \`config.log' for more details." >&5
36246 echo "$as_me: error: cannot compute sizeof (int)
36247 See \`config.log' for more details." >&2;}
36248    { (exit 77); exit 77; }; }
36249    else
36250      ac_cv_sizeof_int=0
36251    fi
36252 fi
36253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36254 fi
36255 rm -f conftest.val
36256 fi
36257 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36258 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36259
36260
36261
36262 cat >>confdefs.h <<_ACEOF
36263 #define SIZEOF_INT $ac_cv_sizeof_int
36264 _ACEOF
36265
36266
36267 { echo "$as_me:$LINENO: checking for long int" >&5
36268 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36269 if test "${ac_cv_type_long_int+set}" = set; then
36270   echo $ECHO_N "(cached) $ECHO_C" >&6
36271 else
36272   cat >conftest.$ac_ext <<_ACEOF
36273 /* confdefs.h.  */
36274 _ACEOF
36275 cat confdefs.h >>conftest.$ac_ext
36276 cat >>conftest.$ac_ext <<_ACEOF
36277 /* end confdefs.h.  */
36278 $ac_includes_default
36279 typedef long int ac__type_new_;
36280 int
36281 main ()
36282 {
36283 if ((ac__type_new_ *) 0)
36284   return 0;
36285 if (sizeof (ac__type_new_))
36286   return 0;
36287   ;
36288   return 0;
36289 }
36290 _ACEOF
36291 rm -f conftest.$ac_objext
36292 if { (ac_try="$ac_compile"
36293 case "(($ac_try" in
36294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36295   *) ac_try_echo=$ac_try;;
36296 esac
36297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36298   (eval "$ac_compile") 2>conftest.er1
36299   ac_status=$?
36300   grep -v '^ *+' conftest.er1 >conftest.err
36301   rm -f conftest.er1
36302   cat conftest.err >&5
36303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304   (exit $ac_status); } && {
36305          test -z "$ac_c_werror_flag" ||
36306          test ! -s conftest.err
36307        } && test -s conftest.$ac_objext; then
36308   ac_cv_type_long_int=yes
36309 else
36310   echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36312
36313         ac_cv_type_long_int=no
36314 fi
36315
36316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36317 fi
36318 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36319 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36320
36321 # The cast to long int works around a bug in the HP C Compiler
36322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36324 # This bug is HP SR number 8606223364.
36325 { echo "$as_me:$LINENO: checking size of long int" >&5
36326 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36327 if test "${ac_cv_sizeof_long_int+set}" = set; then
36328   echo $ECHO_N "(cached) $ECHO_C" >&6
36329 else
36330   if test "$cross_compiling" = yes; then
36331   # Depending upon the size, compute the lo and hi bounds.
36332 cat >conftest.$ac_ext <<_ACEOF
36333 /* confdefs.h.  */
36334 _ACEOF
36335 cat confdefs.h >>conftest.$ac_ext
36336 cat >>conftest.$ac_ext <<_ACEOF
36337 /* end confdefs.h.  */
36338 $ac_includes_default
36339    typedef long int ac__type_sizeof_;
36340 int
36341 main ()
36342 {
36343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36344 test_array [0] = 0
36345
36346   ;
36347   return 0;
36348 }
36349 _ACEOF
36350 rm -f conftest.$ac_objext
36351 if { (ac_try="$ac_compile"
36352 case "(($ac_try" in
36353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36354   *) ac_try_echo=$ac_try;;
36355 esac
36356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36357   (eval "$ac_compile") 2>conftest.er1
36358   ac_status=$?
36359   grep -v '^ *+' conftest.er1 >conftest.err
36360   rm -f conftest.er1
36361   cat conftest.err >&5
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); } && {
36364          test -z "$ac_c_werror_flag" ||
36365          test ! -s conftest.err
36366        } && test -s conftest.$ac_objext; then
36367   ac_lo=0 ac_mid=0
36368   while :; do
36369     cat >conftest.$ac_ext <<_ACEOF
36370 /* confdefs.h.  */
36371 _ACEOF
36372 cat confdefs.h >>conftest.$ac_ext
36373 cat >>conftest.$ac_ext <<_ACEOF
36374 /* end confdefs.h.  */
36375 $ac_includes_default
36376    typedef long int ac__type_sizeof_;
36377 int
36378 main ()
36379 {
36380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36381 test_array [0] = 0
36382
36383   ;
36384   return 0;
36385 }
36386 _ACEOF
36387 rm -f conftest.$ac_objext
36388 if { (ac_try="$ac_compile"
36389 case "(($ac_try" in
36390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36391   *) ac_try_echo=$ac_try;;
36392 esac
36393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36394   (eval "$ac_compile") 2>conftest.er1
36395   ac_status=$?
36396   grep -v '^ *+' conftest.er1 >conftest.err
36397   rm -f conftest.er1
36398   cat conftest.err >&5
36399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400   (exit $ac_status); } && {
36401          test -z "$ac_c_werror_flag" ||
36402          test ! -s conftest.err
36403        } && test -s conftest.$ac_objext; then
36404   ac_hi=$ac_mid; break
36405 else
36406   echo "$as_me: failed program was:" >&5
36407 sed 's/^/| /' conftest.$ac_ext >&5
36408
36409         ac_lo=`expr $ac_mid + 1`
36410                         if test $ac_lo -le $ac_mid; then
36411                           ac_lo= ac_hi=
36412                           break
36413                         fi
36414                         ac_mid=`expr 2 '*' $ac_mid + 1`
36415 fi
36416
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418   done
36419 else
36420   echo "$as_me: failed program was:" >&5
36421 sed 's/^/| /' conftest.$ac_ext >&5
36422
36423         cat >conftest.$ac_ext <<_ACEOF
36424 /* confdefs.h.  */
36425 _ACEOF
36426 cat confdefs.h >>conftest.$ac_ext
36427 cat >>conftest.$ac_ext <<_ACEOF
36428 /* end confdefs.h.  */
36429 $ac_includes_default
36430    typedef long int ac__type_sizeof_;
36431 int
36432 main ()
36433 {
36434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36435 test_array [0] = 0
36436
36437   ;
36438   return 0;
36439 }
36440 _ACEOF
36441 rm -f conftest.$ac_objext
36442 if { (ac_try="$ac_compile"
36443 case "(($ac_try" in
36444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36445   *) ac_try_echo=$ac_try;;
36446 esac
36447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36448   (eval "$ac_compile") 2>conftest.er1
36449   ac_status=$?
36450   grep -v '^ *+' conftest.er1 >conftest.err
36451   rm -f conftest.er1
36452   cat conftest.err >&5
36453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454   (exit $ac_status); } && {
36455          test -z "$ac_c_werror_flag" ||
36456          test ! -s conftest.err
36457        } && test -s conftest.$ac_objext; then
36458   ac_hi=-1 ac_mid=-1
36459   while :; do
36460     cat >conftest.$ac_ext <<_ACEOF
36461 /* confdefs.h.  */
36462 _ACEOF
36463 cat confdefs.h >>conftest.$ac_ext
36464 cat >>conftest.$ac_ext <<_ACEOF
36465 /* end confdefs.h.  */
36466 $ac_includes_default
36467    typedef long int ac__type_sizeof_;
36468 int
36469 main ()
36470 {
36471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36472 test_array [0] = 0
36473
36474   ;
36475   return 0;
36476 }
36477 _ACEOF
36478 rm -f conftest.$ac_objext
36479 if { (ac_try="$ac_compile"
36480 case "(($ac_try" in
36481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36482   *) ac_try_echo=$ac_try;;
36483 esac
36484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36485   (eval "$ac_compile") 2>conftest.er1
36486   ac_status=$?
36487   grep -v '^ *+' conftest.er1 >conftest.err
36488   rm -f conftest.er1
36489   cat conftest.err >&5
36490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36491   (exit $ac_status); } && {
36492          test -z "$ac_c_werror_flag" ||
36493          test ! -s conftest.err
36494        } && test -s conftest.$ac_objext; then
36495   ac_lo=$ac_mid; break
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500         ac_hi=`expr '(' $ac_mid ')' - 1`
36501                         if test $ac_mid -le $ac_hi; then
36502                           ac_lo= ac_hi=
36503                           break
36504                         fi
36505                         ac_mid=`expr 2 '*' $ac_mid`
36506 fi
36507
36508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36509   done
36510 else
36511   echo "$as_me: failed program was:" >&5
36512 sed 's/^/| /' conftest.$ac_ext >&5
36513
36514         ac_lo= ac_hi=
36515 fi
36516
36517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36518 fi
36519
36520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36521 # Binary search between lo and hi bounds.
36522 while test "x$ac_lo" != "x$ac_hi"; do
36523   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36524   cat >conftest.$ac_ext <<_ACEOF
36525 /* confdefs.h.  */
36526 _ACEOF
36527 cat confdefs.h >>conftest.$ac_ext
36528 cat >>conftest.$ac_ext <<_ACEOF
36529 /* end confdefs.h.  */
36530 $ac_includes_default
36531    typedef long int ac__type_sizeof_;
36532 int
36533 main ()
36534 {
36535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36536 test_array [0] = 0
36537
36538   ;
36539   return 0;
36540 }
36541 _ACEOF
36542 rm -f conftest.$ac_objext
36543 if { (ac_try="$ac_compile"
36544 case "(($ac_try" in
36545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36546   *) ac_try_echo=$ac_try;;
36547 esac
36548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36549   (eval "$ac_compile") 2>conftest.er1
36550   ac_status=$?
36551   grep -v '^ *+' conftest.er1 >conftest.err
36552   rm -f conftest.er1
36553   cat conftest.err >&5
36554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555   (exit $ac_status); } && {
36556          test -z "$ac_c_werror_flag" ||
36557          test ! -s conftest.err
36558        } && test -s conftest.$ac_objext; then
36559   ac_hi=$ac_mid
36560 else
36561   echo "$as_me: failed program was:" >&5
36562 sed 's/^/| /' conftest.$ac_ext >&5
36563
36564         ac_lo=`expr '(' $ac_mid ')' + 1`
36565 fi
36566
36567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36568 done
36569 case $ac_lo in
36570 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36571 '') if test "$ac_cv_type_long_int" = yes; then
36572      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36573 See \`config.log' for more details." >&5
36574 echo "$as_me: error: cannot compute sizeof (long int)
36575 See \`config.log' for more details." >&2;}
36576    { (exit 77); exit 77; }; }
36577    else
36578      ac_cv_sizeof_long_int=0
36579    fi ;;
36580 esac
36581 else
36582   cat >conftest.$ac_ext <<_ACEOF
36583 /* confdefs.h.  */
36584 _ACEOF
36585 cat confdefs.h >>conftest.$ac_ext
36586 cat >>conftest.$ac_ext <<_ACEOF
36587 /* end confdefs.h.  */
36588 $ac_includes_default
36589    typedef long int ac__type_sizeof_;
36590 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36591 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36592 #include <stdio.h>
36593 #include <stdlib.h>
36594 int
36595 main ()
36596 {
36597
36598   FILE *f = fopen ("conftest.val", "w");
36599   if (! f)
36600     return 1;
36601   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36602     {
36603       long int i = longval ();
36604       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36605         return 1;
36606       fprintf (f, "%ld\n", i);
36607     }
36608   else
36609     {
36610       unsigned long int i = ulongval ();
36611       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36612         return 1;
36613       fprintf (f, "%lu\n", i);
36614     }
36615   return ferror (f) || fclose (f) != 0;
36616
36617   ;
36618   return 0;
36619 }
36620 _ACEOF
36621 rm -f conftest$ac_exeext
36622 if { (ac_try="$ac_link"
36623 case "(($ac_try" in
36624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36625   *) ac_try_echo=$ac_try;;
36626 esac
36627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36628   (eval "$ac_link") 2>&5
36629   ac_status=$?
36630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36632   { (case "(($ac_try" in
36633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36634   *) ac_try_echo=$ac_try;;
36635 esac
36636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36637   (eval "$ac_try") 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); }; }; then
36641   ac_cv_sizeof_long_int=`cat conftest.val`
36642 else
36643   echo "$as_me: program exited with status $ac_status" >&5
36644 echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36646
36647 ( exit $ac_status )
36648 if test "$ac_cv_type_long_int" = yes; then
36649      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36650 See \`config.log' for more details." >&5
36651 echo "$as_me: error: cannot compute sizeof (long int)
36652 See \`config.log' for more details." >&2;}
36653    { (exit 77); exit 77; }; }
36654    else
36655      ac_cv_sizeof_long_int=0
36656    fi
36657 fi
36658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36659 fi
36660 rm -f conftest.val
36661 fi
36662 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36663 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36664
36665
36666
36667 cat >>confdefs.h <<_ACEOF
36668 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36669 _ACEOF
36670
36671
36672 { echo "$as_me:$LINENO: checking for long long int" >&5
36673 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36674 if test "${ac_cv_type_long_long_int+set}" = set; then
36675   echo $ECHO_N "(cached) $ECHO_C" >&6
36676 else
36677   cat >conftest.$ac_ext <<_ACEOF
36678 /* confdefs.h.  */
36679 _ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h.  */
36683 $ac_includes_default
36684 typedef long long int ac__type_new_;
36685 int
36686 main ()
36687 {
36688 if ((ac__type_new_ *) 0)
36689   return 0;
36690 if (sizeof (ac__type_new_))
36691   return 0;
36692   ;
36693   return 0;
36694 }
36695 _ACEOF
36696 rm -f conftest.$ac_objext
36697 if { (ac_try="$ac_compile"
36698 case "(($ac_try" in
36699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700   *) ac_try_echo=$ac_try;;
36701 esac
36702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36703   (eval "$ac_compile") 2>conftest.er1
36704   ac_status=$?
36705   grep -v '^ *+' conftest.er1 >conftest.err
36706   rm -f conftest.er1
36707   cat conftest.err >&5
36708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709   (exit $ac_status); } && {
36710          test -z "$ac_c_werror_flag" ||
36711          test ! -s conftest.err
36712        } && test -s conftest.$ac_objext; then
36713   ac_cv_type_long_long_int=yes
36714 else
36715   echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36717
36718         ac_cv_type_long_long_int=no
36719 fi
36720
36721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36722 fi
36723 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36724 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36725
36726 # The cast to long int works around a bug in the HP C Compiler
36727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36729 # This bug is HP SR number 8606223364.
36730 { echo "$as_me:$LINENO: checking size of long long int" >&5
36731 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36732 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36733   echo $ECHO_N "(cached) $ECHO_C" >&6
36734 else
36735   if test "$cross_compiling" = yes; then
36736   # Depending upon the size, compute the lo and hi bounds.
36737 cat >conftest.$ac_ext <<_ACEOF
36738 /* confdefs.h.  */
36739 _ACEOF
36740 cat confdefs.h >>conftest.$ac_ext
36741 cat >>conftest.$ac_ext <<_ACEOF
36742 /* end confdefs.h.  */
36743 $ac_includes_default
36744    typedef long long int ac__type_sizeof_;
36745 int
36746 main ()
36747 {
36748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36749 test_array [0] = 0
36750
36751   ;
36752   return 0;
36753 }
36754 _ACEOF
36755 rm -f conftest.$ac_objext
36756 if { (ac_try="$ac_compile"
36757 case "(($ac_try" in
36758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36759   *) ac_try_echo=$ac_try;;
36760 esac
36761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36762   (eval "$ac_compile") 2>conftest.er1
36763   ac_status=$?
36764   grep -v '^ *+' conftest.er1 >conftest.err
36765   rm -f conftest.er1
36766   cat conftest.err >&5
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); } && {
36769          test -z "$ac_c_werror_flag" ||
36770          test ! -s conftest.err
36771        } && test -s conftest.$ac_objext; then
36772   ac_lo=0 ac_mid=0
36773   while :; do
36774     cat >conftest.$ac_ext <<_ACEOF
36775 /* confdefs.h.  */
36776 _ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h.  */
36780 $ac_includes_default
36781    typedef long long int ac__type_sizeof_;
36782 int
36783 main ()
36784 {
36785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36786 test_array [0] = 0
36787
36788   ;
36789   return 0;
36790 }
36791 _ACEOF
36792 rm -f conftest.$ac_objext
36793 if { (ac_try="$ac_compile"
36794 case "(($ac_try" in
36795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796   *) ac_try_echo=$ac_try;;
36797 esac
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799   (eval "$ac_compile") 2>conftest.er1
36800   ac_status=$?
36801   grep -v '^ *+' conftest.er1 >conftest.err
36802   rm -f conftest.er1
36803   cat conftest.err >&5
36804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); } && {
36806          test -z "$ac_c_werror_flag" ||
36807          test ! -s conftest.err
36808        } && test -s conftest.$ac_objext; then
36809   ac_hi=$ac_mid; break
36810 else
36811   echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36813
36814         ac_lo=`expr $ac_mid + 1`
36815                         if test $ac_lo -le $ac_mid; then
36816                           ac_lo= ac_hi=
36817                           break
36818                         fi
36819                         ac_mid=`expr 2 '*' $ac_mid + 1`
36820 fi
36821
36822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36823   done
36824 else
36825   echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36827
36828         cat >conftest.$ac_ext <<_ACEOF
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834 $ac_includes_default
36835    typedef long long int ac__type_sizeof_;
36836 int
36837 main ()
36838 {
36839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36840 test_array [0] = 0
36841
36842   ;
36843   return 0;
36844 }
36845 _ACEOF
36846 rm -f conftest.$ac_objext
36847 if { (ac_try="$ac_compile"
36848 case "(($ac_try" in
36849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36850   *) ac_try_echo=$ac_try;;
36851 esac
36852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36853   (eval "$ac_compile") 2>conftest.er1
36854   ac_status=$?
36855   grep -v '^ *+' conftest.er1 >conftest.err
36856   rm -f conftest.er1
36857   cat conftest.err >&5
36858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859   (exit $ac_status); } && {
36860          test -z "$ac_c_werror_flag" ||
36861          test ! -s conftest.err
36862        } && test -s conftest.$ac_objext; then
36863   ac_hi=-1 ac_mid=-1
36864   while :; do
36865     cat >conftest.$ac_ext <<_ACEOF
36866 /* confdefs.h.  */
36867 _ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h.  */
36871 $ac_includes_default
36872    typedef long long int ac__type_sizeof_;
36873 int
36874 main ()
36875 {
36876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36877 test_array [0] = 0
36878
36879   ;
36880   return 0;
36881 }
36882 _ACEOF
36883 rm -f conftest.$ac_objext
36884 if { (ac_try="$ac_compile"
36885 case "(($ac_try" in
36886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36887   *) ac_try_echo=$ac_try;;
36888 esac
36889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36890   (eval "$ac_compile") 2>conftest.er1
36891   ac_status=$?
36892   grep -v '^ *+' conftest.er1 >conftest.err
36893   rm -f conftest.er1
36894   cat conftest.err >&5
36895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896   (exit $ac_status); } && {
36897          test -z "$ac_c_werror_flag" ||
36898          test ! -s conftest.err
36899        } && test -s conftest.$ac_objext; then
36900   ac_lo=$ac_mid; break
36901 else
36902   echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905         ac_hi=`expr '(' $ac_mid ')' - 1`
36906                         if test $ac_mid -le $ac_hi; then
36907                           ac_lo= ac_hi=
36908                           break
36909                         fi
36910                         ac_mid=`expr 2 '*' $ac_mid`
36911 fi
36912
36913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36914   done
36915 else
36916   echo "$as_me: failed program was:" >&5
36917 sed 's/^/| /' conftest.$ac_ext >&5
36918
36919         ac_lo= ac_hi=
36920 fi
36921
36922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36923 fi
36924
36925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36926 # Binary search between lo and hi bounds.
36927 while test "x$ac_lo" != "x$ac_hi"; do
36928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36929   cat >conftest.$ac_ext <<_ACEOF
36930 /* confdefs.h.  */
36931 _ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h.  */
36935 $ac_includes_default
36936    typedef long long int ac__type_sizeof_;
36937 int
36938 main ()
36939 {
36940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36941 test_array [0] = 0
36942
36943   ;
36944   return 0;
36945 }
36946 _ACEOF
36947 rm -f conftest.$ac_objext
36948 if { (ac_try="$ac_compile"
36949 case "(($ac_try" in
36950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36951   *) ac_try_echo=$ac_try;;
36952 esac
36953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36954   (eval "$ac_compile") 2>conftest.er1
36955   ac_status=$?
36956   grep -v '^ *+' conftest.er1 >conftest.err
36957   rm -f conftest.er1
36958   cat conftest.err >&5
36959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960   (exit $ac_status); } && {
36961          test -z "$ac_c_werror_flag" ||
36962          test ! -s conftest.err
36963        } && test -s conftest.$ac_objext; then
36964   ac_hi=$ac_mid
36965 else
36966   echo "$as_me: failed program was:" >&5
36967 sed 's/^/| /' conftest.$ac_ext >&5
36968
36969         ac_lo=`expr '(' $ac_mid ')' + 1`
36970 fi
36971
36972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36973 done
36974 case $ac_lo in
36975 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36976 '') if test "$ac_cv_type_long_long_int" = yes; then
36977      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36978 See \`config.log' for more details." >&5
36979 echo "$as_me: error: cannot compute sizeof (long long int)
36980 See \`config.log' for more details." >&2;}
36981    { (exit 77); exit 77; }; }
36982    else
36983      ac_cv_sizeof_long_long_int=0
36984    fi ;;
36985 esac
36986 else
36987   cat >conftest.$ac_ext <<_ACEOF
36988 /* confdefs.h.  */
36989 _ACEOF
36990 cat confdefs.h >>conftest.$ac_ext
36991 cat >>conftest.$ac_ext <<_ACEOF
36992 /* end confdefs.h.  */
36993 $ac_includes_default
36994    typedef long long int ac__type_sizeof_;
36995 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36996 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36997 #include <stdio.h>
36998 #include <stdlib.h>
36999 int
37000 main ()
37001 {
37002
37003   FILE *f = fopen ("conftest.val", "w");
37004   if (! f)
37005     return 1;
37006   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37007     {
37008       long int i = longval ();
37009       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37010         return 1;
37011       fprintf (f, "%ld\n", i);
37012     }
37013   else
37014     {
37015       unsigned long int i = ulongval ();
37016       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37017         return 1;
37018       fprintf (f, "%lu\n", i);
37019     }
37020   return ferror (f) || fclose (f) != 0;
37021
37022   ;
37023   return 0;
37024 }
37025 _ACEOF
37026 rm -f conftest$ac_exeext
37027 if { (ac_try="$ac_link"
37028 case "(($ac_try" in
37029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37030   *) ac_try_echo=$ac_try;;
37031 esac
37032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37033   (eval "$ac_link") 2>&5
37034   ac_status=$?
37035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37037   { (case "(($ac_try" in
37038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039   *) ac_try_echo=$ac_try;;
37040 esac
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042   (eval "$ac_try") 2>&5
37043   ac_status=$?
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); }; }; then
37046   ac_cv_sizeof_long_long_int=`cat conftest.val`
37047 else
37048   echo "$as_me: program exited with status $ac_status" >&5
37049 echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37051
37052 ( exit $ac_status )
37053 if test "$ac_cv_type_long_long_int" = yes; then
37054      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37055 See \`config.log' for more details." >&5
37056 echo "$as_me: error: cannot compute sizeof (long long int)
37057 See \`config.log' for more details." >&2;}
37058    { (exit 77); exit 77; }; }
37059    else
37060      ac_cv_sizeof_long_long_int=0
37061    fi
37062 fi
37063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37064 fi
37065 rm -f conftest.val
37066 fi
37067 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37068 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37069
37070
37071
37072 cat >>confdefs.h <<_ACEOF
37073 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37074 _ACEOF
37075
37076
37077 { echo "$as_me:$LINENO: checking for int *" >&5
37078 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37079 if test "${ac_cv_type_int_p+set}" = set; then
37080   echo $ECHO_N "(cached) $ECHO_C" >&6
37081 else
37082   cat >conftest.$ac_ext <<_ACEOF
37083 /* confdefs.h.  */
37084 _ACEOF
37085 cat confdefs.h >>conftest.$ac_ext
37086 cat >>conftest.$ac_ext <<_ACEOF
37087 /* end confdefs.h.  */
37088 $ac_includes_default
37089 typedef int * ac__type_new_;
37090 int
37091 main ()
37092 {
37093 if ((ac__type_new_ *) 0)
37094   return 0;
37095 if (sizeof (ac__type_new_))
37096   return 0;
37097   ;
37098   return 0;
37099 }
37100 _ACEOF
37101 rm -f conftest.$ac_objext
37102 if { (ac_try="$ac_compile"
37103 case "(($ac_try" in
37104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37105   *) ac_try_echo=$ac_try;;
37106 esac
37107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37108   (eval "$ac_compile") 2>conftest.er1
37109   ac_status=$?
37110   grep -v '^ *+' conftest.er1 >conftest.err
37111   rm -f conftest.er1
37112   cat conftest.err >&5
37113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114   (exit $ac_status); } && {
37115          test -z "$ac_c_werror_flag" ||
37116          test ! -s conftest.err
37117        } && test -s conftest.$ac_objext; then
37118   ac_cv_type_int_p=yes
37119 else
37120   echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37122
37123         ac_cv_type_int_p=no
37124 fi
37125
37126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37127 fi
37128 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37129 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37130
37131 # The cast to long int works around a bug in the HP C Compiler
37132 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37133 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37134 # This bug is HP SR number 8606223364.
37135 { echo "$as_me:$LINENO: checking size of int *" >&5
37136 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37137 if test "${ac_cv_sizeof_int_p+set}" = set; then
37138   echo $ECHO_N "(cached) $ECHO_C" >&6
37139 else
37140   if test "$cross_compiling" = yes; then
37141   # Depending upon the size, compute the lo and hi bounds.
37142 cat >conftest.$ac_ext <<_ACEOF
37143 /* confdefs.h.  */
37144 _ACEOF
37145 cat confdefs.h >>conftest.$ac_ext
37146 cat >>conftest.$ac_ext <<_ACEOF
37147 /* end confdefs.h.  */
37148 $ac_includes_default
37149    typedef int * ac__type_sizeof_;
37150 int
37151 main ()
37152 {
37153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37154 test_array [0] = 0
37155
37156   ;
37157   return 0;
37158 }
37159 _ACEOF
37160 rm -f conftest.$ac_objext
37161 if { (ac_try="$ac_compile"
37162 case "(($ac_try" in
37163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37164   *) ac_try_echo=$ac_try;;
37165 esac
37166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37167   (eval "$ac_compile") 2>conftest.er1
37168   ac_status=$?
37169   grep -v '^ *+' conftest.er1 >conftest.err
37170   rm -f conftest.er1
37171   cat conftest.err >&5
37172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173   (exit $ac_status); } && {
37174          test -z "$ac_c_werror_flag" ||
37175          test ! -s conftest.err
37176        } && test -s conftest.$ac_objext; then
37177   ac_lo=0 ac_mid=0
37178   while :; do
37179     cat >conftest.$ac_ext <<_ACEOF
37180 /* confdefs.h.  */
37181 _ACEOF
37182 cat confdefs.h >>conftest.$ac_ext
37183 cat >>conftest.$ac_ext <<_ACEOF
37184 /* end confdefs.h.  */
37185 $ac_includes_default
37186    typedef int * ac__type_sizeof_;
37187 int
37188 main ()
37189 {
37190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37191 test_array [0] = 0
37192
37193   ;
37194   return 0;
37195 }
37196 _ACEOF
37197 rm -f conftest.$ac_objext
37198 if { (ac_try="$ac_compile"
37199 case "(($ac_try" in
37200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37201   *) ac_try_echo=$ac_try;;
37202 esac
37203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37204   (eval "$ac_compile") 2>conftest.er1
37205   ac_status=$?
37206   grep -v '^ *+' conftest.er1 >conftest.err
37207   rm -f conftest.er1
37208   cat conftest.err >&5
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); } && {
37211          test -z "$ac_c_werror_flag" ||
37212          test ! -s conftest.err
37213        } && test -s conftest.$ac_objext; then
37214   ac_hi=$ac_mid; break
37215 else
37216   echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37218
37219         ac_lo=`expr $ac_mid + 1`
37220                         if test $ac_lo -le $ac_mid; then
37221                           ac_lo= ac_hi=
37222                           break
37223                         fi
37224                         ac_mid=`expr 2 '*' $ac_mid + 1`
37225 fi
37226
37227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37228   done
37229 else
37230   echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37232
37233         cat >conftest.$ac_ext <<_ACEOF
37234 /* confdefs.h.  */
37235 _ACEOF
37236 cat confdefs.h >>conftest.$ac_ext
37237 cat >>conftest.$ac_ext <<_ACEOF
37238 /* end confdefs.h.  */
37239 $ac_includes_default
37240    typedef int * ac__type_sizeof_;
37241 int
37242 main ()
37243 {
37244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37245 test_array [0] = 0
37246
37247   ;
37248   return 0;
37249 }
37250 _ACEOF
37251 rm -f conftest.$ac_objext
37252 if { (ac_try="$ac_compile"
37253 case "(($ac_try" in
37254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37255   *) ac_try_echo=$ac_try;;
37256 esac
37257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37258   (eval "$ac_compile") 2>conftest.er1
37259   ac_status=$?
37260   grep -v '^ *+' conftest.er1 >conftest.err
37261   rm -f conftest.er1
37262   cat conftest.err >&5
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); } && {
37265          test -z "$ac_c_werror_flag" ||
37266          test ! -s conftest.err
37267        } && test -s conftest.$ac_objext; then
37268   ac_hi=-1 ac_mid=-1
37269   while :; do
37270     cat >conftest.$ac_ext <<_ACEOF
37271 /* confdefs.h.  */
37272 _ACEOF
37273 cat confdefs.h >>conftest.$ac_ext
37274 cat >>conftest.$ac_ext <<_ACEOF
37275 /* end confdefs.h.  */
37276 $ac_includes_default
37277    typedef int * ac__type_sizeof_;
37278 int
37279 main ()
37280 {
37281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37282 test_array [0] = 0
37283
37284   ;
37285   return 0;
37286 }
37287 _ACEOF
37288 rm -f conftest.$ac_objext
37289 if { (ac_try="$ac_compile"
37290 case "(($ac_try" in
37291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37292   *) ac_try_echo=$ac_try;;
37293 esac
37294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37295   (eval "$ac_compile") 2>conftest.er1
37296   ac_status=$?
37297   grep -v '^ *+' conftest.er1 >conftest.err
37298   rm -f conftest.er1
37299   cat conftest.err >&5
37300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301   (exit $ac_status); } && {
37302          test -z "$ac_c_werror_flag" ||
37303          test ! -s conftest.err
37304        } && test -s conftest.$ac_objext; then
37305   ac_lo=$ac_mid; break
37306 else
37307   echo "$as_me: failed program was:" >&5
37308 sed 's/^/| /' conftest.$ac_ext >&5
37309
37310         ac_hi=`expr '(' $ac_mid ')' - 1`
37311                         if test $ac_mid -le $ac_hi; then
37312                           ac_lo= ac_hi=
37313                           break
37314                         fi
37315                         ac_mid=`expr 2 '*' $ac_mid`
37316 fi
37317
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37319   done
37320 else
37321   echo "$as_me: failed program was:" >&5
37322 sed 's/^/| /' conftest.$ac_ext >&5
37323
37324         ac_lo= ac_hi=
37325 fi
37326
37327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37328 fi
37329
37330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37331 # Binary search between lo and hi bounds.
37332 while test "x$ac_lo" != "x$ac_hi"; do
37333   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37334   cat >conftest.$ac_ext <<_ACEOF
37335 /* confdefs.h.  */
37336 _ACEOF
37337 cat confdefs.h >>conftest.$ac_ext
37338 cat >>conftest.$ac_ext <<_ACEOF
37339 /* end confdefs.h.  */
37340 $ac_includes_default
37341    typedef int * ac__type_sizeof_;
37342 int
37343 main ()
37344 {
37345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37346 test_array [0] = 0
37347
37348   ;
37349   return 0;
37350 }
37351 _ACEOF
37352 rm -f conftest.$ac_objext
37353 if { (ac_try="$ac_compile"
37354 case "(($ac_try" in
37355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37356   *) ac_try_echo=$ac_try;;
37357 esac
37358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37359   (eval "$ac_compile") 2>conftest.er1
37360   ac_status=$?
37361   grep -v '^ *+' conftest.er1 >conftest.err
37362   rm -f conftest.er1
37363   cat conftest.err >&5
37364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365   (exit $ac_status); } && {
37366          test -z "$ac_c_werror_flag" ||
37367          test ! -s conftest.err
37368        } && test -s conftest.$ac_objext; then
37369   ac_hi=$ac_mid
37370 else
37371   echo "$as_me: failed program was:" >&5
37372 sed 's/^/| /' conftest.$ac_ext >&5
37373
37374         ac_lo=`expr '(' $ac_mid ')' + 1`
37375 fi
37376
37377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37378 done
37379 case $ac_lo in
37380 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37381 '') if test "$ac_cv_type_int_p" = yes; then
37382      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37383 See \`config.log' for more details." >&5
37384 echo "$as_me: error: cannot compute sizeof (int *)
37385 See \`config.log' for more details." >&2;}
37386    { (exit 77); exit 77; }; }
37387    else
37388      ac_cv_sizeof_int_p=0
37389    fi ;;
37390 esac
37391 else
37392   cat >conftest.$ac_ext <<_ACEOF
37393 /* confdefs.h.  */
37394 _ACEOF
37395 cat confdefs.h >>conftest.$ac_ext
37396 cat >>conftest.$ac_ext <<_ACEOF
37397 /* end confdefs.h.  */
37398 $ac_includes_default
37399    typedef int * ac__type_sizeof_;
37400 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37401 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37402 #include <stdio.h>
37403 #include <stdlib.h>
37404 int
37405 main ()
37406 {
37407
37408   FILE *f = fopen ("conftest.val", "w");
37409   if (! f)
37410     return 1;
37411   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37412     {
37413       long int i = longval ();
37414       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37415         return 1;
37416       fprintf (f, "%ld\n", i);
37417     }
37418   else
37419     {
37420       unsigned long int i = ulongval ();
37421       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37422         return 1;
37423       fprintf (f, "%lu\n", i);
37424     }
37425   return ferror (f) || fclose (f) != 0;
37426
37427   ;
37428   return 0;
37429 }
37430 _ACEOF
37431 rm -f conftest$ac_exeext
37432 if { (ac_try="$ac_link"
37433 case "(($ac_try" in
37434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37435   *) ac_try_echo=$ac_try;;
37436 esac
37437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37438   (eval "$ac_link") 2>&5
37439   ac_status=$?
37440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37442   { (case "(($ac_try" in
37443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37444   *) ac_try_echo=$ac_try;;
37445 esac
37446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37447   (eval "$ac_try") 2>&5
37448   ac_status=$?
37449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450   (exit $ac_status); }; }; then
37451   ac_cv_sizeof_int_p=`cat conftest.val`
37452 else
37453   echo "$as_me: program exited with status $ac_status" >&5
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 ( exit $ac_status )
37458 if test "$ac_cv_type_int_p" = yes; then
37459      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37460 See \`config.log' for more details." >&5
37461 echo "$as_me: error: cannot compute sizeof (int *)
37462 See \`config.log' for more details." >&2;}
37463    { (exit 77); exit 77; }; }
37464    else
37465      ac_cv_sizeof_int_p=0
37466    fi
37467 fi
37468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37469 fi
37470 rm -f conftest.val
37471 fi
37472 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37473 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37474
37475
37476
37477 cat >>confdefs.h <<_ACEOF
37478 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37479 _ACEOF
37480
37481
37482
37483 { echo "$as_me:$LINENO: checking for u_int type" >&5
37484 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37485 if test "${ac_cv_have_u_int+set}" = set; then
37486   echo $ECHO_N "(cached) $ECHO_C" >&6
37487 else
37488
37489        cat >conftest.$ac_ext <<_ACEOF
37490 /* confdefs.h.  */
37491 _ACEOF
37492 cat confdefs.h >>conftest.$ac_ext
37493 cat >>conftest.$ac_ext <<_ACEOF
37494 /* end confdefs.h.  */
37495
37496               #include <sys/types.h>
37497
37498 int
37499 main ()
37500 {
37501
37502               u_int a; a = 1;
37503
37504   ;
37505   return 0;
37506 }
37507 _ACEOF
37508 rm -f conftest.$ac_objext
37509 if { (ac_try="$ac_compile"
37510 case "(($ac_try" in
37511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37512   *) ac_try_echo=$ac_try;;
37513 esac
37514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37515   (eval "$ac_compile") 2>conftest.er1
37516   ac_status=$?
37517   grep -v '^ *+' conftest.er1 >conftest.err
37518   rm -f conftest.er1
37519   cat conftest.err >&5
37520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521   (exit $ac_status); } && {
37522          test -z "$ac_c_werror_flag" ||
37523          test ! -s conftest.err
37524        } && test -s conftest.$ac_objext; then
37525
37526               ac_cv_have_u_int="yes"
37527
37528 else
37529   echo "$as_me: failed program was:" >&5
37530 sed 's/^/| /' conftest.$ac_ext >&5
37531
37532
37533               ac_cv_have_u_int="no"
37534
37535
37536 fi
37537
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539
37540
37541 fi
37542 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37543 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37544 if test "x$ac_cv_have_u_int" = "xyes" ; then
37545    cat >>confdefs.h <<\_ACEOF
37546 #define HAVE_U_INT 1
37547 _ACEOF
37548
37549    have_u_int=1
37550 fi
37551
37552 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37553 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37554 if test "${ac_cv_have_intmax_t+set}" = set; then
37555   echo $ECHO_N "(cached) $ECHO_C" >&6
37556 else
37557
37558        cat >conftest.$ac_ext <<_ACEOF
37559 /* confdefs.h.  */
37560 _ACEOF
37561 cat confdefs.h >>conftest.$ac_ext
37562 cat >>conftest.$ac_ext <<_ACEOF
37563 /* end confdefs.h.  */
37564
37565               #include <sys/types.h>
37566
37567 int
37568 main ()
37569 {
37570
37571               intmax_t a; a = 1;
37572
37573   ;
37574   return 0;
37575 }
37576 _ACEOF
37577 rm -f conftest.$ac_objext
37578 if { (ac_try="$ac_compile"
37579 case "(($ac_try" in
37580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581   *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584   (eval "$ac_compile") 2>conftest.er1
37585   ac_status=$?
37586   grep -v '^ *+' conftest.er1 >conftest.err
37587   rm -f conftest.er1
37588   cat conftest.err >&5
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); } && {
37591          test -z "$ac_c_werror_flag" ||
37592          test ! -s conftest.err
37593        } && test -s conftest.$ac_objext; then
37594
37595               ac_cv_have_intmax_t="yes"
37596
37597 else
37598   echo "$as_me: failed program was:" >&5
37599 sed 's/^/| /' conftest.$ac_ext >&5
37600
37601
37602               cat >conftest.$ac_ext <<_ACEOF
37603 /* confdefs.h.  */
37604 _ACEOF
37605 cat confdefs.h >>conftest.$ac_ext
37606 cat >>conftest.$ac_ext <<_ACEOF
37607 /* end confdefs.h.  */
37608
37609                      #include <stdint.h>
37610
37611 int
37612 main ()
37613 {
37614
37615                      intmax_t a; a = 1;
37616
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext
37622 if { (ac_try="$ac_compile"
37623 case "(($ac_try" in
37624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625   *) ac_try_echo=$ac_try;;
37626 esac
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628   (eval "$ac_compile") 2>conftest.er1
37629   ac_status=$?
37630   grep -v '^ *+' conftest.er1 >conftest.err
37631   rm -f conftest.er1
37632   cat conftest.err >&5
37633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634   (exit $ac_status); } && {
37635          test -z "$ac_c_werror_flag" ||
37636          test ! -s conftest.err
37637        } && test -s conftest.$ac_objext; then
37638
37639                      ac_cv_have_intmax_t="yes"
37640
37641 else
37642   echo "$as_me: failed program was:" >&5
37643 sed 's/^/| /' conftest.$ac_ext >&5
37644
37645
37646                      ac_cv_have_intmax_t="no"
37647
37648
37649 fi
37650
37651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37652
37653
37654 fi
37655
37656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37657
37658
37659 fi
37660 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37661 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37662 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37663    cat >>confdefs.h <<\_ACEOF
37664 #define HAVE_INTMAX_T 1
37665 _ACEOF
37666
37667    have_intmax_t=1
37668 fi
37669
37670 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37671 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37672 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37673   echo $ECHO_N "(cached) $ECHO_C" >&6
37674 else
37675
37676        cat >conftest.$ac_ext <<_ACEOF
37677 /* confdefs.h.  */
37678 _ACEOF
37679 cat confdefs.h >>conftest.$ac_ext
37680 cat >>conftest.$ac_ext <<_ACEOF
37681 /* end confdefs.h.  */
37682
37683               #include <sys/types.h>
37684
37685 int
37686 main ()
37687 {
37688
37689               u_intmax_t a; a = 1;
37690
37691   ;
37692   return 0;
37693 }
37694 _ACEOF
37695 rm -f conftest.$ac_objext
37696 if { (ac_try="$ac_compile"
37697 case "(($ac_try" in
37698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37699   *) ac_try_echo=$ac_try;;
37700 esac
37701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37702   (eval "$ac_compile") 2>conftest.er1
37703   ac_status=$?
37704   grep -v '^ *+' conftest.er1 >conftest.err
37705   rm -f conftest.er1
37706   cat conftest.err >&5
37707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708   (exit $ac_status); } && {
37709          test -z "$ac_c_werror_flag" ||
37710          test ! -s conftest.err
37711        } && test -s conftest.$ac_objext; then
37712
37713               ac_cv_have_u_intmax_t="yes"
37714
37715 else
37716   echo "$as_me: failed program was:" >&5
37717 sed 's/^/| /' conftest.$ac_ext >&5
37718
37719
37720               cat >conftest.$ac_ext <<_ACEOF
37721 /* confdefs.h.  */
37722 _ACEOF
37723 cat confdefs.h >>conftest.$ac_ext
37724 cat >>conftest.$ac_ext <<_ACEOF
37725 /* end confdefs.h.  */
37726
37727                      #include <stdint.h>
37728
37729 int
37730 main ()
37731 {
37732
37733                     u_intmax_t a; a = 1;
37734
37735   ;
37736   return 0;
37737 }
37738 _ACEOF
37739 rm -f conftest.$ac_objext
37740 if { (ac_try="$ac_compile"
37741 case "(($ac_try" in
37742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37743   *) ac_try_echo=$ac_try;;
37744 esac
37745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37746   (eval "$ac_compile") 2>conftest.er1
37747   ac_status=$?
37748   grep -v '^ *+' conftest.er1 >conftest.err
37749   rm -f conftest.er1
37750   cat conftest.err >&5
37751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37752   (exit $ac_status); } && {
37753          test -z "$ac_c_werror_flag" ||
37754          test ! -s conftest.err
37755        } && test -s conftest.$ac_objext; then
37756
37757                     ac_cv_have_u_intmax_t="yes"
37758
37759 else
37760   echo "$as_me: failed program was:" >&5
37761 sed 's/^/| /' conftest.$ac_ext >&5
37762
37763
37764                     ac_cv_have_u_intmax_t="no"
37765
37766
37767 fi
37768
37769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37770
37771
37772 fi
37773
37774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37775
37776
37777 fi
37778 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37779 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37780 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37781    cat >>confdefs.h <<\_ACEOF
37782 #define HAVE_U_INTMAX_T 1
37783 _ACEOF
37784
37785    have_u_intmax_t=1
37786 fi
37787
37788 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37789 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37790 if test "${ac_cv_have_intxx_t+set}" = set; then
37791   echo $ECHO_N "(cached) $ECHO_C" >&6
37792 else
37793
37794        cat >conftest.$ac_ext <<_ACEOF
37795 /* confdefs.h.  */
37796 _ACEOF
37797 cat confdefs.h >>conftest.$ac_ext
37798 cat >>conftest.$ac_ext <<_ACEOF
37799 /* end confdefs.h.  */
37800
37801               #include <sys/types.h>
37802
37803 int
37804 main ()
37805 {
37806
37807               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37808
37809   ;
37810   return 0;
37811 }
37812 _ACEOF
37813 rm -f conftest.$ac_objext
37814 if { (ac_try="$ac_compile"
37815 case "(($ac_try" in
37816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37817   *) ac_try_echo=$ac_try;;
37818 esac
37819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37820   (eval "$ac_compile") 2>conftest.er1
37821   ac_status=$?
37822   grep -v '^ *+' conftest.er1 >conftest.err
37823   rm -f conftest.er1
37824   cat conftest.err >&5
37825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826   (exit $ac_status); } && {
37827          test -z "$ac_c_werror_flag" ||
37828          test ! -s conftest.err
37829        } && test -s conftest.$ac_objext; then
37830
37831               ac_cv_have_intxx_t="yes"
37832
37833 else
37834   echo "$as_me: failed program was:" >&5
37835 sed 's/^/| /' conftest.$ac_ext >&5
37836
37837
37838               ac_cv_have_intxx_t="no"
37839
37840
37841 fi
37842
37843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37844
37845
37846 fi
37847 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37848 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37849 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37850    cat >>confdefs.h <<\_ACEOF
37851 #define HAVE_INTXX_T 1
37852 _ACEOF
37853
37854    have_intxx_t=1
37855 fi
37856
37857 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37858 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37859 if test "${ac_cv_have_int64_t+set}" = set; then
37860   echo $ECHO_N "(cached) $ECHO_C" >&6
37861 else
37862
37863        cat >conftest.$ac_ext <<_ACEOF
37864 /* confdefs.h.  */
37865 _ACEOF
37866 cat confdefs.h >>conftest.$ac_ext
37867 cat >>conftest.$ac_ext <<_ACEOF
37868 /* end confdefs.h.  */
37869
37870               #include <sys/types.h>
37871
37872 int
37873 main ()
37874 {
37875
37876               int64_t a; a = 1;
37877
37878   ;
37879   return 0;
37880 }
37881 _ACEOF
37882 rm -f conftest.$ac_objext
37883 if { (ac_try="$ac_compile"
37884 case "(($ac_try" in
37885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37886   *) ac_try_echo=$ac_try;;
37887 esac
37888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37889   (eval "$ac_compile") 2>conftest.er1
37890   ac_status=$?
37891   grep -v '^ *+' conftest.er1 >conftest.err
37892   rm -f conftest.er1
37893   cat conftest.err >&5
37894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895   (exit $ac_status); } && {
37896          test -z "$ac_c_werror_flag" ||
37897          test ! -s conftest.err
37898        } && test -s conftest.$ac_objext; then
37899
37900               ac_cv_have_int64_t="yes"
37901
37902 else
37903   echo "$as_me: failed program was:" >&5
37904 sed 's/^/| /' conftest.$ac_ext >&5
37905
37906
37907               ac_cv_have_int64_t="no"
37908
37909
37910 fi
37911
37912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37913
37914
37915 fi
37916 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37917 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37918 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37919    cat >>confdefs.h <<\_ACEOF
37920 #define HAVE_INT64_T 1
37921 _ACEOF
37922
37923    have_int64_t=1
37924 fi
37925
37926 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37927 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37928 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37929   echo $ECHO_N "(cached) $ECHO_C" >&6
37930 else
37931
37932        cat >conftest.$ac_ext <<_ACEOF
37933 /* confdefs.h.  */
37934 _ACEOF
37935 cat confdefs.h >>conftest.$ac_ext
37936 cat >>conftest.$ac_ext <<_ACEOF
37937 /* end confdefs.h.  */
37938
37939               #include <sys/types.h>
37940
37941 int
37942 main ()
37943 {
37944
37945               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37946
37947   ;
37948   return 0;
37949 }
37950 _ACEOF
37951 rm -f conftest.$ac_objext
37952 if { (ac_try="$ac_compile"
37953 case "(($ac_try" in
37954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37955   *) ac_try_echo=$ac_try;;
37956 esac
37957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37958   (eval "$ac_compile") 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } && {
37965          test -z "$ac_c_werror_flag" ||
37966          test ! -s conftest.err
37967        } && test -s conftest.$ac_objext; then
37968
37969              ac_cv_have_u_intxx_t="yes"
37970
37971 else
37972   echo "$as_me: failed program was:" >&5
37973 sed 's/^/| /' conftest.$ac_ext >&5
37974
37975
37976              ac_cv_have_u_intxx_t="no"
37977
37978
37979 fi
37980
37981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37982
37983
37984 fi
37985 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37986 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37987 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37988    cat >>confdefs.h <<\_ACEOF
37989 #define HAVE_U_INTXX_T 1
37990 _ACEOF
37991
37992    have_u_intxx_t=1
37993 fi
37994
37995 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37996 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37997 if test "${ac_cv_have_u_int64_t+set}" = set; then
37998   echo $ECHO_N "(cached) $ECHO_C" >&6
37999 else
38000
38001        cat >conftest.$ac_ext <<_ACEOF
38002 /* confdefs.h.  */
38003 _ACEOF
38004 cat confdefs.h >>conftest.$ac_ext
38005 cat >>conftest.$ac_ext <<_ACEOF
38006 /* end confdefs.h.  */
38007
38008               #include <sys/types.h>
38009
38010 int
38011 main ()
38012 {
38013
38014               u_int64_t a; a = 1;
38015
38016   ;
38017   return 0;
38018 }
38019 _ACEOF
38020 rm -f conftest.$ac_objext
38021 if { (ac_try="$ac_compile"
38022 case "(($ac_try" in
38023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38024   *) ac_try_echo=$ac_try;;
38025 esac
38026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38027   (eval "$ac_compile") 2>conftest.er1
38028   ac_status=$?
38029   grep -v '^ *+' conftest.er1 >conftest.err
38030   rm -f conftest.er1
38031   cat conftest.err >&5
38032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033   (exit $ac_status); } && {
38034          test -z "$ac_c_werror_flag" ||
38035          test ! -s conftest.err
38036        } && test -s conftest.$ac_objext; then
38037
38038              ac_cv_have_u_int64_t="yes"
38039
38040 else
38041   echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38043
38044
38045              ac_cv_have_u_int64_t="no"
38046
38047
38048 fi
38049
38050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38051
38052
38053 fi
38054 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38055 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38056 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38057    cat >>confdefs.h <<\_ACEOF
38058 #define HAVE_U_INT64_T 1
38059 _ACEOF
38060
38061    have_u_int64_t=1
38062 fi
38063
38064 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38065     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38066 then
38067    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38068 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38069    cat >conftest.$ac_ext <<_ACEOF
38070 /* confdefs.h.  */
38071 _ACEOF
38072 cat confdefs.h >>conftest.$ac_ext
38073 cat >>conftest.$ac_ext <<_ACEOF
38074 /* end confdefs.h.  */
38075
38076           #include <sys/bitypes.h>
38077
38078 int
38079 main ()
38080 {
38081
38082           int8_t a; int16_t b; int32_t c;
38083           u_int8_t e; u_int16_t f; u_int32_t g;
38084           a = b = c = e = f = g = 1;
38085
38086   ;
38087   return 0;
38088 }
38089 _ACEOF
38090 rm -f conftest.$ac_objext
38091 if { (ac_try="$ac_compile"
38092 case "(($ac_try" in
38093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38094   *) ac_try_echo=$ac_try;;
38095 esac
38096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38097   (eval "$ac_compile") 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } && {
38104          test -z "$ac_c_werror_flag" ||
38105          test ! -s conftest.err
38106        } && test -s conftest.$ac_objext; then
38107
38108           cat >>confdefs.h <<\_ACEOF
38109 #define HAVE_U_INTXX_T 1
38110 _ACEOF
38111
38112           cat >>confdefs.h <<\_ACEOF
38113 #define HAVE_INTXX_T 1
38114 _ACEOF
38115
38116           cat >>confdefs.h <<\_ACEOF
38117 #define HAVE_SYS_BITYPES_H 1
38118 _ACEOF
38119
38120           { echo "$as_me:$LINENO: result: yes" >&5
38121 echo "${ECHO_T}yes" >&6; }
38122
38123 else
38124   echo "$as_me: failed program was:" >&5
38125 sed 's/^/| /' conftest.$ac_ext >&5
38126
38127
38128           { echo "$as_me:$LINENO: result: no" >&5
38129 echo "${ECHO_T}no" >&6; }
38130
38131
38132 fi
38133
38134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38135 fi
38136
38137 if test -z "$have_u_intxx_t" ; then
38138    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38139 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38140 if test "${ac_cv_have_uintxx_t+set}" = set; then
38141   echo $ECHO_N "(cached) $ECHO_C" >&6
38142 else
38143
38144           cat >conftest.$ac_ext <<_ACEOF
38145 /* confdefs.h.  */
38146 _ACEOF
38147 cat confdefs.h >>conftest.$ac_ext
38148 cat >>conftest.$ac_ext <<_ACEOF
38149 /* end confdefs.h.  */
38150
38151                  #include <sys/types.h>
38152
38153 int
38154 main ()
38155 {
38156
38157                  uint8_t a; uint16_t b;
38158                  uint32_t c; a = b = c = 1;
38159
38160   ;
38161   return 0;
38162 }
38163 _ACEOF
38164 rm -f conftest.$ac_objext
38165 if { (ac_try="$ac_compile"
38166 case "(($ac_try" in
38167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168   *) ac_try_echo=$ac_try;;
38169 esac
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171   (eval "$ac_compile") 2>conftest.er1
38172   ac_status=$?
38173   grep -v '^ *+' conftest.er1 >conftest.err
38174   rm -f conftest.er1
38175   cat conftest.err >&5
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } && {
38178          test -z "$ac_c_werror_flag" ||
38179          test ! -s conftest.err
38180        } && test -s conftest.$ac_objext; then
38181
38182                 ac_cv_have_uintxx_t="yes"
38183
38184 else
38185   echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38187
38188
38189                 ac_cv_have_uintxx_t="no"
38190
38191
38192 fi
38193
38194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38195
38196
38197 fi
38198 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38199 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38200    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38201       cat >>confdefs.h <<\_ACEOF
38202 #define HAVE_UINTXX_T 1
38203 _ACEOF
38204
38205    fi
38206 fi
38207
38208 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38209     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38210 then
38211    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38212 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38213    cat >conftest.$ac_ext <<_ACEOF
38214 /* confdefs.h.  */
38215 _ACEOF
38216 cat confdefs.h >>conftest.$ac_ext
38217 cat >>conftest.$ac_ext <<_ACEOF
38218 /* end confdefs.h.  */
38219
38220           #include <sys/bitypes.h>
38221
38222 int
38223 main ()
38224 {
38225
38226           int64_t a; u_int64_t b;
38227           a = b = 1;
38228
38229   ;
38230   return 0;
38231 }
38232 _ACEOF
38233 rm -f conftest.$ac_objext
38234 if { (ac_try="$ac_compile"
38235 case "(($ac_try" in
38236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38237   *) ac_try_echo=$ac_try;;
38238 esac
38239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38240   (eval "$ac_compile") 2>conftest.er1
38241   ac_status=$?
38242   grep -v '^ *+' conftest.er1 >conftest.err
38243   rm -f conftest.er1
38244   cat conftest.err >&5
38245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246   (exit $ac_status); } && {
38247          test -z "$ac_c_werror_flag" ||
38248          test ! -s conftest.err
38249        } && test -s conftest.$ac_objext; then
38250
38251           cat >>confdefs.h <<\_ACEOF
38252 #define HAVE_U_INT64_T 1
38253 _ACEOF
38254
38255           cat >>confdefs.h <<\_ACEOF
38256 #define HAVE_INT64_T 1
38257 _ACEOF
38258
38259           { echo "$as_me:$LINENO: result: yes" >&5
38260 echo "${ECHO_T}yes" >&6; }
38261
38262 else
38263   echo "$as_me: failed program was:" >&5
38264 sed 's/^/| /' conftest.$ac_ext >&5
38265
38266
38267           { echo "$as_me:$LINENO: result: no" >&5
38268 echo "${ECHO_T}no" >&6; }
38269
38270
38271 fi
38272
38273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38274 fi
38275
38276 if (test -z "$have_uintxx_t" && \
38277     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38278 then
38279    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38280 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
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
38288           #include <sys/bitypes.h>
38289
38290 int
38291 main ()
38292 {
38293
38294           uint8_t a; uint16_t b;
38295           uint32_t c; a = b = c = 1;
38296
38297   ;
38298   return 0;
38299 }
38300 _ACEOF
38301 rm -f conftest.$ac_objext
38302 if { (ac_try="$ac_compile"
38303 case "(($ac_try" in
38304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38305   *) ac_try_echo=$ac_try;;
38306 esac
38307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38308   (eval "$ac_compile") 2>conftest.er1
38309   ac_status=$?
38310   grep -v '^ *+' conftest.er1 >conftest.err
38311   rm -f conftest.er1
38312   cat conftest.err >&5
38313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314   (exit $ac_status); } && {
38315          test -z "$ac_c_werror_flag" ||
38316          test ! -s conftest.err
38317        } && test -s conftest.$ac_objext; then
38318
38319           cat >>confdefs.h <<\_ACEOF
38320 #define HAVE_UINTXX_T 1
38321 _ACEOF
38322
38323           { echo "$as_me:$LINENO: result: yes" >&5
38324 echo "${ECHO_T}yes" >&6; }
38325
38326 else
38327   echo "$as_me: failed program was:" >&5
38328 sed 's/^/| /' conftest.$ac_ext >&5
38329
38330
38331           { echo "$as_me:$LINENO: result: no" >&5
38332 echo "${ECHO_T}no" >&6; }
38333
38334
38335 fi
38336
38337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38338 fi
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353 for ac_func in \
38354    fork \
38355    getcwd \
38356    gethostname \
38357    getpid \
38358    gettimeofday \
38359    setpgid \
38360    setpgrp \
38361    setsid \
38362    signal \
38363    strerror \
38364    strncmp \
38365    strncpy \
38366    vfprintf \
38367
38368 do
38369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38373   echo $ECHO_N "(cached) $ECHO_C" >&6
38374 else
38375   cat >conftest.$ac_ext <<_ACEOF
38376 /* confdefs.h.  */
38377 _ACEOF
38378 cat confdefs.h >>conftest.$ac_ext
38379 cat >>conftest.$ac_ext <<_ACEOF
38380 /* end confdefs.h.  */
38381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38383 #define $ac_func innocuous_$ac_func
38384
38385 /* System header to define __stub macros and hopefully few prototypes,
38386     which can conflict with char $ac_func (); below.
38387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38388     <limits.h> exists even on freestanding compilers.  */
38389
38390 #ifdef __STDC__
38391 # include <limits.h>
38392 #else
38393 # include <assert.h>
38394 #endif
38395
38396 #undef $ac_func
38397
38398 /* Override any GCC internal prototype to avoid an error.
38399    Use char because int might match the return type of a GCC
38400    builtin and then its argument prototype would still apply.  */
38401 #ifdef __cplusplus
38402 extern "C"
38403 #endif
38404 char $ac_func ();
38405 /* The GNU C library defines this for functions which it implements
38406     to always fail with ENOSYS.  Some functions are actually named
38407     something starting with __ and the normal name is an alias.  */
38408 #if defined __stub_$ac_func || defined __stub___$ac_func
38409 choke me
38410 #endif
38411
38412 int
38413 main ()
38414 {
38415 return $ac_func ();
38416   ;
38417   return 0;
38418 }
38419 _ACEOF
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (ac_try="$ac_link"
38422 case "(($ac_try" in
38423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38424   *) ac_try_echo=$ac_try;;
38425 esac
38426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38427   (eval "$ac_link") 2>conftest.er1
38428   ac_status=$?
38429   grep -v '^ *+' conftest.er1 >conftest.err
38430   rm -f conftest.er1
38431   cat conftest.err >&5
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); } && {
38434          test -z "$ac_c_werror_flag" ||
38435          test ! -s conftest.err
38436        } && test -s conftest$ac_exeext &&
38437        $as_test_x conftest$ac_exeext; then
38438   eval "$as_ac_var=yes"
38439 else
38440   echo "$as_me: failed program was:" >&5
38441 sed 's/^/| /' conftest.$ac_ext >&5
38442
38443         eval "$as_ac_var=no"
38444 fi
38445
38446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38447       conftest$ac_exeext conftest.$ac_ext
38448 fi
38449 ac_res=`eval echo '${'$as_ac_var'}'`
38450                { echo "$as_me:$LINENO: result: $ac_res" >&5
38451 echo "${ECHO_T}$ac_res" >&6; }
38452 if test `eval echo '${'$as_ac_var'}'` = yes; then
38453   cat >>confdefs.h <<_ACEOF
38454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38455 _ACEOF
38456
38457 else
38458   echo 'configure: cannot find needed function.'; exit 1
38459
38460 fi
38461 done
38462
38463
38464
38465 for ac_func in fchdir
38466 do
38467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38471   echo $ECHO_N "(cached) $ECHO_C" >&6
38472 else
38473   cat >conftest.$ac_ext <<_ACEOF
38474 /* confdefs.h.  */
38475 _ACEOF
38476 cat confdefs.h >>conftest.$ac_ext
38477 cat >>conftest.$ac_ext <<_ACEOF
38478 /* end confdefs.h.  */
38479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38481 #define $ac_func innocuous_$ac_func
38482
38483 /* System header to define __stub macros and hopefully few prototypes,
38484     which can conflict with char $ac_func (); below.
38485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38486     <limits.h> exists even on freestanding compilers.  */
38487
38488 #ifdef __STDC__
38489 # include <limits.h>
38490 #else
38491 # include <assert.h>
38492 #endif
38493
38494 #undef $ac_func
38495
38496 /* Override any GCC internal prototype to avoid an error.
38497    Use char because int might match the return type of a GCC
38498    builtin and then its argument prototype would still apply.  */
38499 #ifdef __cplusplus
38500 extern "C"
38501 #endif
38502 char $ac_func ();
38503 /* The GNU C library defines this for functions which it implements
38504     to always fail with ENOSYS.  Some functions are actually named
38505     something starting with __ and the normal name is an alias.  */
38506 #if defined __stub_$ac_func || defined __stub___$ac_func
38507 choke me
38508 #endif
38509
38510 int
38511 main ()
38512 {
38513 return $ac_func ();
38514   ;
38515   return 0;
38516 }
38517 _ACEOF
38518 rm -f conftest.$ac_objext conftest$ac_exeext
38519 if { (ac_try="$ac_link"
38520 case "(($ac_try" in
38521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38522   *) ac_try_echo=$ac_try;;
38523 esac
38524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38525   (eval "$ac_link") 2>conftest.er1
38526   ac_status=$?
38527   grep -v '^ *+' conftest.er1 >conftest.err
38528   rm -f conftest.er1
38529   cat conftest.err >&5
38530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531   (exit $ac_status); } && {
38532          test -z "$ac_c_werror_flag" ||
38533          test ! -s conftest.err
38534        } && test -s conftest$ac_exeext &&
38535        $as_test_x conftest$ac_exeext; then
38536   eval "$as_ac_var=yes"
38537 else
38538   echo "$as_me: failed program was:" >&5
38539 sed 's/^/| /' conftest.$ac_ext >&5
38540
38541         eval "$as_ac_var=no"
38542 fi
38543
38544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38545       conftest$ac_exeext conftest.$ac_ext
38546 fi
38547 ac_res=`eval echo '${'$as_ac_var'}'`
38548                { echo "$as_me:$LINENO: result: $ac_res" >&5
38549 echo "${ECHO_T}$ac_res" >&6; }
38550 if test `eval echo '${'$as_ac_var'}'` = yes; then
38551   cat >>confdefs.h <<_ACEOF
38552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38553 _ACEOF
38554  cat >>confdefs.h <<\_ACEOF
38555 #define HAVE_FCHDIR 1
38556 _ACEOF
38557
38558 fi
38559 done
38560
38561
38562 for ac_func in strtoll
38563 do
38564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38568   echo $ECHO_N "(cached) $ECHO_C" >&6
38569 else
38570   cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38578 #define $ac_func innocuous_$ac_func
38579
38580 /* System header to define __stub macros and hopefully few prototypes,
38581     which can conflict with char $ac_func (); below.
38582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38583     <limits.h> exists even on freestanding compilers.  */
38584
38585 #ifdef __STDC__
38586 # include <limits.h>
38587 #else
38588 # include <assert.h>
38589 #endif
38590
38591 #undef $ac_func
38592
38593 /* Override any GCC internal prototype to avoid an error.
38594    Use char because int might match the return type of a GCC
38595    builtin and then its argument prototype would still apply.  */
38596 #ifdef __cplusplus
38597 extern "C"
38598 #endif
38599 char $ac_func ();
38600 /* The GNU C library defines this for functions which it implements
38601     to always fail with ENOSYS.  Some functions are actually named
38602     something starting with __ and the normal name is an alias.  */
38603 #if defined __stub_$ac_func || defined __stub___$ac_func
38604 choke me
38605 #endif
38606
38607 int
38608 main ()
38609 {
38610 return $ac_func ();
38611   ;
38612   return 0;
38613 }
38614 _ACEOF
38615 rm -f conftest.$ac_objext conftest$ac_exeext
38616 if { (ac_try="$ac_link"
38617 case "(($ac_try" in
38618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38619   *) ac_try_echo=$ac_try;;
38620 esac
38621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38622   (eval "$ac_link") 2>conftest.er1
38623   ac_status=$?
38624   grep -v '^ *+' conftest.er1 >conftest.err
38625   rm -f conftest.er1
38626   cat conftest.err >&5
38627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628   (exit $ac_status); } && {
38629          test -z "$ac_c_werror_flag" ||
38630          test ! -s conftest.err
38631        } && test -s conftest$ac_exeext &&
38632        $as_test_x conftest$ac_exeext; then
38633   eval "$as_ac_var=yes"
38634 else
38635   echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38637
38638         eval "$as_ac_var=no"
38639 fi
38640
38641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38642       conftest$ac_exeext conftest.$ac_ext
38643 fi
38644 ac_res=`eval echo '${'$as_ac_var'}'`
38645                { echo "$as_me:$LINENO: result: $ac_res" >&5
38646 echo "${ECHO_T}$ac_res" >&6; }
38647 if test `eval echo '${'$as_ac_var'}'` = yes; then
38648   cat >>confdefs.h <<_ACEOF
38649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38650 _ACEOF
38651  cat >>confdefs.h <<\_ACEOF
38652 #define HAVE_STRTOLL 1
38653 _ACEOF
38654
38655 fi
38656 done
38657
38658
38659 for ac_func in posix_fadvise
38660 do
38661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38665   echo $ECHO_N "(cached) $ECHO_C" >&6
38666 else
38667   cat >conftest.$ac_ext <<_ACEOF
38668 /* confdefs.h.  */
38669 _ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h.  */
38673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38675 #define $ac_func innocuous_$ac_func
38676
38677 /* System header to define __stub macros and hopefully few prototypes,
38678     which can conflict with char $ac_func (); below.
38679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38680     <limits.h> exists even on freestanding compilers.  */
38681
38682 #ifdef __STDC__
38683 # include <limits.h>
38684 #else
38685 # include <assert.h>
38686 #endif
38687
38688 #undef $ac_func
38689
38690 /* Override any GCC internal prototype to avoid an error.
38691    Use char because int might match the return type of a GCC
38692    builtin and then its argument prototype would still apply.  */
38693 #ifdef __cplusplus
38694 extern "C"
38695 #endif
38696 char $ac_func ();
38697 /* The GNU C library defines this for functions which it implements
38698     to always fail with ENOSYS.  Some functions are actually named
38699     something starting with __ and the normal name is an alias.  */
38700 #if defined __stub_$ac_func || defined __stub___$ac_func
38701 choke me
38702 #endif
38703
38704 int
38705 main ()
38706 {
38707 return $ac_func ();
38708   ;
38709   return 0;
38710 }
38711 _ACEOF
38712 rm -f conftest.$ac_objext conftest$ac_exeext
38713 if { (ac_try="$ac_link"
38714 case "(($ac_try" in
38715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38716   *) ac_try_echo=$ac_try;;
38717 esac
38718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38719   (eval "$ac_link") 2>conftest.er1
38720   ac_status=$?
38721   grep -v '^ *+' conftest.er1 >conftest.err
38722   rm -f conftest.er1
38723   cat conftest.err >&5
38724   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_exeext &&
38729        $as_test_x conftest$ac_exeext; then
38730   eval "$as_ac_var=yes"
38731 else
38732   echo "$as_me: failed program was:" >&5
38733 sed 's/^/| /' conftest.$ac_ext >&5
38734
38735         eval "$as_ac_var=no"
38736 fi
38737
38738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38739       conftest$ac_exeext conftest.$ac_ext
38740 fi
38741 ac_res=`eval echo '${'$as_ac_var'}'`
38742                { echo "$as_me:$LINENO: result: $ac_res" >&5
38743 echo "${ECHO_T}$ac_res" >&6; }
38744 if test `eval echo '${'$as_ac_var'}'` = yes; then
38745   cat >>confdefs.h <<_ACEOF
38746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38747 _ACEOF
38748
38749 fi
38750 done
38751
38752
38753 for ac_func in fdatasync
38754 do
38755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38759   echo $ECHO_N "(cached) $ECHO_C" >&6
38760 else
38761   cat >conftest.$ac_ext <<_ACEOF
38762 /* confdefs.h.  */
38763 _ACEOF
38764 cat confdefs.h >>conftest.$ac_ext
38765 cat >>conftest.$ac_ext <<_ACEOF
38766 /* end confdefs.h.  */
38767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38769 #define $ac_func innocuous_$ac_func
38770
38771 /* System header to define __stub macros and hopefully few prototypes,
38772     which can conflict with char $ac_func (); below.
38773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38774     <limits.h> exists even on freestanding compilers.  */
38775
38776 #ifdef __STDC__
38777 # include <limits.h>
38778 #else
38779 # include <assert.h>
38780 #endif
38781
38782 #undef $ac_func
38783
38784 /* Override any GCC internal prototype to avoid an error.
38785    Use char because int might match the return type of a GCC
38786    builtin and then its argument prototype would still apply.  */
38787 #ifdef __cplusplus
38788 extern "C"
38789 #endif
38790 char $ac_func ();
38791 /* The GNU C library defines this for functions which it implements
38792     to always fail with ENOSYS.  Some functions are actually named
38793     something starting with __ and the normal name is an alias.  */
38794 #if defined __stub_$ac_func || defined __stub___$ac_func
38795 choke me
38796 #endif
38797
38798 int
38799 main ()
38800 {
38801 return $ac_func ();
38802   ;
38803   return 0;
38804 }
38805 _ACEOF
38806 rm -f conftest.$ac_objext conftest$ac_exeext
38807 if { (ac_try="$ac_link"
38808 case "(($ac_try" in
38809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38810   *) ac_try_echo=$ac_try;;
38811 esac
38812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38813   (eval "$ac_link") 2>conftest.er1
38814   ac_status=$?
38815   grep -v '^ *+' conftest.er1 >conftest.err
38816   rm -f conftest.er1
38817   cat conftest.err >&5
38818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819   (exit $ac_status); } && {
38820          test -z "$ac_c_werror_flag" ||
38821          test ! -s conftest.err
38822        } && test -s conftest$ac_exeext &&
38823        $as_test_x conftest$ac_exeext; then
38824   eval "$as_ac_var=yes"
38825 else
38826   echo "$as_me: failed program was:" >&5
38827 sed 's/^/| /' conftest.$ac_ext >&5
38828
38829         eval "$as_ac_var=no"
38830 fi
38831
38832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38833       conftest$ac_exeext conftest.$ac_ext
38834 fi
38835 ac_res=`eval echo '${'$as_ac_var'}'`
38836                { echo "$as_me:$LINENO: result: $ac_res" >&5
38837 echo "${ECHO_T}$ac_res" >&6; }
38838 if test `eval echo '${'$as_ac_var'}'` = yes; then
38839   cat >>confdefs.h <<_ACEOF
38840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38841 _ACEOF
38842
38843 fi
38844 done
38845
38846
38847
38848 for ac_func in chflags
38849 do
38850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38854   echo $ECHO_N "(cached) $ECHO_C" >&6
38855 else
38856   cat >conftest.$ac_ext <<_ACEOF
38857 /* confdefs.h.  */
38858 _ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h.  */
38862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38864 #define $ac_func innocuous_$ac_func
38865
38866 /* System header to define __stub macros and hopefully few prototypes,
38867     which can conflict with char $ac_func (); below.
38868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38869     <limits.h> exists even on freestanding compilers.  */
38870
38871 #ifdef __STDC__
38872 # include <limits.h>
38873 #else
38874 # include <assert.h>
38875 #endif
38876
38877 #undef $ac_func
38878
38879 /* Override any GCC internal prototype to avoid an error.
38880    Use char because int might match the return type of a GCC
38881    builtin and then its argument prototype would still apply.  */
38882 #ifdef __cplusplus
38883 extern "C"
38884 #endif
38885 char $ac_func ();
38886 /* The GNU C library defines this for functions which it implements
38887     to always fail with ENOSYS.  Some functions are actually named
38888     something starting with __ and the normal name is an alias.  */
38889 #if defined __stub_$ac_func || defined __stub___$ac_func
38890 choke me
38891 #endif
38892
38893 int
38894 main ()
38895 {
38896 return $ac_func ();
38897   ;
38898   return 0;
38899 }
38900 _ACEOF
38901 rm -f conftest.$ac_objext conftest$ac_exeext
38902 if { (ac_try="$ac_link"
38903 case "(($ac_try" in
38904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38905   *) ac_try_echo=$ac_try;;
38906 esac
38907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38908   (eval "$ac_link") 2>conftest.er1
38909   ac_status=$?
38910   grep -v '^ *+' conftest.er1 >conftest.err
38911   rm -f conftest.er1
38912   cat conftest.err >&5
38913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914   (exit $ac_status); } && {
38915          test -z "$ac_c_werror_flag" ||
38916          test ! -s conftest.err
38917        } && test -s conftest$ac_exeext &&
38918        $as_test_x conftest$ac_exeext; then
38919   eval "$as_ac_var=yes"
38920 else
38921   echo "$as_me: failed program was:" >&5
38922 sed 's/^/| /' conftest.$ac_ext >&5
38923
38924         eval "$as_ac_var=no"
38925 fi
38926
38927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38928       conftest$ac_exeext conftest.$ac_ext
38929 fi
38930 ac_res=`eval echo '${'$as_ac_var'}'`
38931                { echo "$as_me:$LINENO: result: $ac_res" >&5
38932 echo "${ECHO_T}$ac_res" >&6; }
38933 if test `eval echo '${'$as_ac_var'}'` = yes; then
38934   cat >>confdefs.h <<_ACEOF
38935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38936 _ACEOF
38937
38938 fi
38939 done
38940
38941
38942
38943
38944
38945
38946 for ac_func in snprintf vsnprintf gethostid fseeko
38947 do
38948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38952   echo $ECHO_N "(cached) $ECHO_C" >&6
38953 else
38954   cat >conftest.$ac_ext <<_ACEOF
38955 /* confdefs.h.  */
38956 _ACEOF
38957 cat confdefs.h >>conftest.$ac_ext
38958 cat >>conftest.$ac_ext <<_ACEOF
38959 /* end confdefs.h.  */
38960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38962 #define $ac_func innocuous_$ac_func
38963
38964 /* System header to define __stub macros and hopefully few prototypes,
38965     which can conflict with char $ac_func (); below.
38966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38967     <limits.h> exists even on freestanding compilers.  */
38968
38969 #ifdef __STDC__
38970 # include <limits.h>
38971 #else
38972 # include <assert.h>
38973 #endif
38974
38975 #undef $ac_func
38976
38977 /* Override any GCC internal prototype to avoid an error.
38978    Use char because int might match the return type of a GCC
38979    builtin and then its argument prototype would still apply.  */
38980 #ifdef __cplusplus
38981 extern "C"
38982 #endif
38983 char $ac_func ();
38984 /* The GNU C library defines this for functions which it implements
38985     to always fail with ENOSYS.  Some functions are actually named
38986     something starting with __ and the normal name is an alias.  */
38987 #if defined __stub_$ac_func || defined __stub___$ac_func
38988 choke me
38989 #endif
38990
38991 int
38992 main ()
38993 {
38994 return $ac_func ();
38995   ;
38996   return 0;
38997 }
38998 _ACEOF
38999 rm -f conftest.$ac_objext conftest$ac_exeext
39000 if { (ac_try="$ac_link"
39001 case "(($ac_try" in
39002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39003   *) ac_try_echo=$ac_try;;
39004 esac
39005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39006   (eval "$ac_link") 2>conftest.er1
39007   ac_status=$?
39008   grep -v '^ *+' conftest.er1 >conftest.err
39009   rm -f conftest.er1
39010   cat conftest.err >&5
39011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012   (exit $ac_status); } && {
39013          test -z "$ac_c_werror_flag" ||
39014          test ! -s conftest.err
39015        } && test -s conftest$ac_exeext &&
39016        $as_test_x conftest$ac_exeext; then
39017   eval "$as_ac_var=yes"
39018 else
39019   echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39021
39022         eval "$as_ac_var=no"
39023 fi
39024
39025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39026       conftest$ac_exeext conftest.$ac_ext
39027 fi
39028 ac_res=`eval echo '${'$as_ac_var'}'`
39029                { echo "$as_me:$LINENO: result: $ac_res" >&5
39030 echo "${ECHO_T}$ac_res" >&6; }
39031 if test `eval echo '${'$as_ac_var'}'` = yes; then
39032   cat >>confdefs.h <<_ACEOF
39033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39034 _ACEOF
39035
39036 fi
39037 done
39038
39039
39040 { echo "$as_me:$LINENO: checking for va_copy" >&5
39041 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39042 if test "${ba_cv_va_copy+set}" = set; then
39043   echo $ECHO_N "(cached) $ECHO_C" >&6
39044 else
39045
39046        cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h.  */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h.  */
39052
39053               #include <stdarg.h>
39054               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39055               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39056
39057 int
39058 main ()
39059 {
39060
39061               call_use_va_copy(1,2,3)
39062
39063   ;
39064   return 0;
39065 }
39066 _ACEOF
39067 rm -f conftest.$ac_objext conftest$ac_exeext
39068 if { (ac_try="$ac_link"
39069 case "(($ac_try" in
39070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39071   *) ac_try_echo=$ac_try;;
39072 esac
39073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39074   (eval "$ac_link") 2>conftest.er1
39075   ac_status=$?
39076   grep -v '^ *+' conftest.er1 >conftest.err
39077   rm -f conftest.er1
39078   cat conftest.err >&5
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); } && {
39081          test -z "$ac_c_werror_flag" ||
39082          test ! -s conftest.err
39083        } && test -s conftest$ac_exeext &&
39084        $as_test_x conftest$ac_exeext; then
39085
39086               ba_cv_va_copy=yes,
39087
39088 else
39089   echo "$as_me: failed program was:" >&5
39090 sed 's/^/| /' conftest.$ac_ext >&5
39091
39092
39093               ba_cv_va_copy=no
39094
39095
39096 fi
39097
39098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39099       conftest$ac_exeext conftest.$ac_ext
39100
39101
39102 fi
39103 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39104 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39105 test $ba_cv_va_copy = yes &&
39106 cat >>confdefs.h <<\_ACEOF
39107 #define HAVE_VA_COPY 1
39108 _ACEOF
39109
39110
39111
39112
39113
39114
39115 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39116 do
39117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39121   echo $ECHO_N "(cached) $ECHO_C" >&6
39122 else
39123   cat >conftest.$ac_ext <<_ACEOF
39124 /* confdefs.h.  */
39125 _ACEOF
39126 cat confdefs.h >>conftest.$ac_ext
39127 cat >>conftest.$ac_ext <<_ACEOF
39128 /* end confdefs.h.  */
39129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39131 #define $ac_func innocuous_$ac_func
39132
39133 /* System header to define __stub macros and hopefully few prototypes,
39134     which can conflict with char $ac_func (); below.
39135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39136     <limits.h> exists even on freestanding compilers.  */
39137
39138 #ifdef __STDC__
39139 # include <limits.h>
39140 #else
39141 # include <assert.h>
39142 #endif
39143
39144 #undef $ac_func
39145
39146 /* Override any GCC internal prototype to avoid an error.
39147    Use char because int might match the return type of a GCC
39148    builtin and then its argument prototype would still apply.  */
39149 #ifdef __cplusplus
39150 extern "C"
39151 #endif
39152 char $ac_func ();
39153 /* The GNU C library defines this for functions which it implements
39154     to always fail with ENOSYS.  Some functions are actually named
39155     something starting with __ and the normal name is an alias.  */
39156 #if defined __stub_$ac_func || defined __stub___$ac_func
39157 choke me
39158 #endif
39159
39160 int
39161 main ()
39162 {
39163 return $ac_func ();
39164   ;
39165   return 0;
39166 }
39167 _ACEOF
39168 rm -f conftest.$ac_objext conftest$ac_exeext
39169 if { (ac_try="$ac_link"
39170 case "(($ac_try" in
39171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39172   *) ac_try_echo=$ac_try;;
39173 esac
39174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39175   (eval "$ac_link") 2>conftest.er1
39176   ac_status=$?
39177   grep -v '^ *+' conftest.er1 >conftest.err
39178   rm -f conftest.er1
39179   cat conftest.err >&5
39180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181   (exit $ac_status); } && {
39182          test -z "$ac_c_werror_flag" ||
39183          test ! -s conftest.err
39184        } && test -s conftest$ac_exeext &&
39185        $as_test_x conftest$ac_exeext; then
39186   eval "$as_ac_var=yes"
39187 else
39188   echo "$as_me: failed program was:" >&5
39189 sed 's/^/| /' conftest.$ac_ext >&5
39190
39191         eval "$as_ac_var=no"
39192 fi
39193
39194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39195       conftest$ac_exeext conftest.$ac_ext
39196 fi
39197 ac_res=`eval echo '${'$as_ac_var'}'`
39198                { echo "$as_me:$LINENO: result: $ac_res" >&5
39199 echo "${ECHO_T}$ac_res" >&6; }
39200 if test `eval echo '${'$as_ac_var'}'` = yes; then
39201   cat >>confdefs.h <<_ACEOF
39202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39203 _ACEOF
39204
39205 fi
39206 done
39207
39208
39209 # If resolver functions are not in libc check for -lnsl or -lresolv.
39210 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39211 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39212 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39213   echo $ECHO_N "(cached) $ECHO_C" >&6
39214 else
39215   cat >conftest.$ac_ext <<_ACEOF
39216 /* confdefs.h.  */
39217 _ACEOF
39218 cat confdefs.h >>conftest.$ac_ext
39219 cat >>conftest.$ac_ext <<_ACEOF
39220 /* end confdefs.h.  */
39221 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39223 #define gethostbyname_r innocuous_gethostbyname_r
39224
39225 /* System header to define __stub macros and hopefully few prototypes,
39226     which can conflict with char gethostbyname_r (); below.
39227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39228     <limits.h> exists even on freestanding compilers.  */
39229
39230 #ifdef __STDC__
39231 # include <limits.h>
39232 #else
39233 # include <assert.h>
39234 #endif
39235
39236 #undef gethostbyname_r
39237
39238 /* Override any GCC internal prototype to avoid an error.
39239    Use char because int might match the return type of a GCC
39240    builtin and then its argument prototype would still apply.  */
39241 #ifdef __cplusplus
39242 extern "C"
39243 #endif
39244 char gethostbyname_r ();
39245 /* The GNU C library defines this for functions which it implements
39246     to always fail with ENOSYS.  Some functions are actually named
39247     something starting with __ and the normal name is an alias.  */
39248 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39249 choke me
39250 #endif
39251
39252 int
39253 main ()
39254 {
39255 return gethostbyname_r ();
39256   ;
39257   return 0;
39258 }
39259 _ACEOF
39260 rm -f conftest.$ac_objext conftest$ac_exeext
39261 if { (ac_try="$ac_link"
39262 case "(($ac_try" in
39263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39264   *) ac_try_echo=$ac_try;;
39265 esac
39266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39267   (eval "$ac_link") 2>conftest.er1
39268   ac_status=$?
39269   grep -v '^ *+' conftest.er1 >conftest.err
39270   rm -f conftest.er1
39271   cat conftest.err >&5
39272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273   (exit $ac_status); } && {
39274          test -z "$ac_c_werror_flag" ||
39275          test ! -s conftest.err
39276        } && test -s conftest$ac_exeext &&
39277        $as_test_x conftest$ac_exeext; then
39278   ac_cv_func_gethostbyname_r=yes
39279 else
39280   echo "$as_me: failed program was:" >&5
39281 sed 's/^/| /' conftest.$ac_ext >&5
39282
39283         ac_cv_func_gethostbyname_r=no
39284 fi
39285
39286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39287       conftest$ac_exeext conftest.$ac_ext
39288 fi
39289 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39290 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39291 if test $ac_cv_func_gethostbyname_r = yes; then
39292   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39293 echo "${ECHO_T}using libc's resolver" >&6; }
39294 else
39295
39296 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39297 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39298 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39299   echo $ECHO_N "(cached) $ECHO_C" >&6
39300 else
39301   ac_check_lib_save_LIBS=$LIBS
39302 LIBS="-lnsl  $LIBS"
39303 cat >conftest.$ac_ext <<_ACEOF
39304 /* confdefs.h.  */
39305 _ACEOF
39306 cat confdefs.h >>conftest.$ac_ext
39307 cat >>conftest.$ac_ext <<_ACEOF
39308 /* end confdefs.h.  */
39309
39310 /* Override any GCC internal prototype to avoid an error.
39311    Use char because int might match the return type of a GCC
39312    builtin and then its argument prototype would still apply.  */
39313 #ifdef __cplusplus
39314 extern "C"
39315 #endif
39316 char gethostbyname_r ();
39317 int
39318 main ()
39319 {
39320 return gethostbyname_r ();
39321   ;
39322   return 0;
39323 }
39324 _ACEOF
39325 rm -f conftest.$ac_objext conftest$ac_exeext
39326 if { (ac_try="$ac_link"
39327 case "(($ac_try" in
39328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39329   *) ac_try_echo=$ac_try;;
39330 esac
39331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39332   (eval "$ac_link") 2>conftest.er1
39333   ac_status=$?
39334   grep -v '^ *+' conftest.er1 >conftest.err
39335   rm -f conftest.er1
39336   cat conftest.err >&5
39337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338   (exit $ac_status); } && {
39339          test -z "$ac_c_werror_flag" ||
39340          test ! -s conftest.err
39341        } && test -s conftest$ac_exeext &&
39342        $as_test_x conftest$ac_exeext; then
39343   ac_cv_lib_nsl_gethostbyname_r=yes
39344 else
39345   echo "$as_me: failed program was:" >&5
39346 sed 's/^/| /' conftest.$ac_ext >&5
39347
39348         ac_cv_lib_nsl_gethostbyname_r=no
39349 fi
39350
39351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39352       conftest$ac_exeext conftest.$ac_ext
39353 LIBS=$ac_check_lib_save_LIBS
39354 fi
39355 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39356 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39357 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39358   cat >>confdefs.h <<_ACEOF
39359 #define HAVE_LIBNSL 1
39360 _ACEOF
39361
39362   LIBS="-lnsl $LIBS"
39363
39364 fi
39365
39366
39367 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39368 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39369 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39370   echo $ECHO_N "(cached) $ECHO_C" >&6
39371 else
39372   ac_check_lib_save_LIBS=$LIBS
39373 LIBS="-lresolv  $LIBS"
39374 cat >conftest.$ac_ext <<_ACEOF
39375 /* confdefs.h.  */
39376 _ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h.  */
39380
39381 /* Override any GCC internal prototype to avoid an error.
39382    Use char because int might match the return type of a GCC
39383    builtin and then its argument prototype would still apply.  */
39384 #ifdef __cplusplus
39385 extern "C"
39386 #endif
39387 char gethostbyname_r ();
39388 int
39389 main ()
39390 {
39391 return gethostbyname_r ();
39392   ;
39393   return 0;
39394 }
39395 _ACEOF
39396 rm -f conftest.$ac_objext conftest$ac_exeext
39397 if { (ac_try="$ac_link"
39398 case "(($ac_try" in
39399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39400   *) ac_try_echo=$ac_try;;
39401 esac
39402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39403   (eval "$ac_link") 2>conftest.er1
39404   ac_status=$?
39405   grep -v '^ *+' conftest.er1 >conftest.err
39406   rm -f conftest.er1
39407   cat conftest.err >&5
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); } && {
39410          test -z "$ac_c_werror_flag" ||
39411          test ! -s conftest.err
39412        } && test -s conftest$ac_exeext &&
39413        $as_test_x conftest$ac_exeext; then
39414   ac_cv_lib_resolv_gethostbyname_r=yes
39415 else
39416   echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39418
39419         ac_cv_lib_resolv_gethostbyname_r=no
39420 fi
39421
39422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39423       conftest$ac_exeext conftest.$ac_ext
39424 LIBS=$ac_check_lib_save_LIBS
39425 fi
39426 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39427 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39428 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39429   cat >>confdefs.h <<_ACEOF
39430 #define HAVE_LIBRESOLV 1
39431 _ACEOF
39432
39433   LIBS="-lresolv $LIBS"
39434
39435 fi
39436
39437 fi
39438
39439
39440
39441 for ac_func in inet_pton
39442 do
39443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39447   echo $ECHO_N "(cached) $ECHO_C" >&6
39448 else
39449   cat >conftest.$ac_ext <<_ACEOF
39450 /* confdefs.h.  */
39451 _ACEOF
39452 cat confdefs.h >>conftest.$ac_ext
39453 cat >>conftest.$ac_ext <<_ACEOF
39454 /* end confdefs.h.  */
39455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39457 #define $ac_func innocuous_$ac_func
39458
39459 /* System header to define __stub macros and hopefully few prototypes,
39460     which can conflict with char $ac_func (); below.
39461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39462     <limits.h> exists even on freestanding compilers.  */
39463
39464 #ifdef __STDC__
39465 # include <limits.h>
39466 #else
39467 # include <assert.h>
39468 #endif
39469
39470 #undef $ac_func
39471
39472 /* Override any GCC internal prototype to avoid an error.
39473    Use char because int might match the return type of a GCC
39474    builtin and then its argument prototype would still apply.  */
39475 #ifdef __cplusplus
39476 extern "C"
39477 #endif
39478 char $ac_func ();
39479 /* The GNU C library defines this for functions which it implements
39480     to always fail with ENOSYS.  Some functions are actually named
39481     something starting with __ and the normal name is an alias.  */
39482 #if defined __stub_$ac_func || defined __stub___$ac_func
39483 choke me
39484 #endif
39485
39486 int
39487 main ()
39488 {
39489 return $ac_func ();
39490   ;
39491   return 0;
39492 }
39493 _ACEOF
39494 rm -f conftest.$ac_objext conftest$ac_exeext
39495 if { (ac_try="$ac_link"
39496 case "(($ac_try" in
39497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39498   *) ac_try_echo=$ac_try;;
39499 esac
39500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39501   (eval "$ac_link") 2>conftest.er1
39502   ac_status=$?
39503   grep -v '^ *+' conftest.er1 >conftest.err
39504   rm -f conftest.er1
39505   cat conftest.err >&5
39506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507   (exit $ac_status); } && {
39508          test -z "$ac_c_werror_flag" ||
39509          test ! -s conftest.err
39510        } && test -s conftest$ac_exeext &&
39511        $as_test_x conftest$ac_exeext; then
39512   eval "$as_ac_var=yes"
39513 else
39514   echo "$as_me: failed program was:" >&5
39515 sed 's/^/| /' conftest.$ac_ext >&5
39516
39517         eval "$as_ac_var=no"
39518 fi
39519
39520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39521       conftest$ac_exeext conftest.$ac_ext
39522 fi
39523 ac_res=`eval echo '${'$as_ac_var'}'`
39524                { echo "$as_me:$LINENO: result: $ac_res" >&5
39525 echo "${ECHO_T}$ac_res" >&6; }
39526 if test `eval echo '${'$as_ac_var'}'` = yes; then
39527   cat >>confdefs.h <<_ACEOF
39528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39529 _ACEOF
39530  cat >>confdefs.h <<\_ACEOF
39531 #define HAVE_INET_PTON 1
39532 _ACEOF
39533
39534 fi
39535 done
39536
39537
39538 for ac_func in inet_ntop
39539 do
39540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39544   echo $ECHO_N "(cached) $ECHO_C" >&6
39545 else
39546   cat >conftest.$ac_ext <<_ACEOF
39547 /* confdefs.h.  */
39548 _ACEOF
39549 cat confdefs.h >>conftest.$ac_ext
39550 cat >>conftest.$ac_ext <<_ACEOF
39551 /* end confdefs.h.  */
39552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39554 #define $ac_func innocuous_$ac_func
39555
39556 /* System header to define __stub macros and hopefully few prototypes,
39557     which can conflict with char $ac_func (); below.
39558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39559     <limits.h> exists even on freestanding compilers.  */
39560
39561 #ifdef __STDC__
39562 # include <limits.h>
39563 #else
39564 # include <assert.h>
39565 #endif
39566
39567 #undef $ac_func
39568
39569 /* Override any GCC internal prototype to avoid an error.
39570    Use char because int might match the return type of a GCC
39571    builtin and then its argument prototype would still apply.  */
39572 #ifdef __cplusplus
39573 extern "C"
39574 #endif
39575 char $ac_func ();
39576 /* The GNU C library defines this for functions which it implements
39577     to always fail with ENOSYS.  Some functions are actually named
39578     something starting with __ and the normal name is an alias.  */
39579 #if defined __stub_$ac_func || defined __stub___$ac_func
39580 choke me
39581 #endif
39582
39583 int
39584 main ()
39585 {
39586 return $ac_func ();
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest.$ac_objext conftest$ac_exeext
39592 if { (ac_try="$ac_link"
39593 case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598   (eval "$ac_link") 2>conftest.er1
39599   ac_status=$?
39600   grep -v '^ *+' conftest.er1 >conftest.err
39601   rm -f conftest.er1
39602   cat conftest.err >&5
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); } && {
39605          test -z "$ac_c_werror_flag" ||
39606          test ! -s conftest.err
39607        } && test -s conftest$ac_exeext &&
39608        $as_test_x conftest$ac_exeext; then
39609   eval "$as_ac_var=yes"
39610 else
39611   echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39613
39614         eval "$as_ac_var=no"
39615 fi
39616
39617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39618       conftest$ac_exeext conftest.$ac_ext
39619 fi
39620 ac_res=`eval echo '${'$as_ac_var'}'`
39621                { echo "$as_me:$LINENO: result: $ac_res" >&5
39622 echo "${ECHO_T}$ac_res" >&6; }
39623 if test `eval echo '${'$as_ac_var'}'` = yes; then
39624   cat >>confdefs.h <<_ACEOF
39625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39626 _ACEOF
39627  cat >>confdefs.h <<\_ACEOF
39628 #define HAVE_INET_NTOP 1
39629 _ACEOF
39630
39631 fi
39632 done
39633
39634
39635 for ac_func in gethostbyname2
39636 do
39637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39641   echo $ECHO_N "(cached) $ECHO_C" >&6
39642 else
39643   cat >conftest.$ac_ext <<_ACEOF
39644 /* confdefs.h.  */
39645 _ACEOF
39646 cat confdefs.h >>conftest.$ac_ext
39647 cat >>conftest.$ac_ext <<_ACEOF
39648 /* end confdefs.h.  */
39649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39651 #define $ac_func innocuous_$ac_func
39652
39653 /* System header to define __stub macros and hopefully few prototypes,
39654     which can conflict with char $ac_func (); below.
39655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39656     <limits.h> exists even on freestanding compilers.  */
39657
39658 #ifdef __STDC__
39659 # include <limits.h>
39660 #else
39661 # include <assert.h>
39662 #endif
39663
39664 #undef $ac_func
39665
39666 /* Override any GCC internal prototype to avoid an error.
39667    Use char because int might match the return type of a GCC
39668    builtin and then its argument prototype would still apply.  */
39669 #ifdef __cplusplus
39670 extern "C"
39671 #endif
39672 char $ac_func ();
39673 /* The GNU C library defines this for functions which it implements
39674     to always fail with ENOSYS.  Some functions are actually named
39675     something starting with __ and the normal name is an alias.  */
39676 #if defined __stub_$ac_func || defined __stub___$ac_func
39677 choke me
39678 #endif
39679
39680 int
39681 main ()
39682 {
39683 return $ac_func ();
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (ac_try="$ac_link"
39690 case "(($ac_try" in
39691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692   *) ac_try_echo=$ac_try;;
39693 esac
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695   (eval "$ac_link") 2>conftest.er1
39696   ac_status=$?
39697   grep -v '^ *+' conftest.er1 >conftest.err
39698   rm -f conftest.er1
39699   cat conftest.err >&5
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); } && {
39702          test -z "$ac_c_werror_flag" ||
39703          test ! -s conftest.err
39704        } && test -s conftest$ac_exeext &&
39705        $as_test_x conftest$ac_exeext; then
39706   eval "$as_ac_var=yes"
39707 else
39708   echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39710
39711         eval "$as_ac_var=no"
39712 fi
39713
39714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39715       conftest$ac_exeext conftest.$ac_ext
39716 fi
39717 ac_res=`eval echo '${'$as_ac_var'}'`
39718                { echo "$as_me:$LINENO: result: $ac_res" >&5
39719 echo "${ECHO_T}$ac_res" >&6; }
39720 if test `eval echo '${'$as_ac_var'}'` = yes; then
39721   cat >>confdefs.h <<_ACEOF
39722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39723 _ACEOF
39724  cat >>confdefs.h <<\_ACEOF
39725 #define HAVE_GETHOSTBYNAME2 1
39726 _ACEOF
39727
39728 fi
39729 done
39730
39731
39732 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39733 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39734 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39735   echo $ECHO_N "(cached) $ECHO_C" >&6
39736 else
39737
39738        cat >conftest.$ac_ext <<_ACEOF
39739 /* confdefs.h.  */
39740 _ACEOF
39741 cat confdefs.h >>conftest.$ac_ext
39742 cat >>conftest.$ac_ext <<_ACEOF
39743 /* end confdefs.h.  */
39744
39745               #include <sys/socket.h>
39746
39747 int
39748 main ()
39749 {
39750
39751               struct sockaddr s; s.sa_len;
39752
39753   ;
39754   return 0;
39755 }
39756 _ACEOF
39757 rm -f conftest.$ac_objext
39758 if { (ac_try="$ac_compile"
39759 case "(($ac_try" in
39760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39761   *) ac_try_echo=$ac_try;;
39762 esac
39763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39764   (eval "$ac_compile") 2>conftest.er1
39765   ac_status=$?
39766   grep -v '^ *+' conftest.er1 >conftest.err
39767   rm -f conftest.er1
39768   cat conftest.err >&5
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); } && {
39771          test -z "$ac_c_werror_flag" ||
39772          test ! -s conftest.err
39773        } && test -s conftest.$ac_objext; then
39774
39775              ac_cv_struct_sockaddr_sa_len=yes
39776
39777 else
39778   echo "$as_me: failed program was:" >&5
39779 sed 's/^/| /' conftest.$ac_ext >&5
39780
39781         ac_cv_struct_sockaddr_sa_len=no
39782
39783
39784 fi
39785
39786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39787
39788
39789 fi
39790 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39791 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39792
39793 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39794
39795 cat >>confdefs.h <<\_ACEOF
39796 #define HAVE_SA_LEN 1
39797 _ACEOF
39798
39799 fi
39800
39801
39802 for ac_func in strftime
39803 do
39804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39808   echo $ECHO_N "(cached) $ECHO_C" >&6
39809 else
39810   cat >conftest.$ac_ext <<_ACEOF
39811 /* confdefs.h.  */
39812 _ACEOF
39813 cat confdefs.h >>conftest.$ac_ext
39814 cat >>conftest.$ac_ext <<_ACEOF
39815 /* end confdefs.h.  */
39816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39818 #define $ac_func innocuous_$ac_func
39819
39820 /* System header to define __stub macros and hopefully few prototypes,
39821     which can conflict with char $ac_func (); below.
39822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39823     <limits.h> exists even on freestanding compilers.  */
39824
39825 #ifdef __STDC__
39826 # include <limits.h>
39827 #else
39828 # include <assert.h>
39829 #endif
39830
39831 #undef $ac_func
39832
39833 /* Override any GCC internal prototype to avoid an error.
39834    Use char because int might match the return type of a GCC
39835    builtin and then its argument prototype would still apply.  */
39836 #ifdef __cplusplus
39837 extern "C"
39838 #endif
39839 char $ac_func ();
39840 /* The GNU C library defines this for functions which it implements
39841     to always fail with ENOSYS.  Some functions are actually named
39842     something starting with __ and the normal name is an alias.  */
39843 #if defined __stub_$ac_func || defined __stub___$ac_func
39844 choke me
39845 #endif
39846
39847 int
39848 main ()
39849 {
39850 return $ac_func ();
39851   ;
39852   return 0;
39853 }
39854 _ACEOF
39855 rm -f conftest.$ac_objext conftest$ac_exeext
39856 if { (ac_try="$ac_link"
39857 case "(($ac_try" in
39858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39859   *) ac_try_echo=$ac_try;;
39860 esac
39861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39862   (eval "$ac_link") 2>conftest.er1
39863   ac_status=$?
39864   grep -v '^ *+' conftest.er1 >conftest.err
39865   rm -f conftest.er1
39866   cat conftest.err >&5
39867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868   (exit $ac_status); } && {
39869          test -z "$ac_c_werror_flag" ||
39870          test ! -s conftest.err
39871        } && test -s conftest$ac_exeext &&
39872        $as_test_x conftest$ac_exeext; then
39873   eval "$as_ac_var=yes"
39874 else
39875   echo "$as_me: failed program was:" >&5
39876 sed 's/^/| /' conftest.$ac_ext >&5
39877
39878         eval "$as_ac_var=no"
39879 fi
39880
39881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39882       conftest$ac_exeext conftest.$ac_ext
39883 fi
39884 ac_res=`eval echo '${'$as_ac_var'}'`
39885                { echo "$as_me:$LINENO: result: $ac_res" >&5
39886 echo "${ECHO_T}$ac_res" >&6; }
39887 if test `eval echo '${'$as_ac_var'}'` = yes; then
39888   cat >>confdefs.h <<_ACEOF
39889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39890 _ACEOF
39891
39892 else
39893   # strftime is in -lintl on SCO UNIX.
39894 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39895 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39896 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39897   echo $ECHO_N "(cached) $ECHO_C" >&6
39898 else
39899   ac_check_lib_save_LIBS=$LIBS
39900 LIBS="-lintl  $LIBS"
39901 cat >conftest.$ac_ext <<_ACEOF
39902 /* confdefs.h.  */
39903 _ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h.  */
39907
39908 /* Override any GCC internal prototype to avoid an error.
39909    Use char because int might match the return type of a GCC
39910    builtin and then its argument prototype would still apply.  */
39911 #ifdef __cplusplus
39912 extern "C"
39913 #endif
39914 char strftime ();
39915 int
39916 main ()
39917 {
39918 return strftime ();
39919   ;
39920   return 0;
39921 }
39922 _ACEOF
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (ac_try="$ac_link"
39925 case "(($ac_try" in
39926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39927   *) ac_try_echo=$ac_try;;
39928 esac
39929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39930   (eval "$ac_link") 2>conftest.er1
39931   ac_status=$?
39932   grep -v '^ *+' conftest.er1 >conftest.err
39933   rm -f conftest.er1
39934   cat conftest.err >&5
39935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936   (exit $ac_status); } && {
39937          test -z "$ac_c_werror_flag" ||
39938          test ! -s conftest.err
39939        } && test -s conftest$ac_exeext &&
39940        $as_test_x conftest$ac_exeext; then
39941   ac_cv_lib_intl_strftime=yes
39942 else
39943   echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39945
39946         ac_cv_lib_intl_strftime=no
39947 fi
39948
39949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39950       conftest$ac_exeext conftest.$ac_ext
39951 LIBS=$ac_check_lib_save_LIBS
39952 fi
39953 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39954 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39955 if test $ac_cv_lib_intl_strftime = yes; then
39956   cat >>confdefs.h <<\_ACEOF
39957 #define HAVE_STRFTIME 1
39958 _ACEOF
39959
39960 LIBS="-lintl $LIBS"
39961 fi
39962
39963 fi
39964 done
39965
39966
39967 for ac_func in vprintf
39968 do
39969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39973   echo $ECHO_N "(cached) $ECHO_C" >&6
39974 else
39975   cat >conftest.$ac_ext <<_ACEOF
39976 /* confdefs.h.  */
39977 _ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h.  */
39981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39983 #define $ac_func innocuous_$ac_func
39984
39985 /* System header to define __stub macros and hopefully few prototypes,
39986     which can conflict with char $ac_func (); below.
39987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39988     <limits.h> exists even on freestanding compilers.  */
39989
39990 #ifdef __STDC__
39991 # include <limits.h>
39992 #else
39993 # include <assert.h>
39994 #endif
39995
39996 #undef $ac_func
39997
39998 /* Override any GCC internal prototype to avoid an error.
39999    Use char because int might match the return type of a GCC
40000    builtin and then its argument prototype would still apply.  */
40001 #ifdef __cplusplus
40002 extern "C"
40003 #endif
40004 char $ac_func ();
40005 /* The GNU C library defines this for functions which it implements
40006     to always fail with ENOSYS.  Some functions are actually named
40007     something starting with __ and the normal name is an alias.  */
40008 #if defined __stub_$ac_func || defined __stub___$ac_func
40009 choke me
40010 #endif
40011
40012 int
40013 main ()
40014 {
40015 return $ac_func ();
40016   ;
40017   return 0;
40018 }
40019 _ACEOF
40020 rm -f conftest.$ac_objext conftest$ac_exeext
40021 if { (ac_try="$ac_link"
40022 case "(($ac_try" in
40023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40024   *) ac_try_echo=$ac_try;;
40025 esac
40026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40027   (eval "$ac_link") 2>conftest.er1
40028   ac_status=$?
40029   grep -v '^ *+' conftest.er1 >conftest.err
40030   rm -f conftest.er1
40031   cat conftest.err >&5
40032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033   (exit $ac_status); } && {
40034          test -z "$ac_c_werror_flag" ||
40035          test ! -s conftest.err
40036        } && test -s conftest$ac_exeext &&
40037        $as_test_x conftest$ac_exeext; then
40038   eval "$as_ac_var=yes"
40039 else
40040   echo "$as_me: failed program was:" >&5
40041 sed 's/^/| /' conftest.$ac_ext >&5
40042
40043         eval "$as_ac_var=no"
40044 fi
40045
40046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40047       conftest$ac_exeext conftest.$ac_ext
40048 fi
40049 ac_res=`eval echo '${'$as_ac_var'}'`
40050                { echo "$as_me:$LINENO: result: $ac_res" >&5
40051 echo "${ECHO_T}$ac_res" >&6; }
40052 if test `eval echo '${'$as_ac_var'}'` = yes; then
40053   cat >>confdefs.h <<_ACEOF
40054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40055 _ACEOF
40056
40057 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40058 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40059 if test "${ac_cv_func__doprnt+set}" = set; then
40060   echo $ECHO_N "(cached) $ECHO_C" >&6
40061 else
40062   cat >conftest.$ac_ext <<_ACEOF
40063 /* confdefs.h.  */
40064 _ACEOF
40065 cat confdefs.h >>conftest.$ac_ext
40066 cat >>conftest.$ac_ext <<_ACEOF
40067 /* end confdefs.h.  */
40068 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40070 #define _doprnt innocuous__doprnt
40071
40072 /* System header to define __stub macros and hopefully few prototypes,
40073     which can conflict with char _doprnt (); below.
40074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40075     <limits.h> exists even on freestanding compilers.  */
40076
40077 #ifdef __STDC__
40078 # include <limits.h>
40079 #else
40080 # include <assert.h>
40081 #endif
40082
40083 #undef _doprnt
40084
40085 /* Override any GCC internal prototype to avoid an error.
40086    Use char because int might match the return type of a GCC
40087    builtin and then its argument prototype would still apply.  */
40088 #ifdef __cplusplus
40089 extern "C"
40090 #endif
40091 char _doprnt ();
40092 /* The GNU C library defines this for functions which it implements
40093     to always fail with ENOSYS.  Some functions are actually named
40094     something starting with __ and the normal name is an alias.  */
40095 #if defined __stub__doprnt || defined __stub____doprnt
40096 choke me
40097 #endif
40098
40099 int
40100 main ()
40101 {
40102 return _doprnt ();
40103   ;
40104   return 0;
40105 }
40106 _ACEOF
40107 rm -f conftest.$ac_objext conftest$ac_exeext
40108 if { (ac_try="$ac_link"
40109 case "(($ac_try" in
40110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40111   *) ac_try_echo=$ac_try;;
40112 esac
40113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40114   (eval "$ac_link") 2>conftest.er1
40115   ac_status=$?
40116   grep -v '^ *+' conftest.er1 >conftest.err
40117   rm -f conftest.er1
40118   cat conftest.err >&5
40119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120   (exit $ac_status); } && {
40121          test -z "$ac_c_werror_flag" ||
40122          test ! -s conftest.err
40123        } && test -s conftest$ac_exeext &&
40124        $as_test_x conftest$ac_exeext; then
40125   ac_cv_func__doprnt=yes
40126 else
40127   echo "$as_me: failed program was:" >&5
40128 sed 's/^/| /' conftest.$ac_ext >&5
40129
40130         ac_cv_func__doprnt=no
40131 fi
40132
40133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40134       conftest$ac_exeext conftest.$ac_ext
40135 fi
40136 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40137 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40138 if test $ac_cv_func__doprnt = yes; then
40139
40140 cat >>confdefs.h <<\_ACEOF
40141 #define HAVE_DOPRNT 1
40142 _ACEOF
40143
40144 fi
40145
40146 fi
40147 done
40148
40149
40150 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40151 # for constant arguments.  Useless!
40152 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40153 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40154 if test "${ac_cv_working_alloca_h+set}" = set; then
40155   echo $ECHO_N "(cached) $ECHO_C" >&6
40156 else
40157   cat >conftest.$ac_ext <<_ACEOF
40158 /* confdefs.h.  */
40159 _ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h.  */
40163 #include <alloca.h>
40164 int
40165 main ()
40166 {
40167 char *p = (char *) alloca (2 * sizeof (int));
40168                           if (p) return 0;
40169   ;
40170   return 0;
40171 }
40172 _ACEOF
40173 rm -f conftest.$ac_objext conftest$ac_exeext
40174 if { (ac_try="$ac_link"
40175 case "(($ac_try" in
40176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177   *) ac_try_echo=$ac_try;;
40178 esac
40179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40180   (eval "$ac_link") 2>conftest.er1
40181   ac_status=$?
40182   grep -v '^ *+' conftest.er1 >conftest.err
40183   rm -f conftest.er1
40184   cat conftest.err >&5
40185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); } && {
40187          test -z "$ac_c_werror_flag" ||
40188          test ! -s conftest.err
40189        } && test -s conftest$ac_exeext &&
40190        $as_test_x conftest$ac_exeext; then
40191   ac_cv_working_alloca_h=yes
40192 else
40193   echo "$as_me: failed program was:" >&5
40194 sed 's/^/| /' conftest.$ac_ext >&5
40195
40196         ac_cv_working_alloca_h=no
40197 fi
40198
40199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40200       conftest$ac_exeext conftest.$ac_ext
40201 fi
40202 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40203 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40204 if test $ac_cv_working_alloca_h = yes; then
40205
40206 cat >>confdefs.h <<\_ACEOF
40207 #define HAVE_ALLOCA_H 1
40208 _ACEOF
40209
40210 fi
40211
40212 { echo "$as_me:$LINENO: checking for alloca" >&5
40213 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40214 if test "${ac_cv_func_alloca_works+set}" = set; then
40215   echo $ECHO_N "(cached) $ECHO_C" >&6
40216 else
40217   cat >conftest.$ac_ext <<_ACEOF
40218 /* confdefs.h.  */
40219 _ACEOF
40220 cat confdefs.h >>conftest.$ac_ext
40221 cat >>conftest.$ac_ext <<_ACEOF
40222 /* end confdefs.h.  */
40223 #ifdef __GNUC__
40224 # define alloca __builtin_alloca
40225 #else
40226 # ifdef _MSC_VER
40227 #  include <malloc.h>
40228 #  define alloca _alloca
40229 # else
40230 #  ifdef HAVE_ALLOCA_H
40231 #   include <alloca.h>
40232 #  else
40233 #   ifdef _AIX
40234  #pragma alloca
40235 #   else
40236 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40237 char *alloca ();
40238 #    endif
40239 #   endif
40240 #  endif
40241 # endif
40242 #endif
40243
40244 int
40245 main ()
40246 {
40247 char *p = (char *) alloca (1);
40248                                     if (p) return 0;
40249   ;
40250   return 0;
40251 }
40252 _ACEOF
40253 rm -f conftest.$ac_objext conftest$ac_exeext
40254 if { (ac_try="$ac_link"
40255 case "(($ac_try" in
40256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257   *) ac_try_echo=$ac_try;;
40258 esac
40259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40260   (eval "$ac_link") 2>conftest.er1
40261   ac_status=$?
40262   grep -v '^ *+' conftest.er1 >conftest.err
40263   rm -f conftest.er1
40264   cat conftest.err >&5
40265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266   (exit $ac_status); } && {
40267          test -z "$ac_c_werror_flag" ||
40268          test ! -s conftest.err
40269        } && test -s conftest$ac_exeext &&
40270        $as_test_x conftest$ac_exeext; then
40271   ac_cv_func_alloca_works=yes
40272 else
40273   echo "$as_me: failed program was:" >&5
40274 sed 's/^/| /' conftest.$ac_ext >&5
40275
40276         ac_cv_func_alloca_works=no
40277 fi
40278
40279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40280       conftest$ac_exeext conftest.$ac_ext
40281 fi
40282 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40283 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40284
40285 if test $ac_cv_func_alloca_works = yes; then
40286
40287 cat >>confdefs.h <<\_ACEOF
40288 #define HAVE_ALLOCA 1
40289 _ACEOF
40290
40291 else
40292   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40293 # that cause trouble.  Some versions do not even contain alloca or
40294 # contain a buggy version.  If you still want to use their alloca,
40295 # use ar to extract alloca.o from them instead of compiling alloca.c.
40296
40297 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40298
40299 cat >>confdefs.h <<\_ACEOF
40300 #define C_ALLOCA 1
40301 _ACEOF
40302
40303
40304 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40305 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40306 if test "${ac_cv_os_cray+set}" = set; then
40307   echo $ECHO_N "(cached) $ECHO_C" >&6
40308 else
40309   cat >conftest.$ac_ext <<_ACEOF
40310 /* confdefs.h.  */
40311 _ACEOF
40312 cat confdefs.h >>conftest.$ac_ext
40313 cat >>conftest.$ac_ext <<_ACEOF
40314 /* end confdefs.h.  */
40315 #if defined CRAY && ! defined CRAY2
40316 webecray
40317 #else
40318 wenotbecray
40319 #endif
40320
40321 _ACEOF
40322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40323   $EGREP "webecray" >/dev/null 2>&1; then
40324   ac_cv_os_cray=yes
40325 else
40326   ac_cv_os_cray=no
40327 fi
40328 rm -f conftest*
40329
40330 fi
40331 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40332 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40333 if test $ac_cv_os_cray = yes; then
40334   for ac_func in _getb67 GETB67 getb67; do
40335     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40339   echo $ECHO_N "(cached) $ECHO_C" >&6
40340 else
40341   cat >conftest.$ac_ext <<_ACEOF
40342 /* confdefs.h.  */
40343 _ACEOF
40344 cat confdefs.h >>conftest.$ac_ext
40345 cat >>conftest.$ac_ext <<_ACEOF
40346 /* end confdefs.h.  */
40347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40349 #define $ac_func innocuous_$ac_func
40350
40351 /* System header to define __stub macros and hopefully few prototypes,
40352     which can conflict with char $ac_func (); below.
40353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40354     <limits.h> exists even on freestanding compilers.  */
40355
40356 #ifdef __STDC__
40357 # include <limits.h>
40358 #else
40359 # include <assert.h>
40360 #endif
40361
40362 #undef $ac_func
40363
40364 /* Override any GCC internal prototype to avoid an error.
40365    Use char because int might match the return type of a GCC
40366    builtin and then its argument prototype would still apply.  */
40367 #ifdef __cplusplus
40368 extern "C"
40369 #endif
40370 char $ac_func ();
40371 /* The GNU C library defines this for functions which it implements
40372     to always fail with ENOSYS.  Some functions are actually named
40373     something starting with __ and the normal name is an alias.  */
40374 #if defined __stub_$ac_func || defined __stub___$ac_func
40375 choke me
40376 #endif
40377
40378 int
40379 main ()
40380 {
40381 return $ac_func ();
40382   ;
40383   return 0;
40384 }
40385 _ACEOF
40386 rm -f conftest.$ac_objext conftest$ac_exeext
40387 if { (ac_try="$ac_link"
40388 case "(($ac_try" in
40389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40390   *) ac_try_echo=$ac_try;;
40391 esac
40392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40393   (eval "$ac_link") 2>conftest.er1
40394   ac_status=$?
40395   grep -v '^ *+' conftest.er1 >conftest.err
40396   rm -f conftest.er1
40397   cat conftest.err >&5
40398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399   (exit $ac_status); } && {
40400          test -z "$ac_c_werror_flag" ||
40401          test ! -s conftest.err
40402        } && test -s conftest$ac_exeext &&
40403        $as_test_x conftest$ac_exeext; then
40404   eval "$as_ac_var=yes"
40405 else
40406   echo "$as_me: failed program was:" >&5
40407 sed 's/^/| /' conftest.$ac_ext >&5
40408
40409         eval "$as_ac_var=no"
40410 fi
40411
40412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40413       conftest$ac_exeext conftest.$ac_ext
40414 fi
40415 ac_res=`eval echo '${'$as_ac_var'}'`
40416                { echo "$as_me:$LINENO: result: $ac_res" >&5
40417 echo "${ECHO_T}$ac_res" >&6; }
40418 if test `eval echo '${'$as_ac_var'}'` = yes; then
40419
40420 cat >>confdefs.h <<_ACEOF
40421 #define CRAY_STACKSEG_END $ac_func
40422 _ACEOF
40423
40424     break
40425 fi
40426
40427   done
40428 fi
40429
40430 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40431 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40432 if test "${ac_cv_c_stack_direction+set}" = set; then
40433   echo $ECHO_N "(cached) $ECHO_C" >&6
40434 else
40435   if test "$cross_compiling" = yes; then
40436   ac_cv_c_stack_direction=0
40437 else
40438   cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444 $ac_includes_default
40445 int
40446 find_stack_direction ()
40447 {
40448   static char *addr = 0;
40449   auto char dummy;
40450   if (addr == 0)
40451     {
40452       addr = &dummy;
40453       return find_stack_direction ();
40454     }
40455   else
40456     return (&dummy > addr) ? 1 : -1;
40457 }
40458
40459 int
40460 main ()
40461 {
40462   return find_stack_direction () < 0;
40463 }
40464 _ACEOF
40465 rm -f conftest$ac_exeext
40466 if { (ac_try="$ac_link"
40467 case "(($ac_try" in
40468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40469   *) ac_try_echo=$ac_try;;
40470 esac
40471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40472   (eval "$ac_link") 2>&5
40473   ac_status=$?
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40476   { (case "(($ac_try" in
40477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40478   *) ac_try_echo=$ac_try;;
40479 esac
40480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40481   (eval "$ac_try") 2>&5
40482   ac_status=$?
40483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484   (exit $ac_status); }; }; then
40485   ac_cv_c_stack_direction=1
40486 else
40487   echo "$as_me: program exited with status $ac_status" >&5
40488 echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491 ( exit $ac_status )
40492 ac_cv_c_stack_direction=-1
40493 fi
40494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40495 fi
40496
40497
40498 fi
40499 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40500 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40501
40502 cat >>confdefs.h <<_ACEOF
40503 #define STACK_DIRECTION $ac_cv_c_stack_direction
40504 _ACEOF
40505
40506
40507 fi
40508
40509 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40510 # -lseq on Dynix/PTX, -lgen on Unixware.
40511 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40512 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40513 if test "${ac_cv_search_getmntent+set}" = set; then
40514   echo $ECHO_N "(cached) $ECHO_C" >&6
40515 else
40516   ac_func_search_save_LIBS=$LIBS
40517 cat >conftest.$ac_ext <<_ACEOF
40518 /* confdefs.h.  */
40519 _ACEOF
40520 cat confdefs.h >>conftest.$ac_ext
40521 cat >>conftest.$ac_ext <<_ACEOF
40522 /* end confdefs.h.  */
40523
40524 /* Override any GCC internal prototype to avoid an error.
40525    Use char because int might match the return type of a GCC
40526    builtin and then its argument prototype would still apply.  */
40527 #ifdef __cplusplus
40528 extern "C"
40529 #endif
40530 char getmntent ();
40531 int
40532 main ()
40533 {
40534 return getmntent ();
40535   ;
40536   return 0;
40537 }
40538 _ACEOF
40539 for ac_lib in '' sun seq gen; do
40540   if test -z "$ac_lib"; then
40541     ac_res="none required"
40542   else
40543     ac_res=-l$ac_lib
40544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40545   fi
40546   rm -f conftest.$ac_objext conftest$ac_exeext
40547 if { (ac_try="$ac_link"
40548 case "(($ac_try" in
40549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40550   *) ac_try_echo=$ac_try;;
40551 esac
40552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40553   (eval "$ac_link") 2>conftest.er1
40554   ac_status=$?
40555   grep -v '^ *+' conftest.er1 >conftest.err
40556   rm -f conftest.er1
40557   cat conftest.err >&5
40558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559   (exit $ac_status); } && {
40560          test -z "$ac_c_werror_flag" ||
40561          test ! -s conftest.err
40562        } && test -s conftest$ac_exeext &&
40563        $as_test_x conftest$ac_exeext; then
40564   ac_cv_search_getmntent=$ac_res
40565 else
40566   echo "$as_me: failed program was:" >&5
40567 sed 's/^/| /' conftest.$ac_ext >&5
40568
40569
40570 fi
40571
40572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40573       conftest$ac_exeext
40574   if test "${ac_cv_search_getmntent+set}" = set; then
40575   break
40576 fi
40577 done
40578 if test "${ac_cv_search_getmntent+set}" = set; then
40579   :
40580 else
40581   ac_cv_search_getmntent=no
40582 fi
40583 rm conftest.$ac_ext
40584 LIBS=$ac_func_search_save_LIBS
40585 fi
40586 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40587 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40588 ac_res=$ac_cv_search_getmntent
40589 if test "$ac_res" != no; then
40590   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40591   ac_cv_func_getmntent=yes
40592
40593 cat >>confdefs.h <<\_ACEOF
40594 #define HAVE_GETMNTENT 1
40595 _ACEOF
40596
40597 else
40598   ac_cv_func_getmntent=no
40599 fi
40600
40601
40602 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40603 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40604 if test "${ac_cv_func_closedir_void+set}" = set; then
40605   echo $ECHO_N "(cached) $ECHO_C" >&6
40606 else
40607   if test "$cross_compiling" = yes; then
40608   ac_cv_func_closedir_void=yes
40609 else
40610   cat >conftest.$ac_ext <<_ACEOF
40611 /* confdefs.h.  */
40612 _ACEOF
40613 cat confdefs.h >>conftest.$ac_ext
40614 cat >>conftest.$ac_ext <<_ACEOF
40615 /* end confdefs.h.  */
40616 $ac_includes_default
40617 #include <$ac_header_dirent>
40618 #ifndef __cplusplus
40619 int closedir ();
40620 #endif
40621
40622 int
40623 main ()
40624 {
40625 return closedir (opendir (".")) != 0;
40626   ;
40627   return 0;
40628 }
40629 _ACEOF
40630 rm -f conftest$ac_exeext
40631 if { (ac_try="$ac_link"
40632 case "(($ac_try" in
40633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40634   *) ac_try_echo=$ac_try;;
40635 esac
40636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40637   (eval "$ac_link") 2>&5
40638   ac_status=$?
40639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40641   { (case "(($ac_try" in
40642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643   *) ac_try_echo=$ac_try;;
40644 esac
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646   (eval "$ac_try") 2>&5
40647   ac_status=$?
40648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649   (exit $ac_status); }; }; then
40650   ac_cv_func_closedir_void=no
40651 else
40652   echo "$as_me: program exited with status $ac_status" >&5
40653 echo "$as_me: failed program was:" >&5
40654 sed 's/^/| /' conftest.$ac_ext >&5
40655
40656 ( exit $ac_status )
40657 ac_cv_func_closedir_void=yes
40658 fi
40659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40660 fi
40661
40662
40663 fi
40664 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40665 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40666 if test $ac_cv_func_closedir_void = yes; then
40667
40668 cat >>confdefs.h <<\_ACEOF
40669 #define CLOSEDIR_VOID 1
40670 _ACEOF
40671
40672 fi
40673
40674 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40675 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40676 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40677   echo $ECHO_N "(cached) $ECHO_C" >&6
40678 else
40679   if test "$cross_compiling" = yes; then
40680   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40681 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40682    { (exit 1); exit 1; }; }
40683 else
40684   cat >conftest.$ac_ext <<_ACEOF
40685 /* confdefs.h.  */
40686 _ACEOF
40687 cat confdefs.h >>conftest.$ac_ext
40688 cat >>conftest.$ac_ext <<_ACEOF
40689 /* end confdefs.h.  */
40690 $ac_includes_default
40691 int
40692 main ()
40693 {
40694 /* If this system has a BSD-style setpgrp which takes arguments,
40695   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40696   exit successfully. */
40697   return setpgrp (1,1) != -1;
40698   ;
40699   return 0;
40700 }
40701 _ACEOF
40702 rm -f conftest$ac_exeext
40703 if { (ac_try="$ac_link"
40704 case "(($ac_try" in
40705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40706   *) ac_try_echo=$ac_try;;
40707 esac
40708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40709   (eval "$ac_link") 2>&5
40710   ac_status=$?
40711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40713   { (case "(($ac_try" in
40714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715   *) ac_try_echo=$ac_try;;
40716 esac
40717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40718   (eval "$ac_try") 2>&5
40719   ac_status=$?
40720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721   (exit $ac_status); }; }; then
40722   ac_cv_func_setpgrp_void=no
40723 else
40724   echo "$as_me: program exited with status $ac_status" >&5
40725 echo "$as_me: failed program was:" >&5
40726 sed 's/^/| /' conftest.$ac_ext >&5
40727
40728 ( exit $ac_status )
40729 ac_cv_func_setpgrp_void=yes
40730 fi
40731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40732 fi
40733
40734
40735 fi
40736 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40737 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40738 if test $ac_cv_func_setpgrp_void = yes; then
40739
40740 cat >>confdefs.h <<\_ACEOF
40741 #define SETPGRP_VOID 1
40742 _ACEOF
40743
40744 fi
40745             # AC_FUNC_FNMATCH    dnl use local version
40746
40747 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40748 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40749 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40750   echo $ECHO_N "(cached) $ECHO_C" >&6
40751 else
40752   ac_check_lib_save_LIBS=$LIBS
40753 LIBS="-lintl  $LIBS"
40754 cat >conftest.$ac_ext <<_ACEOF
40755 /* confdefs.h.  */
40756 _ACEOF
40757 cat confdefs.h >>conftest.$ac_ext
40758 cat >>conftest.$ac_ext <<_ACEOF
40759 /* end confdefs.h.  */
40760
40761 /* Override any GCC internal prototype to avoid an error.
40762    Use char because int might match the return type of a GCC
40763    builtin and then its argument prototype would still apply.  */
40764 #ifdef __cplusplus
40765 extern "C"
40766 #endif
40767 char gettext ();
40768 int
40769 main ()
40770 {
40771 return gettext ();
40772   ;
40773   return 0;
40774 }
40775 _ACEOF
40776 rm -f conftest.$ac_objext conftest$ac_exeext
40777 if { (ac_try="$ac_link"
40778 case "(($ac_try" in
40779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40780   *) ac_try_echo=$ac_try;;
40781 esac
40782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40783   (eval "$ac_link") 2>conftest.er1
40784   ac_status=$?
40785   grep -v '^ *+' conftest.er1 >conftest.err
40786   rm -f conftest.er1
40787   cat conftest.err >&5
40788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789   (exit $ac_status); } && {
40790          test -z "$ac_c_werror_flag" ||
40791          test ! -s conftest.err
40792        } && test -s conftest$ac_exeext &&
40793        $as_test_x conftest$ac_exeext; then
40794   ac_cv_lib_intl_gettext=yes
40795 else
40796   echo "$as_me: failed program was:" >&5
40797 sed 's/^/| /' conftest.$ac_ext >&5
40798
40799         ac_cv_lib_intl_gettext=no
40800 fi
40801
40802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40803       conftest$ac_exeext conftest.$ac_ext
40804 LIBS=$ac_check_lib_save_LIBS
40805 fi
40806 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40807 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40808 if test $ac_cv_lib_intl_gettext = yes; then
40809   LIBS="$LIBS -lintl"
40810 fi
40811
40812
40813
40814 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40815 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40816 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40817   echo $ECHO_N "(cached) $ECHO_C" >&6
40818 else
40819   ac_check_lib_save_LIBS=$LIBS
40820 LIBS="-lsun  $LIBS"
40821 cat >conftest.$ac_ext <<_ACEOF
40822 /* confdefs.h.  */
40823 _ACEOF
40824 cat confdefs.h >>conftest.$ac_ext
40825 cat >>conftest.$ac_ext <<_ACEOF
40826 /* end confdefs.h.  */
40827
40828 /* Override any GCC internal prototype to avoid an error.
40829    Use char because int might match the return type of a GCC
40830    builtin and then its argument prototype would still apply.  */
40831 #ifdef __cplusplus
40832 extern "C"
40833 #endif
40834 char getpwnam ();
40835 int
40836 main ()
40837 {
40838 return getpwnam ();
40839   ;
40840   return 0;
40841 }
40842 _ACEOF
40843 rm -f conftest.$ac_objext conftest$ac_exeext
40844 if { (ac_try="$ac_link"
40845 case "(($ac_try" in
40846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40847   *) ac_try_echo=$ac_try;;
40848 esac
40849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40850   (eval "$ac_link") 2>conftest.er1
40851   ac_status=$?
40852   grep -v '^ *+' conftest.er1 >conftest.err
40853   rm -f conftest.er1
40854   cat conftest.err >&5
40855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856   (exit $ac_status); } && {
40857          test -z "$ac_c_werror_flag" ||
40858          test ! -s conftest.err
40859        } && test -s conftest$ac_exeext &&
40860        $as_test_x conftest$ac_exeext; then
40861   ac_cv_lib_sun_getpwnam=yes
40862 else
40863   echo "$as_me: failed program was:" >&5
40864 sed 's/^/| /' conftest.$ac_ext >&5
40865
40866         ac_cv_lib_sun_getpwnam=no
40867 fi
40868
40869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40870       conftest$ac_exeext conftest.$ac_ext
40871 LIBS=$ac_check_lib_save_LIBS
40872 fi
40873 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40874 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40875 if test $ac_cv_lib_sun_getpwnam = yes; then
40876   cat >>confdefs.h <<_ACEOF
40877 #define HAVE_LIBSUN 1
40878 _ACEOF
40879
40880   LIBS="-lsun $LIBS"
40881
40882 fi
40883
40884
40885
40886 for ac_header in zlib.h
40887 do
40888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40890   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40893   echo $ECHO_N "(cached) $ECHO_C" >&6
40894 fi
40895 ac_res=`eval echo '${'$as_ac_Header'}'`
40896                { echo "$as_me:$LINENO: result: $ac_res" >&5
40897 echo "${ECHO_T}$ac_res" >&6; }
40898 else
40899   # Is the header compilable?
40900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40902 cat >conftest.$ac_ext <<_ACEOF
40903 /* confdefs.h.  */
40904 _ACEOF
40905 cat confdefs.h >>conftest.$ac_ext
40906 cat >>conftest.$ac_ext <<_ACEOF
40907 /* end confdefs.h.  */
40908 $ac_includes_default
40909 #include <$ac_header>
40910 _ACEOF
40911 rm -f conftest.$ac_objext
40912 if { (ac_try="$ac_compile"
40913 case "(($ac_try" in
40914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40915   *) ac_try_echo=$ac_try;;
40916 esac
40917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40918   (eval "$ac_compile") 2>conftest.er1
40919   ac_status=$?
40920   grep -v '^ *+' conftest.er1 >conftest.err
40921   rm -f conftest.er1
40922   cat conftest.err >&5
40923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924   (exit $ac_status); } && {
40925          test -z "$ac_c_werror_flag" ||
40926          test ! -s conftest.err
40927        } && test -s conftest.$ac_objext; then
40928   ac_header_compiler=yes
40929 else
40930   echo "$as_me: failed program was:" >&5
40931 sed 's/^/| /' conftest.$ac_ext >&5
40932
40933         ac_header_compiler=no
40934 fi
40935
40936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40938 echo "${ECHO_T}$ac_header_compiler" >&6; }
40939
40940 # Is the header present?
40941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
40950 _ACEOF
40951 if { (ac_try="$ac_cpp conftest.$ac_ext"
40952 case "(($ac_try" in
40953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40954   *) ac_try_echo=$ac_try;;
40955 esac
40956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40958   ac_status=$?
40959   grep -v '^ *+' conftest.er1 >conftest.err
40960   rm -f conftest.er1
40961   cat conftest.err >&5
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); } >/dev/null && {
40964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40965          test ! -s conftest.err
40966        }; then
40967   ac_header_preproc=yes
40968 else
40969   echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40971
40972   ac_header_preproc=no
40973 fi
40974
40975 rm -f conftest.err conftest.$ac_ext
40976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40977 echo "${ECHO_T}$ac_header_preproc" >&6; }
40978
40979 # So?  What about this header?
40980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40981   yes:no: )
40982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40986     ac_header_preproc=yes
40987     ;;
40988   no:yes:* )
40989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41001
41002     ;;
41003 esac
41004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41007   echo $ECHO_N "(cached) $ECHO_C" >&6
41008 else
41009   eval "$as_ac_Header=\$ac_header_preproc"
41010 fi
41011 ac_res=`eval echo '${'$as_ac_Header'}'`
41012                { echo "$as_me:$LINENO: result: $ac_res" >&5
41013 echo "${ECHO_T}$ac_res" >&6; }
41014
41015 fi
41016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41017   cat >>confdefs.h <<_ACEOF
41018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41019 _ACEOF
41020
41021 fi
41022
41023 done
41024
41025 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41026 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41027 if test "${ac_cv_lib_z_deflate+set}" = set; then
41028   echo $ECHO_N "(cached) $ECHO_C" >&6
41029 else
41030   ac_check_lib_save_LIBS=$LIBS
41031 LIBS="-lz  $LIBS"
41032 cat >conftest.$ac_ext <<_ACEOF
41033 /* confdefs.h.  */
41034 _ACEOF
41035 cat confdefs.h >>conftest.$ac_ext
41036 cat >>conftest.$ac_ext <<_ACEOF
41037 /* end confdefs.h.  */
41038
41039 /* Override any GCC internal prototype to avoid an error.
41040    Use char because int might match the return type of a GCC
41041    builtin and then its argument prototype would still apply.  */
41042 #ifdef __cplusplus
41043 extern "C"
41044 #endif
41045 char deflate ();
41046 int
41047 main ()
41048 {
41049 return deflate ();
41050   ;
41051   return 0;
41052 }
41053 _ACEOF
41054 rm -f conftest.$ac_objext conftest$ac_exeext
41055 if { (ac_try="$ac_link"
41056 case "(($ac_try" in
41057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41058   *) ac_try_echo=$ac_try;;
41059 esac
41060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41061   (eval "$ac_link") 2>conftest.er1
41062   ac_status=$?
41063   grep -v '^ *+' conftest.er1 >conftest.err
41064   rm -f conftest.er1
41065   cat conftest.err >&5
41066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067   (exit $ac_status); } && {
41068          test -z "$ac_c_werror_flag" ||
41069          test ! -s conftest.err
41070        } && test -s conftest$ac_exeext &&
41071        $as_test_x conftest$ac_exeext; then
41072   ac_cv_lib_z_deflate=yes
41073 else
41074   echo "$as_me: failed program was:" >&5
41075 sed 's/^/| /' conftest.$ac_ext >&5
41076
41077         ac_cv_lib_z_deflate=no
41078 fi
41079
41080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41081       conftest$ac_exeext conftest.$ac_ext
41082 LIBS=$ac_check_lib_save_LIBS
41083 fi
41084 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41085 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41086 if test $ac_cv_lib_z_deflate = yes; then
41087   FDLIBS="-lz"
41088 fi
41089
41090 have_zlib=no
41091 if test x$FDLIBS = x-lz; then
41092    cat >>confdefs.h <<\_ACEOF
41093 #define HAVE_LIBZ 1
41094 _ACEOF
41095
41096    have_zlib=yes
41097 fi
41098
41099 support_acl=auto
41100 # Check whether --enable-acl was given.
41101 if test "${enable_acl+set}" = set; then
41102   enableval=$enable_acl;
41103        if test x$enableval = xyes; then
41104           support_acl=yes
41105        elif test x$enableval = xno; then
41106           support_acl=no
41107        fi
41108
41109
41110 fi
41111
41112
41113 have_acl=no
41114 have_extended_acl=no
41115 if test x$support_acl = xyes -o x$support_acl = xauto; then
41116    if test "${ac_cv_header_sys_acl_h+set}" = set; then
41117   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41118 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41119 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41120   echo $ECHO_N "(cached) $ECHO_C" >&6
41121 fi
41122 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41123 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41124 else
41125   # Is the header compilable?
41126 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41127 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41128 cat >conftest.$ac_ext <<_ACEOF
41129 /* confdefs.h.  */
41130 _ACEOF
41131 cat confdefs.h >>conftest.$ac_ext
41132 cat >>conftest.$ac_ext <<_ACEOF
41133 /* end confdefs.h.  */
41134 $ac_includes_default
41135 #include <sys/acl.h>
41136 _ACEOF
41137 rm -f conftest.$ac_objext
41138 if { (ac_try="$ac_compile"
41139 case "(($ac_try" in
41140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41141   *) ac_try_echo=$ac_try;;
41142 esac
41143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41144   (eval "$ac_compile") 2>conftest.er1
41145   ac_status=$?
41146   grep -v '^ *+' conftest.er1 >conftest.err
41147   rm -f conftest.er1
41148   cat conftest.err >&5
41149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150   (exit $ac_status); } && {
41151          test -z "$ac_c_werror_flag" ||
41152          test ! -s conftest.err
41153        } && test -s conftest.$ac_objext; then
41154   ac_header_compiler=yes
41155 else
41156   echo "$as_me: failed program was:" >&5
41157 sed 's/^/| /' conftest.$ac_ext >&5
41158
41159         ac_header_compiler=no
41160 fi
41161
41162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41164 echo "${ECHO_T}$ac_header_compiler" >&6; }
41165
41166 # Is the header present?
41167 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41168 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41169 cat >conftest.$ac_ext <<_ACEOF
41170 /* confdefs.h.  */
41171 _ACEOF
41172 cat confdefs.h >>conftest.$ac_ext
41173 cat >>conftest.$ac_ext <<_ACEOF
41174 /* end confdefs.h.  */
41175 #include <sys/acl.h>
41176 _ACEOF
41177 if { (ac_try="$ac_cpp conftest.$ac_ext"
41178 case "(($ac_try" in
41179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41180   *) ac_try_echo=$ac_try;;
41181 esac
41182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41184   ac_status=$?
41185   grep -v '^ *+' conftest.er1 >conftest.err
41186   rm -f conftest.er1
41187   cat conftest.err >&5
41188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189   (exit $ac_status); } >/dev/null && {
41190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41191          test ! -s conftest.err
41192        }; then
41193   ac_header_preproc=yes
41194 else
41195   echo "$as_me: failed program was:" >&5
41196 sed 's/^/| /' conftest.$ac_ext >&5
41197
41198   ac_header_preproc=no
41199 fi
41200
41201 rm -f conftest.err conftest.$ac_ext
41202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41203 echo "${ECHO_T}$ac_header_preproc" >&6; }
41204
41205 # So?  What about this header?
41206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41207   yes:no: )
41208     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41209 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41210     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41211 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41212     ac_header_preproc=yes
41213     ;;
41214   no:yes:* )
41215     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41216 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41217     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41218 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41219     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41220 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41221     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41222 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41223     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41224 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41225     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41226 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41227
41228     ;;
41229 esac
41230 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41231 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41232 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41233   echo $ECHO_N "(cached) $ECHO_C" >&6
41234 else
41235   ac_cv_header_sys_acl_h=$ac_header_preproc
41236 fi
41237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41238 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41239
41240 fi
41241 if test $ac_cv_header_sys_acl_h = yes; then
41242
41243 cat >>confdefs.h <<\_ACEOF
41244 #define HAVE_SYS_ACL_H 1
41245 _ACEOF
41246
41247 fi
41248
41249
41250    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41251 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41252 if test "${ac_cv_func_acl_get_file+set}" = set; then
41253   echo $ECHO_N "(cached) $ECHO_C" >&6
41254 else
41255   cat >conftest.$ac_ext <<_ACEOF
41256 /* confdefs.h.  */
41257 _ACEOF
41258 cat confdefs.h >>conftest.$ac_ext
41259 cat >>conftest.$ac_ext <<_ACEOF
41260 /* end confdefs.h.  */
41261 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41263 #define acl_get_file innocuous_acl_get_file
41264
41265 /* System header to define __stub macros and hopefully few prototypes,
41266     which can conflict with char acl_get_file (); below.
41267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41268     <limits.h> exists even on freestanding compilers.  */
41269
41270 #ifdef __STDC__
41271 # include <limits.h>
41272 #else
41273 # include <assert.h>
41274 #endif
41275
41276 #undef acl_get_file
41277
41278 /* Override any GCC internal prototype to avoid an error.
41279    Use char because int might match the return type of a GCC
41280    builtin and then its argument prototype would still apply.  */
41281 #ifdef __cplusplus
41282 extern "C"
41283 #endif
41284 char acl_get_file ();
41285 /* The GNU C library defines this for functions which it implements
41286     to always fail with ENOSYS.  Some functions are actually named
41287     something starting with __ and the normal name is an alias.  */
41288 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41289 choke me
41290 #endif
41291
41292 int
41293 main ()
41294 {
41295 return acl_get_file ();
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 rm -f conftest.$ac_objext conftest$ac_exeext
41301 if { (ac_try="$ac_link"
41302 case "(($ac_try" in
41303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41304   *) ac_try_echo=$ac_try;;
41305 esac
41306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41307   (eval "$ac_link") 2>conftest.er1
41308   ac_status=$?
41309   grep -v '^ *+' conftest.er1 >conftest.err
41310   rm -f conftest.er1
41311   cat conftest.err >&5
41312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313   (exit $ac_status); } && {
41314          test -z "$ac_c_werror_flag" ||
41315          test ! -s conftest.err
41316        } && test -s conftest$ac_exeext &&
41317        $as_test_x conftest$ac_exeext; then
41318   ac_cv_func_acl_get_file=yes
41319 else
41320   echo "$as_me: failed program was:" >&5
41321 sed 's/^/| /' conftest.$ac_ext >&5
41322
41323         ac_cv_func_acl_get_file=no
41324 fi
41325
41326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41327       conftest$ac_exeext conftest.$ac_ext
41328 fi
41329 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41330 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41331 if test $ac_cv_func_acl_get_file = yes; then
41332
41333           have_acl=yes
41334
41335 else
41336
41337           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41338 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41339 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41340   echo $ECHO_N "(cached) $ECHO_C" >&6
41341 else
41342   ac_check_lib_save_LIBS=$LIBS
41343 LIBS="-lacl  $LIBS"
41344 cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350
41351 /* Override any GCC internal prototype to avoid an error.
41352    Use char because int might match the return type of a GCC
41353    builtin and then its argument prototype would still apply.  */
41354 #ifdef __cplusplus
41355 extern "C"
41356 #endif
41357 char acl_get_file ();
41358 int
41359 main ()
41360 {
41361 return acl_get_file ();
41362   ;
41363   return 0;
41364 }
41365 _ACEOF
41366 rm -f conftest.$ac_objext conftest$ac_exeext
41367 if { (ac_try="$ac_link"
41368 case "(($ac_try" in
41369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41370   *) ac_try_echo=$ac_try;;
41371 esac
41372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41373   (eval "$ac_link") 2>conftest.er1
41374   ac_status=$?
41375   grep -v '^ *+' conftest.er1 >conftest.err
41376   rm -f conftest.er1
41377   cat conftest.err >&5
41378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379   (exit $ac_status); } && {
41380          test -z "$ac_c_werror_flag" ||
41381          test ! -s conftest.err
41382        } && test -s conftest$ac_exeext &&
41383        $as_test_x conftest$ac_exeext; then
41384   ac_cv_lib_acl_acl_get_file=yes
41385 else
41386   echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41388
41389         ac_cv_lib_acl_acl_get_file=no
41390 fi
41391
41392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41393       conftest$ac_exeext conftest.$ac_ext
41394 LIBS=$ac_check_lib_save_LIBS
41395 fi
41396 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41397 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41398 if test $ac_cv_lib_acl_acl_get_file = yes; then
41399
41400                  have_acl=yes;
41401                  FDLIBS="-lacl $FDLIBS"
41402
41403 else
41404
41405                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41406 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41407 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41408   echo $ECHO_N "(cached) $ECHO_C" >&6
41409 else
41410   ac_check_lib_save_LIBS=$LIBS
41411 LIBS="-lpacl  $LIBS"
41412 cat >conftest.$ac_ext <<_ACEOF
41413 /* confdefs.h.  */
41414 _ACEOF
41415 cat confdefs.h >>conftest.$ac_ext
41416 cat >>conftest.$ac_ext <<_ACEOF
41417 /* end confdefs.h.  */
41418
41419 /* Override any GCC internal prototype to avoid an error.
41420    Use char because int might match the return type of a GCC
41421    builtin and then its argument prototype would still apply.  */
41422 #ifdef __cplusplus
41423 extern "C"
41424 #endif
41425 char acl_get_file ();
41426 int
41427 main ()
41428 {
41429 return acl_get_file ();
41430   ;
41431   return 0;
41432 }
41433 _ACEOF
41434 rm -f conftest.$ac_objext conftest$ac_exeext
41435 if { (ac_try="$ac_link"
41436 case "(($ac_try" in
41437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41438   *) ac_try_echo=$ac_try;;
41439 esac
41440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41441   (eval "$ac_link") 2>conftest.er1
41442   ac_status=$?
41443   grep -v '^ *+' conftest.er1 >conftest.err
41444   rm -f conftest.er1
41445   cat conftest.err >&5
41446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447   (exit $ac_status); } && {
41448          test -z "$ac_c_werror_flag" ||
41449          test ! -s conftest.err
41450        } && test -s conftest$ac_exeext &&
41451        $as_test_x conftest$ac_exeext; then
41452   ac_cv_lib_pacl_acl_get_file=yes
41453 else
41454   echo "$as_me: failed program was:" >&5
41455 sed 's/^/| /' conftest.$ac_ext >&5
41456
41457         ac_cv_lib_pacl_acl_get_file=no
41458 fi
41459
41460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41461       conftest$ac_exeext conftest.$ac_ext
41462 LIBS=$ac_check_lib_save_LIBS
41463 fi
41464 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41465 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41466 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41467
41468                         have_acl=yes;
41469                         FDLIBS="-lpacl $FDLIBS"
41470
41471 else
41472
41473                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41474 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41475 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41476   echo $ECHO_N "(cached) $ECHO_C" >&6
41477 else
41478   ac_check_lib_save_LIBS=$LIBS
41479 LIBS="-lsec  $LIBS"
41480 cat >conftest.$ac_ext <<_ACEOF
41481 /* confdefs.h.  */
41482 _ACEOF
41483 cat confdefs.h >>conftest.$ac_ext
41484 cat >>conftest.$ac_ext <<_ACEOF
41485 /* end confdefs.h.  */
41486
41487 /* Override any GCC internal prototype to avoid an error.
41488    Use char because int might match the return type of a GCC
41489    builtin and then its argument prototype would still apply.  */
41490 #ifdef __cplusplus
41491 extern "C"
41492 #endif
41493 char acltotext ();
41494 int
41495 main ()
41496 {
41497 return acltotext ();
41498   ;
41499   return 0;
41500 }
41501 _ACEOF
41502 rm -f conftest.$ac_objext conftest$ac_exeext
41503 if { (ac_try="$ac_link"
41504 case "(($ac_try" in
41505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41506   *) ac_try_echo=$ac_try;;
41507 esac
41508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41509   (eval "$ac_link") 2>conftest.er1
41510   ac_status=$?
41511   grep -v '^ *+' conftest.er1 >conftest.err
41512   rm -f conftest.er1
41513   cat conftest.err >&5
41514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515   (exit $ac_status); } && {
41516          test -z "$ac_c_werror_flag" ||
41517          test ! -s conftest.err
41518        } && test -s conftest$ac_exeext &&
41519        $as_test_x conftest$ac_exeext; then
41520   ac_cv_lib_sec_acltotext=yes
41521 else
41522   echo "$as_me: failed program was:" >&5
41523 sed 's/^/| /' conftest.$ac_ext >&5
41524
41525         ac_cv_lib_sec_acltotext=no
41526 fi
41527
41528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41529       conftest$ac_exeext conftest.$ac_ext
41530 LIBS=$ac_check_lib_save_LIBS
41531 fi
41532 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41533 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41534 if test $ac_cv_lib_sec_acltotext = yes; then
41535
41536                                have_acl=yes;
41537                                FDLIBS="-lsec $FDLIBS"
41538
41539                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41540 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41541 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41542   echo $ECHO_N "(cached) $ECHO_C" >&6
41543 else
41544   ac_check_lib_save_LIBS=$LIBS
41545 LIBS="-lsec  $LIBS"
41546 cat >conftest.$ac_ext <<_ACEOF
41547 /* confdefs.h.  */
41548 _ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h.  */
41552
41553 /* Override any GCC internal prototype to avoid an error.
41554    Use char because int might match the return type of a GCC
41555    builtin and then its argument prototype would still apply.  */
41556 #ifdef __cplusplus
41557 extern "C"
41558 #endif
41559 char acl_totext ();
41560 int
41561 main ()
41562 {
41563 return acl_totext ();
41564   ;
41565   return 0;
41566 }
41567 _ACEOF
41568 rm -f conftest.$ac_objext conftest$ac_exeext
41569 if { (ac_try="$ac_link"
41570 case "(($ac_try" in
41571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41572   *) ac_try_echo=$ac_try;;
41573 esac
41574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41575   (eval "$ac_link") 2>conftest.er1
41576   ac_status=$?
41577   grep -v '^ *+' conftest.er1 >conftest.err
41578   rm -f conftest.er1
41579   cat conftest.err >&5
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); } && {
41582          test -z "$ac_c_werror_flag" ||
41583          test ! -s conftest.err
41584        } && test -s conftest$ac_exeext &&
41585        $as_test_x conftest$ac_exeext; then
41586   ac_cv_lib_sec_acl_totext=yes
41587 else
41588   echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41590
41591         ac_cv_lib_sec_acl_totext=no
41592 fi
41593
41594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41595       conftest$ac_exeext conftest.$ac_ext
41596 LIBS=$ac_check_lib_save_LIBS
41597 fi
41598 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41599 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41600 if test $ac_cv_lib_sec_acl_totext = yes; then
41601
41602                                       have_extended_acl=yes
41603
41604
41605 fi
41606
41607
41608
41609 fi
41610
41611
41612
41613 fi
41614
41615
41616
41617 fi
41618
41619
41620
41621 fi
41622
41623
41624    if test x$support_acl = xyes -a $have_acl != yes; then
41625       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41626   please either load the acl libraries or rerun configure without --enable-acl" >&5
41627 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41628   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41629    { (exit 1); exit 1; }; }
41630    else
41631       if test $have_acl = yes; then
41632
41633 cat >>confdefs.h <<\_ACEOF
41634 #define HAVE_ACL 1
41635 _ACEOF
41636
41637       fi
41638
41639       if test $have_extended_acl = yes; then
41640
41641 cat >>confdefs.h <<\_ACEOF
41642 #define HAVE_EXTENDED_ACL 1
41643 _ACEOF
41644
41645       fi
41646    fi
41647 fi
41648
41649 support_xattr=auto
41650 # Check whether --enable-xattr was given.
41651 if test "${enable_xattr+set}" = set; then
41652   enableval=$enable_xattr;
41653        if test x$enableval = xyes; then
41654           support_xattr=yes
41655        elif test x$enableval = xno; then
41656           support_xattr=no
41657        fi
41658
41659
41660 fi
41661
41662
41663 have_xattr=no
41664 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41665             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41666   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41667 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41668 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41669   echo $ECHO_N "(cached) $ECHO_C" >&6
41670 fi
41671 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41672 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41673 else
41674   # Is the header compilable?
41675 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41676 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
41684 #include <sys/extattr.h>
41685 _ACEOF
41686 rm -f conftest.$ac_objext
41687 if { (ac_try="$ac_compile"
41688 case "(($ac_try" in
41689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41690   *) ac_try_echo=$ac_try;;
41691 esac
41692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41693   (eval "$ac_compile") 2>conftest.er1
41694   ac_status=$?
41695   grep -v '^ *+' conftest.er1 >conftest.err
41696   rm -f conftest.er1
41697   cat conftest.err >&5
41698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); } && {
41700          test -z "$ac_c_werror_flag" ||
41701          test ! -s conftest.err
41702        } && test -s conftest.$ac_objext; then
41703   ac_header_compiler=yes
41704 else
41705   echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41707
41708         ac_header_compiler=no
41709 fi
41710
41711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41713 echo "${ECHO_T}$ac_header_compiler" >&6; }
41714
41715 # Is the header present?
41716 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41717 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41718 cat >conftest.$ac_ext <<_ACEOF
41719 /* confdefs.h.  */
41720 _ACEOF
41721 cat confdefs.h >>conftest.$ac_ext
41722 cat >>conftest.$ac_ext <<_ACEOF
41723 /* end confdefs.h.  */
41724 #include <sys/extattr.h>
41725 _ACEOF
41726 if { (ac_try="$ac_cpp conftest.$ac_ext"
41727 case "(($ac_try" in
41728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41729   *) ac_try_echo=$ac_try;;
41730 esac
41731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41733   ac_status=$?
41734   grep -v '^ *+' conftest.er1 >conftest.err
41735   rm -f conftest.er1
41736   cat conftest.err >&5
41737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738   (exit $ac_status); } >/dev/null && {
41739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41740          test ! -s conftest.err
41741        }; then
41742   ac_header_preproc=yes
41743 else
41744   echo "$as_me: failed program was:" >&5
41745 sed 's/^/| /' conftest.$ac_ext >&5
41746
41747   ac_header_preproc=no
41748 fi
41749
41750 rm -f conftest.err conftest.$ac_ext
41751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41752 echo "${ECHO_T}$ac_header_preproc" >&6; }
41753
41754 # So?  What about this header?
41755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41756   yes:no: )
41757     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41758 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41759     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41760 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41761     ac_header_preproc=yes
41762     ;;
41763   no:yes:* )
41764     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41765 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41766     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41767 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41768     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41769 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41770     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41771 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41772     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41773 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41774     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41775 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41776
41777     ;;
41778 esac
41779 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41780 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41781 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41782   echo $ECHO_N "(cached) $ECHO_C" >&6
41783 else
41784   ac_cv_header_sys_extattr_h=$ac_header_preproc
41785 fi
41786 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41787 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41788
41789 fi
41790 if test $ac_cv_header_sys_extattr_h = yes; then
41791
41792 cat >>confdefs.h <<\_ACEOF
41793 #define HAVE_SYS_EXTATTR_H 1
41794 _ACEOF
41795
41796 fi
41797
41798
41799    if test "${ac_cv_header_libutil_h+set}" = set; then
41800   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41801 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41802 if test "${ac_cv_header_libutil_h+set}" = set; then
41803   echo $ECHO_N "(cached) $ECHO_C" >&6
41804 fi
41805 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41806 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41807 else
41808   # Is the header compilable?
41809 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41810 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41811 cat >conftest.$ac_ext <<_ACEOF
41812 /* confdefs.h.  */
41813 _ACEOF
41814 cat confdefs.h >>conftest.$ac_ext
41815 cat >>conftest.$ac_ext <<_ACEOF
41816 /* end confdefs.h.  */
41817 $ac_includes_default
41818 #include <libutil.h>
41819 _ACEOF
41820 rm -f conftest.$ac_objext
41821 if { (ac_try="$ac_compile"
41822 case "(($ac_try" in
41823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41824   *) ac_try_echo=$ac_try;;
41825 esac
41826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41827   (eval "$ac_compile") 2>conftest.er1
41828   ac_status=$?
41829   grep -v '^ *+' conftest.er1 >conftest.err
41830   rm -f conftest.er1
41831   cat conftest.err >&5
41832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41833   (exit $ac_status); } && {
41834          test -z "$ac_c_werror_flag" ||
41835          test ! -s conftest.err
41836        } && test -s conftest.$ac_objext; then
41837   ac_header_compiler=yes
41838 else
41839   echo "$as_me: failed program was:" >&5
41840 sed 's/^/| /' conftest.$ac_ext >&5
41841
41842         ac_header_compiler=no
41843 fi
41844
41845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41847 echo "${ECHO_T}$ac_header_compiler" >&6; }
41848
41849 # Is the header present?
41850 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41851 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41852 cat >conftest.$ac_ext <<_ACEOF
41853 /* confdefs.h.  */
41854 _ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h.  */
41858 #include <libutil.h>
41859 _ACEOF
41860 if { (ac_try="$ac_cpp conftest.$ac_ext"
41861 case "(($ac_try" in
41862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41863   *) ac_try_echo=$ac_try;;
41864 esac
41865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41867   ac_status=$?
41868   grep -v '^ *+' conftest.er1 >conftest.err
41869   rm -f conftest.er1
41870   cat conftest.err >&5
41871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41872   (exit $ac_status); } >/dev/null && {
41873          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41874          test ! -s conftest.err
41875        }; then
41876   ac_header_preproc=yes
41877 else
41878   echo "$as_me: failed program was:" >&5
41879 sed 's/^/| /' conftest.$ac_ext >&5
41880
41881   ac_header_preproc=no
41882 fi
41883
41884 rm -f conftest.err conftest.$ac_ext
41885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41886 echo "${ECHO_T}$ac_header_preproc" >&6; }
41887
41888 # So?  What about this header?
41889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41890   yes:no: )
41891     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41892 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41893     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41894 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41895     ac_header_preproc=yes
41896     ;;
41897   no:yes:* )
41898     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41899 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41900     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41901 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41902     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41903 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41904     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41905 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41906     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41907 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41908     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41909 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41910
41911     ;;
41912 esac
41913 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41914 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41915 if test "${ac_cv_header_libutil_h+set}" = set; then
41916   echo $ECHO_N "(cached) $ECHO_C" >&6
41917 else
41918   ac_cv_header_libutil_h=$ac_header_preproc
41919 fi
41920 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41921 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41922
41923 fi
41924 if test $ac_cv_header_libutil_h = yes; then
41925
41926 cat >>confdefs.h <<\_ACEOF
41927 #define HAVE_LIBUTIL_H 1
41928 _ACEOF
41929
41930 fi
41931
41932
41933
41934
41935
41936 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41937 do
41938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41942   echo $ECHO_N "(cached) $ECHO_C" >&6
41943 else
41944   cat >conftest.$ac_ext <<_ACEOF
41945 /* confdefs.h.  */
41946 _ACEOF
41947 cat confdefs.h >>conftest.$ac_ext
41948 cat >>conftest.$ac_ext <<_ACEOF
41949 /* end confdefs.h.  */
41950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41952 #define $ac_func innocuous_$ac_func
41953
41954 /* System header to define __stub macros and hopefully few prototypes,
41955     which can conflict with char $ac_func (); below.
41956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41957     <limits.h> exists even on freestanding compilers.  */
41958
41959 #ifdef __STDC__
41960 # include <limits.h>
41961 #else
41962 # include <assert.h>
41963 #endif
41964
41965 #undef $ac_func
41966
41967 /* Override any GCC internal prototype to avoid an error.
41968    Use char because int might match the return type of a GCC
41969    builtin and then its argument prototype would still apply.  */
41970 #ifdef __cplusplus
41971 extern "C"
41972 #endif
41973 char $ac_func ();
41974 /* The GNU C library defines this for functions which it implements
41975     to always fail with ENOSYS.  Some functions are actually named
41976     something starting with __ and the normal name is an alias.  */
41977 #if defined __stub_$ac_func || defined __stub___$ac_func
41978 choke me
41979 #endif
41980
41981 int
41982 main ()
41983 {
41984 return $ac_func ();
41985   ;
41986   return 0;
41987 }
41988 _ACEOF
41989 rm -f conftest.$ac_objext conftest$ac_exeext
41990 if { (ac_try="$ac_link"
41991 case "(($ac_try" in
41992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41993   *) ac_try_echo=$ac_try;;
41994 esac
41995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41996   (eval "$ac_link") 2>conftest.er1
41997   ac_status=$?
41998   grep -v '^ *+' conftest.er1 >conftest.err
41999   rm -f conftest.er1
42000   cat conftest.err >&5
42001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002   (exit $ac_status); } && {
42003          test -z "$ac_c_werror_flag" ||
42004          test ! -s conftest.err
42005        } && test -s conftest$ac_exeext &&
42006        $as_test_x conftest$ac_exeext; then
42007   eval "$as_ac_var=yes"
42008 else
42009   echo "$as_me: failed program was:" >&5
42010 sed 's/^/| /' conftest.$ac_ext >&5
42011
42012         eval "$as_ac_var=no"
42013 fi
42014
42015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42016       conftest$ac_exeext conftest.$ac_ext
42017 fi
42018 ac_res=`eval echo '${'$as_ac_var'}'`
42019                { echo "$as_me:$LINENO: result: $ac_res" >&5
42020 echo "${ECHO_T}$ac_res" >&6; }
42021 if test `eval echo '${'$as_ac_var'}'` = yes; then
42022   cat >>confdefs.h <<_ACEOF
42023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42024 _ACEOF
42025
42026           have_xattr=yes
42027
42028 cat >>confdefs.h <<\_ACEOF
42029 #define HAVE_EXTATTR_GET_LINK 1
42030 _ACEOF
42031
42032
42033 cat >>confdefs.h <<\_ACEOF
42034 #define HAVE_EXTATTR_SET_LINK 1
42035 _ACEOF
42036
42037
42038 cat >>confdefs.h <<\_ACEOF
42039 #define HAVE_EXTATTR_LIST_LINK 1
42040 _ACEOF
42041
42042
42043
42044 fi
42045 done
42046
42047
42048    if test $have_xattr = no; then
42049
42050
42051
42052 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42053 do
42054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42058   echo $ECHO_N "(cached) $ECHO_C" >&6
42059 else
42060   cat >conftest.$ac_ext <<_ACEOF
42061 /* confdefs.h.  */
42062 _ACEOF
42063 cat confdefs.h >>conftest.$ac_ext
42064 cat >>conftest.$ac_ext <<_ACEOF
42065 /* end confdefs.h.  */
42066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42068 #define $ac_func innocuous_$ac_func
42069
42070 /* System header to define __stub macros and hopefully few prototypes,
42071     which can conflict with char $ac_func (); below.
42072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42073     <limits.h> exists even on freestanding compilers.  */
42074
42075 #ifdef __STDC__
42076 # include <limits.h>
42077 #else
42078 # include <assert.h>
42079 #endif
42080
42081 #undef $ac_func
42082
42083 /* Override any GCC internal prototype to avoid an error.
42084    Use char because int might match the return type of a GCC
42085    builtin and then its argument prototype would still apply.  */
42086 #ifdef __cplusplus
42087 extern "C"
42088 #endif
42089 char $ac_func ();
42090 /* The GNU C library defines this for functions which it implements
42091     to always fail with ENOSYS.  Some functions are actually named
42092     something starting with __ and the normal name is an alias.  */
42093 #if defined __stub_$ac_func || defined __stub___$ac_func
42094 choke me
42095 #endif
42096
42097 int
42098 main ()
42099 {
42100 return $ac_func ();
42101   ;
42102   return 0;
42103 }
42104 _ACEOF
42105 rm -f conftest.$ac_objext conftest$ac_exeext
42106 if { (ac_try="$ac_link"
42107 case "(($ac_try" in
42108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42109   *) ac_try_echo=$ac_try;;
42110 esac
42111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42112   (eval "$ac_link") 2>conftest.er1
42113   ac_status=$?
42114   grep -v '^ *+' conftest.er1 >conftest.err
42115   rm -f conftest.er1
42116   cat conftest.err >&5
42117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118   (exit $ac_status); } && {
42119          test -z "$ac_c_werror_flag" ||
42120          test ! -s conftest.err
42121        } && test -s conftest$ac_exeext &&
42122        $as_test_x conftest$ac_exeext; then
42123   eval "$as_ac_var=yes"
42124 else
42125   echo "$as_me: failed program was:" >&5
42126 sed 's/^/| /' conftest.$ac_ext >&5
42127
42128         eval "$as_ac_var=no"
42129 fi
42130
42131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42132       conftest$ac_exeext conftest.$ac_ext
42133 fi
42134 ac_res=`eval echo '${'$as_ac_var'}'`
42135                { echo "$as_me:$LINENO: result: $ac_res" >&5
42136 echo "${ECHO_T}$ac_res" >&6; }
42137 if test `eval echo '${'$as_ac_var'}'` = yes; then
42138   cat >>confdefs.h <<_ACEOF
42139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42140 _ACEOF
42141
42142              have_xattr=yes
42143
42144 cat >>confdefs.h <<\_ACEOF
42145 #define HAVE_EXTATTR_GET_FILE 1
42146 _ACEOF
42147
42148
42149 cat >>confdefs.h <<\_ACEOF
42150 #define HAVE_EXTATTR_SET_FILE 1
42151 _ACEOF
42152
42153
42154 cat >>confdefs.h <<\_ACEOF
42155 #define HAVE_EXTATTR_LIST_FILE 1
42156 _ACEOF
42157
42158
42159
42160 fi
42161 done
42162
42163    fi
42164
42165    if test $have_xattr = yes; then
42166       have_extattr_string_in_libc=no
42167
42168
42169 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42170 do
42171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42175   echo $ECHO_N "(cached) $ECHO_C" >&6
42176 else
42177   cat >conftest.$ac_ext <<_ACEOF
42178 /* confdefs.h.  */
42179 _ACEOF
42180 cat confdefs.h >>conftest.$ac_ext
42181 cat >>conftest.$ac_ext <<_ACEOF
42182 /* end confdefs.h.  */
42183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42185 #define $ac_func innocuous_$ac_func
42186
42187 /* System header to define __stub macros and hopefully few prototypes,
42188     which can conflict with char $ac_func (); below.
42189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42190     <limits.h> exists even on freestanding compilers.  */
42191
42192 #ifdef __STDC__
42193 # include <limits.h>
42194 #else
42195 # include <assert.h>
42196 #endif
42197
42198 #undef $ac_func
42199
42200 /* Override any GCC internal prototype to avoid an error.
42201    Use char because int might match the return type of a GCC
42202    builtin and then its argument prototype would still apply.  */
42203 #ifdef __cplusplus
42204 extern "C"
42205 #endif
42206 char $ac_func ();
42207 /* The GNU C library defines this for functions which it implements
42208     to always fail with ENOSYS.  Some functions are actually named
42209     something starting with __ and the normal name is an alias.  */
42210 #if defined __stub_$ac_func || defined __stub___$ac_func
42211 choke me
42212 #endif
42213
42214 int
42215 main ()
42216 {
42217 return $ac_func ();
42218   ;
42219   return 0;
42220 }
42221 _ACEOF
42222 rm -f conftest.$ac_objext conftest$ac_exeext
42223 if { (ac_try="$ac_link"
42224 case "(($ac_try" in
42225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42226   *) ac_try_echo=$ac_try;;
42227 esac
42228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42229   (eval "$ac_link") 2>conftest.er1
42230   ac_status=$?
42231   grep -v '^ *+' conftest.er1 >conftest.err
42232   rm -f conftest.er1
42233   cat conftest.err >&5
42234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42235   (exit $ac_status); } && {
42236          test -z "$ac_c_werror_flag" ||
42237          test ! -s conftest.err
42238        } && test -s conftest$ac_exeext &&
42239        $as_test_x conftest$ac_exeext; then
42240   eval "$as_ac_var=yes"
42241 else
42242   echo "$as_me: failed program was:" >&5
42243 sed 's/^/| /' conftest.$ac_ext >&5
42244
42245         eval "$as_ac_var=no"
42246 fi
42247
42248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42249       conftest$ac_exeext conftest.$ac_ext
42250 fi
42251 ac_res=`eval echo '${'$as_ac_var'}'`
42252                { echo "$as_me:$LINENO: result: $ac_res" >&5
42253 echo "${ECHO_T}$ac_res" >&6; }
42254 if test `eval echo '${'$as_ac_var'}'` = yes; then
42255   cat >>confdefs.h <<_ACEOF
42256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42257 _ACEOF
42258
42259              have_extattr_string_in_libc=yes
42260
42261 cat >>confdefs.h <<\_ACEOF
42262 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42263 _ACEOF
42264
42265
42266 cat >>confdefs.h <<\_ACEOF
42267 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42268 _ACEOF
42269
42270
42271
42272 fi
42273 done
42274
42275
42276                         if test $have_extattr_string_in_libc = no; then
42277          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42278 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42279 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42280   echo $ECHO_N "(cached) $ECHO_C" >&6
42281 else
42282   ac_check_lib_save_LIBS=$LIBS
42283 LIBS="-lutil  $LIBS"
42284 cat >conftest.$ac_ext <<_ACEOF
42285 /* confdefs.h.  */
42286 _ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h.  */
42290
42291 /* Override any GCC internal prototype to avoid an error.
42292    Use char because int might match the return type of a GCC
42293    builtin and then its argument prototype would still apply.  */
42294 #ifdef __cplusplus
42295 extern "C"
42296 #endif
42297 char extattr_namespace_to_string extattr_string_to_namespace ();
42298 int
42299 main ()
42300 {
42301 return extattr_namespace_to_string extattr_string_to_namespace ();
42302   ;
42303   return 0;
42304 }
42305 _ACEOF
42306 rm -f conftest.$ac_objext conftest$ac_exeext
42307 if { (ac_try="$ac_link"
42308 case "(($ac_try" in
42309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42310   *) ac_try_echo=$ac_try;;
42311 esac
42312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42313   (eval "$ac_link") 2>conftest.er1
42314   ac_status=$?
42315   grep -v '^ *+' conftest.er1 >conftest.err
42316   rm -f conftest.er1
42317   cat conftest.err >&5
42318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42319   (exit $ac_status); } && {
42320          test -z "$ac_c_werror_flag" ||
42321          test ! -s conftest.err
42322        } && test -s conftest$ac_exeext &&
42323        $as_test_x conftest$ac_exeext; then
42324   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42325 else
42326   echo "$as_me: failed program was:" >&5
42327 sed 's/^/| /' conftest.$ac_ext >&5
42328
42329         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42330 fi
42331
42332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42333       conftest$ac_exeext conftest.$ac_ext
42334 LIBS=$ac_check_lib_save_LIBS
42335 fi
42336 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42337 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42338 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42339
42340
42341 cat >>confdefs.h <<\_ACEOF
42342 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42343 _ACEOF
42344
42345
42346 cat >>confdefs.h <<\_ACEOF
42347 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42348 _ACEOF
42349
42350                 FDLIBS="-lutil $FDLIBS"
42351
42352
42353 fi
42354
42355       fi
42356    fi
42357
42358             if test $have_xattr = no; then
42359       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42360   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42361 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42362 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42363   echo $ECHO_N "(cached) $ECHO_C" >&6
42364 fi
42365 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42366 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42367 else
42368   # Is the header compilable?
42369 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42370 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42371 cat >conftest.$ac_ext <<_ACEOF
42372 /* confdefs.h.  */
42373 _ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h.  */
42377 $ac_includes_default
42378 #include <sys/xattr.h>
42379 _ACEOF
42380 rm -f conftest.$ac_objext
42381 if { (ac_try="$ac_compile"
42382 case "(($ac_try" in
42383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42384   *) ac_try_echo=$ac_try;;
42385 esac
42386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42387   (eval "$ac_compile") 2>conftest.er1
42388   ac_status=$?
42389   grep -v '^ *+' conftest.er1 >conftest.err
42390   rm -f conftest.er1
42391   cat conftest.err >&5
42392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393   (exit $ac_status); } && {
42394          test -z "$ac_c_werror_flag" ||
42395          test ! -s conftest.err
42396        } && test -s conftest.$ac_objext; then
42397   ac_header_compiler=yes
42398 else
42399   echo "$as_me: failed program was:" >&5
42400 sed 's/^/| /' conftest.$ac_ext >&5
42401
42402         ac_header_compiler=no
42403 fi
42404
42405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42407 echo "${ECHO_T}$ac_header_compiler" >&6; }
42408
42409 # Is the header present?
42410 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42411 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42412 cat >conftest.$ac_ext <<_ACEOF
42413 /* confdefs.h.  */
42414 _ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h.  */
42418 #include <sys/xattr.h>
42419 _ACEOF
42420 if { (ac_try="$ac_cpp conftest.$ac_ext"
42421 case "(($ac_try" in
42422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42423   *) ac_try_echo=$ac_try;;
42424 esac
42425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42427   ac_status=$?
42428   grep -v '^ *+' conftest.er1 >conftest.err
42429   rm -f conftest.er1
42430   cat conftest.err >&5
42431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432   (exit $ac_status); } >/dev/null && {
42433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42434          test ! -s conftest.err
42435        }; then
42436   ac_header_preproc=yes
42437 else
42438   echo "$as_me: failed program was:" >&5
42439 sed 's/^/| /' conftest.$ac_ext >&5
42440
42441   ac_header_preproc=no
42442 fi
42443
42444 rm -f conftest.err conftest.$ac_ext
42445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42446 echo "${ECHO_T}$ac_header_preproc" >&6; }
42447
42448 # So?  What about this header?
42449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42450   yes:no: )
42451     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42452 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42453     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42454 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42455     ac_header_preproc=yes
42456     ;;
42457   no:yes:* )
42458     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42459 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42460     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42461 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42462     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42463 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42464     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42465 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42466     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42467 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42468     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42469 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42470
42471     ;;
42472 esac
42473 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42474 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42475 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42476   echo $ECHO_N "(cached) $ECHO_C" >&6
42477 else
42478   ac_cv_header_sys_xattr_h=$ac_header_preproc
42479 fi
42480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42481 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42482
42483 fi
42484 if test $ac_cv_header_sys_xattr_h = yes; then
42485
42486 cat >>confdefs.h <<\_ACEOF
42487 #define HAVE_SYS_XATTR_H 1
42488 _ACEOF
42489
42490 fi
42491
42492
42493
42494
42495
42496 for ac_func in llistxattr lgetxattr lsetxattr
42497 do
42498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42502   echo $ECHO_N "(cached) $ECHO_C" >&6
42503 else
42504   cat >conftest.$ac_ext <<_ACEOF
42505 /* confdefs.h.  */
42506 _ACEOF
42507 cat confdefs.h >>conftest.$ac_ext
42508 cat >>conftest.$ac_ext <<_ACEOF
42509 /* end confdefs.h.  */
42510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42512 #define $ac_func innocuous_$ac_func
42513
42514 /* System header to define __stub macros and hopefully few prototypes,
42515     which can conflict with char $ac_func (); below.
42516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42517     <limits.h> exists even on freestanding compilers.  */
42518
42519 #ifdef __STDC__
42520 # include <limits.h>
42521 #else
42522 # include <assert.h>
42523 #endif
42524
42525 #undef $ac_func
42526
42527 /* Override any GCC internal prototype to avoid an error.
42528    Use char because int might match the return type of a GCC
42529    builtin and then its argument prototype would still apply.  */
42530 #ifdef __cplusplus
42531 extern "C"
42532 #endif
42533 char $ac_func ();
42534 /* The GNU C library defines this for functions which it implements
42535     to always fail with ENOSYS.  Some functions are actually named
42536     something starting with __ and the normal name is an alias.  */
42537 #if defined __stub_$ac_func || defined __stub___$ac_func
42538 choke me
42539 #endif
42540
42541 int
42542 main ()
42543 {
42544 return $ac_func ();
42545   ;
42546   return 0;
42547 }
42548 _ACEOF
42549 rm -f conftest.$ac_objext conftest$ac_exeext
42550 if { (ac_try="$ac_link"
42551 case "(($ac_try" in
42552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42553   *) ac_try_echo=$ac_try;;
42554 esac
42555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42556   (eval "$ac_link") 2>conftest.er1
42557   ac_status=$?
42558   grep -v '^ *+' conftest.er1 >conftest.err
42559   rm -f conftest.er1
42560   cat conftest.err >&5
42561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562   (exit $ac_status); } && {
42563          test -z "$ac_c_werror_flag" ||
42564          test ! -s conftest.err
42565        } && test -s conftest$ac_exeext &&
42566        $as_test_x conftest$ac_exeext; then
42567   eval "$as_ac_var=yes"
42568 else
42569   echo "$as_me: failed program was:" >&5
42570 sed 's/^/| /' conftest.$ac_ext >&5
42571
42572         eval "$as_ac_var=no"
42573 fi
42574
42575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42576       conftest$ac_exeext conftest.$ac_ext
42577 fi
42578 ac_res=`eval echo '${'$as_ac_var'}'`
42579                { echo "$as_me:$LINENO: result: $ac_res" >&5
42580 echo "${ECHO_T}$ac_res" >&6; }
42581 if test `eval echo '${'$as_ac_var'}'` = yes; then
42582   cat >>confdefs.h <<_ACEOF
42583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42584 _ACEOF
42585
42586              have_xattr=yes
42587
42588 cat >>confdefs.h <<\_ACEOF
42589 #define HAVE_LLISTXATTR 1
42590 _ACEOF
42591
42592
42593 cat >>confdefs.h <<\_ACEOF
42594 #define HAVE_LGETXATTR 1
42595 _ACEOF
42596
42597
42598 cat >>confdefs.h <<\_ACEOF
42599 #define HAVE_LSETXATTR 1
42600 _ACEOF
42601
42602
42603
42604 fi
42605 done
42606
42607
42608       if test $have_xattr = no; then
42609
42610
42611
42612 for ac_func in listxattr getxattr setxattr
42613 do
42614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42618   echo $ECHO_N "(cached) $ECHO_C" >&6
42619 else
42620   cat >conftest.$ac_ext <<_ACEOF
42621 /* confdefs.h.  */
42622 _ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h.  */
42626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42628 #define $ac_func innocuous_$ac_func
42629
42630 /* System header to define __stub macros and hopefully few prototypes,
42631     which can conflict with char $ac_func (); below.
42632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42633     <limits.h> exists even on freestanding compilers.  */
42634
42635 #ifdef __STDC__
42636 # include <limits.h>
42637 #else
42638 # include <assert.h>
42639 #endif
42640
42641 #undef $ac_func
42642
42643 /* Override any GCC internal prototype to avoid an error.
42644    Use char because int might match the return type of a GCC
42645    builtin and then its argument prototype would still apply.  */
42646 #ifdef __cplusplus
42647 extern "C"
42648 #endif
42649 char $ac_func ();
42650 /* The GNU C library defines this for functions which it implements
42651     to always fail with ENOSYS.  Some functions are actually named
42652     something starting with __ and the normal name is an alias.  */
42653 #if defined __stub_$ac_func || defined __stub___$ac_func
42654 choke me
42655 #endif
42656
42657 int
42658 main ()
42659 {
42660 return $ac_func ();
42661   ;
42662   return 0;
42663 }
42664 _ACEOF
42665 rm -f conftest.$ac_objext conftest$ac_exeext
42666 if { (ac_try="$ac_link"
42667 case "(($ac_try" in
42668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42669   *) ac_try_echo=$ac_try;;
42670 esac
42671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42672   (eval "$ac_link") 2>conftest.er1
42673   ac_status=$?
42674   grep -v '^ *+' conftest.er1 >conftest.err
42675   rm -f conftest.er1
42676   cat conftest.err >&5
42677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678   (exit $ac_status); } && {
42679          test -z "$ac_c_werror_flag" ||
42680          test ! -s conftest.err
42681        } && test -s conftest$ac_exeext &&
42682        $as_test_x conftest$ac_exeext; then
42683   eval "$as_ac_var=yes"
42684 else
42685   echo "$as_me: failed program was:" >&5
42686 sed 's/^/| /' conftest.$ac_ext >&5
42687
42688         eval "$as_ac_var=no"
42689 fi
42690
42691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42692       conftest$ac_exeext conftest.$ac_ext
42693 fi
42694 ac_res=`eval echo '${'$as_ac_var'}'`
42695                { echo "$as_me:$LINENO: result: $ac_res" >&5
42696 echo "${ECHO_T}$ac_res" >&6; }
42697 if test `eval echo '${'$as_ac_var'}'` = yes; then
42698   cat >>confdefs.h <<_ACEOF
42699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42700 _ACEOF
42701
42702                 have_xattr=yes
42703
42704 cat >>confdefs.h <<\_ACEOF
42705 #define HAVE_LISTXATTR 1
42706 _ACEOF
42707
42708
42709 cat >>confdefs.h <<\_ACEOF
42710 #define HAVE_GETXATTR 1
42711 _ACEOF
42712
42713
42714 cat >>confdefs.h <<\_ACEOF
42715 #define HAVE_SETXATTR 1
42716 _ACEOF
42717
42718
42719
42720 fi
42721 done
42722
42723       fi
42724    fi
42725
42726             if test $have_xattr = no; then
42727       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42728   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42729 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42730 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42731   echo $ECHO_N "(cached) $ECHO_C" >&6
42732 fi
42733 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42734 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42735 else
42736   # Is the header compilable?
42737 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42738 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42739 cat >conftest.$ac_ext <<_ACEOF
42740 /* confdefs.h.  */
42741 _ACEOF
42742 cat confdefs.h >>conftest.$ac_ext
42743 cat >>conftest.$ac_ext <<_ACEOF
42744 /* end confdefs.h.  */
42745 $ac_includes_default
42746 #include <sys/attr.h>
42747 _ACEOF
42748 rm -f conftest.$ac_objext
42749 if { (ac_try="$ac_compile"
42750 case "(($ac_try" in
42751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42752   *) ac_try_echo=$ac_try;;
42753 esac
42754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42755   (eval "$ac_compile") 2>conftest.er1
42756   ac_status=$?
42757   grep -v '^ *+' conftest.er1 >conftest.err
42758   rm -f conftest.er1
42759   cat conftest.err >&5
42760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761   (exit $ac_status); } && {
42762          test -z "$ac_c_werror_flag" ||
42763          test ! -s conftest.err
42764        } && test -s conftest.$ac_objext; then
42765   ac_header_compiler=yes
42766 else
42767   echo "$as_me: failed program was:" >&5
42768 sed 's/^/| /' conftest.$ac_ext >&5
42769
42770         ac_header_compiler=no
42771 fi
42772
42773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42775 echo "${ECHO_T}$ac_header_compiler" >&6; }
42776
42777 # Is the header present?
42778 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42779 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42780 cat >conftest.$ac_ext <<_ACEOF
42781 /* confdefs.h.  */
42782 _ACEOF
42783 cat confdefs.h >>conftest.$ac_ext
42784 cat >>conftest.$ac_ext <<_ACEOF
42785 /* end confdefs.h.  */
42786 #include <sys/attr.h>
42787 _ACEOF
42788 if { (ac_try="$ac_cpp conftest.$ac_ext"
42789 case "(($ac_try" in
42790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42791   *) ac_try_echo=$ac_try;;
42792 esac
42793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42795   ac_status=$?
42796   grep -v '^ *+' conftest.er1 >conftest.err
42797   rm -f conftest.er1
42798   cat conftest.err >&5
42799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42800   (exit $ac_status); } >/dev/null && {
42801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42802          test ! -s conftest.err
42803        }; then
42804   ac_header_preproc=yes
42805 else
42806   echo "$as_me: failed program was:" >&5
42807 sed 's/^/| /' conftest.$ac_ext >&5
42808
42809   ac_header_preproc=no
42810 fi
42811
42812 rm -f conftest.err conftest.$ac_ext
42813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42814 echo "${ECHO_T}$ac_header_preproc" >&6; }
42815
42816 # So?  What about this header?
42817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42818   yes:no: )
42819     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42820 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42821     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42822 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42823     ac_header_preproc=yes
42824     ;;
42825   no:yes:* )
42826     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42827 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42828     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42829 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42830     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42831 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42832     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42833 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42834     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42835 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42836     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42837 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42838
42839     ;;
42840 esac
42841 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42842 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42843 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42844   echo $ECHO_N "(cached) $ECHO_C" >&6
42845 else
42846   ac_cv_header_sys_attr_h=$ac_header_preproc
42847 fi
42848 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42849 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42850
42851 fi
42852 if test $ac_cv_header_sys_attr_h = yes; then
42853
42854 cat >>confdefs.h <<\_ACEOF
42855 #define HAVE_SYS_ATTR_H 1
42856 _ACEOF
42857
42858 fi
42859
42860
42861       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42862   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42863 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42864 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42865   echo $ECHO_N "(cached) $ECHO_C" >&6
42866 fi
42867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42868 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42869 else
42870   # Is the header compilable?
42871 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42872 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42873 cat >conftest.$ac_ext <<_ACEOF
42874 /* confdefs.h.  */
42875 _ACEOF
42876 cat confdefs.h >>conftest.$ac_ext
42877 cat >>conftest.$ac_ext <<_ACEOF
42878 /* end confdefs.h.  */
42879 $ac_includes_default
42880 #include <sys/nvpair.h>
42881 _ACEOF
42882 rm -f conftest.$ac_objext
42883 if { (ac_try="$ac_compile"
42884 case "(($ac_try" in
42885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42886   *) ac_try_echo=$ac_try;;
42887 esac
42888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42889   (eval "$ac_compile") 2>conftest.er1
42890   ac_status=$?
42891   grep -v '^ *+' conftest.er1 >conftest.err
42892   rm -f conftest.er1
42893   cat conftest.err >&5
42894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42895   (exit $ac_status); } && {
42896          test -z "$ac_c_werror_flag" ||
42897          test ! -s conftest.err
42898        } && test -s conftest.$ac_objext; then
42899   ac_header_compiler=yes
42900 else
42901   echo "$as_me: failed program was:" >&5
42902 sed 's/^/| /' conftest.$ac_ext >&5
42903
42904         ac_header_compiler=no
42905 fi
42906
42907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42909 echo "${ECHO_T}$ac_header_compiler" >&6; }
42910
42911 # Is the header present?
42912 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42913 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42914 cat >conftest.$ac_ext <<_ACEOF
42915 /* confdefs.h.  */
42916 _ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h.  */
42920 #include <sys/nvpair.h>
42921 _ACEOF
42922 if { (ac_try="$ac_cpp conftest.$ac_ext"
42923 case "(($ac_try" in
42924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42925   *) ac_try_echo=$ac_try;;
42926 esac
42927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42929   ac_status=$?
42930   grep -v '^ *+' conftest.er1 >conftest.err
42931   rm -f conftest.er1
42932   cat conftest.err >&5
42933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934   (exit $ac_status); } >/dev/null && {
42935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42936          test ! -s conftest.err
42937        }; then
42938   ac_header_preproc=yes
42939 else
42940   echo "$as_me: failed program was:" >&5
42941 sed 's/^/| /' conftest.$ac_ext >&5
42942
42943   ac_header_preproc=no
42944 fi
42945
42946 rm -f conftest.err conftest.$ac_ext
42947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42948 echo "${ECHO_T}$ac_header_preproc" >&6; }
42949
42950 # So?  What about this header?
42951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42952   yes:no: )
42953     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42954 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42955     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42956 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42957     ac_header_preproc=yes
42958     ;;
42959   no:yes:* )
42960     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42961 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42962     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42963 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42964     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42965 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42966     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42967 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42968     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42969 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42970     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42971 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42972
42973     ;;
42974 esac
42975 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42976 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42977 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42978   echo $ECHO_N "(cached) $ECHO_C" >&6
42979 else
42980   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42981 fi
42982 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42983 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42984
42985 fi
42986 if test $ac_cv_header_sys_nvpair_h = yes; then
42987
42988 cat >>confdefs.h <<\_ACEOF
42989 #define HAVE_SYS_NVPAIR_H 1
42990 _ACEOF
42991
42992 fi
42993
42994
42995       if test "${ac_cv_header_attr_h+set}" = set; then
42996   { echo "$as_me:$LINENO: checking for attr.h" >&5
42997 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42998 if test "${ac_cv_header_attr_h+set}" = set; then
42999   echo $ECHO_N "(cached) $ECHO_C" >&6
43000 fi
43001 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43002 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43003 else
43004   # Is the header compilable?
43005 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43006 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43007 cat >conftest.$ac_ext <<_ACEOF
43008 /* confdefs.h.  */
43009 _ACEOF
43010 cat confdefs.h >>conftest.$ac_ext
43011 cat >>conftest.$ac_ext <<_ACEOF
43012 /* end confdefs.h.  */
43013 $ac_includes_default
43014 #include <attr.h>
43015 _ACEOF
43016 rm -f conftest.$ac_objext
43017 if { (ac_try="$ac_compile"
43018 case "(($ac_try" in
43019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43020   *) ac_try_echo=$ac_try;;
43021 esac
43022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43023   (eval "$ac_compile") 2>conftest.er1
43024   ac_status=$?
43025   grep -v '^ *+' conftest.er1 >conftest.err
43026   rm -f conftest.er1
43027   cat conftest.err >&5
43028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43029   (exit $ac_status); } && {
43030          test -z "$ac_c_werror_flag" ||
43031          test ! -s conftest.err
43032        } && test -s conftest.$ac_objext; then
43033   ac_header_compiler=yes
43034 else
43035   echo "$as_me: failed program was:" >&5
43036 sed 's/^/| /' conftest.$ac_ext >&5
43037
43038         ac_header_compiler=no
43039 fi
43040
43041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43043 echo "${ECHO_T}$ac_header_compiler" >&6; }
43044
43045 # Is the header present?
43046 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43047 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43048 cat >conftest.$ac_ext <<_ACEOF
43049 /* confdefs.h.  */
43050 _ACEOF
43051 cat confdefs.h >>conftest.$ac_ext
43052 cat >>conftest.$ac_ext <<_ACEOF
43053 /* end confdefs.h.  */
43054 #include <attr.h>
43055 _ACEOF
43056 if { (ac_try="$ac_cpp conftest.$ac_ext"
43057 case "(($ac_try" in
43058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43059   *) ac_try_echo=$ac_try;;
43060 esac
43061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43063   ac_status=$?
43064   grep -v '^ *+' conftest.er1 >conftest.err
43065   rm -f conftest.er1
43066   cat conftest.err >&5
43067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43068   (exit $ac_status); } >/dev/null && {
43069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43070          test ! -s conftest.err
43071        }; then
43072   ac_header_preproc=yes
43073 else
43074   echo "$as_me: failed program was:" >&5
43075 sed 's/^/| /' conftest.$ac_ext >&5
43076
43077   ac_header_preproc=no
43078 fi
43079
43080 rm -f conftest.err conftest.$ac_ext
43081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43082 echo "${ECHO_T}$ac_header_preproc" >&6; }
43083
43084 # So?  What about this header?
43085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43086   yes:no: )
43087     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43088 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43089     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43090 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43091     ac_header_preproc=yes
43092     ;;
43093   no:yes:* )
43094     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43095 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43096     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
43097 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
43098     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43099 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43100     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43101 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43102     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43103 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43104     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43105 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43106
43107     ;;
43108 esac
43109 { echo "$as_me:$LINENO: checking for attr.h" >&5
43110 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43111 if test "${ac_cv_header_attr_h+set}" = set; then
43112   echo $ECHO_N "(cached) $ECHO_C" >&6
43113 else
43114   ac_cv_header_attr_h=$ac_header_preproc
43115 fi
43116 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43117 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43118
43119 fi
43120 if test $ac_cv_header_attr_h = yes; then
43121
43122 cat >>confdefs.h <<\_ACEOF
43123 #define HAVE_ATTR_H 1
43124 _ACEOF
43125
43126 fi
43127
43128
43129
43130
43131
43132
43133
43134
43135 for ac_func in openat fstatat unlinkat fchownat futimesat
43136 do
43137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43141   echo $ECHO_N "(cached) $ECHO_C" >&6
43142 else
43143   cat >conftest.$ac_ext <<_ACEOF
43144 /* confdefs.h.  */
43145 _ACEOF
43146 cat confdefs.h >>conftest.$ac_ext
43147 cat >>conftest.$ac_ext <<_ACEOF
43148 /* end confdefs.h.  */
43149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43151 #define $ac_func innocuous_$ac_func
43152
43153 /* System header to define __stub macros and hopefully few prototypes,
43154     which can conflict with char $ac_func (); below.
43155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43156     <limits.h> exists even on freestanding compilers.  */
43157
43158 #ifdef __STDC__
43159 # include <limits.h>
43160 #else
43161 # include <assert.h>
43162 #endif
43163
43164 #undef $ac_func
43165
43166 /* Override any GCC internal prototype to avoid an error.
43167    Use char because int might match the return type of a GCC
43168    builtin and then its argument prototype would still apply.  */
43169 #ifdef __cplusplus
43170 extern "C"
43171 #endif
43172 char $ac_func ();
43173 /* The GNU C library defines this for functions which it implements
43174     to always fail with ENOSYS.  Some functions are actually named
43175     something starting with __ and the normal name is an alias.  */
43176 #if defined __stub_$ac_func || defined __stub___$ac_func
43177 choke me
43178 #endif
43179
43180 int
43181 main ()
43182 {
43183 return $ac_func ();
43184   ;
43185   return 0;
43186 }
43187 _ACEOF
43188 rm -f conftest.$ac_objext conftest$ac_exeext
43189 if { (ac_try="$ac_link"
43190 case "(($ac_try" in
43191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43192   *) ac_try_echo=$ac_try;;
43193 esac
43194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43195   (eval "$ac_link") 2>conftest.er1
43196   ac_status=$?
43197   grep -v '^ *+' conftest.er1 >conftest.err
43198   rm -f conftest.er1
43199   cat conftest.err >&5
43200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43201   (exit $ac_status); } && {
43202          test -z "$ac_c_werror_flag" ||
43203          test ! -s conftest.err
43204        } && test -s conftest$ac_exeext &&
43205        $as_test_x conftest$ac_exeext; then
43206   eval "$as_ac_var=yes"
43207 else
43208   echo "$as_me: failed program was:" >&5
43209 sed 's/^/| /' conftest.$ac_ext >&5
43210
43211         eval "$as_ac_var=no"
43212 fi
43213
43214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43215       conftest$ac_exeext conftest.$ac_ext
43216 fi
43217 ac_res=`eval echo '${'$as_ac_var'}'`
43218                { echo "$as_me:$LINENO: result: $ac_res" >&5
43219 echo "${ECHO_T}$ac_res" >&6; }
43220 if test `eval echo '${'$as_ac_var'}'` = yes; then
43221   cat >>confdefs.h <<_ACEOF
43222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43223 _ACEOF
43224
43225              have_xattr=yes
43226
43227 cat >>confdefs.h <<\_ACEOF
43228 #define HAVE_OPENAT 1
43229 _ACEOF
43230
43231
43232 cat >>confdefs.h <<\_ACEOF
43233 #define HAVE_FSTATAT 1
43234 _ACEOF
43235
43236
43237 cat >>confdefs.h <<\_ACEOF
43238 #define HAVE_UNLINKAT 1
43239 _ACEOF
43240
43241
43242 cat >>confdefs.h <<\_ACEOF
43243 #define HAVE_FCHOWNAT 1
43244 _ACEOF
43245
43246
43247 cat >>confdefs.h <<\_ACEOF
43248 #define HAVE_FUTIMESAT 1
43249 _ACEOF
43250
43251
43252
43253 fi
43254 done
43255
43256
43257       if test $have_xattr = yes; then
43258          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43259 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43260 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43261   echo $ECHO_N "(cached) $ECHO_C" >&6
43262 else
43263   ac_check_lib_save_LIBS=$LIBS
43264 LIBS="-lnvpair  $LIBS"
43265 cat >conftest.$ac_ext <<_ACEOF
43266 /* confdefs.h.  */
43267 _ACEOF
43268 cat confdefs.h >>conftest.$ac_ext
43269 cat >>conftest.$ac_ext <<_ACEOF
43270 /* end confdefs.h.  */
43271
43272 /* Override any GCC internal prototype to avoid an error.
43273    Use char because int might match the return type of a GCC
43274    builtin and then its argument prototype would still apply.  */
43275 #ifdef __cplusplus
43276 extern "C"
43277 #endif
43278 char nvlist_next_nvpair ();
43279 int
43280 main ()
43281 {
43282 return nvlist_next_nvpair ();
43283   ;
43284   return 0;
43285 }
43286 _ACEOF
43287 rm -f conftest.$ac_objext conftest$ac_exeext
43288 if { (ac_try="$ac_link"
43289 case "(($ac_try" in
43290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43291   *) ac_try_echo=$ac_try;;
43292 esac
43293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43294   (eval "$ac_link") 2>conftest.er1
43295   ac_status=$?
43296   grep -v '^ *+' conftest.er1 >conftest.err
43297   rm -f conftest.er1
43298   cat conftest.err >&5
43299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300   (exit $ac_status); } && {
43301          test -z "$ac_c_werror_flag" ||
43302          test ! -s conftest.err
43303        } && test -s conftest$ac_exeext &&
43304        $as_test_x conftest$ac_exeext; then
43305   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43306 else
43307   echo "$as_me: failed program was:" >&5
43308 sed 's/^/| /' conftest.$ac_ext >&5
43309
43310         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43311 fi
43312
43313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43314       conftest$ac_exeext conftest.$ac_ext
43315 LIBS=$ac_check_lib_save_LIBS
43316 fi
43317 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43318 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43319 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43320
43321
43322 cat >>confdefs.h <<\_ACEOF
43323 #define HAVE_NVLIST_NEXT_NVPAIR 1
43324 _ACEOF
43325
43326                 FDLIBS="-lnvpair $FDLIBS"
43327
43328
43329 fi
43330
43331       fi
43332    fi
43333
43334    if test x$support_xattr = xyes -a $have_xattr != yes; then
43335       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43336   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43337 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43338   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43339    { (exit 1); exit 1; }; }
43340    else
43341       if test $have_xattr = yes; then
43342
43343 cat >>confdefs.h <<\_ACEOF
43344 #define HAVE_XATTR 1
43345 _ACEOF
43346
43347       fi
43348    fi
43349 fi
43350
43351 PTHREAD_LIB=""
43352 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43353 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43354 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43355   echo $ECHO_N "(cached) $ECHO_C" >&6
43356 else
43357   ac_check_lib_save_LIBS=$LIBS
43358 LIBS="-lpthread  $LIBS"
43359 cat >conftest.$ac_ext <<_ACEOF
43360 /* confdefs.h.  */
43361 _ACEOF
43362 cat confdefs.h >>conftest.$ac_ext
43363 cat >>conftest.$ac_ext <<_ACEOF
43364 /* end confdefs.h.  */
43365
43366 /* Override any GCC internal prototype to avoid an error.
43367    Use char because int might match the return type of a GCC
43368    builtin and then its argument prototype would still apply.  */
43369 #ifdef __cplusplus
43370 extern "C"
43371 #endif
43372 char pthread_create ();
43373 int
43374 main ()
43375 {
43376 return pthread_create ();
43377   ;
43378   return 0;
43379 }
43380 _ACEOF
43381 rm -f conftest.$ac_objext conftest$ac_exeext
43382 if { (ac_try="$ac_link"
43383 case "(($ac_try" in
43384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43385   *) ac_try_echo=$ac_try;;
43386 esac
43387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43388   (eval "$ac_link") 2>conftest.er1
43389   ac_status=$?
43390   grep -v '^ *+' conftest.er1 >conftest.err
43391   rm -f conftest.er1
43392   cat conftest.err >&5
43393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394   (exit $ac_status); } && {
43395          test -z "$ac_c_werror_flag" ||
43396          test ! -s conftest.err
43397        } && test -s conftest$ac_exeext &&
43398        $as_test_x conftest$ac_exeext; then
43399   ac_cv_lib_pthread_pthread_create=yes
43400 else
43401   echo "$as_me: failed program was:" >&5
43402 sed 's/^/| /' conftest.$ac_ext >&5
43403
43404         ac_cv_lib_pthread_pthread_create=no
43405 fi
43406
43407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43408       conftest$ac_exeext conftest.$ac_ext
43409 LIBS=$ac_check_lib_save_LIBS
43410 fi
43411 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43412 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43413 if test $ac_cv_lib_pthread_pthread_create = yes; then
43414   PTHREAD_LIB="-lpthread"
43415 else
43416
43417        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43418 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43419 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43420   echo $ECHO_N "(cached) $ECHO_C" >&6
43421 else
43422   ac_check_lib_save_LIBS=$LIBS
43423 LIBS="-lpthreads  $LIBS"
43424 cat >conftest.$ac_ext <<_ACEOF
43425 /* confdefs.h.  */
43426 _ACEOF
43427 cat confdefs.h >>conftest.$ac_ext
43428 cat >>conftest.$ac_ext <<_ACEOF
43429 /* end confdefs.h.  */
43430
43431 /* Override any GCC internal prototype to avoid an error.
43432    Use char because int might match the return type of a GCC
43433    builtin and then its argument prototype would still apply.  */
43434 #ifdef __cplusplus
43435 extern "C"
43436 #endif
43437 char pthread_create ();
43438 int
43439 main ()
43440 {
43441 return pthread_create ();
43442   ;
43443   return 0;
43444 }
43445 _ACEOF
43446 rm -f conftest.$ac_objext conftest$ac_exeext
43447 if { (ac_try="$ac_link"
43448 case "(($ac_try" in
43449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43450   *) ac_try_echo=$ac_try;;
43451 esac
43452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43453   (eval "$ac_link") 2>conftest.er1
43454   ac_status=$?
43455   grep -v '^ *+' conftest.er1 >conftest.err
43456   rm -f conftest.er1
43457   cat conftest.err >&5
43458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459   (exit $ac_status); } && {
43460          test -z "$ac_c_werror_flag" ||
43461          test ! -s conftest.err
43462        } && test -s conftest$ac_exeext &&
43463        $as_test_x conftest$ac_exeext; then
43464   ac_cv_lib_pthreads_pthread_create=yes
43465 else
43466   echo "$as_me: failed program was:" >&5
43467 sed 's/^/| /' conftest.$ac_ext >&5
43468
43469         ac_cv_lib_pthreads_pthread_create=no
43470 fi
43471
43472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43473       conftest$ac_exeext conftest.$ac_ext
43474 LIBS=$ac_check_lib_save_LIBS
43475 fi
43476 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43477 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43478 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43479   PTHREAD_LIB="-lpthreads"
43480 else
43481
43482               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43483 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43484 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43485   echo $ECHO_N "(cached) $ECHO_C" >&6
43486 else
43487   ac_check_lib_save_LIBS=$LIBS
43488 LIBS="-lc_r  $LIBS"
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
43496 /* Override any GCC internal prototype to avoid an error.
43497    Use char because int might match the return type of a GCC
43498    builtin and then its argument prototype would still apply.  */
43499 #ifdef __cplusplus
43500 extern "C"
43501 #endif
43502 char pthread_create ();
43503 int
43504 main ()
43505 {
43506 return pthread_create ();
43507   ;
43508   return 0;
43509 }
43510 _ACEOF
43511 rm -f conftest.$ac_objext conftest$ac_exeext
43512 if { (ac_try="$ac_link"
43513 case "(($ac_try" in
43514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43515   *) ac_try_echo=$ac_try;;
43516 esac
43517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43518   (eval "$ac_link") 2>conftest.er1
43519   ac_status=$?
43520   grep -v '^ *+' conftest.er1 >conftest.err
43521   rm -f conftest.er1
43522   cat conftest.err >&5
43523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43524   (exit $ac_status); } && {
43525          test -z "$ac_c_werror_flag" ||
43526          test ! -s conftest.err
43527        } && test -s conftest$ac_exeext &&
43528        $as_test_x conftest$ac_exeext; then
43529   ac_cv_lib_c_r_pthread_create=yes
43530 else
43531   echo "$as_me: failed program was:" >&5
43532 sed 's/^/| /' conftest.$ac_ext >&5
43533
43534         ac_cv_lib_c_r_pthread_create=no
43535 fi
43536
43537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43538       conftest$ac_exeext conftest.$ac_ext
43539 LIBS=$ac_check_lib_save_LIBS
43540 fi
43541 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43542 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43543 if test $ac_cv_lib_c_r_pthread_create = yes; then
43544   PTHREAD_LIB="-lc_r"
43545 else
43546
43547                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43548 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43549 if test "${ac_cv_func_pthread_create+set}" = set; then
43550   echo $ECHO_N "(cached) $ECHO_C" >&6
43551 else
43552   cat >conftest.$ac_ext <<_ACEOF
43553 /* confdefs.h.  */
43554 _ACEOF
43555 cat confdefs.h >>conftest.$ac_ext
43556 cat >>conftest.$ac_ext <<_ACEOF
43557 /* end confdefs.h.  */
43558 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43560 #define pthread_create innocuous_pthread_create
43561
43562 /* System header to define __stub macros and hopefully few prototypes,
43563     which can conflict with char pthread_create (); below.
43564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43565     <limits.h> exists even on freestanding compilers.  */
43566
43567 #ifdef __STDC__
43568 # include <limits.h>
43569 #else
43570 # include <assert.h>
43571 #endif
43572
43573 #undef pthread_create
43574
43575 /* Override any GCC internal prototype to avoid an error.
43576    Use char because int might match the return type of a GCC
43577    builtin and then its argument prototype would still apply.  */
43578 #ifdef __cplusplus
43579 extern "C"
43580 #endif
43581 char pthread_create ();
43582 /* The GNU C library defines this for functions which it implements
43583     to always fail with ENOSYS.  Some functions are actually named
43584     something starting with __ and the normal name is an alias.  */
43585 #if defined __stub_pthread_create || defined __stub___pthread_create
43586 choke me
43587 #endif
43588
43589 int
43590 main ()
43591 {
43592 return pthread_create ();
43593   ;
43594   return 0;
43595 }
43596 _ACEOF
43597 rm -f conftest.$ac_objext conftest$ac_exeext
43598 if { (ac_try="$ac_link"
43599 case "(($ac_try" in
43600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43601   *) ac_try_echo=$ac_try;;
43602 esac
43603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43604   (eval "$ac_link") 2>conftest.er1
43605   ac_status=$?
43606   grep -v '^ *+' conftest.er1 >conftest.err
43607   rm -f conftest.er1
43608   cat conftest.err >&5
43609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43610   (exit $ac_status); } && {
43611          test -z "$ac_c_werror_flag" ||
43612          test ! -s conftest.err
43613        } && test -s conftest$ac_exeext &&
43614        $as_test_x conftest$ac_exeext; then
43615   ac_cv_func_pthread_create=yes
43616 else
43617   echo "$as_me: failed program was:" >&5
43618 sed 's/^/| /' conftest.$ac_ext >&5
43619
43620         ac_cv_func_pthread_create=no
43621 fi
43622
43623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43624       conftest$ac_exeext conftest.$ac_ext
43625 fi
43626 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43627 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43628
43629
43630
43631 fi
43632
43633
43634
43635 fi
43636
43637
43638
43639 fi
43640
43641
43642
43643
43644 for ac_header in sys/prctl.h sys/capability.h
43645 do
43646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43651   echo $ECHO_N "(cached) $ECHO_C" >&6
43652 fi
43653 ac_res=`eval echo '${'$as_ac_Header'}'`
43654                { echo "$as_me:$LINENO: result: $ac_res" >&5
43655 echo "${ECHO_T}$ac_res" >&6; }
43656 else
43657   # Is the header compilable?
43658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43660 cat >conftest.$ac_ext <<_ACEOF
43661 /* confdefs.h.  */
43662 _ACEOF
43663 cat confdefs.h >>conftest.$ac_ext
43664 cat >>conftest.$ac_ext <<_ACEOF
43665 /* end confdefs.h.  */
43666 $ac_includes_default
43667 #include <$ac_header>
43668 _ACEOF
43669 rm -f conftest.$ac_objext
43670 if { (ac_try="$ac_compile"
43671 case "(($ac_try" in
43672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43673   *) ac_try_echo=$ac_try;;
43674 esac
43675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43676   (eval "$ac_compile") 2>conftest.er1
43677   ac_status=$?
43678   grep -v '^ *+' conftest.er1 >conftest.err
43679   rm -f conftest.er1
43680   cat conftest.err >&5
43681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43682   (exit $ac_status); } && {
43683          test -z "$ac_c_werror_flag" ||
43684          test ! -s conftest.err
43685        } && test -s conftest.$ac_objext; then
43686   ac_header_compiler=yes
43687 else
43688   echo "$as_me: failed program was:" >&5
43689 sed 's/^/| /' conftest.$ac_ext >&5
43690
43691         ac_header_compiler=no
43692 fi
43693
43694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43696 echo "${ECHO_T}$ac_header_compiler" >&6; }
43697
43698 # Is the header present?
43699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43701 cat >conftest.$ac_ext <<_ACEOF
43702 /* confdefs.h.  */
43703 _ACEOF
43704 cat confdefs.h >>conftest.$ac_ext
43705 cat >>conftest.$ac_ext <<_ACEOF
43706 /* end confdefs.h.  */
43707 #include <$ac_header>
43708 _ACEOF
43709 if { (ac_try="$ac_cpp conftest.$ac_ext"
43710 case "(($ac_try" in
43711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43712   *) ac_try_echo=$ac_try;;
43713 esac
43714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43716   ac_status=$?
43717   grep -v '^ *+' conftest.er1 >conftest.err
43718   rm -f conftest.er1
43719   cat conftest.err >&5
43720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43721   (exit $ac_status); } >/dev/null && {
43722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43723          test ! -s conftest.err
43724        }; then
43725   ac_header_preproc=yes
43726 else
43727   echo "$as_me: failed program was:" >&5
43728 sed 's/^/| /' conftest.$ac_ext >&5
43729
43730   ac_header_preproc=no
43731 fi
43732
43733 rm -f conftest.err conftest.$ac_ext
43734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43735 echo "${ECHO_T}$ac_header_preproc" >&6; }
43736
43737 # So?  What about this header?
43738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43739   yes:no: )
43740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43744     ac_header_preproc=yes
43745     ;;
43746   no:yes:* )
43747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43759
43760     ;;
43761 esac
43762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43765   echo $ECHO_N "(cached) $ECHO_C" >&6
43766 else
43767   eval "$as_ac_Header=\$ac_header_preproc"
43768 fi
43769 ac_res=`eval echo '${'$as_ac_Header'}'`
43770                { echo "$as_me:$LINENO: result: $ac_res" >&5
43771 echo "${ECHO_T}$ac_res" >&6; }
43772
43773 fi
43774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43775   cat >>confdefs.h <<_ACEOF
43776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43777 _ACEOF
43778
43779 fi
43780
43781 done
43782
43783
43784
43785 for ac_func in prctl setreuid
43786 do
43787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43791   echo $ECHO_N "(cached) $ECHO_C" >&6
43792 else
43793   cat >conftest.$ac_ext <<_ACEOF
43794 /* confdefs.h.  */
43795 _ACEOF
43796 cat confdefs.h >>conftest.$ac_ext
43797 cat >>conftest.$ac_ext <<_ACEOF
43798 /* end confdefs.h.  */
43799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43801 #define $ac_func innocuous_$ac_func
43802
43803 /* System header to define __stub macros and hopefully few prototypes,
43804     which can conflict with char $ac_func (); below.
43805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43806     <limits.h> exists even on freestanding compilers.  */
43807
43808 #ifdef __STDC__
43809 # include <limits.h>
43810 #else
43811 # include <assert.h>
43812 #endif
43813
43814 #undef $ac_func
43815
43816 /* Override any GCC internal prototype to avoid an error.
43817    Use char because int might match the return type of a GCC
43818    builtin and then its argument prototype would still apply.  */
43819 #ifdef __cplusplus
43820 extern "C"
43821 #endif
43822 char $ac_func ();
43823 /* The GNU C library defines this for functions which it implements
43824     to always fail with ENOSYS.  Some functions are actually named
43825     something starting with __ and the normal name is an alias.  */
43826 #if defined __stub_$ac_func || defined __stub___$ac_func
43827 choke me
43828 #endif
43829
43830 int
43831 main ()
43832 {
43833 return $ac_func ();
43834   ;
43835   return 0;
43836 }
43837 _ACEOF
43838 rm -f conftest.$ac_objext conftest$ac_exeext
43839 if { (ac_try="$ac_link"
43840 case "(($ac_try" in
43841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43842   *) ac_try_echo=$ac_try;;
43843 esac
43844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43845   (eval "$ac_link") 2>conftest.er1
43846   ac_status=$?
43847   grep -v '^ *+' conftest.er1 >conftest.err
43848   rm -f conftest.er1
43849   cat conftest.err >&5
43850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851   (exit $ac_status); } && {
43852          test -z "$ac_c_werror_flag" ||
43853          test ! -s conftest.err
43854        } && test -s conftest$ac_exeext &&
43855        $as_test_x conftest$ac_exeext; then
43856   eval "$as_ac_var=yes"
43857 else
43858   echo "$as_me: failed program was:" >&5
43859 sed 's/^/| /' conftest.$ac_ext >&5
43860
43861         eval "$as_ac_var=no"
43862 fi
43863
43864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43865       conftest$ac_exeext conftest.$ac_ext
43866 fi
43867 ac_res=`eval echo '${'$as_ac_var'}'`
43868                { echo "$as_me:$LINENO: result: $ac_res" >&5
43869 echo "${ECHO_T}$ac_res" >&6; }
43870 if test `eval echo '${'$as_ac_var'}'` = yes; then
43871   cat >>confdefs.h <<_ACEOF
43872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43873 _ACEOF
43874
43875 fi
43876 done
43877
43878 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43879 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43880 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43881   echo $ECHO_N "(cached) $ECHO_C" >&6
43882 else
43883   ac_check_lib_save_LIBS=$LIBS
43884 LIBS="-lcap  $LIBS"
43885 cat >conftest.$ac_ext <<_ACEOF
43886 /* confdefs.h.  */
43887 _ACEOF
43888 cat confdefs.h >>conftest.$ac_ext
43889 cat >>conftest.$ac_ext <<_ACEOF
43890 /* end confdefs.h.  */
43891
43892 /* Override any GCC internal prototype to avoid an error.
43893    Use char because int might match the return type of a GCC
43894    builtin and then its argument prototype would still apply.  */
43895 #ifdef __cplusplus
43896 extern "C"
43897 #endif
43898 char cap_set_proc ();
43899 int
43900 main ()
43901 {
43902 return cap_set_proc ();
43903   ;
43904   return 0;
43905 }
43906 _ACEOF
43907 rm -f conftest.$ac_objext conftest$ac_exeext
43908 if { (ac_try="$ac_link"
43909 case "(($ac_try" in
43910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43911   *) ac_try_echo=$ac_try;;
43912 esac
43913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43914   (eval "$ac_link") 2>conftest.er1
43915   ac_status=$?
43916   grep -v '^ *+' conftest.er1 >conftest.err
43917   rm -f conftest.er1
43918   cat conftest.err >&5
43919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920   (exit $ac_status); } && {
43921          test -z "$ac_c_werror_flag" ||
43922          test ! -s conftest.err
43923        } && test -s conftest$ac_exeext &&
43924        $as_test_x conftest$ac_exeext; then
43925   ac_cv_lib_cap_cap_set_proc=yes
43926 else
43927   echo "$as_me: failed program was:" >&5
43928 sed 's/^/| /' conftest.$ac_ext >&5
43929
43930         ac_cv_lib_cap_cap_set_proc=no
43931 fi
43932
43933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43934       conftest$ac_exeext conftest.$ac_ext
43935 LIBS=$ac_check_lib_save_LIBS
43936 fi
43937 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43938 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43939 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43940   CAP_LIBS="-lcap"
43941 else
43942   CAP_LIBS=
43943 fi
43944
43945 if test x$CAP_LIBS = x-lcap; then
43946
43947 cat >>confdefs.h <<\_ACEOF
43948 #define HAVE_LIBCAP 1
43949 _ACEOF
43950
43951 fi
43952
43953
43954
43955 cat >>confdefs.h <<\_ACEOF
43956 #define FDLIBS 1
43957 _ACEOF
43958
43959
43960 CFLAGS=${CFLAGS--O}
43961
43962 if test x$have_gcc = xyes ; then
43963    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43964    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43965 fi
43966 LDFLAGS=${LDFLAGS--O}
43967 DB_LIBS="${SQL_LFLAGS}"
43968 CPPFLAGS="$CPPFLAGS"
43969 CFLAGS="$CFLAGS"
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
43981
43982
43983
43984
43985
43986 OBJLIST=
43987
43988
43989 lld="lld"
43990 llu="llu"
43991
43992 WCFLAGS=
43993 WLDFLAGS=
43994
43995 PFILES="platforms/Makefile"
43996 PSCMD="ps -e"
43997 WIN32=
43998 MACOSX=
43999
44000 hostname=`uname -n | cut -d '.' -f 1`
44001 if test x${hostname} = x ; then
44002    hostname="localhost"
44003 fi
44004 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44005 if test ! $? = 0; then
44006   hostname="localhost"
44007 fi
44008
44009 case "$DISTNAME" in
44010 aix)
44011    DISTVER=`uname -r`
44012    PSCMD="ps -e -o pid,comm"
44013    PFILES="${PFILES} \
44014       platforms/aix/Makefile"
44015    TAPEDRIVE="/dev/rmt0.1"
44016   ;;
44017 alpha)
44018    DISTVER=`uname -r`
44019    PTHREAD_LIB="-lpthread -lexc"
44020    if test "${CC}" = "gcc" ; then
44021       lld="lld"
44022       llu="llu"
44023    else
44024       lld="ld"
44025       llu="lu"
44026    fi
44027    TAPEDRIVE="/dev/nrmt0"
44028   ;;
44029 bsdi)
44030    DISTVER=`uname -a |awk '{print $3}'`
44031    TAPEDRIVE="/dev/nrmt0"
44032    PTHREAD_LIB="-pthread"
44033    CFLAGS="${CFLAGS} -pthread"
44034    PSCMD="ps -ax -o pid,command"
44035    lld="qd"
44036    llu="qu"
44037    PFILES="${PFILES} \
44038        platforms/bsdi/Makefile \
44039        platforms/bsdi/bacula-fd \
44040        platforms/bsdi/bacula-sd \
44041        platforms/bsdi/bacula-dir"
44042    largefile_support="yes"
44043   ;;
44044 cygwin)
44045    DISTVER=`uname -a |awk '{print $3}'`
44046    TAPEDRIVE="/dev/nrst0"
44047    WIN32=win32
44048    WCFLAGS="-mwindows"
44049    WLDFLAGS="-mwindows"
44050   ;;
44051 darwin)
44052    DISTVER=`uname -r`
44053    TAPEDRIVE="/dev/nst0"
44054    PSCMD="ps -e -o pid,command"
44055    MACOSX=macosx
44056    PFILES="${PFILES} \
44057       platforms/darwin/Makefile"
44058   ;;
44059 osx)
44060    DISTVER=`uname -r`
44061    TAPEDRIVE="/dev/nst0"
44062    PSCMD="ps -e -o pid,command"
44063    MACOSX=macosx
44064    PFILES="${PFILES} \
44065       platforms/osx/Makefile"
44066   ;;
44067 debian)
44068    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44069       DISTNAME="ubuntu"
44070    fi
44071    DISTVER=`cat /etc/debian_version`
44072    if test -f /etc/lsb-release ; then
44073       . /etc/lsb-release
44074       if test "x$DISTRIB_ID" != "x" ; then
44075          DISTNAME=$DISTRIB_ID
44076       fi
44077       if test "x$DISTRIB_RELEASE" != "x" ; then
44078          DISTVER=$DISTRIB_RELEASE
44079       fi
44080    fi
44081    if test "$DISTNAME" = "Ubuntu" ; then
44082       DISTNAME="ubuntu"
44083    fi
44084    TAPEDRIVE="/dev/nst0"
44085    PSCMD="ps -e -o pid,command"
44086    if test "$DISTNAME" = "ubuntu" ; then
44087       PFILES="${PFILES} \
44088          platforms/ubuntu/Makefile \
44089          platforms/ubuntu/bacula-fd \
44090          platforms/ubuntu/bacula-sd \
44091          platforms/ubuntu/bacula-dir"
44092    else
44093       PFILES="${PFILES} \
44094          platforms/debian/Makefile \
44095          platforms/debian/bacula-fd \
44096          platforms/debian/bacula-sd \
44097          platforms/debian/bacula-dir"
44098    fi
44099   ;;
44100 freebsd)
44101    DISTVER=`uname -a |awk '{print $3}'`
44102    VER=`echo $DISTVER | cut -c 1`
44103    if test x$VER = x4 ; then
44104       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44105       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44106    fi
44107    lld="qd"
44108    llu="qu"
44109    TAPEDRIVE="/dev/nrsa0"
44110    PSCMD="ps -ax -o pid,command"
44111    PFILES="${PFILES} \
44112        platforms/freebsd/Makefile \
44113        platforms/freebsd/bacula-fd \
44114        platforms/freebsd/bacula-sd \
44115        platforms/freebsd/bacula-dir"
44116    largefile_support="yes"
44117   ;;
44118 hpux)
44119    PSCMD="UNIX95=1; ps -e -o pid,comm"
44120    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44121    DISTVER=`uname -r`
44122    TAPEDRIVE="/dev/rmt/0hnb"
44123    PTHREAD_LIB="-lpthread"
44124    cat >>confdefs.h <<\_ACEOF
44125 #define _INCLUDE_LONGLONG 1
44126 _ACEOF
44127
44128   ;;
44129 irix)
44130    DISTVER=`uname -r`
44131    TAPEDRIVE="/dev/rmt/0cbn"
44132    PSCMD="ps -e -o pid,comm"
44133    PFILES="${PFILES} \
44134        platforms/irix/Makefile \
44135        platforms/irix/bacula-fd \
44136        platforms/irix/bacula-sd \
44137        platforms/irix/bacula-dir"
44138   ;;
44139 netbsd)
44140    DISTVER=`uname -a |awk '{print $3}'`
44141    lld="qd"
44142    llu="qu"
44143    TAPEDRIVE="/dev/nrst0"
44144    PSCMD="ps -ax -o pid,command"
44145    PTHREAD_LIB="-pthread"
44146    CFLAGS="${CFLAGS} -pthread"
44147   ;;
44148 openbsd)
44149    DISTVER=`uname -a |awk '{print $3}'`
44150    lld="qd"
44151    llu="qu"
44152    TAPEDRIVE="/dev/nrst0"
44153    PSCMD="ps -ax -o pid,command"
44154    PTHREAD_LIB="-pthread"
44155    CFLAGS="${CFLAGS} -pthread"
44156    PFILES="${PFILES} \
44157        platforms/openbsd/Makefile \
44158        platforms/openbsd/bacula-fd \
44159        platforms/openbsd/bacula-sd \
44160        platforms/openbsd/bacula-dir"
44161   ;;
44162 redhat)
44163    if test -f /etc/whitebox-release ; then
44164       f=/etc/whitebox-release
44165    else
44166       f=/etc/redhat-release
44167    fi
44168    if test `cat $f | grep release |\
44169          cut -f 3 -d ' '`x = "Enterprise"x ; then
44170       DISTVER="Enterprise "`cat $f | grep release |\
44171           cut -f 6 -d ' '`
44172    else
44173        DISTVER=`cat /etc/redhat-release | grep release |\
44174            cut -f 5 -d ' '`
44175    fi
44176    TAPEDRIVE="/dev/nst0"
44177    PSCMD="ps -e -o pid,command"
44178    PFILES="${PFILES} \
44179        platforms/redhat/Makefile \
44180        platforms/redhat/bacula-fd \
44181        platforms/redhat/bacula-sd \
44182        platforms/redhat/bacula-dir
44183        "
44184   ;;
44185 mandrake)
44186    DISTVER=`cat /etc/mandrake-release | grep release |\
44187       cut -f 5 -d ' '`
44188    TAPEDRIVE="/dev/nst0"
44189    PSCMD="ps -e -o pid,command"
44190    PFILES="${PFILES} \
44191        platforms/mandrake/Makefile \
44192        platforms/mandrake/bacula-fd \
44193        platforms/mandrake/bacula-sd \
44194        platforms/mandrake/bacula-dir \
44195        "
44196   ;;
44197 gentoo)
44198    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44199    TAPEDRIVE="/dev/nst0"
44200    PSCMD="ps -e -o pid,command"
44201    PFILES="${PFILES} \
44202        platforms/gentoo/Makefile \
44203     platforms/gentoo/bacula-init \
44204        platforms/gentoo/bacula-fd \
44205        platforms/gentoo/bacula-sd \
44206        platforms/gentoo/bacula-dir"
44207   ;;
44208 slackware)
44209    DISTVER=`cat /etc/slackware-version`
44210    TAPEDRIVE="/dev/nst0"
44211    PSCMD="ps -e -o pid,command"
44212    PFILES="${PFILES} \
44213        platforms/slackware/Makefile \
44214        platforms/slackware/rc.bacula-fd \
44215        platforms/slackware/rc.bacula-sd \
44216        platforms/slackware/rc.bacula-dir\
44217        platforms/slackware/functions.bacula"
44218   ;;
44219 solaris)
44220    DISTVER=`uname -r`
44221    TAPEDRIVE="/dev/rmt/0cbn"
44222    PSCMD="ps -e -o pid,comm"
44223    PFILES="${PFILES} \
44224        platforms/solaris/Makefile \
44225        platforms/solaris/bacula-fd \
44226        platforms/solaris/bacula-sd \
44227        platforms/solaris/bacula-dir"
44228    if test x$DISTVER = x5.6 ; then
44229        cat >>confdefs.h <<\_ACEOF
44230 #define HAVE_OLD_SOCKOPT 1
44231 _ACEOF
44232
44233    fi
44234    LIBS="$LIBS -lresolv"
44235   ;;
44236 suse)
44237    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44238        cut -f 3 -d ' '`
44239    TAPEDRIVE="/dev/nst0"
44240    PSCMD="ps -e -o pid,command"
44241    PFILES="${PFILES} \
44242        platforms/suse/Makefile \
44243        platforms/suse/bacula-fd \
44244        platforms/suse/bacula-sd \
44245        platforms/suse/bacula-dir \
44246        platforms/suse/bacula"
44247   ;;
44248 suse5)
44249    DISTNAME=suse
44250    DISTVER=5.x
44251    TAPEDRIVE="/dev/nst0"
44252    PSCMD="ps -e -o pid,command"
44253    PFILES="${PFILES} \
44254        platforms/suse/Makefile \
44255        platforms/suse/bacula-fd \
44256        platforms/suse/bacula-sd \
44257        platforms/suse/bacula-dir"
44258   ;;
44259 unknown)
44260    DISTVER=unknown
44261    TAPEDRIVE="/dev/nst0"
44262   ;;
44263 *)
44264   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44265   ;;
44266 esac
44267
44268
44269
44270 LIBS="$PTHREAD_LIB $LIBS"
44271
44272 cat >>confdefs.h <<_ACEOF
44273 #define lld "$lld"
44274 _ACEOF
44275
44276 cat >>confdefs.h <<_ACEOF
44277 #define llu "$llu"
44278 _ACEOF
44279
44280
44281
44282
44283
44284
44285
44286
44287 MCOMMON=./autoconf/Make.common
44288
44289
44290 if test "x${subsysdir}" = "x${sbindir}" ; then
44291    echo " "
44292    echo " "
44293    echo "You have set both --sbindir and --with-subsys-dir"
44294    echo "  equal to: ${subsysdir} "
44295    echo "This is not permitted. Please reconfigure."
44296    echo " "
44297    echo "Aborting configuration ..."
44298    echo " "
44299    echo " "
44300    exit 1
44301 fi
44302
44303 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44304
44305 ac_config_commands="$ac_config_commands default"
44306
44307 cat >confcache <<\_ACEOF
44308 # This file is a shell script that caches the results of configure
44309 # tests run on this system so they can be shared between configure
44310 # scripts and configure runs, see configure's option --config-cache.
44311 # It is not useful on other systems.  If it contains results you don't
44312 # want to keep, you may remove or edit it.
44313 #
44314 # config.status only pays attention to the cache file if you give it
44315 # the --recheck option to rerun configure.
44316 #
44317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44319 # following values.
44320
44321 _ACEOF
44322
44323 # The following way of writing the cache mishandles newlines in values,
44324 # but we know of no workaround that is simple, portable, and efficient.
44325 # So, we kill variables containing newlines.
44326 # Ultrix sh set writes to stderr and can't be redirected directly,
44327 # and sets the high bit in the cache file unless we assign to the vars.
44328 (
44329   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44330     eval ac_val=\$$ac_var
44331     case $ac_val in #(
44332     *${as_nl}*)
44333       case $ac_var in #(
44334       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44335 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44336       esac
44337       case $ac_var in #(
44338       _ | IFS | as_nl) ;; #(
44339       *) $as_unset $ac_var ;;
44340       esac ;;
44341     esac
44342   done
44343
44344   (set) 2>&1 |
44345     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44346     *${as_nl}ac_space=\ *)
44347       # `set' does not quote correctly, so add quotes (double-quote
44348       # substitution turns \\\\ into \\, and sed turns \\ into \).
44349       sed -n \
44350         "s/'/'\\\\''/g;
44351           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44352       ;; #(
44353     *)
44354       # `set' quotes correctly as required by POSIX, so do not add quotes.
44355       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44356       ;;
44357     esac |
44358     sort
44359 ) |
44360   sed '
44361      /^ac_cv_env_/b end
44362      t clear
44363      :clear
44364      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44365      t end
44366      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44367      :end' >>confcache
44368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44369   if test -w "$cache_file"; then
44370     test "x$cache_file" != "x/dev/null" &&
44371       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44372 echo "$as_me: updating cache $cache_file" >&6;}
44373     cat confcache >$cache_file
44374   else
44375     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44376 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44377   fi
44378 fi
44379 rm -f confcache
44380
44381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44382 # Let make expand exec_prefix.
44383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44384
44385 DEFS=-DHAVE_CONFIG_H
44386
44387 ac_libobjs=
44388 ac_ltlibobjs=
44389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44390   # 1. Remove the extension, and $U if already installed.
44391   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44392   ac_i=`echo "$ac_i" | sed "$ac_script"`
44393   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44394   #    will be set to the directory where LIBOBJS objects are built.
44395   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44396   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44397 done
44398 LIBOBJS=$ac_libobjs
44399
44400 LTLIBOBJS=$ac_ltlibobjs
44401
44402
44403
44404 : ${CONFIG_STATUS=./config.status}
44405 ac_clean_files_save=$ac_clean_files
44406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44407 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44408 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44409 cat >$CONFIG_STATUS <<_ACEOF
44410 #! $SHELL
44411 # Generated by $as_me.
44412 # Run this file to recreate the current configuration.
44413 # Compiler output produced by configure, useful for debugging
44414 # configure, is in config.log if it exists.
44415
44416 debug=false
44417 ac_cs_recheck=false
44418 ac_cs_silent=false
44419 SHELL=\${CONFIG_SHELL-$SHELL}
44420 _ACEOF
44421
44422 cat >>$CONFIG_STATUS <<\_ACEOF
44423 ## --------------------- ##
44424 ## M4sh Initialization.  ##
44425 ## --------------------- ##
44426
44427 # Be more Bourne compatible
44428 DUALCASE=1; export DUALCASE # for MKS sh
44429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44430   emulate sh
44431   NULLCMD=:
44432   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44433   # is contrary to our usage.  Disable this feature.
44434   alias -g '${1+"$@"}'='"$@"'
44435   setopt NO_GLOB_SUBST
44436 else
44437   case `(set -o) 2>/dev/null` in
44438   *posix*) set -o posix ;;
44439 esac
44440
44441 fi
44442
44443
44444
44445
44446 # PATH needs CR
44447 # Avoid depending upon Character Ranges.
44448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44451 as_cr_digits='0123456789'
44452 as_cr_alnum=$as_cr_Letters$as_cr_digits
44453
44454 # The user is always right.
44455 if test "${PATH_SEPARATOR+set}" != set; then
44456   echo "#! /bin/sh" >conf$$.sh
44457   echo  "exit 0"   >>conf$$.sh
44458   chmod +x conf$$.sh
44459   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44460     PATH_SEPARATOR=';'
44461   else
44462     PATH_SEPARATOR=:
44463   fi
44464   rm -f conf$$.sh
44465 fi
44466
44467 # Support unset when possible.
44468 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44469   as_unset=unset
44470 else
44471   as_unset=false
44472 fi
44473
44474
44475 # IFS
44476 # We need space, tab and new line, in precisely that order.  Quoting is
44477 # there to prevent editors from complaining about space-tab.
44478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44479 # splitting by setting IFS to empty value.)
44480 as_nl='
44481 '
44482 IFS=" ""        $as_nl"
44483
44484 # Find who we are.  Look in the path if we contain no directory separator.
44485 case $0 in
44486   *[\\/]* ) as_myself=$0 ;;
44487   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44488 for as_dir in $PATH
44489 do
44490   IFS=$as_save_IFS
44491   test -z "$as_dir" && as_dir=.
44492   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44493 done
44494 IFS=$as_save_IFS
44495
44496      ;;
44497 esac
44498 # We did not find ourselves, most probably we were run as `sh COMMAND'
44499 # in which case we are not to be found in the path.
44500 if test "x$as_myself" = x; then
44501   as_myself=$0
44502 fi
44503 if test ! -f "$as_myself"; then
44504   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44505   { (exit 1); exit 1; }
44506 fi
44507
44508 # Work around bugs in pre-3.0 UWIN ksh.
44509 for as_var in ENV MAIL MAILPATH
44510 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44511 done
44512 PS1='$ '
44513 PS2='> '
44514 PS4='+ '
44515
44516 # NLS nuisances.
44517 for as_var in \
44518   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44519   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44520   LC_TELEPHONE LC_TIME
44521 do
44522   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44523     eval $as_var=C; export $as_var
44524   else
44525     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44526   fi
44527 done
44528
44529 # Required to use basename.
44530 if expr a : '\(a\)' >/dev/null 2>&1 &&
44531    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44532   as_expr=expr
44533 else
44534   as_expr=false
44535 fi
44536
44537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44538   as_basename=basename
44539 else
44540   as_basename=false
44541 fi
44542
44543
44544 # Name of the executable.
44545 as_me=`$as_basename -- "$0" ||
44546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44547          X"$0" : 'X\(//\)$' \| \
44548          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44549 echo X/"$0" |
44550     sed '/^.*\/\([^/][^/]*\)\/*$/{
44551             s//\1/
44552             q
44553           }
44554           /^X\/\(\/\/\)$/{
44555             s//\1/
44556             q
44557           }
44558           /^X\/\(\/\).*/{
44559             s//\1/
44560             q
44561           }
44562           s/.*/./; q'`
44563
44564 # CDPATH.
44565 $as_unset CDPATH
44566
44567
44568
44569   as_lineno_1=$LINENO
44570   as_lineno_2=$LINENO
44571   test "x$as_lineno_1" != "x$as_lineno_2" &&
44572   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44573
44574   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44575   # uniformly replaced by the line number.  The first 'sed' inserts a
44576   # line-number line after each line using $LINENO; the second 'sed'
44577   # does the real work.  The second script uses 'N' to pair each
44578   # line-number line with the line containing $LINENO, and appends
44579   # trailing '-' during substitution so that $LINENO is not a special
44580   # case at line end.
44581   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44582   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44583   # E. McMahon (1931-1989) for sed's syntax.  :-)
44584   sed -n '
44585     p
44586     /[$]LINENO/=
44587   ' <$as_myself |
44588     sed '
44589       s/[$]LINENO.*/&-/
44590       t lineno
44591       b
44592       :lineno
44593       N
44594       :loop
44595       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44596       t loop
44597       s/-\n.*//
44598     ' >$as_me.lineno &&
44599   chmod +x "$as_me.lineno" ||
44600     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44601    { (exit 1); exit 1; }; }
44602
44603   # Don't try to exec as it changes $[0], causing all sort of problems
44604   # (the dirname of $[0] is not the place where we might find the
44605   # original and so on.  Autoconf is especially sensitive to this).
44606   . "./$as_me.lineno"
44607   # Exit status is that of the last command.
44608   exit
44609 }
44610
44611
44612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44613   as_dirname=dirname
44614 else
44615   as_dirname=false
44616 fi
44617
44618 ECHO_C= ECHO_N= ECHO_T=
44619 case `echo -n x` in
44620 -n*)
44621   case `echo 'x\c'` in
44622   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44623   *)   ECHO_C='\c';;
44624   esac;;
44625 *)
44626   ECHO_N='-n';;
44627 esac
44628
44629 if expr a : '\(a\)' >/dev/null 2>&1 &&
44630    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44631   as_expr=expr
44632 else
44633   as_expr=false
44634 fi
44635
44636 rm -f conf$$ conf$$.exe conf$$.file
44637 if test -d conf$$.dir; then
44638   rm -f conf$$.dir/conf$$.file
44639 else
44640   rm -f conf$$.dir
44641   mkdir conf$$.dir
44642 fi
44643 echo >conf$$.file
44644 if ln -s conf$$.file conf$$ 2>/dev/null; then
44645   as_ln_s='ln -s'
44646   # ... but there are two gotchas:
44647   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44648   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44649   # In both cases, we have to default to `cp -p'.
44650   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44651     as_ln_s='cp -p'
44652 elif ln conf$$.file conf$$ 2>/dev/null; then
44653   as_ln_s=ln
44654 else
44655   as_ln_s='cp -p'
44656 fi
44657 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44658 rmdir conf$$.dir 2>/dev/null
44659
44660 if mkdir -p . 2>/dev/null; then
44661   as_mkdir_p=:
44662 else
44663   test -d ./-p && rmdir ./-p
44664   as_mkdir_p=false
44665 fi
44666
44667 if test -x / >/dev/null 2>&1; then
44668   as_test_x='test -x'
44669 else
44670   if ls -dL / >/dev/null 2>&1; then
44671     as_ls_L_option=L
44672   else
44673     as_ls_L_option=
44674   fi
44675   as_test_x='
44676     eval sh -c '\''
44677       if test -d "$1"; then
44678         test -d "$1/.";
44679       else
44680         case $1 in
44681         -*)set "./$1";;
44682         esac;
44683         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44684         ???[sx]*):;;*)false;;esac;fi
44685     '\'' sh
44686   '
44687 fi
44688 as_executable_p=$as_test_x
44689
44690 # Sed expression to map a string onto a valid CPP name.
44691 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44692
44693 # Sed expression to map a string onto a valid variable name.
44694 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44695
44696
44697 exec 6>&1
44698
44699 # Save the log message, to keep $[0] and so on meaningful, and to
44700 # report actual input values of CONFIG_FILES etc. instead of their
44701 # values after options handling.
44702 ac_log="
44703 This file was extended by $as_me, which was
44704 generated by GNU Autoconf 2.61.  Invocation command line was
44705
44706   CONFIG_FILES    = $CONFIG_FILES
44707   CONFIG_HEADERS  = $CONFIG_HEADERS
44708   CONFIG_LINKS    = $CONFIG_LINKS
44709   CONFIG_COMMANDS = $CONFIG_COMMANDS
44710   $ $0 $@
44711
44712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44713 "
44714
44715 _ACEOF
44716
44717 cat >>$CONFIG_STATUS <<_ACEOF
44718 # Files that config.status was made for.
44719 config_files="$ac_config_files"
44720 config_headers="$ac_config_headers"
44721 config_commands="$ac_config_commands"
44722
44723 _ACEOF
44724
44725 cat >>$CONFIG_STATUS <<\_ACEOF
44726 ac_cs_usage="\
44727 \`$as_me' instantiates files from templates according to the
44728 current configuration.
44729
44730 Usage: $0 [OPTIONS] [FILE]...
44731
44732   -h, --help       print this help, then exit
44733   -V, --version    print version number and configuration settings, then exit
44734   -q, --quiet      do not print progress messages
44735   -d, --debug      don't remove temporary files
44736       --recheck    update $as_me by reconfiguring in the same conditions
44737   --file=FILE[:TEMPLATE]
44738                    instantiate the configuration file FILE
44739   --header=FILE[:TEMPLATE]
44740                    instantiate the configuration header FILE
44741
44742 Configuration files:
44743 $config_files
44744
44745 Configuration headers:
44746 $config_headers
44747
44748 Configuration commands:
44749 $config_commands
44750
44751 Report bugs to <bug-autoconf@gnu.org>."
44752
44753 _ACEOF
44754 cat >>$CONFIG_STATUS <<_ACEOF
44755 ac_cs_version="\\
44756 config.status
44757 configured by $0, generated by GNU Autoconf 2.61,
44758   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44759
44760 Copyright (C) 2006 Free Software Foundation, Inc.
44761 This config.status script is free software; the Free Software Foundation
44762 gives unlimited permission to copy, distribute and modify it."
44763
44764 ac_pwd='$ac_pwd'
44765 srcdir='$srcdir'
44766 INSTALL='$INSTALL'
44767 _ACEOF
44768
44769 cat >>$CONFIG_STATUS <<\_ACEOF
44770 # If no file are specified by the user, then we need to provide default
44771 # value.  By we need to know if files were specified by the user.
44772 ac_need_defaults=:
44773 while test $# != 0
44774 do
44775   case $1 in
44776   --*=*)
44777     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44778     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44779     ac_shift=:
44780     ;;
44781   *)
44782     ac_option=$1
44783     ac_optarg=$2
44784     ac_shift=shift
44785     ;;
44786   esac
44787
44788   case $ac_option in
44789   # Handling of the options.
44790   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44791     ac_cs_recheck=: ;;
44792   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44793     echo "$ac_cs_version"; exit ;;
44794   --debug | --debu | --deb | --de | --d | -d )
44795     debug=: ;;
44796   --file | --fil | --fi | --f )
44797     $ac_shift
44798     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44799     ac_need_defaults=false;;
44800   --header | --heade | --head | --hea )
44801     $ac_shift
44802     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44803     ac_need_defaults=false;;
44804   --he | --h)
44805     # Conflict between --help and --header
44806     { echo "$as_me: error: ambiguous option: $1
44807 Try \`$0 --help' for more information." >&2
44808    { (exit 1); exit 1; }; };;
44809   --help | --hel | -h )
44810     echo "$ac_cs_usage"; exit ;;
44811   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44812   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44813     ac_cs_silent=: ;;
44814
44815   # This is an error.
44816   -*) { echo "$as_me: error: unrecognized option: $1
44817 Try \`$0 --help' for more information." >&2
44818    { (exit 1); exit 1; }; } ;;
44819
44820   *) ac_config_targets="$ac_config_targets $1"
44821      ac_need_defaults=false ;;
44822
44823   esac
44824   shift
44825 done
44826
44827 ac_configure_extra_args=
44828
44829 if $ac_cs_silent; then
44830   exec 6>/dev/null
44831   ac_configure_extra_args="$ac_configure_extra_args --silent"
44832 fi
44833
44834 _ACEOF
44835 cat >>$CONFIG_STATUS <<_ACEOF
44836 if \$ac_cs_recheck; then
44837   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44838   CONFIG_SHELL=$SHELL
44839   export CONFIG_SHELL
44840   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44841 fi
44842
44843 _ACEOF
44844 cat >>$CONFIG_STATUS <<\_ACEOF
44845 exec 5>>config.log
44846 {
44847   echo
44848   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44849 ## Running $as_me. ##
44850 _ASBOX
44851   echo "$ac_log"
44852 } >&5
44853
44854 _ACEOF
44855 cat >>$CONFIG_STATUS <<_ACEOF
44856 #
44857 # INIT-COMMANDS
44858 #
44859
44860
44861 # The HP-UX ksh and POSIX shell print the target directory to stdout
44862 # if CDPATH is set.
44863 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44864
44865 sed_quote_subst='$sed_quote_subst'
44866 double_quote_subst='$double_quote_subst'
44867 delay_variable_subst='$delay_variable_subst'
44868 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44869 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44870 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44871 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44872 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44873 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44874 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44875 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44876 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44877 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44878 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44879 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44880 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44881 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44882 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44883 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44884 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44885 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44886 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44887 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44888 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44889 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44890 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44891 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44892 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44893 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44894 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44895 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44896 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44897 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44898 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44899 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44900 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44901 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44902 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44903 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44904 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44905 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44906 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44907 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44908 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44909 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44910 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44911 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44912 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"`'
44913 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"`'
44914 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44915 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44916 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44917 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44918 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44919 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44920 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44921 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44922 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44923 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44924 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44925 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44926 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44927 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44928 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44929 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44930 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44931 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44932 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44933 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44934 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44935 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44936 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44937 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44938 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44939 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44940 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44941 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44942 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44943 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44944 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44945 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44946 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44947 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44948 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44949 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44950 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44951 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44952 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44953 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44954 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44955 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44956 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44957 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44958 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44959 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44960 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44961 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44962 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44963 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44964 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44965 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44966 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44967 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44968 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44969 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44970 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44971 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44972 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44973 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44974 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44975 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44976 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44977 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44978 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44979 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44980 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44981 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44982 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44983 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44984 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44985 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44986 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44987 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44988 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44989 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44990 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44991 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44992 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44993 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44994 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44995 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44996 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44997 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44998 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44999 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45000 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45001 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45002 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45003 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45004 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45005 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45006 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45007 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45008 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45009 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45010 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45011 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45012 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45013 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45014 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45015 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45016 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45017 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45018 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45019 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45020 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45021 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45022 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45023 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45024 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45025 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45026 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45027 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45028 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45029 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45030 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45031 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45032 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45033 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45034 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45035 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45036 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45037 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45038 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45039
45040 LTCC='$LTCC'
45041 LTCFLAGS='$LTCFLAGS'
45042 compiler='$compiler_DEFAULT'
45043
45044 # Quote evaled strings.
45045 for var in SED \
45046 GREP \
45047 EGREP \
45048 FGREP \
45049 LD \
45050 NM \
45051 LN_S \
45052 lt_SP2NL \
45053 lt_NL2SP \
45054 reload_flag \
45055 OBJDUMP \
45056 deplibs_check_method \
45057 file_magic_cmd \
45058 AR \
45059 AR_FLAGS \
45060 STRIP \
45061 RANLIB \
45062 CC \
45063 CFLAGS \
45064 compiler \
45065 lt_cv_sys_global_symbol_pipe \
45066 lt_cv_sys_global_symbol_to_cdecl \
45067 lt_cv_sys_global_symbol_to_c_name_address \
45068 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45069 SHELL \
45070 ECHO \
45071 lt_prog_compiler_no_builtin_flag \
45072 lt_prog_compiler_wl \
45073 lt_prog_compiler_pic \
45074 lt_prog_compiler_static \
45075 lt_cv_prog_compiler_c_o \
45076 need_locks \
45077 DSYMUTIL \
45078 NMEDIT \
45079 LIPO \
45080 OTOOL \
45081 OTOOL64 \
45082 shrext_cmds \
45083 export_dynamic_flag_spec \
45084 whole_archive_flag_spec \
45085 compiler_needs_object \
45086 with_gnu_ld \
45087 allow_undefined_flag \
45088 no_undefined_flag \
45089 hardcode_libdir_flag_spec \
45090 hardcode_libdir_flag_spec_ld \
45091 hardcode_libdir_separator \
45092 fix_srcfile_path \
45093 exclude_expsyms \
45094 include_expsyms \
45095 file_list_spec \
45096 variables_saved_for_relink \
45097 libname_spec \
45098 library_names_spec \
45099 soname_spec \
45100 finish_eval \
45101 old_striplib \
45102 striplib \
45103 compiler_lib_search_dirs \
45104 predep_objects \
45105 postdep_objects \
45106 predeps \
45107 postdeps \
45108 compiler_lib_search_path \
45109 LD_CXX \
45110 compiler_CXX \
45111 lt_prog_compiler_no_builtin_flag_CXX \
45112 lt_prog_compiler_wl_CXX \
45113 lt_prog_compiler_pic_CXX \
45114 lt_prog_compiler_static_CXX \
45115 lt_cv_prog_compiler_c_o_CXX \
45116 export_dynamic_flag_spec_CXX \
45117 whole_archive_flag_spec_CXX \
45118 compiler_needs_object_CXX \
45119 with_gnu_ld_CXX \
45120 allow_undefined_flag_CXX \
45121 no_undefined_flag_CXX \
45122 hardcode_libdir_flag_spec_CXX \
45123 hardcode_libdir_flag_spec_ld_CXX \
45124 hardcode_libdir_separator_CXX \
45125 fix_srcfile_path_CXX \
45126 exclude_expsyms_CXX \
45127 include_expsyms_CXX \
45128 file_list_spec_CXX \
45129 compiler_lib_search_dirs_CXX \
45130 predep_objects_CXX \
45131 postdep_objects_CXX \
45132 predeps_CXX \
45133 postdeps_CXX \
45134 compiler_lib_search_path_CXX; do
45135     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45136     *[\\\\\\\`\\"\\\$]*)
45137       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45138       ;;
45139     *)
45140       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45141       ;;
45142     esac
45143 done
45144
45145 # Double-quote double-evaled strings.
45146 for var in reload_cmds \
45147 old_postinstall_cmds \
45148 old_postuninstall_cmds \
45149 old_archive_cmds \
45150 extract_expsyms_cmds \
45151 old_archive_from_new_cmds \
45152 old_archive_from_expsyms_cmds \
45153 archive_cmds \
45154 archive_expsym_cmds \
45155 module_cmds \
45156 module_expsym_cmds \
45157 export_symbols_cmds \
45158 prelink_cmds \
45159 postinstall_cmds \
45160 postuninstall_cmds \
45161 finish_cmds \
45162 sys_lib_search_path_spec \
45163 sys_lib_dlsearch_path_spec \
45164 old_archive_cmds_CXX \
45165 old_archive_from_new_cmds_CXX \
45166 old_archive_from_expsyms_cmds_CXX \
45167 archive_cmds_CXX \
45168 archive_expsym_cmds_CXX \
45169 module_cmds_CXX \
45170 module_expsym_cmds_CXX \
45171 export_symbols_cmds_CXX \
45172 prelink_cmds_CXX; do
45173     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45174     *[\\\\\\\`\\"\\\$]*)
45175       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45176       ;;
45177     *)
45178       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45179       ;;
45180     esac
45181 done
45182
45183 # Fix-up fallback echo if it was mangled by the above quoting rules.
45184 case \$lt_ECHO in
45185 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45186   ;;
45187 esac
45188
45189 ac_aux_dir='$ac_aux_dir'
45190 xsi_shell='$xsi_shell'
45191 lt_shell_append='$lt_shell_append'
45192
45193 # See if we are running on zsh, and set the options which allow our
45194 # commands through without removal of \ escapes INIT.
45195 if test -n "\${ZSH_VERSION+set}" ; then
45196    setopt NO_GLOB_SUBST
45197 fi
45198
45199
45200     PACKAGE='$PACKAGE'
45201     VERSION='$VERSION'
45202     TIMESTAMP='$TIMESTAMP'
45203     RM='$RM'
45204     ofile='$ofile'
45205
45206
45207
45208
45209
45210 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45211     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45212     # from automake.
45213     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45214     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45215     LINGUAS="${LINGUAS-%UNSET%}"
45216
45217
45218 _ACEOF
45219
45220 cat >>$CONFIG_STATUS <<\_ACEOF
45221
45222 # Handling of arguments.
45223 for ac_config_target in $ac_config_targets
45224 do
45225   case $ac_config_target in
45226     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45227     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45228     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45229     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45230     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45231     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45232     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45233     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45234     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45235     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45236     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45237     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45238     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45239     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45240     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45241     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45242     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45243     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45244     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45245     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45246     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45247     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45248     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45249     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45250     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45251     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45252     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45253     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45254     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45255     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45256     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45257     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45258     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45259     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45260     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45261     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45262     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45263     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45264     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45265     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45266     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45267     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45268     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45269     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45270     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45271     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45272     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45273     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45274     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45275     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45276     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45277     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45278     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45279     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45280     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45281     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45282     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45283     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45284     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45285     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45286     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45287     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45288     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45289     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45290     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45291     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45292     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45293     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45294     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45295     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45296     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45297     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45298     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45299     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45300     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45301     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45302     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45303     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45304     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45305     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45306     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45307     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45308     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45309     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45310     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45311     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45312     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45313     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45314     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45315     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45316     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45317     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45318     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45319     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45320     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45321     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45322     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45323     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45324     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45325     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45326     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45327     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45328     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45329     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45330     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45331     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45332     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45333     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45334     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45335     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45336     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45337     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45338     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45339     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45340     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45341     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45342     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45343     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45344
45345   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45347    { (exit 1); exit 1; }; };;
45348   esac
45349 done
45350
45351
45352 # If the user did not use the arguments to specify the items to instantiate,
45353 # then the envvar interface is used.  Set only those that are not.
45354 # We use the long form for the default assignment because of an extremely
45355 # bizarre bug on SunOS 4.1.3.
45356 if $ac_need_defaults; then
45357   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45358   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45359   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45360 fi
45361
45362 # Have a temporary directory for convenience.  Make it in the build tree
45363 # simply because there is no reason against having it here, and in addition,
45364 # creating and moving files from /tmp can sometimes cause problems.
45365 # Hook for its removal unless debugging.
45366 # Note that there is a small window in which the directory will not be cleaned:
45367 # after its creation but before its name has been assigned to `$tmp'.
45368 $debug ||
45369 {
45370   tmp=
45371   trap 'exit_status=$?
45372   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45373 ' 0
45374   trap '{ (exit 1); exit 1; }' 1 2 13 15
45375 }
45376 # Create a (secure) tmp directory for tmp files.
45377
45378 {
45379   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45380   test -n "$tmp" && test -d "$tmp"
45381 }  ||
45382 {
45383   tmp=./conf$$-$RANDOM
45384   (umask 077 && mkdir "$tmp")
45385 } ||
45386 {
45387    echo "$me: cannot create a temporary directory in ." >&2
45388    { (exit 1); exit 1; }
45389 }
45390
45391 #
45392 # Set up the sed scripts for CONFIG_FILES section.
45393 #
45394
45395 # No need to generate the scripts if there are no CONFIG_FILES.
45396 # This happens for instance when ./config.status config.h
45397 if test -n "$CONFIG_FILES"; then
45398
45399 _ACEOF
45400
45401 # Create sed commands to just substitute file output variables.
45402
45403 # Remaining file output variables are in a fragment that also has non-file
45404 # output varibles.
45405
45406
45407
45408 ac_delim='%!_!# '
45409 for ac_last_try in false false false false false :; do
45410   cat >conf$$subs.sed <<_ACEOF
45411 SHELL!$SHELL$ac_delim
45412 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45413 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45414 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45415 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45416 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45417 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45418 exec_prefix!$exec_prefix$ac_delim
45419 prefix!$prefix$ac_delim
45420 program_transform_name!$program_transform_name$ac_delim
45421 bindir!$bindir$ac_delim
45422 sbindir!$sbindir$ac_delim
45423 libexecdir!$libexecdir$ac_delim
45424 datarootdir!$datarootdir$ac_delim
45425 datadir!$datadir$ac_delim
45426 sysconfdir!$sysconfdir$ac_delim
45427 sharedstatedir!$sharedstatedir$ac_delim
45428 localstatedir!$localstatedir$ac_delim
45429 includedir!$includedir$ac_delim
45430 oldincludedir!$oldincludedir$ac_delim
45431 docdir!$docdir$ac_delim
45432 infodir!$infodir$ac_delim
45433 htmldir!$htmldir$ac_delim
45434 dvidir!$dvidir$ac_delim
45435 pdfdir!$pdfdir$ac_delim
45436 psdir!$psdir$ac_delim
45437 libdir!$libdir$ac_delim
45438 localedir!$localedir$ac_delim
45439 mandir!$mandir$ac_delim
45440 DEFS!$DEFS$ac_delim
45441 ECHO_C!$ECHO_C$ac_delim
45442 ECHO_N!$ECHO_N$ac_delim
45443 ECHO_T!$ECHO_T$ac_delim
45444 LIBS!$LIBS$ac_delim
45445 build_alias!$build_alias$ac_delim
45446 host_alias!$host_alias$ac_delim
45447 target_alias!$target_alias$ac_delim
45448 BUILD_DIR!$BUILD_DIR$ac_delim
45449 TOP_DIR!$TOP_DIR$ac_delim
45450 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45451 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45452 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45453 TRUEPRG!$TRUEPRG$ac_delim
45454 FALSEPRG!$FALSEPRG$ac_delim
45455 VERSION!$VERSION$ac_delim
45456 DATE!$DATE$ac_delim
45457 LSMDATE!$LSMDATE$ac_delim
45458 BACULA!$BACULA$ac_delim
45459 post_host!$post_host$ac_delim
45460 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45461 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45462 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45463 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45464 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45465 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45466 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45467 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45468 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45469 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45470 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45471 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45472 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45473 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45474 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45475 CC!$CC$ac_delim
45476 CFLAGS!$CFLAGS$ac_delim
45477 LDFLAGS!$LDFLAGS$ac_delim
45478 CPPFLAGS!$CPPFLAGS$ac_delim
45479 ac_ct_CC!$ac_ct_CC$ac_delim
45480 EXEEXT!$EXEEXT$ac_delim
45481 OBJEXT!$OBJEXT$ac_delim
45482 CXX!$CXX$ac_delim
45483 CXXFLAGS!$CXXFLAGS$ac_delim
45484 ac_ct_CXX!$ac_ct_CXX$ac_delim
45485 CPP!$CPP$ac_delim
45486 GREP!$GREP$ac_delim
45487 EGREP!$EGREP$ac_delim
45488 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45489 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45490 INSTALL_DATA!$INSTALL_DATA$ac_delim
45491 MV!$MV$ac_delim
45492 REMOVE!$REMOVE$ac_delim
45493 CP!$CP$ac_delim
45494 SED!$SED$ac_delim
45495 ECHO!$ECHO$ac_delim
45496 CMP!$CMP$ac_delim
45497 TBL!$TBL$ac_delim
45498 AR!$AR$ac_delim
45499 OPENSSL!$OPENSSL$ac_delim
45500 MTX!$MTX$ac_delim
45501 DD!$DD$ac_delim
45502 MKISOFS!$MKISOFS$ac_delim
45503 PYTHON!$PYTHON$ac_delim
45504 GROWISOFS!$GROWISOFS$ac_delim
45505 _ACEOF
45506
45507   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45508     break
45509   elif $ac_last_try; then
45510     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45511 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45512    { (exit 1); exit 1; }; }
45513   else
45514     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45515   fi
45516 done
45517
45518 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45519 if test -n "$ac_eof"; then
45520   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45521   ac_eof=`expr $ac_eof + 1`
45522 fi
45523
45524 cat >>$CONFIG_STATUS <<_ACEOF
45525 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45527 /^[      ]*@MCOMMON@[    ]*$/{
45528 r $MCOMMON
45529 d
45530 }
45531 _ACEOF
45532 sed '
45533 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45534 s/^/s,@/; s/!/@,|#_!!_#|/
45535 :n
45536 t n
45537 s/'"$ac_delim"'$/,g/; t
45538 s/$/\\/; p
45539 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45540 ' >>$CONFIG_STATUS <conf$$subs.sed
45541 rm -f conf$$subs.sed
45542 cat >>$CONFIG_STATUS <<_ACEOF
45543 CEOF$ac_eof
45544 _ACEOF
45545
45546
45547 ac_delim='%!_!# '
45548 for ac_last_try in false false false false false :; do
45549   cat >conf$$subs.sed <<_ACEOF
45550 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45551 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45552 PKGCONFIG!$PKGCONFIG$ac_delim
45553 QMAKE!$QMAKE$ac_delim
45554 GMAKE!$GMAKE$ac_delim
45555 WXCONFIG!$WXCONFIG$ac_delim
45556 WXFLAGS!$WXFLAGS$ac_delim
45557 CDRECORD!$CDRECORD$ac_delim
45558 PIDOF!$PIDOF$ac_delim
45559 AWK!$AWK$ac_delim
45560 ARFLAGS!$ARFLAGS$ac_delim
45561 MAKE_SHELL!$MAKE_SHELL$ac_delim
45562 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45563 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45564 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45565 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45566 LIBTOOL!$LIBTOOL$ac_delim
45567 build!$build$ac_delim
45568 build_cpu!$build_cpu$ac_delim
45569 build_vendor!$build_vendor$ac_delim
45570 build_os!$build_os$ac_delim
45571 host!$host$ac_delim
45572 host_cpu!$host_cpu$ac_delim
45573 host_vendor!$host_vendor$ac_delim
45574 host_os!$host_os$ac_delim
45575 FGREP!$FGREP$ac_delim
45576 LD!$LD$ac_delim
45577 DUMPBIN!$DUMPBIN$ac_delim
45578 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45579 NM!$NM$ac_delim
45580 LN_S!$LN_S$ac_delim
45581 OBJDUMP!$OBJDUMP$ac_delim
45582 STRIP!$STRIP$ac_delim
45583 RANLIB!$RANLIB$ac_delim
45584 lt_ECHO!$lt_ECHO$ac_delim
45585 DSYMUTIL!$DSYMUTIL$ac_delim
45586 NMEDIT!$NMEDIT$ac_delim
45587 LIPO!$LIPO$ac_delim
45588 OTOOL!$OTOOL$ac_delim
45589 OTOOL64!$OTOOL64$ac_delim
45590 CXXCPP!$CXXCPP$ac_delim
45591 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45592 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45593 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45594 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45595 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45596 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45597 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45598 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45599 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45600 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45601 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45602 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45603 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45604 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45605 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45606 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45607 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45608 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45609 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45610 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45611 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45612 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45613 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45614 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45615 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45616 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45617 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45618 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45619 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45620 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45621 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45622 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45623 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45624 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45625 SET_MAKE!$SET_MAKE$ac_delim
45626 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45627 USE_NLS!$USE_NLS$ac_delim
45628 MSGFMT!$MSGFMT$ac_delim
45629 GMSGFMT!$GMSGFMT$ac_delim
45630 XGETTEXT!$XGETTEXT$ac_delim
45631 MSGMERGE!$MSGMERGE$ac_delim
45632 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45633 LIBICONV!$LIBICONV$ac_delim
45634 LTLIBICONV!$LTLIBICONV$ac_delim
45635 INTLLIBS!$INTLLIBS$ac_delim
45636 LIBINTL!$LIBINTL$ac_delim
45637 LTLIBINTL!$LTLIBINTL$ac_delim
45638 POSUB!$POSUB$ac_delim
45639 GLIBC2!$GLIBC2$ac_delim
45640 ALLOCA!$ALLOCA$ac_delim
45641 GLIBC21!$GLIBC21$ac_delim
45642 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45643 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45644 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45645 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45646 INTLBISON!$INTLBISON$ac_delim
45647 _ACEOF
45648
45649   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45650     break
45651   elif $ac_last_try; then
45652     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45654    { (exit 1); exit 1; }; }
45655   else
45656     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45657   fi
45658 done
45659
45660 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45661 if test -n "$ac_eof"; then
45662   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45663   ac_eof=`expr $ac_eof + 1`
45664 fi
45665
45666 cat >>$CONFIG_STATUS <<_ACEOF
45667 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45669 _ACEOF
45670 sed '
45671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45672 s/^/s,@/; s/!/@,|#_!!_#|/
45673 :n
45674 t n
45675 s/'"$ac_delim"'$/,g/; t
45676 s/$/\\/; p
45677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45678 ' >>$CONFIG_STATUS <conf$$subs.sed
45679 rm -f conf$$subs.sed
45680 cat >>$CONFIG_STATUS <<_ACEOF
45681 CEOF$ac_eof
45682 _ACEOF
45683
45684
45685 ac_delim='%!_!# '
45686 for ac_last_try in false false false false false :; do
45687   cat >conf$$subs.sed <<_ACEOF
45688 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45689 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45690 CATOBJEXT!$CATOBJEXT$ac_delim
45691 DATADIRNAME!$DATADIRNAME$ac_delim
45692 INSTOBJEXT!$INSTOBJEXT$ac_delim
45693 GENCAT!$GENCAT$ac_delim
45694 INTLOBJS!$INTLOBJS$ac_delim
45695 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45696 BAT_DIR!$BAT_DIR$ac_delim
45697 QWT_INC!$QWT_INC$ac_delim
45698 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45699 QWT_LIB!$QWT_LIB$ac_delim
45700 QWT!$QWT$ac_delim
45701 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45702 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45703 WX_DIR!$WX_DIR$ac_delim
45704 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45705 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45706 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45707 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45708 STATIC_FD!$STATIC_FD$ac_delim
45709 STATIC_SD!$STATIC_SD$ac_delim
45710 STATIC_DIR!$STATIC_DIR$ac_delim
45711 STATIC_CONS!$STATIC_CONS$ac_delim
45712 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45713 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45714 ALL_DIRS!$ALL_DIRS$ac_delim
45715 DIRD_DIR!$DIRD_DIR$ac_delim
45716 DIR_TOOLS!$DIR_TOOLS$ac_delim
45717 STORED_DIR!$STORED_DIR$ac_delim
45718 CONS_INC!$CONS_INC$ac_delim
45719 CONS_OBJ!$CONS_OBJ$ac_delim
45720 CONS_SRC!$CONS_SRC$ac_delim
45721 CONS_LIBS!$CONS_LIBS$ac_delim
45722 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45723 READLINE_SRC!$READLINE_SRC$ac_delim
45724 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45725 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45726 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45727 OPENSSL_INC!$OPENSSL_INC$ac_delim
45728 working_dir!$working_dir$ac_delim
45729 archivedir!$archivedir$ac_delim
45730 basename!$basename$ac_delim
45731 hostname!$hostname$ac_delim
45732 scriptdir!$scriptdir$ac_delim
45733 bsrdir!$bsrdir$ac_delim
45734 logdir!$logdir$ac_delim
45735 plugindir!$plugindir$ac_delim
45736 dump_email!$dump_email$ac_delim
45737 job_email!$job_email$ac_delim
45738 smtp_host!$smtp_host$ac_delim
45739 piddir!$piddir$ac_delim
45740 subsysdir!$subsysdir$ac_delim
45741 baseport!$baseport$ac_delim
45742 dir_port!$dir_port$ac_delim
45743 fd_port!$fd_port$ac_delim
45744 sd_port!$sd_port$ac_delim
45745 dir_password!$dir_password$ac_delim
45746 fd_password!$fd_password$ac_delim
45747 sd_password!$sd_password$ac_delim
45748 mon_dir_password!$mon_dir_password$ac_delim
45749 mon_fd_password!$mon_fd_password$ac_delim
45750 mon_sd_password!$mon_sd_password$ac_delim
45751 db_name!$db_name$ac_delim
45752 db_user!$db_user$ac_delim
45753 db_password!$db_password$ac_delim
45754 db_port!$db_port$ac_delim
45755 dir_user!$dir_user$ac_delim
45756 dir_group!$dir_group$ac_delim
45757 sd_user!$sd_user$ac_delim
45758 sd_group!$sd_group$ac_delim
45759 fd_user!$fd_user$ac_delim
45760 fd_group!$fd_group$ac_delim
45761 SBINPERM!$SBINPERM$ac_delim
45762 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45763 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45764 SQL_BINDIR!$SQL_BINDIR$ac_delim
45765 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45766 uncomment_dbi!$uncomment_dbi$ac_delim
45767 DB_PROG!$DB_PROG$ac_delim
45768 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45769 cats!$cats$ac_delim
45770 DB_TYPE!$DB_TYPE$ac_delim
45771 GETCONF!$GETCONF$ac_delim
45772 XMKMF!$XMKMF$ac_delim
45773 X_CFLAGS!$X_CFLAGS$ac_delim
45774 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45775 X_LIBS!$X_LIBS$ac_delim
45776 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45777 LIBOBJS!$LIBOBJS$ac_delim
45778 CAP_LIBS!$CAP_LIBS$ac_delim
45779 FDLIBS!$FDLIBS$ac_delim
45780 DEBUG!$DEBUG$ac_delim
45781 DINCLUDE!$DINCLUDE$ac_delim
45782 DLIB!$DLIB$ac_delim
45783 DB_LIBS!$DB_LIBS$ac_delim
45784 WCFLAGS!$WCFLAGS$ac_delim
45785 _ACEOF
45786
45787   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45788     break
45789   elif $ac_last_try; then
45790     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45791 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45792    { (exit 1); exit 1; }; }
45793   else
45794     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45795   fi
45796 done
45797
45798 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45799 if test -n "$ac_eof"; then
45800   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45801   ac_eof=`expr $ac_eof + 1`
45802 fi
45803
45804 cat >>$CONFIG_STATUS <<_ACEOF
45805 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45807 _ACEOF
45808 sed '
45809 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45810 s/^/s,@/; s/!/@,|#_!!_#|/
45811 :n
45812 t n
45813 s/'"$ac_delim"'$/,g/; t
45814 s/$/\\/; p
45815 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45816 ' >>$CONFIG_STATUS <conf$$subs.sed
45817 rm -f conf$$subs.sed
45818 cat >>$CONFIG_STATUS <<_ACEOF
45819 CEOF$ac_eof
45820 _ACEOF
45821
45822
45823 ac_delim='%!_!# '
45824 for ac_last_try in false false false false false :; do
45825   cat >conf$$subs.sed <<_ACEOF
45826 WLDFLAGS!$WLDFLAGS$ac_delim
45827 WRAPLIBS!$WRAPLIBS$ac_delim
45828 OBJLIST!$OBJLIST$ac_delim
45829 TAPEDRIVE!$TAPEDRIVE$ac_delim
45830 PSCMD!$PSCMD$ac_delim
45831 WIN32!$WIN32$ac_delim
45832 MACOSX!$MACOSX$ac_delim
45833 DISTNAME!$DISTNAME$ac_delim
45834 DISTVER!$DISTVER$ac_delim
45835 LTLIBOBJS!$LTLIBOBJS$ac_delim
45836 _ACEOF
45837
45838   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
45839     break
45840   elif $ac_last_try; then
45841     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45843    { (exit 1); exit 1; }; }
45844   else
45845     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45846   fi
45847 done
45848
45849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45850 if test -n "$ac_eof"; then
45851   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45852   ac_eof=`expr $ac_eof + 1`
45853 fi
45854
45855 cat >>$CONFIG_STATUS <<_ACEOF
45856 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
45857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45858 _ACEOF
45859 sed '
45860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45861 s/^/s,@/; s/!/@,|#_!!_#|/
45862 :n
45863 t n
45864 s/'"$ac_delim"'$/,g/; t
45865 s/$/\\/; p
45866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45867 ' >>$CONFIG_STATUS <conf$$subs.sed
45868 rm -f conf$$subs.sed
45869 cat >>$CONFIG_STATUS <<_ACEOF
45870 :end
45871 s/|#_!!_#|//g
45872 CEOF$ac_eof
45873 _ACEOF
45874
45875
45876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45878 # trailing colons and then remove the whole line if VPATH becomes empty
45879 # (actually we leave an empty line to preserve line numbers).
45880 if test "x$srcdir" = x.; then
45881   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45882 s/:*\$(srcdir):*/:/
45883 s/:*\${srcdir}:*/:/
45884 s/:*@srcdir@:*/:/
45885 s/^\([^=]*=[     ]*\):*/\1/
45886 s/:*$//
45887 s/^[^=]*=[       ]*$//
45888 }'
45889 fi
45890
45891 cat >>$CONFIG_STATUS <<\_ACEOF
45892 fi # test -n "$CONFIG_FILES"
45893
45894
45895 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45896 do
45897   case $ac_tag in
45898   :[FHLC]) ac_mode=$ac_tag; continue;;
45899   esac
45900   case $ac_mode$ac_tag in
45901   :[FHL]*:*);;
45902   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45903 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45904    { (exit 1); exit 1; }; };;
45905   :[FH]-) ac_tag=-:-;;
45906   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45907   esac
45908   ac_save_IFS=$IFS
45909   IFS=:
45910   set x $ac_tag
45911   IFS=$ac_save_IFS
45912   shift
45913   ac_file=$1
45914   shift
45915
45916   case $ac_mode in
45917   :L) ac_source=$1;;
45918   :[FH])
45919     ac_file_inputs=
45920     for ac_f
45921     do
45922       case $ac_f in
45923       -) ac_f="$tmp/stdin";;
45924       *) # Look for the file first in the build tree, then in the source tree
45925          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45926          # because $ac_f cannot contain `:'.
45927          test -f "$ac_f" ||
45928            case $ac_f in
45929            [\\/$]*) false;;
45930            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45931            esac ||
45932            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45933 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45934    { (exit 1); exit 1; }; };;
45935       esac
45936       ac_file_inputs="$ac_file_inputs $ac_f"
45937     done
45938
45939     # Let's still pretend it is `configure' which instantiates (i.e., don't
45940     # use $as_me), people would be surprised to read:
45941     #    /* config.h.  Generated by config.status.  */
45942     configure_input="Generated from "`IFS=:
45943           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45944     if test x"$ac_file" != x-; then
45945       configure_input="$ac_file.  $configure_input"
45946       { echo "$as_me:$LINENO: creating $ac_file" >&5
45947 echo "$as_me: creating $ac_file" >&6;}
45948     fi
45949
45950     case $ac_tag in
45951     *:-:* | *:-) cat >"$tmp/stdin";;
45952     esac
45953     ;;
45954   esac
45955
45956   ac_dir=`$as_dirname -- "$ac_file" ||
45957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45958          X"$ac_file" : 'X\(//\)[^/]' \| \
45959          X"$ac_file" : 'X\(//\)$' \| \
45960          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45961 echo X"$ac_file" |
45962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45963             s//\1/
45964             q
45965           }
45966           /^X\(\/\/\)[^/].*/{
45967             s//\1/
45968             q
45969           }
45970           /^X\(\/\/\)$/{
45971             s//\1/
45972             q
45973           }
45974           /^X\(\/\).*/{
45975             s//\1/
45976             q
45977           }
45978           s/.*/./; q'`
45979   { as_dir="$ac_dir"
45980   case $as_dir in #(
45981   -*) as_dir=./$as_dir;;
45982   esac
45983   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45984     as_dirs=
45985     while :; do
45986       case $as_dir in #(
45987       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45988       *) as_qdir=$as_dir;;
45989       esac
45990       as_dirs="'$as_qdir' $as_dirs"
45991       as_dir=`$as_dirname -- "$as_dir" ||
45992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45993          X"$as_dir" : 'X\(//\)[^/]' \| \
45994          X"$as_dir" : 'X\(//\)$' \| \
45995          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45996 echo X"$as_dir" |
45997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45998             s//\1/
45999             q
46000           }
46001           /^X\(\/\/\)[^/].*/{
46002             s//\1/
46003             q
46004           }
46005           /^X\(\/\/\)$/{
46006             s//\1/
46007             q
46008           }
46009           /^X\(\/\).*/{
46010             s//\1/
46011             q
46012           }
46013           s/.*/./; q'`
46014       test -d "$as_dir" && break
46015     done
46016     test -z "$as_dirs" || eval "mkdir $as_dirs"
46017   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46018 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46019    { (exit 1); exit 1; }; }; }
46020   ac_builddir=.
46021
46022 case "$ac_dir" in
46023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46024 *)
46025   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46026   # A ".." for each directory in $ac_dir_suffix.
46027   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46028   case $ac_top_builddir_sub in
46029   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46030   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46031   esac ;;
46032 esac
46033 ac_abs_top_builddir=$ac_pwd
46034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46035 # for backward compatibility:
46036 ac_top_builddir=$ac_top_build_prefix
46037
46038 case $srcdir in
46039   .)  # We are building in place.
46040     ac_srcdir=.
46041     ac_top_srcdir=$ac_top_builddir_sub
46042     ac_abs_top_srcdir=$ac_pwd ;;
46043   [\\/]* | ?:[\\/]* )  # Absolute name.
46044     ac_srcdir=$srcdir$ac_dir_suffix;
46045     ac_top_srcdir=$srcdir
46046     ac_abs_top_srcdir=$srcdir ;;
46047   *) # Relative name.
46048     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46049     ac_top_srcdir=$ac_top_build_prefix$srcdir
46050     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46051 esac
46052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46053
46054
46055   case $ac_mode in
46056   :F)
46057   #
46058   # CONFIG_FILE
46059   #
46060
46061   case $INSTALL in
46062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46063   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46064   esac
46065 _ACEOF
46066
46067 cat >>$CONFIG_STATUS <<\_ACEOF
46068 # If the template does not know about datarootdir, expand it.
46069 # FIXME: This hack should be removed a few years after 2.60.
46070 ac_datarootdir_hack=; ac_datarootdir_seen=
46071
46072 case `sed -n '/datarootdir/ {
46073   p
46074   q
46075 }
46076 /@datadir@/p
46077 /@docdir@/p
46078 /@infodir@/p
46079 /@localedir@/p
46080 /@mandir@/p
46081 ' $ac_file_inputs` in
46082 *datarootdir*) ac_datarootdir_seen=yes;;
46083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46084   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46085 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46086 _ACEOF
46087 cat >>$CONFIG_STATUS <<_ACEOF
46088   ac_datarootdir_hack='
46089   s&@datadir@&$datadir&g
46090   s&@docdir@&$docdir&g
46091   s&@infodir@&$infodir&g
46092   s&@localedir@&$localedir&g
46093   s&@mandir@&$mandir&g
46094     s&\\\${datarootdir}&$datarootdir&g' ;;
46095 esac
46096 _ACEOF
46097
46098 # Neutralize VPATH when `$srcdir' = `.'.
46099 # Shell code in configure.ac might set extrasub.
46100 # FIXME: do we really want to maintain this feature?
46101 cat >>$CONFIG_STATUS <<_ACEOF
46102   sed "$ac_vpsub
46103 $extrasub
46104 _ACEOF
46105 cat >>$CONFIG_STATUS <<\_ACEOF
46106 :t
46107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46108 s&@configure_input@&$configure_input&;t t
46109 s&@top_builddir@&$ac_top_builddir_sub&;t t
46110 s&@srcdir@&$ac_srcdir&;t t
46111 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46112 s&@top_srcdir@&$ac_top_srcdir&;t t
46113 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46114 s&@builddir@&$ac_builddir&;t t
46115 s&@abs_builddir@&$ac_abs_builddir&;t t
46116 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46117 s&@INSTALL@&$ac_INSTALL&;t t
46118 $ac_datarootdir_hack
46119 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
46120
46121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46122   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46123   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46124   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46125 which seems to be undefined.  Please make sure it is defined." >&5
46126 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46127 which seems to be undefined.  Please make sure it is defined." >&2;}
46128
46129   rm -f "$tmp/stdin"
46130   case $ac_file in
46131   -) cat "$tmp/out"; rm -f "$tmp/out";;
46132   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46133   esac
46134  ;;
46135   :H)
46136   #
46137   # CONFIG_HEADER
46138   #
46139 _ACEOF
46140
46141 # Transform confdefs.h into a sed script `conftest.defines', that
46142 # substitutes the proper values into config.h.in to produce config.h.
46143 rm -f conftest.defines conftest.tail
46144 # First, append a space to every undef/define line, to ease matching.
46145 echo 's/$/ /' >conftest.defines
46146 # Then, protect against being on the right side of a sed subst, or in
46147 # an unquoted here document, in config.status.  If some macros were
46148 # called several times there might be several #defines for the same
46149 # symbol, which is useless.  But do not sort them, since the last
46150 # AC_DEFINE must be honored.
46151 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46152 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46153 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46154 # PARAMS is the parameter list in the macro definition--in most cases, it's
46155 # just an empty string.
46156 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46157 ac_dB='\\)[      (].*,\\1define\\2'
46158 ac_dC=' '
46159 ac_dD=' ,'
46160
46161 uniq confdefs.h |
46162   sed -n '
46163         t rset
46164         :rset
46165         s/^[     ]*#[    ]*define[       ][      ]*//
46166         t ok
46167         d
46168         :ok
46169         s/[\\&,]/\\&/g
46170         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46171         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46172   ' >>conftest.defines
46173
46174 # Remove the space that was appended to ease matching.
46175 # Then replace #undef with comments.  This is necessary, for
46176 # example, in the case of _POSIX_SOURCE, which is predefined and required
46177 # on some systems where configure will not decide to define it.
46178 # (The regexp can be short, since the line contains either #define or #undef.)
46179 echo 's/ $//
46180 s,^[     #]*u.*,/* & */,' >>conftest.defines
46181
46182 # Break up conftest.defines:
46183 ac_max_sed_lines=50
46184
46185 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46186 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46187 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46188 # et cetera.
46189 ac_in='$ac_file_inputs'
46190 ac_out='"$tmp/out1"'
46191 ac_nxt='"$tmp/out2"'
46192
46193 while :
46194 do
46195   # Write a here document:
46196     cat >>$CONFIG_STATUS <<_ACEOF
46197     # First, check the format of the line:
46198     cat >"\$tmp/defines.sed" <<\\CEOF
46199 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46200 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46201 b
46202 :def
46203 _ACEOF
46204   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46205   echo 'CEOF
46206     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46207   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46208   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46209   grep . conftest.tail >/dev/null || break
46210   rm -f conftest.defines
46211   mv conftest.tail conftest.defines
46212 done
46213 rm -f conftest.defines conftest.tail
46214
46215 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46216 cat >>$CONFIG_STATUS <<\_ACEOF
46217   if test x"$ac_file" != x-; then
46218     echo "/* $configure_input  */" >"$tmp/config.h"
46219     cat "$ac_result" >>"$tmp/config.h"
46220     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46221       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46222 echo "$as_me: $ac_file is unchanged" >&6;}
46223     else
46224       rm -f $ac_file
46225       mv "$tmp/config.h" $ac_file
46226     fi
46227   else
46228     echo "/* $configure_input  */"
46229     cat "$ac_result"
46230   fi
46231   rm -f "$tmp/out12"
46232  ;;
46233
46234   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46235 echo "$as_me: executing $ac_file commands" >&6;}
46236  ;;
46237   esac
46238
46239
46240   case $ac_file$ac_mode in
46241     "libtool":C)
46242
46243     # See if we are running on zsh, and set the options which allow our
46244     # commands through without removal of \ escapes.
46245     if test -n "${ZSH_VERSION+set}" ; then
46246       setopt NO_GLOB_SUBST
46247     fi
46248
46249     cfgfile="${ofile}T"
46250     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46251     $RM "$cfgfile"
46252
46253     cat <<_LT_EOF >> "$cfgfile"
46254 #! $SHELL
46255
46256 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46257 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46260 #
46261 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46262 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46263 #   Written by Gordon Matzigkeit, 1996
46264 #
46265 #   This file is part of GNU Libtool.
46266 #
46267 # GNU Libtool is free software; you can redistribute it and/or
46268 # modify it under the terms of the GNU General Public License as
46269 # published by the Free Software Foundation; either version 2 of
46270 # the License, or (at your option) any later version.
46271 #
46272 # As a special exception to the GNU General Public License,
46273 # if you distribute this file as part of a program or library that
46274 # is built using GNU Libtool, you may include this file under the
46275 # same distribution terms that you use for the rest of that program.
46276 #
46277 # GNU Libtool is distributed in the hope that it will be useful,
46278 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46280 # GNU General Public License for more details.
46281 #
46282 # You should have received a copy of the GNU General Public License
46283 # along with GNU Libtool; see the file COPYING.  If not, a copy
46284 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46285 # obtained by writing to the Free Software Foundation, Inc.,
46286 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46287
46288
46289 # The names of the tagged configurations supported by this script.
46290 available_tags="CXX "
46291
46292 # ### BEGIN LIBTOOL CONFIG
46293
46294 # Which release of libtool.m4 was used?
46295 macro_version=$macro_version
46296 macro_revision=$macro_revision
46297
46298 # Whether or not to build shared libraries.
46299 build_libtool_libs=$enable_shared
46300
46301 # Whether or not to build static libraries.
46302 build_old_libs=$enable_static
46303
46304 # What type of objects to build.
46305 pic_mode=$pic_mode
46306
46307 # Whether or not to optimize for fast installation.
46308 fast_install=$enable_fast_install
46309
46310 # The host system.
46311 host_alias=$host_alias
46312 host=$host
46313 host_os=$host_os
46314
46315 # The build system.
46316 build_alias=$build_alias
46317 build=$build
46318 build_os=$build_os
46319
46320 # A sed program that does not truncate output.
46321 SED=$lt_SED
46322
46323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46324 Xsed="\$SED -e 1s/^X//"
46325
46326 # A grep program that handles long lines.
46327 GREP=$lt_GREP
46328
46329 # An ERE matcher.
46330 EGREP=$lt_EGREP
46331
46332 # A literal string matcher.
46333 FGREP=$lt_FGREP
46334
46335 # A BSD- or MS-compatible name lister.
46336 NM=$lt_NM
46337
46338 # Whether we need soft or hard links.
46339 LN_S=$lt_LN_S
46340
46341 # What is the maximum length of a command?
46342 max_cmd_len=$max_cmd_len
46343
46344 # Object file suffix (normally "o").
46345 objext=$ac_objext
46346
46347 # Executable file suffix (normally "").
46348 exeext=$exeext
46349
46350 # whether the shell understands "unset".
46351 lt_unset=$lt_unset
46352
46353 # turn spaces into newlines.
46354 SP2NL=$lt_lt_SP2NL
46355
46356 # turn newlines into spaces.
46357 NL2SP=$lt_lt_NL2SP
46358
46359 # How to create reloadable object files.
46360 reload_flag=$lt_reload_flag
46361 reload_cmds=$lt_reload_cmds
46362
46363 # An object symbol dumper.
46364 OBJDUMP=$lt_OBJDUMP
46365
46366 # Method to check whether dependent libraries are shared objects.
46367 deplibs_check_method=$lt_deplibs_check_method
46368
46369 # Command to use when deplibs_check_method == "file_magic".
46370 file_magic_cmd=$lt_file_magic_cmd
46371
46372 # The archiver.
46373 AR=$lt_AR
46374 AR_FLAGS=$lt_AR_FLAGS
46375
46376 # A symbol stripping program.
46377 STRIP=$lt_STRIP
46378
46379 # Commands used to install an old-style archive.
46380 RANLIB=$lt_RANLIB
46381 old_postinstall_cmds=$lt_old_postinstall_cmds
46382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46383
46384 # A C compiler.
46385 LTCC=$lt_CC
46386
46387 # LTCC compiler flags.
46388 LTCFLAGS=$lt_CFLAGS
46389
46390 # Take the output of nm and produce a listing of raw symbols and C names.
46391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46392
46393 # Transform the output of nm in a proper C declaration.
46394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46395
46396 # Transform the output of nm in a C name address pair.
46397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46398
46399 # Transform the output of nm in a C name address pair when lib prefix is needed.
46400 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46401
46402 # The name of the directory that contains temporary libtool files.
46403 objdir=$objdir
46404
46405 # Shell to use when invoking shell scripts.
46406 SHELL=$lt_SHELL
46407
46408 # An echo program that does not interpret backslashes.
46409 ECHO=$lt_ECHO
46410
46411 # Used to examine libraries when file_magic_cmd begins with "file".
46412 MAGIC_CMD=$MAGIC_CMD
46413
46414 # Must we lock files when doing compilation?
46415 need_locks=$lt_need_locks
46416
46417 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46418 DSYMUTIL=$lt_DSYMUTIL
46419
46420 # Tool to change global to local symbols on Mac OS X.
46421 NMEDIT=$lt_NMEDIT
46422
46423 # Tool to manipulate fat objects and archives on Mac OS X.
46424 LIPO=$lt_LIPO
46425
46426 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46427 OTOOL=$lt_OTOOL
46428
46429 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46430 OTOOL64=$lt_OTOOL64
46431
46432 # Old archive suffix (normally "a").
46433 libext=$libext
46434
46435 # Shared library suffix (normally ".so").
46436 shrext_cmds=$lt_shrext_cmds
46437
46438 # The commands to extract the exported symbol list from a shared archive.
46439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46440
46441 # Variables whose values should be saved in libtool wrapper scripts and
46442 # restored at link time.
46443 variables_saved_for_relink=$lt_variables_saved_for_relink
46444
46445 # Do we need the "lib" prefix for modules?
46446 need_lib_prefix=$need_lib_prefix
46447
46448 # Do we need a version for libraries?
46449 need_version=$need_version
46450
46451 # Library versioning type.
46452 version_type=$version_type
46453
46454 # Shared library runtime path variable.
46455 runpath_var=$runpath_var
46456
46457 # Shared library path variable.
46458 shlibpath_var=$shlibpath_var
46459
46460 # Is shlibpath searched before the hard-coded library search path?
46461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46462
46463 # Format of library name prefix.
46464 libname_spec=$lt_libname_spec
46465
46466 # List of archive names.  First name is the real one, the rest are links.
46467 # The last name is the one that the linker finds with -lNAME
46468 library_names_spec=$lt_library_names_spec
46469
46470 # The coded name of the library, if different from the real name.
46471 soname_spec=$lt_soname_spec
46472
46473 # Command to use after installation of a shared archive.
46474 postinstall_cmds=$lt_postinstall_cmds
46475
46476 # Command to use after uninstallation of a shared archive.
46477 postuninstall_cmds=$lt_postuninstall_cmds
46478
46479 # Commands used to finish a libtool library installation in a directory.
46480 finish_cmds=$lt_finish_cmds
46481
46482 # As "finish_cmds", except a single script fragment to be evaled but
46483 # not shown.
46484 finish_eval=$lt_finish_eval
46485
46486 # Whether we should hardcode library paths into libraries.
46487 hardcode_into_libs=$hardcode_into_libs
46488
46489 # Compile-time system search path for libraries.
46490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46491
46492 # Run-time system search path for libraries.
46493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46494
46495 # Whether dlopen is supported.
46496 dlopen_support=$enable_dlopen
46497
46498 # Whether dlopen of programs is supported.
46499 dlopen_self=$enable_dlopen_self
46500
46501 # Whether dlopen of statically linked programs is supported.
46502 dlopen_self_static=$enable_dlopen_self_static
46503
46504 # Commands to strip libraries.
46505 old_striplib=$lt_old_striplib
46506 striplib=$lt_striplib
46507
46508
46509 # The linker used to build libraries.
46510 LD=$lt_LD
46511
46512 # Commands used to build an old-style archive.
46513 old_archive_cmds=$lt_old_archive_cmds
46514
46515 # A language specific compiler.
46516 CC=$lt_compiler
46517
46518 # Is the compiler the GNU compiler?
46519 with_gcc=$GCC
46520
46521 # Compiler flag to turn off builtin functions.
46522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46523
46524 # How to pass a linker flag through the compiler.
46525 wl=$lt_lt_prog_compiler_wl
46526
46527 # Additional compiler flags for building library objects.
46528 pic_flag=$lt_lt_prog_compiler_pic
46529
46530 # Compiler flag to prevent dynamic linking.
46531 link_static_flag=$lt_lt_prog_compiler_static
46532
46533 # Does compiler simultaneously support -c and -o options?
46534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46535
46536 # Whether or not to add -lc for building shared libraries.
46537 build_libtool_need_lc=$archive_cmds_need_lc
46538
46539 # Whether or not to disallow shared libs when runtime libs are static.
46540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46541
46542 # Compiler flag to allow reflexive dlopens.
46543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46544
46545 # Compiler flag to generate shared objects directly from archives.
46546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46547
46548 # Whether the compiler copes with passing no objects directly.
46549 compiler_needs_object=$lt_compiler_needs_object
46550
46551 # Create an old-style archive from a shared archive.
46552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46553
46554 # Create a temporary old-style archive to link instead of a shared archive.
46555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46556
46557 # Commands used to build a shared archive.
46558 archive_cmds=$lt_archive_cmds
46559 archive_expsym_cmds=$lt_archive_expsym_cmds
46560
46561 # Commands used to build a loadable module if different from building
46562 # a shared archive.
46563 module_cmds=$lt_module_cmds
46564 module_expsym_cmds=$lt_module_expsym_cmds
46565
46566 # Whether we are building with GNU ld or not.
46567 with_gnu_ld=$lt_with_gnu_ld
46568
46569 # Flag that allows shared libraries with undefined symbols to be built.
46570 allow_undefined_flag=$lt_allow_undefined_flag
46571
46572 # Flag that enforces no undefined symbols.
46573 no_undefined_flag=$lt_no_undefined_flag
46574
46575 # Flag to hardcode \$libdir into a binary during linking.
46576 # This must work even if \$libdir does not exist
46577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46578
46579 # If ld is used when linking, flag to hardcode \$libdir into a binary
46580 # during linking.  This must work even if \$libdir does not exist.
46581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46582
46583 # Whether we need a single "-rpath" flag with a separated argument.
46584 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46585
46586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46587 # DIR into the resulting binary.
46588 hardcode_direct=$hardcode_direct
46589
46590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46591 # DIR into the resulting binary and the resulting library dependency is
46592 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46593 # library is relocated.
46594 hardcode_direct_absolute=$hardcode_direct_absolute
46595
46596 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46597 # into the resulting binary.
46598 hardcode_minus_L=$hardcode_minus_L
46599
46600 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46601 # into the resulting binary.
46602 hardcode_shlibpath_var=$hardcode_shlibpath_var
46603
46604 # Set to "yes" if building a shared library automatically hardcodes DIR
46605 # into the library and all subsequent libraries and executables linked
46606 # against it.
46607 hardcode_automatic=$hardcode_automatic
46608
46609 # Set to yes if linker adds runtime paths of dependent libraries
46610 # to runtime path list.
46611 inherit_rpath=$inherit_rpath
46612
46613 # Whether libtool must link a program against all its dependency libraries.
46614 link_all_deplibs=$link_all_deplibs
46615
46616 # Fix the shell variable \$srcfile for the compiler.
46617 fix_srcfile_path=$lt_fix_srcfile_path
46618
46619 # Set to "yes" if exported symbols are required.
46620 always_export_symbols=$always_export_symbols
46621
46622 # The commands to list exported symbols.
46623 export_symbols_cmds=$lt_export_symbols_cmds
46624
46625 # Symbols that should not be listed in the preloaded symbols.
46626 exclude_expsyms=$lt_exclude_expsyms
46627
46628 # Symbols that must always be exported.
46629 include_expsyms=$lt_include_expsyms
46630
46631 # Commands necessary for linking programs (against libraries) with templates.
46632 prelink_cmds=$lt_prelink_cmds
46633
46634 # Specify filename containing input files.
46635 file_list_spec=$lt_file_list_spec
46636
46637 # How to hardcode a shared library path into an executable.
46638 hardcode_action=$hardcode_action
46639
46640 # The directories searched by this compiler when creating a shared library.
46641 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46642
46643 # Dependencies to place before and after the objects being linked to
46644 # create a shared library.
46645 predep_objects=$lt_predep_objects
46646 postdep_objects=$lt_postdep_objects
46647 predeps=$lt_predeps
46648 postdeps=$lt_postdeps
46649
46650 # The library search path used internally by the compiler when linking
46651 # a shared library.
46652 compiler_lib_search_path=$lt_compiler_lib_search_path
46653
46654 # ### END LIBTOOL CONFIG
46655
46656 _LT_EOF
46657
46658   case $host_os in
46659   aix3*)
46660     cat <<\_LT_EOF >> "$cfgfile"
46661 # AIX sometimes has problems with the GCC collect2 program.  For some
46662 # reason, if we set the COLLECT_NAMES environment variable, the problems
46663 # vanish in a puff of smoke.
46664 if test "X${COLLECT_NAMES+set}" != Xset; then
46665   COLLECT_NAMES=
46666   export COLLECT_NAMES
46667 fi
46668 _LT_EOF
46669     ;;
46670   esac
46671
46672
46673 ltmain="$ac_aux_dir/ltmain.sh"
46674
46675
46676   # We use sed instead of cat because bash on DJGPP gets confused if
46677   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46678   # text mode, it properly converts lines to CR/LF.  This bash problem
46679   # is reportedly fixed, but why not run on old versions too?
46680   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46681     || (rm -f "$cfgfile"; exit 1)
46682
46683   case $xsi_shell in
46684   yes)
46685     cat << \_LT_EOF >> "$cfgfile"
46686
46687 # func_dirname file append nondir_replacement
46688 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46689 # otherwise set result to NONDIR_REPLACEMENT.
46690 func_dirname ()
46691 {
46692   case ${1} in
46693     */*) func_dirname_result="${1%/*}${2}" ;;
46694     *  ) func_dirname_result="${3}" ;;
46695   esac
46696 }
46697
46698 # func_basename file
46699 func_basename ()
46700 {
46701   func_basename_result="${1##*/}"
46702 }
46703
46704 # func_dirname_and_basename file append nondir_replacement
46705 # perform func_basename and func_dirname in a single function
46706 # call:
46707 #   dirname:  Compute the dirname of FILE.  If nonempty,
46708 #             add APPEND to the result, otherwise set result
46709 #             to NONDIR_REPLACEMENT.
46710 #             value returned in "$func_dirname_result"
46711 #   basename: Compute filename of FILE.
46712 #             value retuned in "$func_basename_result"
46713 # Implementation must be kept synchronized with func_dirname
46714 # and func_basename. For efficiency, we do not delegate to
46715 # those functions but instead duplicate the functionality here.
46716 func_dirname_and_basename ()
46717 {
46718   case ${1} in
46719     */*) func_dirname_result="${1%/*}${2}" ;;
46720     *  ) func_dirname_result="${3}" ;;
46721   esac
46722   func_basename_result="${1##*/}"
46723 }
46724
46725 # func_stripname prefix suffix name
46726 # strip PREFIX and SUFFIX off of NAME.
46727 # PREFIX and SUFFIX must not contain globbing or regex special
46728 # characters, hashes, percent signs, but SUFFIX may contain a leading
46729 # dot (in which case that matches only a dot).
46730 func_stripname ()
46731 {
46732   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46733   # positional parameters, so assign one to ordinary parameter first.
46734   func_stripname_result=${3}
46735   func_stripname_result=${func_stripname_result#"${1}"}
46736   func_stripname_result=${func_stripname_result%"${2}"}
46737 }
46738
46739 # func_opt_split
46740 func_opt_split ()
46741 {
46742   func_opt_split_opt=${1%%=*}
46743   func_opt_split_arg=${1#*=}
46744 }
46745
46746 # func_lo2o object
46747 func_lo2o ()
46748 {
46749   case ${1} in
46750     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46751     *)    func_lo2o_result=${1} ;;
46752   esac
46753 }
46754
46755 # func_xform libobj-or-source
46756 func_xform ()
46757 {
46758   func_xform_result=${1%.*}.lo
46759 }
46760
46761 # func_arith arithmetic-term...
46762 func_arith ()
46763 {
46764   func_arith_result=$(( $* ))
46765 }
46766
46767 # func_len string
46768 # STRING may not start with a hyphen.
46769 func_len ()
46770 {
46771   func_len_result=${#1}
46772 }
46773
46774 _LT_EOF
46775     ;;
46776   *) # Bourne compatible functions.
46777     cat << \_LT_EOF >> "$cfgfile"
46778
46779 # func_dirname file append nondir_replacement
46780 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46781 # otherwise set result to NONDIR_REPLACEMENT.
46782 func_dirname ()
46783 {
46784   # Extract subdirectory from the argument.
46785   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46786   if test "X$func_dirname_result" = "X${1}"; then
46787     func_dirname_result="${3}"
46788   else
46789     func_dirname_result="$func_dirname_result${2}"
46790   fi
46791 }
46792
46793 # func_basename file
46794 func_basename ()
46795 {
46796   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46797 }
46798
46799
46800 # func_stripname prefix suffix name
46801 # strip PREFIX and SUFFIX off of NAME.
46802 # PREFIX and SUFFIX must not contain globbing or regex special
46803 # characters, hashes, percent signs, but SUFFIX may contain a leading
46804 # dot (in which case that matches only a dot).
46805 # func_strip_suffix prefix name
46806 func_stripname ()
46807 {
46808   case ${2} in
46809     .*) func_stripname_result=`$ECHO "X${3}" \
46810            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46811     *)  func_stripname_result=`$ECHO "X${3}" \
46812            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46813   esac
46814 }
46815
46816 # sed scripts:
46817 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46818 my_sed_long_arg='1s/^-[^=]*=//'
46819
46820 # func_opt_split
46821 func_opt_split ()
46822 {
46823   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46824   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46825 }
46826
46827 # func_lo2o object
46828 func_lo2o ()
46829 {
46830   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46831 }
46832
46833 # func_xform libobj-or-source
46834 func_xform ()
46835 {
46836   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46837 }
46838
46839 # func_arith arithmetic-term...
46840 func_arith ()
46841 {
46842   func_arith_result=`expr "$@"`
46843 }
46844
46845 # func_len string
46846 # STRING may not start with a hyphen.
46847 func_len ()
46848 {
46849   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46850 }
46851
46852 _LT_EOF
46853 esac
46854
46855 case $lt_shell_append in
46856   yes)
46857     cat << \_LT_EOF >> "$cfgfile"
46858
46859 # func_append var value
46860 # Append VALUE to the end of shell variable VAR.
46861 func_append ()
46862 {
46863   eval "$1+=\$2"
46864 }
46865 _LT_EOF
46866     ;;
46867   *)
46868     cat << \_LT_EOF >> "$cfgfile"
46869
46870 # func_append var value
46871 # Append VALUE to the end of shell variable VAR.
46872 func_append ()
46873 {
46874   eval "$1=\$$1\$2"
46875 }
46876
46877 _LT_EOF
46878     ;;
46879   esac
46880
46881
46882   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46883     || (rm -f "$cfgfile"; exit 1)
46884
46885   mv -f "$cfgfile" "$ofile" ||
46886     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46887   chmod +x "$ofile"
46888
46889
46890     cat <<_LT_EOF >> "$ofile"
46891
46892 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46893
46894 # The linker used to build libraries.
46895 LD=$lt_LD_CXX
46896
46897 # Commands used to build an old-style archive.
46898 old_archive_cmds=$lt_old_archive_cmds_CXX
46899
46900 # A language specific compiler.
46901 CC=$lt_compiler_CXX
46902
46903 # Is the compiler the GNU compiler?
46904 with_gcc=$GCC_CXX
46905
46906 # Compiler flag to turn off builtin functions.
46907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46908
46909 # How to pass a linker flag through the compiler.
46910 wl=$lt_lt_prog_compiler_wl_CXX
46911
46912 # Additional compiler flags for building library objects.
46913 pic_flag=$lt_lt_prog_compiler_pic_CXX
46914
46915 # Compiler flag to prevent dynamic linking.
46916 link_static_flag=$lt_lt_prog_compiler_static_CXX
46917
46918 # Does compiler simultaneously support -c and -o options?
46919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46920
46921 # Whether or not to add -lc for building shared libraries.
46922 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46923
46924 # Whether or not to disallow shared libs when runtime libs are static.
46925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46926
46927 # Compiler flag to allow reflexive dlopens.
46928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46929
46930 # Compiler flag to generate shared objects directly from archives.
46931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46932
46933 # Whether the compiler copes with passing no objects directly.
46934 compiler_needs_object=$lt_compiler_needs_object_CXX
46935
46936 # Create an old-style archive from a shared archive.
46937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46938
46939 # Create a temporary old-style archive to link instead of a shared archive.
46940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46941
46942 # Commands used to build a shared archive.
46943 archive_cmds=$lt_archive_cmds_CXX
46944 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46945
46946 # Commands used to build a loadable module if different from building
46947 # a shared archive.
46948 module_cmds=$lt_module_cmds_CXX
46949 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46950
46951 # Whether we are building with GNU ld or not.
46952 with_gnu_ld=$lt_with_gnu_ld_CXX
46953
46954 # Flag that allows shared libraries with undefined symbols to be built.
46955 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46956
46957 # Flag that enforces no undefined symbols.
46958 no_undefined_flag=$lt_no_undefined_flag_CXX
46959
46960 # Flag to hardcode \$libdir into a binary during linking.
46961 # This must work even if \$libdir does not exist
46962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46963
46964 # If ld is used when linking, flag to hardcode \$libdir into a binary
46965 # during linking.  This must work even if \$libdir does not exist.
46966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46967
46968 # Whether we need a single "-rpath" flag with a separated argument.
46969 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46970
46971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46972 # DIR into the resulting binary.
46973 hardcode_direct=$hardcode_direct_CXX
46974
46975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46976 # DIR into the resulting binary and the resulting library dependency is
46977 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46978 # library is relocated.
46979 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46980
46981 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46982 # into the resulting binary.
46983 hardcode_minus_L=$hardcode_minus_L_CXX
46984
46985 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46986 # into the resulting binary.
46987 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46988
46989 # Set to "yes" if building a shared library automatically hardcodes DIR
46990 # into the library and all subsequent libraries and executables linked
46991 # against it.
46992 hardcode_automatic=$hardcode_automatic_CXX
46993
46994 # Set to yes if linker adds runtime paths of dependent libraries
46995 # to runtime path list.
46996 inherit_rpath=$inherit_rpath_CXX
46997
46998 # Whether libtool must link a program against all its dependency libraries.
46999 link_all_deplibs=$link_all_deplibs_CXX
47000
47001 # Fix the shell variable \$srcfile for the compiler.
47002 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47003
47004 # Set to "yes" if exported symbols are required.
47005 always_export_symbols=$always_export_symbols_CXX
47006
47007 # The commands to list exported symbols.
47008 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47009
47010 # Symbols that should not be listed in the preloaded symbols.
47011 exclude_expsyms=$lt_exclude_expsyms_CXX
47012
47013 # Symbols that must always be exported.
47014 include_expsyms=$lt_include_expsyms_CXX
47015
47016 # Commands necessary for linking programs (against libraries) with templates.
47017 prelink_cmds=$lt_prelink_cmds_CXX
47018
47019 # Specify filename containing input files.
47020 file_list_spec=$lt_file_list_spec_CXX
47021
47022 # How to hardcode a shared library path into an executable.
47023 hardcode_action=$hardcode_action_CXX
47024
47025 # The directories searched by this compiler when creating a shared library.
47026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47027
47028 # Dependencies to place before and after the objects being linked to
47029 # create a shared library.
47030 predep_objects=$lt_predep_objects_CXX
47031 postdep_objects=$lt_postdep_objects_CXX
47032 predeps=$lt_predeps_CXX
47033 postdeps=$lt_postdeps_CXX
47034
47035 # The library search path used internally by the compiler when linking
47036 # a shared library.
47037 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47038
47039 # ### END LIBTOOL TAG CONFIG: CXX
47040 _LT_EOF
47041
47042  ;;
47043     "default-1":C)
47044     for ac_file in $CONFIG_FILES; do
47045       # Support "outfile[:infile[:infile...]]"
47046       case "$ac_file" in
47047         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47048       esac
47049       # PO directories have a Makefile.in generated from Makefile.in.in.
47050       case "$ac_file" in */Makefile.in)
47051         # Adjust a relative srcdir.
47052         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47053         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47054         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47055         # In autoconf-2.13 it is called $ac_given_srcdir.
47056         # In autoconf-2.50 it is called $srcdir.
47057         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47058         case "$ac_given_srcdir" in
47059           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47060           /*) top_srcdir="$ac_given_srcdir" ;;
47061           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
47062         esac
47063         # Treat a directory as a PO directory if and only if it has a
47064         # POTFILES.in file. This allows packages to have multiple PO
47065         # directories under different names or in different locations.
47066         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47067           rm -f "$ac_dir/POTFILES"
47068           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47069           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47070           POMAKEFILEDEPS="POTFILES.in"
47071           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47072           # on $ac_dir but don't depend on user-specified configuration
47073           # parameters.
47074           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47075             # The LINGUAS file contains the set of available languages.
47076             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47077               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47078             fi
47079             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47080             # Hide the ALL_LINGUAS assigment from automake.
47081             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47082             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47083           else
47084             # The set of available languages was given in configure.in.
47085             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47086           fi
47087           # Compute POFILES
47088           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47089           # Compute UPDATEPOFILES
47090           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47091           # Compute DUMMYPOFILES
47092           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47093           # Compute GMOFILES
47094           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47095           case "$ac_given_srcdir" in
47096             .) srcdirpre= ;;
47097             *) srcdirpre='$(srcdir)/' ;;
47098           esac
47099           POFILES=
47100           UPDATEPOFILES=
47101           DUMMYPOFILES=
47102           GMOFILES=
47103           for lang in $ALL_LINGUAS; do
47104             POFILES="$POFILES $srcdirpre$lang.po"
47105             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47106             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47107             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47108           done
47109           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47110           # environment variable.
47111           INST_LINGUAS=
47112           if test -n "$ALL_LINGUAS"; then
47113             for presentlang in $ALL_LINGUAS; do
47114               useit=no
47115               if test "%UNSET%" != "$LINGUAS"; then
47116                 desiredlanguages="$LINGUAS"
47117               else
47118                 desiredlanguages="$ALL_LINGUAS"
47119               fi
47120               for desiredlang in $desiredlanguages; do
47121                 # Use the presentlang catalog if desiredlang is
47122                 #   a. equal to presentlang, or
47123                 #   b. a variant of presentlang (because in this case,
47124                 #      presentlang can be used as a fallback for messages
47125                 #      which are not translated in the desiredlang catalog).
47126                 case "$desiredlang" in
47127                   "$presentlang"*) useit=yes;;
47128                 esac
47129               done
47130               if test $useit = yes; then
47131                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47132               fi
47133             done
47134           fi
47135           CATALOGS=
47136           if test -n "$INST_LINGUAS"; then
47137             for lang in $INST_LINGUAS; do
47138               CATALOGS="$CATALOGS $lang.gmo"
47139             done
47140           fi
47141           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47142           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"
47143           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47144             if test -f "$f"; then
47145               case "$f" in
47146                 *.orig | *.bak | *~) ;;
47147                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47148               esac
47149             fi
47150           done
47151         fi
47152         ;;
47153       esac
47154     done ;;
47155     "default":C)
47156  ;;
47157
47158   esac
47159 done # for ac_tag
47160
47161
47162 { (exit 0); exit 0; }
47163 _ACEOF
47164 chmod +x $CONFIG_STATUS
47165 ac_clean_files=$ac_clean_files_save
47166
47167
47168 # configure is writing to config.log, and then calls config.status.
47169 # config.status does its own redirection, appending to config.log.
47170 # Unfortunately, on DOS this fails, as config.log is still kept open
47171 # by configure, so config.status won't be able to write to it; its
47172 # output is simply discarded.  So we exec the FD to /dev/null,
47173 # effectively closing config.log, so it can be properly (re)opened and
47174 # appended to by config.status.  When coming back to configure, we
47175 # need to make the FD available again.
47176 if test "$no_create" != yes; then
47177   ac_cs_success=:
47178   ac_config_status_args=
47179   test "$silent" = yes &&
47180     ac_config_status_args="$ac_config_status_args --quiet"
47181   exec 5>/dev/null
47182   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47183   exec 5>>config.log
47184   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47185   # would make configure fail if this is the last instruction.
47186   $ac_cs_success || { (exit 1); exit 1; }
47187 fi
47188
47189
47190 if test "${support_bat}" = "yes" ; then
47191    if test "x$QMAKE" = "xnone"; then
47192       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47193 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47194    { (exit 1); exit 1; }; }
47195    fi
47196
47197    QMAKEBIN="qmake"
47198    cd src/qt-console
47199    echo "Creating bat Makefile"
47200    touch bat
47201    chmod 755 bat
47202    rm -f Makefile
47203    $QMAKEBIN
47204    ${MAKE:-make} clean
47205    cd ${BUILD_DIR}
47206 fi
47207
47208 if test X"$GCC" = "Xyes" ; then
47209   echo "Doing make of dependencies"
47210   ${MAKE:-make} depend
47211 fi
47212
47213 cd src/qt-console
47214 chmod 755 install_conf_file build-depkgs-qt-console
47215 cd ${BUILD_DIR}
47216
47217 cd scripts
47218 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47219 chmod 755 dvd-handler dvd-simulator
47220 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47221 cd ..
47222
47223 c=updatedb
47224 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
47225 chmod 755 $c/update_postgresql_tables_10_to_11
47226
47227 c=src/cats
47228
47229 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
47230 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
47231
47232 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
47233 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
47234
47235 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
47236 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
47237
47238 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
47239 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
47240
47241 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
47242 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
47243
47244 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47245 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47246
47247
47248 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
47249 chmod 755 $c/sqlite
47250 chmod 755 $c/mysql
47251
47252 chmod 755 src/win32/build-depkgs-mingw32
47253
47254 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47255    largefile_support="yes"
47256 fi
47257
47258 if test X"$GCC" = "Xyes" ; then
47259                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47260    if test "x${CCVERSION}" = "x" ; then
47261       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47262    fi
47263    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47264    if test x"${CXXVERSION}" = x ; then
47265       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47266    fi
47267 fi
47268
47269 # clean up any old junk
47270 echo " "
47271 echo "Cleaning up"
47272 echo " "
47273 ${MAKE:-make} clean
47274
47275 if test "x${db_type}" = "xInternal" ; then
47276    echo " "
47277    echo " "
47278    echo "You have not specified either --enable-client-only or one of the"
47279    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47280    echo "  This is not permitted. Please reconfigure."
47281    echo " "
47282    echo "Aborting the configuration ..."
47283    echo " "
47284    echo " "
47285    exit 1
47286 fi
47287
47288 echo "
47289 Configuration on `date`:
47290
47291    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47292    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47293    Source code location:    ${srcdir}
47294    Install binaries:        ${sbindir}
47295    Install libraries:       ${libdir}
47296    Install config files:    ${sysconfdir}
47297    Scripts directory:       ${scriptdir}
47298    Archive directory:       ${archivedir}
47299    Working directory:       ${working_dir}
47300    PID directory:           ${piddir}
47301    Subsys directory:        ${subsysdir}
47302    Man directory:           ${mandir}
47303    Data directory:          ${datarootdir}
47304    Plugin directory:        ${plugindir}
47305    C Compiler:              ${CC} ${CCVERSION}
47306    C++ Compiler:            ${CXX} ${CXXVERSION}
47307    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47308    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47309    Libraries:               ${LIBS}
47310    Statically Linked Tools: ${support_static_tools}
47311    Statically Linked FD:    ${support_static_fd}
47312    Statically Linked SD:    ${support_static_sd}
47313    Statically Linked DIR:   ${support_static_dir}
47314    Statically Linked CONS:  ${support_static_cons}
47315    Database type:           ${db_type}
47316    Database port:           ${db_port}
47317    Database lib:            ${DB_LIBS}
47318    Database name:           ${db_name}
47319    Database user:           ${db_user}
47320
47321    Job Output Email:        ${job_email}
47322    Traceback Email:         ${dump_email}
47323    SMTP Host Address:       ${smtp_host}
47324
47325    Director Port:           ${dir_port}
47326    File daemon Port:        ${fd_port}
47327    Storage daemon Port:     ${sd_port}
47328
47329    Director User:           ${dir_user}
47330    Director Group:          ${dir_group}
47331    Storage Daemon User:     ${sd_user}
47332    Storage DaemonGroup:     ${sd_group}
47333    File Daemon User:        ${fd_user}
47334    File Daemon Group:       ${fd_group}
47335
47336    SQL binaries Directory   ${SQL_BINDIR}
47337
47338    Large file support:      $largefile_support
47339    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47340    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47341    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47342    TLS support:             ${support_tls}
47343    Encryption support:      ${support_crypto}
47344    ZLIB support:            ${have_zlib}
47345    enable-smartalloc:       ${support_smartalloc}
47346    enable-lockmgr:          ${support_lockmgr}
47347    bat support:             ${support_bat}
47348    enable-gnome:            ${support_gnome} ${gnome_version}
47349    enable-bwx-console:      ${support_wx_console} ${wx_version}
47350    enable-tray-monitor:     ${support_tray_monitor}
47351    client-only:             ${build_client_only}
47352    build-dird:              ${build_dird}
47353    build-stored:            ${build_stored}
47354    Plugin support:          ${have_plugins}
47355    ACL support:             ${have_acl}
47356    XATTR support:           ${have_xattr}
47357    Python support:          ${support_python} ${PYTHON_LIBS}
47358    Batch insert enabled:    ${support_batch_insert}
47359
47360   " > config.out
47361
47362 # create a small shell script useful for support with
47363 # configure options and config.out info
47364 cat > scripts/bacula_config << EOF
47365 #!/bin/sh
47366 cat << __EOC__
47367 $ $0 $ac_configure_args
47368 EOF
47369 cat config.out >> scripts/bacula_config
47370 echo __EOC__ >> scripts/bacula_config
47371 chmod 755 scripts/bacula_config
47372
47373 cat config.out
47374
47375 # Display a warning message if postgresql client lib is <= 8.1
47376 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47377         -a x$support_batch_insert = xyes
47378 then
47379         echo "WARNING: Your PostgreSQL client library is too old to detect "
47380         echo " if it was compiled with --enable-thread-safety, consider to"
47381         echo " upgrade it in order to avoid problems with Batch insert mode"
47382         echo
47383 fi